mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Replace wxFileExists() with File::Exists().
It did not handle unicode properly.
This commit is contained in:
@ -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)),
|
||||
@ -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)),
|
||||
|
Reference in New Issue
Block a user