remove changedir, cwd is already root

develop
Myk Taylor 2023-03-08 00:00:22 -08:00
parent fcfe7e4ef8
commit eee911b807
No known key found for this signature in database
1 changed files with 0 additions and 14 deletions

@ -9,20 +9,6 @@ int WINAPI wWinMain(HINSTANCE hi, HINSTANCE hpi, PWSTR cmd, int ns)
si.cb = sizeof(si); si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi)); ZeroMemory(&pi, sizeof(pi));
CHAR dfdir[1024];
if (GetFullPathNameA("..", 1024, dfdir, NULL) == 0)
{
MessageBoxA(NULL, "could not get current directory", NULL, 0);
exit(1);
}
if (SetCurrentDirectoryA(dfdir) == 0)
{
MessageBoxA(NULL, "could not change to DF directory", NULL, 0);
exit(1);
}
if (CreateProcessA("Dwarf Fortress.exe", if (CreateProcessA("Dwarf Fortress.exe",
NULL, NULL,
NULL, NULL,