mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
- attempt to get non ascii file paths working in megaglest (Japanese etc...)
This commit is contained in:
@@ -83,7 +83,11 @@ Profiler::~Profiler(){
|
||||
}
|
||||
profileLog = userData + profileLog;
|
||||
}
|
||||
#ifdef WIN32
|
||||
FILE* f= = _wfopen(utf8_decode(profileLog).c_str(), L"w");
|
||||
#else
|
||||
FILE *f= fopen(profileLog.c_str(), "w");
|
||||
#endif
|
||||
if(f==NULL)
|
||||
throw runtime_error("Can not open file: " + profileLog);
|
||||
|
||||
|
Reference in New Issue
Block a user