You need to sign in or sign up before continuing.
Commit 37ebc91f authored by nanahira's avatar nanahira

Merge branch 'master' into server

parents f5974af8 e17b1a56
No preview for this file type
...@@ -37,11 +37,15 @@ int main(int argc, char* argv[]) { ...@@ -37,11 +37,15 @@ int main(int argc, char* argv[]) {
#endif //__APPLE__ #endif //__APPLE__
#ifdef _WIN32 #ifdef _WIN32
#ifndef _DEBUG #ifndef _DEBUG
wchar_t exepath[MAX_PATH]; char* pstrext;
GetModuleFileNameW(NULL, exepath, MAX_PATH); if(argc == 2 && (pstrext = strrchr(argv[1], '.'))
wchar_t* p = wcsrchr(exepath, '\\'); && (!mystrncasecmp(pstrext, ".ydk", 4) || !mystrncasecmp(pstrext, ".yrp", 4))) {
*p = '\0'; wchar_t exepath[MAX_PATH];
SetCurrentDirectoryW(exepath); GetModuleFileNameW(NULL, exepath, MAX_PATH);
wchar_t* p = wcsrchr(exepath, '\\');
*p = '\0';
SetCurrentDirectoryW(exepath);
}
#endif //_DEBUG #endif //_DEBUG
#endif //_WIN32 #endif //_WIN32
#ifdef _WIN32 #ifdef _WIN32
......
Subproject commit 7fd19f2dee87668f6d53c7b95080cf92fdecce58 Subproject commit 47adef367f7160dfbee07c236c2ce9a051733ff4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment