mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
API changes: "#updated" flag is replaced by "notificated" flag
This commit is contained in:
parent
2a253f6357
commit
eb0208fffa
@ -19,8 +19,8 @@ extern "C" {
|
||||
|
||||
class gameFile {
|
||||
public:
|
||||
gameFile(const bool& t_updated, const std::string& t_id, const std::string& t_name, const std::string& t_path, const std::string& t_size, const unsigned int& t_language = GlobalConstants::LANGUAGE_EN);
|
||||
bool updated;
|
||||
gameFile(const int& t_updated, const std::string& t_id, const std::string& t_name, const std::string& t_path, const std::string& t_size, const unsigned int& t_language = GlobalConstants::LANGUAGE_EN);
|
||||
int updated;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string path;
|
||||
|
@ -18,7 +18,7 @@ size_t writeMemoryCallback(char *ptr, size_t size, size_t nmemb, void *userp) {
|
||||
return count;
|
||||
}
|
||||
|
||||
gameFile::gameFile(const bool& t_updated, const std::string& t_id, const std::string& t_name, const std::string& t_path, const std::string& t_size, const unsigned int& t_language)
|
||||
gameFile::gameFile(const int& t_updated, const std::string& t_id, const std::string& t_name, const std::string& t_path, const std::string& t_size, const unsigned int& t_language)
|
||||
{
|
||||
this->updated = t_updated;
|
||||
this->id = t_id;
|
||||
@ -309,7 +309,7 @@ gameDetails API::getGameDetails(const std::string& game_name, const unsigned int
|
||||
unsigned int language = installers[i].second;
|
||||
|
||||
game.installers.push_back(
|
||||
gameFile( installer["#updated"].isBool() ? installer["#updated"].asBool() : false,
|
||||
gameFile( installer["notificated"].isInt() ? installer["notificated"].asInt() : std::stoi(installer["notificated"].asString()),
|
||||
installer["id"].isInt() ? std::to_string(installer["id"].asInt()) : installer["id"].asString(),
|
||||
installer["name"].asString(),
|
||||
installer["link"].asString(),
|
||||
|
Loading…
Reference in New Issue
Block a user