mirror of https://github.com/PCSX2/pcsx2.git
wxWidgets/MSW: Likely fix for "cannot commit changes to pcsx2.ini" type errors.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3877 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
c7850c2fad
commit
dbf1a1c7aa
|
@ -1179,6 +1179,9 @@ wxRenameFile(const wxString& file1, const wxString& file2, bool overwrite)
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifdef __WXMSW__
|
||||
return ::MoveFileEx(file1,file2, MOVEFILE_REPLACE_EXISTING) != 0;
|
||||
#else
|
||||
#if !defined(__WXWINCE__) && !defined(__WXPALMOS__)
|
||||
// Normal system call
|
||||
if ( wxRename (file1, file2) == 0 )
|
||||
|
@ -1192,6 +1195,7 @@ wxRenameFile(const wxString& file1, const wxString& file2, bool overwrite)
|
|||
}
|
||||
// Give up
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool wxRemoveFile(const wxString& file)
|
||||
|
|
Loading…
Reference in New Issue