lgogdownloader/include/gamedetails.h

34 lines
854 B
C
Raw Normal View History

#ifndef GAMEDETAILS_H
#define GAMEDETAILS_H
#include "globalconstants.h"
#include "gamefile.h"
#include "config.h"
#include <iostream>
#include <vector>
#include <jsoncpp/json/json.h>
class gameDetails
{
public:
gameDetails();
std::vector<gameFile> extras;
std::vector<gameFile> installers;
std::vector<gameFile> patches;
std::vector<gameFile> languagepacks;
std::vector<gameDetails> dlcs;
std::string gamename;
std::string title;
std::string icon;;
void filterWithPriorities(const Config& config);
void makeFilepaths(const Config& config);
Json::Value getDetailsAsJson();
virtual ~gameDetails();
protected:
void filterListWithPriorities(std::vector<gameFile>& list, const Config& config);
private:
};
#endif // GAMEDETAILS_H