mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-11 16:22:12 +00:00
Fixed issue where I only change a single instance lol
This commit is contained in:
parent
00bd652695
commit
f52a2a194d
@ -645,7 +645,7 @@ int main(int argc, char* argv[])
|
||||
std::wstring wide = converter.from_bytes(projectDirectory);
|
||||
|
||||
#if defined(__unix__)
|
||||
chdir(projectDirectory);
|
||||
chdir(projectDirectory.c_str());
|
||||
#elif defined(_MSC_VER)
|
||||
LPCSTR s = projectDirectory.c_str();
|
||||
SetCurrentDirectory(s);
|
||||
@ -672,10 +672,9 @@ int main(int argc, char* argv[])
|
||||
std::wstring wide = converter.from_bytes(projectDirectory);
|
||||
|
||||
#if defined(__unix__)
|
||||
const char[] pC = projectDirectory.c_str();
|
||||
chdir(pC);
|
||||
chdir(projectDirectory.c_str());
|
||||
#elif defined(_MSC_VER)
|
||||
LPCWSTR s = wide.c_str();
|
||||
LPCSTR s = projectDirectory.c_str();
|
||||
SetCurrentDirectory(s);
|
||||
#endif
|
||||
// Get script contents
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user