Fix /dev_bdvd/ for exitspawn

This commit is contained in:
Nekotekina 2017-11-01 00:23:09 +03:00
parent 0b788f5b43
commit 0e7e40f2cb
3 changed files with 19 additions and 9 deletions

View file

@ -288,13 +288,14 @@ void _sys_process_exit2(ppu_thread& ppu, s32 status, vm::ptr<sys_exit2_param> ar
vm::temporary_unlock(ppu);
Emu.CallAfter([path = std::move(path), argv = std::move(argv), envp = std::move(envp), data = std::move(data)]()
Emu.CallAfter([path = std::move(path), argv = std::move(argv), envp = std::move(envp), data = std::move(data), disc = vfs::get("/dev_bdvd/")]() mutable
{
sys_process.success("Process finished -> %s", argv[0]);
Emu.Stop();
Emu.argv = std::move(argv);
Emu.envp = std::move(envp);
Emu.data = std::move(data);
Emu.disc = std::move(disc);
Emu.BootGame(path, true);
if (Emu.IsReady() && !g_cfg.misc.autostart)