mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +00:00
sys_game: Made the LV2 Watchdog restarts the game forcefully
This commit is contained in:
parent
7e35679ec2
commit
d78e2dad29
@ -69,7 +69,7 @@ struct watchdog_t
|
||||
|
||||
Emu.CallFromMainThread([]()
|
||||
{
|
||||
Emu.Restart();
|
||||
Emu.Restart(false);
|
||||
});
|
||||
|
||||
return;
|
||||
|
@ -2823,13 +2823,16 @@ std::shared_ptr<utils::serial> Emulator::Kill(bool allow_autoexit, bool savestat
|
||||
return to_ar;
|
||||
}
|
||||
|
||||
game_boot_result Emulator::Restart()
|
||||
game_boot_result Emulator::Restart(bool graceful)
|
||||
{
|
||||
if (!IsStopped())
|
||||
{
|
||||
auto save_args = std::make_tuple(argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_mode);
|
||||
|
||||
if (graceful)
|
||||
GracefulShutdown(false, false);
|
||||
else
|
||||
Kill(false);
|
||||
|
||||
std::tie(argv, envp, data, disc, klic, hdd1, m_config_mode, m_config_mode) = std::move(save_args);
|
||||
}
|
||||
|
@ -307,7 +307,7 @@ public:
|
||||
void Resume();
|
||||
void GracefulShutdown(bool allow_autoexit = true, bool async_op = false, bool savestate = false);
|
||||
std::shared_ptr<utils::serial> Kill(bool allow_autoexit = true, bool savestate = false);
|
||||
game_boot_result Restart();
|
||||
game_boot_result Restart(bool graceful = true);
|
||||
bool Quit(bool force_quit);
|
||||
static void CleanUp();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user