mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00:00
Replace wxFileExists() with File::Exists().
It did not handle unicode properly.
This commit is contained in:
parent
b7aed97508
commit
bf7de71fd0
2 changed files with 5 additions and 5 deletions
|
@ -624,14 +624,14 @@ void CFrame::BootGame(const std::string& filename)
|
|||
bootfile = m_GameListCtrl->GetSelectedISO()->GetFileName();
|
||||
}
|
||||
else if (!StartUp.m_strDefaultGCM.empty() &&
|
||||
wxFileExists(wxSafeConvertMB2WX(StartUp.m_strDefaultGCM.c_str())))
|
||||
File::Exists(StartUp.m_strDefaultGCM))
|
||||
{
|
||||
bootfile = StartUp.m_strDefaultGCM;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!SConfig::GetInstance().m_LastFilename.empty() &&
|
||||
wxFileExists(wxSafeConvertMB2WX(SConfig::GetInstance().m_LastFilename.c_str())))
|
||||
File::Exists(SConfig::GetInstance().m_LastFilename))
|
||||
{
|
||||
bootfile = SConfig::GetInstance().m_LastFilename;
|
||||
}
|
||||
|
@ -1782,7 +1782,7 @@ void CFrame::UpdateGUI()
|
|||
}
|
||||
// Prepare to load last selected file, enable play button
|
||||
else if (!SConfig::GetInstance().m_LastFilename.empty() &&
|
||||
wxFileExists(wxSafeConvertMB2WX(SConfig::GetInstance().m_LastFilename.c_str())))
|
||||
File::Exists(SConfig::GetInstance().m_LastFilename))
|
||||
{
|
||||
if (m_ToolBar)
|
||||
m_ToolBar->EnableTool(IDM_PLAY, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue