mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Added checks for unpatched XEX and XEXP for game detection (#234)
This commit is contained in:
parent
293f873229
commit
f6e43761b7
1 changed files with 11 additions and 1 deletions
|
|
@ -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)
|
bool Installer::checkGameInstall(const std::filesystem::path &baseDirectory, std::filesystem::path &modulePath)
|
||||||
{
|
{
|
||||||
modulePath = baseDirectory / PatchedDirectory / GameExecutableFile;
|
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)
|
bool Installer::checkDLCInstall(const std::filesystem::path &baseDirectory, DLC dlc)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue