mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
47 lines
1,018 B
C++
47 lines
1,018 B
C++
#ifndef _SYSTEMDATA_H_
|
|
#define _SYSTEMDATA_H_
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include "FolderData.h"
|
|
#include "Window.h"
|
|
|
|
class GameData;
|
|
|
|
class SystemData
|
|
{
|
|
public:
|
|
SystemData(std::string name, std::string descName, std::string startPath, std::string extension, std::string command);
|
|
~SystemData();
|
|
|
|
FolderData* getRootFolder();
|
|
std::string getName();
|
|
std::string getDescName();
|
|
std::string getStartPath();
|
|
std::string getExtension();
|
|
std::string getGamelistPath();
|
|
bool hasGamelist();
|
|
|
|
void launchGame(Window* window, GameData* game);
|
|
|
|
static void deleteSystems();
|
|
static void loadConfig();
|
|
static void writeExampleConfig();
|
|
static std::string getConfigPath();
|
|
|
|
static std::vector<SystemData*> sSystemVector;
|
|
private:
|
|
std::string mName;
|
|
std::string mDescName;
|
|
std::string mStartPath;
|
|
std::string mSearchExtension;
|
|
std::string mLaunchCommand;
|
|
|
|
void populateFolder(FolderData* folder);
|
|
bool containsFolder(FolderData* folder, const std::string& path);
|
|
|
|
FolderData* mRootFolder;
|
|
};
|
|
|
|
#endif
|