mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Create define for manifest path
This commit is contained in:
parent
9a1b2e9263
commit
933761b290
@ -25,6 +25,7 @@
|
||||
#define RESTART_DEPOT_DOWNLOAD_DIR DEFAULT_DEPOT_DOWNLOAD_DIR "temp\\"
|
||||
|
||||
#define DEPOT_MANIFEST_FILE "manifest_patch.json"
|
||||
#define DEPOT_MANIFEST_FILE_PATH BASE_PLATFORM_DIR DEPOT_MANIFEST_FILE
|
||||
|
||||
// TODO: these should be obtained dynamically!!!
|
||||
#define GAME_DEPOT_VENDOR "https://api.github.com/repos/SlaveBuild/N1094_CL456479/releases"
|
||||
|
@ -468,12 +468,10 @@ bool SDKLauncher_CheckDiskSpace(const int minRequiredSpace, int* const available
|
||||
|
||||
bool SDKLauncher_GetLocalManifest(nlohmann::json& localManifest)
|
||||
{
|
||||
const char* pManifestFileName = BASE_PLATFORM_DIR DEPOT_MANIFEST_FILE;
|
||||
|
||||
if (!fs::exists(pManifestFileName))
|
||||
if (!fs::exists(DEPOT_MANIFEST_FILE_PATH))
|
||||
return false;
|
||||
|
||||
ifstream localFile(pManifestFileName);
|
||||
ifstream localFile(DEPOT_MANIFEST_FILE_PATH);
|
||||
|
||||
if (!localFile.good())
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user