Skip to content

Commit

Permalink
Merge pull request #1254 from RachelBryk/unicode
Browse files Browse the repository at this point in the history
Replace wxFileExists() with File::Exists().
  • Loading branch information
Sonicadvance1 committed Oct 10, 2014
2 parents 5c1acc9 + bf7de71 commit f6233cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Source/Core/DolphinWX/FrameTools.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/DolphinWX/GameListCtrl.cpp
Expand Up @@ -1119,7 +1119,7 @@ void CGameListCtrl::CompressSelection(bool _compress)
WxStrToStr(browseDialog.GetPath()),
FileName);

if (wxFileExists(StrToWxStr(OutputFileName)) &&
if (File::Exists(OutputFileName) &&
wxMessageBox(
wxString::Format(_("The file %s already exists.\nDo you wish to replace it?"),
StrToWxStr(OutputFileName)),
Expand Down Expand Up @@ -1147,7 +1147,7 @@ void CGameListCtrl::CompressSelection(bool _compress)
WxStrToStr(browseDialog.GetPath()),
FileName);

if (wxFileExists(StrToWxStr(OutputFileName)) &&
if (File::Exists(OutputFileName) &&
wxMessageBox(
wxString::Format(_("The file %s already exists.\nDo you wish to replace it?"),
StrToWxStr(OutputFileName)),
Expand Down

0 comments on commit f6233cd

Please sign in to comment.