Cleanup a lot of the bootup state management.

This commit is contained in:
Henrik Rydgård committed 2025-03-30 14:02:29 +02:00
1 parent e6ea158dcc
commit 088a02bfdb
30 files changed
+239 -257

No files matched your search

+2 -2
View File
@@ -199,7 +199,7 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, const
headlessHost->SetComparisonScreenshot(ExpectedScreenshotFromFilename(coreParameter.fileToStart), opt.maxScreenshotError);
std::string error_string;
while (!PSP_InitUpdate(&error_string))
while (PSP_InitUpdate(&error_string) == BootState::Booting)
sleep_ms(1, "auto-test");
if (!PSP_IsInited()) {
@@ -265,7 +265,7 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, const
draw->EndFrame();
}
PSP_Shutdown();
PSP_Shutdown(true);
if (!opt.bench)
headlessHost->FlushDebugOutput();