mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
(Windows) Fixed a game launching issue.
This commit is contained in:
parent
9d107a7a9d
commit
4dc6355a34
|
@ -948,9 +948,11 @@ void FileData::launchGame(Window* window)
|
||||||
if (coreFile.find(" ") != std::string::npos)
|
if (coreFile.find(" ") != std::string::npos)
|
||||||
coreFile = Utils::FileSystem::getEscapedPath(coreFile);
|
coreFile = Utils::FileSystem::getEscapedPath(coreFile);
|
||||||
command.replace(coreEntryPos, separatorPos - coreEntryPos, coreFile);
|
command.replace(coreEntryPos, separatorPos - coreEntryPos, coreFile);
|
||||||
|
#if !defined(_WIN64)
|
||||||
// Remove any quotation marks as it would make the launch function fail.
|
// Remove any quotation marks as it would make the launch function fail.
|
||||||
if (command.find("\"") != std::string::npos)
|
if (command.find("\"") != std::string::npos)
|
||||||
command = Utils::String::replace(command, "\"", "");
|
command = Utils::String::replace(command, "\"", "");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -984,7 +986,6 @@ void FileData::launchGame(Window* window)
|
||||||
command = Utils::String::replace(command, "%ROM%", romPath);
|
command = Utils::String::replace(command, "%ROM%", romPath);
|
||||||
command = Utils::String::replace(command, "%BASENAME%", baseName);
|
command = Utils::String::replace(command, "%BASENAME%", baseName);
|
||||||
command = Utils::String::replace(command, "%ROMRAW%", romRaw);
|
command = Utils::String::replace(command, "%ROMRAW%", romRaw);
|
||||||
command = Utils::String::replace(command, "%ESPATH%", esPath);
|
|
||||||
|
|
||||||
// swapBuffers() is called here to turn the screen black to eliminate some potential
|
// swapBuffers() is called here to turn the screen black to eliminate some potential
|
||||||
// flickering and to avoid showing the game launch message briefly when returning
|
// flickering and to avoid showing the game launch message briefly when returning
|
||||||
|
|
Loading…
Reference in a new issue