mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
A check is now done on game launch that emulator binaries are actually files or symlinks.
This commit is contained in:
parent
aa8b5f1f2e
commit
a98ba7a42d
|
@ -263,7 +263,8 @@ namespace Utils
|
||||||
|
|
||||||
for (auto it = pathList.cbegin(); it != pathList.cend(); ++it) {
|
for (auto it = pathList.cbegin(); it != pathList.cend(); ++it) {
|
||||||
pathTest = it->c_str() + ("/" + executable);
|
pathTest = it->c_str() + ("/" + executable);
|
||||||
if (exists(pathTest))
|
if (Utils::FileSystem::isRegularFile(pathTest) ||
|
||||||
|
Utils::FileSystem::isSymlink(pathTest))
|
||||||
return it->c_str();
|
return it->c_str();
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in a new issue