(Windows) Fixed an issue where there could be double quotation marks added to the launch command under some special circumstances

This commit is contained in:
Leon Styhre 2025-03-16 15:01:12 +01:00
parent e531907a90
commit 68d462b726

View file

@ -1943,6 +1943,9 @@ void FileData::launchGame()
#endif
#if defined(_WIN64)
// Hack to remove double quotation marks as these can occur under some special circumstances.
command = Utils::String::replace(command, "\"\"", "\"");
command = Utils::String::replace(
command, "%ESPATH%", Utils::String::replace(Utils::FileSystem::getExePath(), "/", "\\"));
command = Utils::String::replace(command, "%EMUDIR%",