mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Replace System_SendDebugOutput with a registered callback
I normally try to avoid registrations when not needed, but in this case only headless uses this, so it's motivated.
This commit is contained in:
1 parent
e9e27382af
commit
a44c2c0bde
18 files changed
+72
-55
No files matched your search
@@ -1913,10 +1913,12 @@ int __KernelGPUReplay() {
|
||||
}
|
||||
|
||||
if (result == GPURecord::ReplayResult::Done && PSP_CoreParameter().headLess && !PSP_CoreParameter().startBreak) {
|
||||
DebugScreenshotDesc desc;
|
||||
PSPPointer<u8> topaddr;
|
||||
u32 linesize = 512;
|
||||
__DisplayGetFramebuf(&topaddr, &linesize, nullptr, 0);
|
||||
System_SendDebugScreenshot(&topaddr[0], linesize, 272);
|
||||
__DisplayGetFramebuf(&topaddr, &desc.stride, &desc.format, 0);
|
||||
desc.data = &topaddr[0];
|
||||
desc.height = 272;
|
||||
Core_SendDebugScreenshot(desc);
|
||||
Core_Stop();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user