nvnflinger/gpu: implement applet capture

This commit is contained in:
Liam 2024-01-26 16:10:21 -05:00
parent 1c32e4157c
commit ce72818075
19 changed files with 288 additions and 55 deletions

View file

@ -68,8 +68,12 @@ void SystemBufferManager::SetWindowVisibility(bool visible) {
Result SystemBufferManager::WriteAppletCaptureBuffer(bool* out_was_written,
s32* out_fbshare_layer_index) {
// TODO
R_SUCCEED();
if (!m_buffer_sharing_enabled) {
return VI::ResultPermissionDenied;
}
return m_nvnflinger->GetSystemBufferManager().WriteAppletCaptureBuffer(out_was_written,
out_fbshare_layer_index);
}
} // namespace Service::AM