From f25980f43bd41c84499afa3b9c73a02da6171c6a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 23 Jun 2021 17:49:47 +0200 Subject: [PATCH] Fixed an issue where the home directory was not expanded for the staticpath find rule. --- es-app/src/FileData.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index 32d9e9cc3..a67e54f63 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -1143,6 +1143,10 @@ std::string FileData::findEmulatorPath(std::string& command) } for (std::string path : emulatorStaticPaths) { + path = Utils::FileSystem::expandHomePath(path); + #if defined(_WIN64) + path = Utils::String::replace(path, "/", "\\"); + #endif if (Utils::FileSystem::isRegularFile(path) || Utils::FileSystem::isSymlink(path)) { command.replace(0, endPos + 1, path);