diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index a11ddab51e..7d256b6738 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -868,7 +868,7 @@ void Emulator::Load(const std::string& title_id, bool add_only, bool force_globa // Workaround for analyser glitches vm::falloc(0x10000, 0xf0000, vm::main); - return thread_ctrl::spawn("SPRX Loader", [this] + auto sprx_loader_body = [this] { std::vector dir_queue; dir_queue.emplace_back(m_path + '/'); @@ -983,7 +983,10 @@ void Emulator::Load(const std::string& title_id, bool add_only, bool force_globa { Emu.Stop(); }); - }); + }; + + g_fxo->init>("SPRX Loader"sv, std::move(sprx_loader_body)); + return; } // Detect boot location