From 29963b08a9ed5a25ccb229f5909a4fd1f50462b9 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Tue, 28 Jan 2025 22:15:22 +0000 Subject: [PATCH] installer: added checks for unpatched XEX and XEXP --- UnleashedRecomp/install/installer.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/UnleashedRecomp/install/installer.cpp b/UnleashedRecomp/install/installer.cpp index 923abbf0..8e077d84 100644 --- a/UnleashedRecomp/install/installer.cpp +++ b/UnleashedRecomp/install/installer.cpp @@ -201,7 +201,17 @@ static DLC detectDLC(const std::filesystem::path &sourcePath, VirtualFileSystem bool Installer::checkGameInstall(const std::filesystem::path &baseDirectory, std::filesystem::path &modulePath) { modulePath = baseDirectory / PatchedDirectory / GameExecutableFile; - return std::filesystem::exists(modulePath); + + if (!std::filesystem::exists(modulePath)) + return false; + + if (!std::filesystem::exists(baseDirectory / UpdateDirectory / UpdateExecutablePatchFile)) + return false; + + if (!std::filesystem::exists(baseDirectory / GameDirectory / GameExecutableFile)) + return false; + + return true; } bool Installer::checkDLCInstall(const std::filesystem::path &baseDirectory, DLC dlc)