mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
4d4aaa1792
"platform" and "language" options allow using string to set them. This allows user to set them more easily without needing to calculate the sum of integer values and makes the config easier to understand later. For example: this allows setting "language" to English, German and French with "en+de+fr" which is much easier to understand than setting it to "7". Directory options can be overridden using game specific config file New options in game specific config file: - "subdirectories" - <bool> - "directory" - <string> - "subdir-game" - <string> - "subdir-installers" - <string> - "subdir-extras" - <string> - "subdir-patches" - <string> - "subdir-language-packs" - <string> - "subdir-dlc" - <string>
38 lines
992 B
C++
38 lines
992 B
C++
#ifndef GAMEDETAILS_H
|
|
#define GAMEDETAILS_H
|
|
|
|
#include "globalconstants.h"
|
|
#include "gamefile.h"
|
|
#include "config.h"
|
|
#include "util.h"
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include <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;
|
|
std::string serials;
|
|
void filterWithPriorities(const Config& config);
|
|
void makeFilepaths(const gameSpecificDirectoryConfig& config);
|
|
std::string getSerialsFilepath();
|
|
Json::Value getDetailsAsJson();
|
|
virtual ~gameDetails();
|
|
protected:
|
|
void filterListWithPriorities(std::vector<gameFile>& list, const Config& config);
|
|
private:
|
|
std::string serialsFilepath;
|
|
};
|
|
|
|
#endif // GAMEDETAILS_H
|