mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Add version string and number to cached game details
This commit is contained in:
parent
8736e3dec8
commit
ba27e4fbcc
@ -54,6 +54,7 @@ class Config
|
||||
std::string sToken;
|
||||
std::string sSecret;
|
||||
std::string sVersionString;
|
||||
std::string sVersionNumber;
|
||||
std::string sConfigDirectory;
|
||||
std::string sCookiePath;
|
||||
std::string sConfigFilePath;
|
||||
|
1
main.cpp
1
main.cpp
@ -72,6 +72,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
Config config;
|
||||
config.sVersionString = VERSION_STRING;
|
||||
config.sVersionNumber = VERSION_NUMBER;
|
||||
|
||||
config.sCacheDirectory = Util::getCacheHome() + "/lgogdownloader";
|
||||
config.sXMLDirectory = config.sCacheDirectory + "/xml";
|
||||
|
@ -2994,6 +2994,8 @@ int Downloader::saveGameDetailsCache()
|
||||
|
||||
Json::Value json;
|
||||
|
||||
json["version-string"] = config.sVersionString;
|
||||
json["version-number"] = config.sVersionNumber;
|
||||
json["date"] = bptime::to_iso_string(bptime::second_clock::local_time());
|
||||
|
||||
for (unsigned int i = 0; i < this->games.size(); ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user