mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
Fixed an issue where the home directory was not expanded for the staticpath find rule.
This commit is contained in:
parent
0e8b0bd7ae
commit
f25980f43b
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue