From 68d462b7263da6742bd5d70fb9316d633b0caa9d Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 16 Mar 2025 15:01:12 +0100 Subject: [PATCH] (Windows) Fixed an issue where there could be double quotation marks added to the launch command under some special circumstances --- es-app/src/FileData.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index ad3478a66..8e9574c5e 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -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%",