- attempt to get non ascii file paths working in megaglest (Japanese etc...)

This commit is contained in:
Mark Vejvoda
2011-05-18 21:49:11 +00:00
parent 727c7b33d9
commit 60b8093f5b
34 changed files with 519 additions and 110 deletions

View File

@@ -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);