From 4dc6355a34d447dc3e71a5f2e62f3a24a11a6e57 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 30 Jun 2021 20:04:20 +0200 Subject: [PATCH] (Windows) Fixed a game launching issue. --- es-app/src/FileData.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index a04b3a29e..7b868ef28 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -948,9 +948,11 @@ void FileData::launchGame(Window* window) if (coreFile.find(" ") != std::string::npos) coreFile = Utils::FileSystem::getEscapedPath(coreFile); command.replace(coreEntryPos, separatorPos - coreEntryPos, coreFile); + #if !defined(_WIN64) // Remove any quotation marks as it would make the launch function fail. if (command.find("\"") != std::string::npos) command = Utils::String::replace(command, "\"", ""); + #endif break; } } @@ -984,7 +986,6 @@ void FileData::launchGame(Window* window) command = Utils::String::replace(command, "%ROM%", romPath); command = Utils::String::replace(command, "%BASENAME%", baseName); 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 // flickering and to avoid showing the game launch message briefly when returning