mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 11:26:56 +02:00
fix teardown
This commit is contained in:
+8
-18
@@ -160,24 +160,14 @@ static void LoadElf(const std::filesystem::path& elf, bool dbg_print_reloc = fal
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void Execute() {
|
static void Execute() {
|
||||||
int thread_model = 1;
|
Common::Thread guest_thread(
|
||||||
|
[](void* /*unused*/) {
|
||||||
if (thread_model == 0) {
|
auto* rt = Common::Singleton<Loader::RuntimeLinker>::Instance();
|
||||||
Common::Thread t([](void* /*unused*/) { Libs::Graphics::WindowRun(); }, nullptr);
|
rt->Execute();
|
||||||
t.Detach();
|
},
|
||||||
auto* rt = Common::Singleton<Loader::RuntimeLinker>::Instance();
|
nullptr);
|
||||||
rt->Execute();
|
Libs::Graphics::WindowRun();
|
||||||
} else {
|
std::quick_exit(0);
|
||||||
Common::Thread t(
|
|
||||||
[](void* /*unused*/) {
|
|
||||||
auto* rt = Common::Singleton<Loader::RuntimeLinker>::Instance();
|
|
||||||
rt->Execute();
|
|
||||||
},
|
|
||||||
nullptr);
|
|
||||||
t.Detach();
|
|
||||||
Libs::Graphics::WindowRun();
|
|
||||||
t.Join();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Run(const RunOptions& options) {
|
void Run(const RunOptions& options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user