Libretro: Correctly update the boot process

Made untested changes after #20183 - surprise, it didn't work.

Thanks @Duarte475 for reporting.

Fixes #20189
This commit is contained in:
Henrik Rydgård committed 2025-03-31 14:16:17 +02:00
1 parent 08dddbe470
commit 940e2375aa
3 files changed
+42 -28

No files matched your search

+1 -2
View File
@@ -512,8 +512,6 @@ bool PSP_InitStart(const CoreParameter &coreParam) {
return false;
}
_dbg_assert_(coreState != CORE_POWERUP);
coreState = CORE_POWERUP;
g_bootState = BootState::Booting;
@@ -616,6 +614,7 @@ BootState PSP_InitUpdate(std::string *error_string) {
if (!gpu) { // should be!
INFO_LOG(Log::System, "Starting graphics...");
Draw::DrawContext *draw = g_CoreParameter.graphicsContext ? g_CoreParameter.graphicsContext->GetDrawContext() : nullptr;
// This set the `gpu` global.
bool success = GPU_Init(g_CoreParameter.graphicsContext, draw);
if (!success) {
*error_string = "Unable to initialize rendering engine.";