mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
80740a2bd0
See changelog.txt (September 7) for a list of everything.
35 lines
766 B
C++
35 lines
766 B
C++
#ifndef _GAMEDATA_H_
|
|
#define _GAMEDATA_H_
|
|
|
|
#include <string>
|
|
#include "FileData.h"
|
|
#include "SystemData.h"
|
|
|
|
//This class holds information about a game: at the least, its name, system, and path. Additional information is optional and read by other classes.
|
|
class GameData : public FileData
|
|
{
|
|
public:
|
|
GameData(SystemData* system, std::string path, std::string name);
|
|
|
|
void set(std::string name = "", std::string description = "", std::string imagePath = "");
|
|
|
|
std::string getName();
|
|
std::string getPath();
|
|
std::string getBashPath();
|
|
|
|
std::string getDescription();
|
|
std::string getImagePath();
|
|
|
|
bool isFolder();
|
|
private:
|
|
SystemData* mSystem;
|
|
std::string mPath;
|
|
std::string mName;
|
|
|
|
//extra data
|
|
std::string mDescription;
|
|
std::string mImagePath;
|
|
};
|
|
|
|
#endif
|