mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-13 09:02:10 +00:00
Update Main.cpp
This commit is contained in:
parent
c7a6e17d6c
commit
00bd652695
@ -672,7 +672,8 @@ int main(int argc, char* argv[])
|
|||||||
std::wstring wide = converter.from_bytes(projectDirectory);
|
std::wstring wide = converter.from_bytes(projectDirectory);
|
||||||
|
|
||||||
#if defined(__unix__)
|
#if defined(__unix__)
|
||||||
chdir(projectDirectory.c_str());
|
const char[] pC = projectDirectory.c_str();
|
||||||
|
chdir(pC);
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
LPCWSTR s = wide.c_str();
|
LPCWSTR s = wide.c_str();
|
||||||
SetCurrentDirectory(s);
|
SetCurrentDirectory(s);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user