mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-01 21:42:31 +01:00
Use getFormattedErrorMessages instead of deprecated getFormatedErrorMessages
This commit is contained in:
parent
6e5a0870e8
commit
9db2b8f2b0
12
src/api.cpp
12
src/api.cpp
@ -90,7 +90,7 @@ int API::getAPIConfig()
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (API::getAPIConfig)" << std::endl << json << std::endl;
|
||||
#endif
|
||||
this->setError(jsonparser->getFormatedErrorMessages());
|
||||
this->setError(jsonparser->getFormattedErrorMessages());
|
||||
res = 0;
|
||||
}
|
||||
delete jsonparser;
|
||||
@ -195,7 +195,7 @@ int API::getUserDetails()
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (API::getUserDetails)" << std::endl << json << std::endl;
|
||||
#endif
|
||||
this->setError(jsonparser->getFormatedErrorMessages());
|
||||
this->setError(jsonparser->getFormattedErrorMessages());
|
||||
res = 0;
|
||||
}
|
||||
delete jsonparser;
|
||||
@ -554,7 +554,7 @@ gameDetails API::getGameDetails(const std::string& game_name, const unsigned int
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (API::getGameDetails)" << std::endl << json << std::endl;
|
||||
#endif
|
||||
this->setError(jsonparser->getFormatedErrorMessages());
|
||||
this->setError(jsonparser->getFormattedErrorMessages());
|
||||
}
|
||||
delete jsonparser;
|
||||
}
|
||||
@ -591,7 +591,7 @@ std::string API::getInstallerLink(const std::string& game_name, const std::strin
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (API::getInstallerLink)" << std::endl << json << std::endl;
|
||||
#endif
|
||||
this->setError(jsonparser->getFormatedErrorMessages());
|
||||
this->setError(jsonparser->getFormattedErrorMessages());
|
||||
}
|
||||
delete jsonparser;
|
||||
}
|
||||
@ -627,7 +627,7 @@ std::string API::getExtraLink(const std::string& game_name, const std::string& i
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (API::getExtraLink)" << std::endl << json << std::endl;
|
||||
#endif
|
||||
this->setError(jsonparser->getFormatedErrorMessages());
|
||||
this->setError(jsonparser->getFormattedErrorMessages());
|
||||
}
|
||||
delete jsonparser;
|
||||
}
|
||||
@ -676,7 +676,7 @@ std::string API::getXML(const std::string& game_name, const std::string& id)
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (API::getXML)" << std::endl << json << std::endl;
|
||||
#endif
|
||||
this->setError(jsonparser->getFormatedErrorMessages());
|
||||
this->setError(jsonparser->getFormattedErrorMessages());
|
||||
}
|
||||
delete jsonparser;
|
||||
}
|
||||
|
@ -2111,7 +2111,7 @@ std::vector<gameItem> Downloader::getGames()
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (Downloader::getGames)" << std::endl << response << std::endl;
|
||||
#endif
|
||||
std::cout << jsonparser->getFormatedErrorMessages();
|
||||
std::cout << jsonparser->getFormattedErrorMessages();
|
||||
delete jsonparser;
|
||||
if (!response.empty())
|
||||
{
|
||||
@ -2198,7 +2198,7 @@ std::vector<gameItem> Downloader::getGames()
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (Downloader::getGames)" << std::endl << gameinfo << std::endl;
|
||||
#endif
|
||||
std::cout << jsonparser->getFormatedErrorMessages();
|
||||
std::cout << jsonparser->getFormattedErrorMessages();
|
||||
delete jsonparser;
|
||||
exit(1);
|
||||
}
|
||||
@ -2236,7 +2236,7 @@ std::vector<gameItem> Downloader::getFreeGames()
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (Downloader::getFreeGames)" << std::endl << json << std::endl;
|
||||
#endif
|
||||
std::cout << jsonparser->getFormatedErrorMessages();
|
||||
std::cout << jsonparser->getFormattedErrorMessages();
|
||||
delete jsonparser;
|
||||
exit(1);
|
||||
}
|
||||
@ -2270,7 +2270,7 @@ Json::Value Downloader::getGameDetailsJSON(const std::string& gameid)
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (Downloader::getGameDetailsJSON)" << std::endl << json << std::endl;
|
||||
#endif
|
||||
std::cout << jsonparser->getFormatedErrorMessages();
|
||||
std::cout << jsonparser->getFormattedErrorMessages();
|
||||
delete jsonparser;
|
||||
exit(1);
|
||||
}
|
||||
@ -2937,7 +2937,7 @@ int Downloader::loadGameDetailsCache()
|
||||
{
|
||||
res = 2;
|
||||
std::cout << "Failed to parse cache" << std::endl;
|
||||
std::cout << jsonparser->getFormatedErrorMessages() << std::endl;
|
||||
std::cout << jsonparser->getFormattedErrorMessages() << std::endl;
|
||||
}
|
||||
delete jsonparser;
|
||||
if (json)
|
||||
@ -3204,7 +3204,7 @@ void Downloader::showWishlist()
|
||||
#ifdef DEBUG
|
||||
std::cerr << "DEBUG INFO (Downloader::showWishlist)" << std::endl << response << std::endl;
|
||||
#endif
|
||||
std::cout << jsonparser->getFormatedErrorMessages();
|
||||
std::cout << jsonparser->getFormattedErrorMessages();
|
||||
delete jsonparser;
|
||||
exit(1);
|
||||
}
|
||||
|
@ -276,7 +276,7 @@ int Util::getGameSpecificConfig(std::string gamename, gameSpecificConfig* conf,
|
||||
else
|
||||
{
|
||||
std::cout << "Failed to parse game specific config" << std::endl;
|
||||
std::cout << jsonparser->getFormatedErrorMessages() << std::endl;
|
||||
std::cout << jsonparser->getFormattedErrorMessages() << std::endl;
|
||||
}
|
||||
delete jsonparser;
|
||||
if (json)
|
||||
|
Loading…
x
Reference in New Issue
Block a user