mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-02 05:52:31 +01:00
Always use array value when listing game details in JSON format
This commit is contained in:
parent
c9198d672d
commit
9e49b6fa20
@ -554,8 +554,11 @@ int Downloader::listGames()
|
||||
|
||||
if (Globals::globalConfig.iListFormat == GlobalConstants::LIST_FORMAT_DETAILS_JSON)
|
||||
{
|
||||
Json::Value json(Json::arrayValue);
|
||||
for (auto game : this->games)
|
||||
std::cout << game.getDetailsAsJson() << std::endl;
|
||||
json.append(game.getDetailsAsJson());
|
||||
|
||||
std::cout << json << std::endl;
|
||||
}
|
||||
else if (Globals::globalConfig.iListFormat == GlobalConstants::LIST_FORMAT_DETAILS_TEXT)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user