mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
prevent overflow becaus wxStrings aren't \0 terminated anymore
This commit is contained in:
parent
b9abb1e075
commit
3f52a6aa50
8 changed files with 12 additions and 31 deletions
|
@ -192,7 +192,7 @@ void MainFrame::BootGame(wxCommandEvent& WXUNUSED(event))
|
|||
|
||||
Emu.Stop();
|
||||
|
||||
if(Emu.BootGame(ctrl.GetPath().ToStdString()))
|
||||
if(Emu.BootGame((const char *)ctrl.GetPath().mb_str()))
|
||||
{
|
||||
ConLog.Success("Game: boot done.");
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ void MainFrame::InstallPkg(wxCommandEvent& WXUNUSED(event))
|
|||
//Refresh game list
|
||||
m_game_viewer->Refresh();
|
||||
|
||||
if(Emu.BootGame(pkgDir.ToStdString()))
|
||||
if(Emu.BootGame((const char*)pkgDir.mb_str()))
|
||||
{
|
||||
ConLog.Success("Game: boot done.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue