Fix boot game crash

This commit is contained in:
Nekotekina 2018-03-01 13:51:07 +03:00
parent f056b2f4ab
commit f96e9b6ed7

View file

@ -233,7 +233,7 @@ void main_window::Boot(const std::string& path, bool direct, bool add_only)
Emu.SetForceBoot(true); Emu.SetForceBoot(true);
Emu.Stop(); Emu.Stop();
if (Emu.BootGame(path, add_only)) if (Emu.BootGame(path, direct, add_only))
{ {
LOG_SUCCESS(LOADER, "Boot successful."); LOG_SUCCESS(LOADER, "Boot successful.");
const std::string serial = Emu.GetTitleID().empty() ? "" : "[" + Emu.GetTitleID() + "] "; const std::string serial = Emu.GetTitleID().empty() ? "" : "[" + Emu.GetTitleID() + "] ";
@ -241,7 +241,7 @@ void main_window::Boot(const std::string& path, bool direct, bool add_only)
} }
else else
{ {
LOG_ERROR(GENERAL, "Boot failed: path=%s direct=%d add_only=%d", path, direct, add_only); LOG_ERROR(GENERAL, "Boot failed: %s", path);
} }
m_gameListFrame->Refresh(true); m_gameListFrame->Refresh(true);