A check is now done on game launch that emulator binaries are actually files or symlinks.

This commit is contained in:
Leon Styhre 2022-04-24 11:17:51 +02:00
parent aa8b5f1f2e
commit a98ba7a42d

View file

@ -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 "";