mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 11:45:18 +02:00
Headless: Simplify executing a ppdmp via headless.
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "Core/HLE/HLETables.h"
|
||||
#include "Core/HLE/Plugins.h"
|
||||
#include "Core/HLE/ReplaceTables.h"
|
||||
#include "Core/HLE/sceDisplay.h"
|
||||
#include "Core/Reporting.h"
|
||||
#include "Core/Host.h"
|
||||
#include "Core/Loaders.h"
|
||||
@@ -1880,6 +1881,14 @@ void __KernelGPUReplay() {
|
||||
if (!GPURecord::RunMountedReplay(filename)) {
|
||||
Core_Stop();
|
||||
}
|
||||
|
||||
if (PSP_CoreParameter().headLess && !PSP_CoreParameter().startBreak) {
|
||||
PSPPointer<u8> topaddr;
|
||||
u32 linesize = 512;
|
||||
__DisplayGetFramebuf(&topaddr, &linesize, nullptr, 0);
|
||||
host->SendDebugScreenshot(topaddr, linesize, 272);
|
||||
Core_Stop();
|
||||
}
|
||||
}
|
||||
|
||||
int sceKernelLoadExec(const char *filename, u32 paramPtr)
|
||||
|
||||
Reference in New Issue
Block a user