diff --git a/pcsx2/DebugTools/SymbolMap.cpp b/pcsx2/DebugTools/SymbolMap.cpp index 5ebb6782bf..e37bdc78cb 100644 --- a/pcsx2/DebugTools/SymbolMap.cpp +++ b/pcsx2/DebugTools/SymbolMap.cpp @@ -46,7 +46,7 @@ void SymbolMap::Clear() { bool SymbolMap::LoadNocashSym(const char *filename) { std::lock_guard guard(m_lock); - FILE *f = fopen(filename, "r"); + FILE *f = wxFopen(filename, "r"); if (!f) return false; diff --git a/pcsx2/Elfheader.cpp b/pcsx2/Elfheader.cpp index fdc8faaa79..8a21e62d7a 100644 --- a/pcsx2/Elfheader.cpp +++ b/pcsx2/Elfheader.cpp @@ -147,9 +147,7 @@ void ElfObject::readIso(IsoFile& file) void ElfObject::readFile() { int rsize = 0; - FILE *f; - - f = fopen( filename.ToUTF8(), "rb" ); + FILE *f = wxFopen( filename, "rb" ); if (f == NULL) throw Exception::FileNotFound( filename ); fseek(f, 0, SEEK_SET); diff --git a/pcsx2/gui/AppConfig.cpp b/pcsx2/gui/AppConfig.cpp index 24783e3d39..607a934540 100644 --- a/pcsx2/gui/AppConfig.cpp +++ b/pcsx2/gui/AppConfig.cpp @@ -1098,7 +1098,7 @@ void RelocateLogfile() if( emuLog == NULL ) { emuLogName = newlogname; - emuLog = fopen( emuLogName.ToUTF8(), "wb" ); + emuLog = wxFopen( emuLogName, "wb" ); } wxGetApp().EnableAllLogging();