Use different path for patched executable. (#70)

* Use different path for patched executable.

* Use error code variant on std::filesystem::create_directories.
This commit is contained in:
Darío
2025-01-10 08:57:34 -03:00
committed by GitHub
parent b9cffba14d
commit 0737ff771d
3 changed files with 29 additions and 33 deletions

View File

@@ -71,7 +71,7 @@ struct Installer
uint64_t totalSize = 0;
};
static bool checkGameInstall(const std::filesystem::path &baseDirectory);
static bool checkGameInstall(const std::filesystem::path &baseDirectory, std::filesystem::path &modulePath);
static bool checkDLCInstall(const std::filesystem::path &baseDirectory, DLC dlc);
static bool checkAllDLC(const std::filesystem::path &baseDirectory);
static bool computeTotalSize(std::span<const FilePair> filePairs, const uint64_t *fileHashes, VirtualFileSystem &sourceVfs, Journal &journal, uint64_t &totalSize);