2023-07-30 16:51:44 +02:00
|
|
|
#pragma once
|
|
|
|
#include "download_surface.h"
|
|
|
|
|
2023-07-31 02:51:27 +02:00
|
|
|
extern float g_flUpdateCheckRate;
|
|
|
|
|
2023-07-30 16:51:44 +02:00
|
|
|
void SDKLauncher_Restart();
|
|
|
|
|
|
|
|
bool SDKLauncher_CreateDepotDirectories();
|
|
|
|
bool SDKLauncher_ClearDepotDirectories();
|
|
|
|
|
|
|
|
bool SDKLauncher_ExtractZipFile(const char* pZipFile, const char* pDestPath, CProgressPanel* pProgress = nullptr);
|
2023-07-31 02:51:27 +02:00
|
|
|
void SDKLauncher_BeginDownload(const bool bPreRelease, const bool bOptionalAssets, const bool bSdkOnly, CUtlVector<CUtlString>& fileList, CProgressPanel* pProgress = nullptr);
|
2023-07-30 16:51:44 +02:00
|
|
|
|
2023-07-31 02:51:27 +02:00
|
|
|
bool SDKLauncher_DownloadAssetList(CUtlVector<CUtlString>& fileList, nlohmann::json& assetList,
|
2023-07-30 16:51:44 +02:00
|
|
|
std::set<string>& blackList, const char* pPath, CProgressPanel* pProgress);
|
|
|
|
|
2023-07-31 02:51:27 +02:00
|
|
|
bool SDKLauncher_InstallAssetList(const bool bOptionalAssets,
|
2023-07-30 16:51:44 +02:00
|
|
|
CUtlVector<CUtlString>& fileList, CProgressPanel* pProgress);
|
|
|
|
|
|
|
|
bool SDKLauncher_CheckDiskSpace(const int minRequiredSpace, int* const availableSize = nullptr);
|
2023-07-31 02:51:27 +02:00
|
|
|
bool SDKLauncher_CheckForUpdate(const bool bPreRelease);
|
2023-08-01 00:02:13 +02:00
|
|
|
|
|
|
|
bool SDKLauncher_ForceExistingInstanceOnTop();
|