From 6325d0e33304d5a223cd5967d82c0a3cb5483da5 Mon Sep 17 00:00:00 2001 From: opa Date: Wed, 28 Aug 2024 09:18:58 +0900 Subject: [PATCH] Use getEscapedPath() instead getPreferredPath() --- es-app/src/FileData.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index 86d68affd..4716b6d5f 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -291,9 +291,9 @@ void FileData::launchGame(Window* window) const std::string basename = Utils::FileSystem::getStem(getPath()); const std::string rom_raw = Utils::FileSystem::getPreferredPath(getPath()); const std::string name = getName(); - const std::string rom_dir = Utils::FileSystem::getPreferredPath(Utils::FileSystem::getParent(getPath())); - const std::string cfg_dir = Utils::FileSystem::getPreferredPath(Utils::FileSystem::getCanonicalPath(Utils::FileSystem::getHomePath() + "/.emulationstation")); - const std::string install_dir = Utils::FileSystem::getPreferredPath(Utils::FileSystem::getCanonicalPath(Utils::FileSystem::getExePath())); + const std::string rom_dir = Utils::FileSystem::getEscapedPath(Utils::FileSystem::getParent(getPath())); + const std::string cfg_dir = Utils::FileSystem::getEscapedPath(Utils::FileSystem::getCanonicalPath(Utils::FileSystem::getHomePath() + "/.emulationstation")); + const std::string install_dir = Utils::FileSystem::getEscapedPath(Utils::FileSystem::getCanonicalPath(Utils::FileSystem::getExePath())); command = Utils::String::replace(command, "%ROM%", rom); command = Utils::String::replace(command, "%BASENAME%", basename);