Update Main.cpp

This commit is contained in:
sam-astro 2022-01-15 22:30:02 -05:00
parent c7a6e17d6c
commit 00bd652695

View File

@ -672,7 +672,8 @@ int main(int argc, char* argv[])
std::wstring wide = converter.from_bytes(projectDirectory);
#if defined(__unix__)
chdir(projectDirectory.c_str());
const char[] pC = projectDirectory.c_str();
chdir(pC);
#elif defined(_MSC_VER)
LPCWSTR s = wide.c_str();
SetCurrentDirectory(s);