aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/am
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-26 16:10:21 -0500
committerLiam <byteslice@airmail.cc>2024-02-09 09:20:53 -0500
commit0cb413c3d31b93ce347e997b9674c304094dab09 (patch)
tree959ef73963ea1e7975690d31eaf4ddc2f2ad6e19 /src/core/hle/service/am
parent962c82540c304f909957776908aabcd261f2a7ba (diff)
nvnflinger/gpu: implement applet capture
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r--src/core/hle/service/am/system_buffer_manager.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/am/system_buffer_manager.cpp b/src/core/hle/service/am/system_buffer_manager.cpp
index 3cccc5388..7fb9e3a75 100644
--- a/src/core/hle/service/am/system_buffer_manager.cpp
+++ b/src/core/hle/service/am/system_buffer_manager.cpp
@@ -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