ROMReader.cpp: Fix compiling on non-Windows systems. (Regression from commit 12c9323.)
This commit is contained in:
parent
12c93232b9
commit
a857e0e65c
|
@ -88,7 +88,12 @@ void* STDROMReaderInit(const char* filename)
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
FILE* inf = _wfopen(mbstowcs((std::string)filename).c_str(),L"rb");
|
FILE* inf = _wfopen(mbstowcs((std::string)filename).c_str(),L"rb");
|
||||||
|
#else
|
||||||
|
FILE* inf = fopen(filename, "rb");
|
||||||
|
#endif
|
||||||
|
|
||||||
if(!inf) return NULL;
|
if(!inf) return NULL;
|
||||||
|
|
||||||
STDROMReaderData* ret = new STDROMReaderData();
|
STDROMReaderData* ret = new STDROMReaderData();
|
||||||
|
|
Loading…
Reference in New Issue