mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
- check if game is running, and if so, warn and discard update/install request. - check if launcher instance is running, and if so, not create another one but instead move focus to existing one - periodic update checks and update installations
22 lines
940 B
C++
22 lines
940 B
C++
#pragma once
|
|
#include "download_surface.h"
|
|
|
|
extern float g_flUpdateCheckRate;
|
|
|
|
void SDKLauncher_Restart();
|
|
|
|
bool SDKLauncher_CreateDepotDirectories();
|
|
bool SDKLauncher_ClearDepotDirectories();
|
|
|
|
bool SDKLauncher_ExtractZipFile(const char* pZipFile, const char* pDestPath, CProgressPanel* pProgress = nullptr);
|
|
void SDKLauncher_BeginDownload(const bool bPreRelease, const bool bOptionalAssets, const bool bSdkOnly, CUtlVector<CUtlString>& fileList, CProgressPanel* pProgress = nullptr);
|
|
|
|
bool SDKLauncher_DownloadAssetList(CUtlVector<CUtlString>& fileList, nlohmann::json& assetList,
|
|
std::set<string>& blackList, const char* pPath, CProgressPanel* pProgress);
|
|
|
|
bool SDKLauncher_InstallAssetList(const bool bOptionalAssets,
|
|
CUtlVector<CUtlString>& fileList, CProgressPanel* pProgress);
|
|
|
|
bool SDKLauncher_CheckDiskSpace(const int minRequiredSpace, int* const availableSize = nullptr);
|
|
bool SDKLauncher_CheckForUpdate(const bool bPreRelease);
|