Skip to content

Commit 962ae8a

Browse files
committed
Add a quote to the first command-line path.
This fixes an issue where the game wouldn't load DLLs from the same folder when a space was present in the full binary path.
1 parent ead8087 commit 962ae8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/Launcher/launch_win32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void LaunchProgram(const std::filesystem::path& path, const std::vector<std::str
5858
}
5959
}
6060

61-
osCommandLine = path.wstring();
61+
osCommandLine = L"\"" + path.wstring() + L"\"";
6262
osCommandLine += L" ";
6363
osCommandLine += commandLine;
6464

0 commit comments

Comments
 (0)