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