mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
(Windows) Fixed a regression that made .bat and .lnk files with some special characters impossible to launch
This commit is contained in:
parent
38980ffd44
commit
f110c097a2
|
@ -1389,7 +1389,8 @@ void FileData::launchGame()
|
|||
std::string specialCharacters {"^&()=;,"};
|
||||
|
||||
for (size_t i {0}; i < specialCharacters.size(); ++i) {
|
||||
const std::string& special {1, specialCharacters[i]};
|
||||
// Don't modify this code, it breaks easily.
|
||||
const std::string special(1, specialCharacters[i]);
|
||||
if (romPath.find(special) != std::string::npos) {
|
||||
romPath = Utils::String::replace(romPath, special, "^" + special);
|
||||
foundSpecial = true;
|
||||
|
|
Loading…
Reference in a new issue