Skip to content

Commit 6325d0e

Browse files
committed
Use getEscapedPath() instead getPreferredPath()
1 parent 1f4f299 commit 6325d0e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

es-app/src/FileData.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ void FileData::launchGame(Window* window)
291291
const std::string basename = Utils::FileSystem::getStem(getPath());
292292
const std::string rom_raw = Utils::FileSystem::getPreferredPath(getPath());
293293
const std::string name = getName();
294-
const std::string rom_dir = Utils::FileSystem::getPreferredPath(Utils::FileSystem::getParent(getPath()));
295-
const std::string cfg_dir = Utils::FileSystem::getPreferredPath(Utils::FileSystem::getCanonicalPath(Utils::FileSystem::getHomePath() + "/.emulationstation"));
296-
const std::string install_dir = Utils::FileSystem::getPreferredPath(Utils::FileSystem::getCanonicalPath(Utils::FileSystem::getExePath()));
294+
const std::string rom_dir = Utils::FileSystem::getEscapedPath(Utils::FileSystem::getParent(getPath()));
295+
const std::string cfg_dir = Utils::FileSystem::getEscapedPath(Utils::FileSystem::getCanonicalPath(Utils::FileSystem::getHomePath() + "/.emulationstation"));
296+
const std::string install_dir = Utils::FileSystem::getEscapedPath(Utils::FileSystem::getCanonicalPath(Utils::FileSystem::getExePath()));
297297

298298
command = Utils::String::replace(command, "%ROM%", rom);
299299
command = Utils::String::replace(command, "%BASENAME%", basename);

0 commit comments

Comments
 (0)