From a98ba7a42dca528a990fcfca794a6ea2e1bedb6b Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 24 Apr 2022 11:17:51 +0200 Subject: [PATCH] A check is now done on game launch that emulator binaries are actually files or symlinks. --- es-core/src/utils/FileSystemUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-core/src/utils/FileSystemUtil.cpp b/es-core/src/utils/FileSystemUtil.cpp index 471abeec2..095773a52 100644 --- a/es-core/src/utils/FileSystemUtil.cpp +++ b/es-core/src/utils/FileSystemUtil.cpp @@ -263,7 +263,8 @@ namespace Utils for (auto it = pathList.cbegin(); it != pathList.cend(); ++it) { pathTest = it->c_str() + ("/" + executable); - if (exists(pathTest)) + if (Utils::FileSystem::isRegularFile(pathTest) || + Utils::FileSystem::isSymlink(pathTest)) return it->c_str(); } return "";