Skip to content

Commit

Permalink
Use getEscapedPath() instead getPreferredPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
o-p-a committed Aug 28, 2024
1 parent 1f4f299 commit 6325d0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions es-app/src/FileData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6325d0e

Please sign in to comment.