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:
Henrik Rydgård
2026-08-11 22:36:47 +02:00
parent e9e27382af
commit a44c2c0bde
18 changed files with 72 additions and 55 deletions
+5 -3
View File
@@ -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();
}