ASAPCabinetFE
 
Loading...
Searching...
No Matches
table_patcher.h
1#ifndef TABLE_PATCHER_H
2#define TABLE_PATCHER_H
3
4#include "table_data.h"
5#include "config/settings.h"
7#include <nlohmann/json.hpp>
8#include <string>
9#include <vector>
10
12public:
14 void patchTables(const Settings& settings, std::vector<TableData>& tables, LoadingProgress* progress = nullptr);
15
16private:
18 std::string downloadHashesJson(const Settings& settings);
19
21 nlohmann::json parseHashesJson(const std::string& jsonContent);
22
24 bool needsPatch(const TableData& table, const nlohmann::json& hashes);
25
27 void downloadAndSaveVbs(const std::string& url, const std::string& savePath);
28};
29
30#endif // TABLE_PATCHER_H
Definition table_patcher.h:11
void patchTables(const Settings &settings, std::vector< TableData > &tables, LoadingProgress *progress=nullptr)
Definition table_patcher.cpp:220
Defines the LoadingProgress struct for tracking loading state in ASAPCabinetFE.
Tracks the loading progress state for ASAPCabinetFE.
Definition loading_progress.h:33
Definition settings.h:12
Stores metadata and media paths for a VPX table.
Definition table_data.h:29
Defines the TableData struct for storing VPX table metadata and media paths.