mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 18:32:49 -06:00
Frontends: Shutdown core when emulation is stopped
This commit is contained in:
parent
d66d1707cf
commit
cdde76f2aa
2 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,8 @@ int __cdecl main(int argc, char **argv) {
|
||||||
Core::RunLoop();
|
Core::RunLoop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System::Shutdown();
|
||||||
|
|
||||||
delete emu_window;
|
delete emu_window;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/settings.h"
|
#include "core/settings.h"
|
||||||
|
#include "core/system.h"
|
||||||
|
|
||||||
#include "video_core/debug_utils/debug_utils.h"
|
#include "video_core/debug_utils/debug_utils.h"
|
||||||
|
|
||||||
|
@ -89,6 +90,8 @@ void EmuThread::Stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG_INFO(Frontend, "EmuThread stopped");
|
LOG_INFO(Frontend, "EmuThread stopped");
|
||||||
|
|
||||||
|
System::Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue