2012-07-20 16:14:09 +00:00
|
|
|
#ifndef _SYSTEMDATA_H_
|
|
|
|
#define _SYSTEMDATA_H_
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class GameData;
|
|
|
|
|
|
|
|
class SystemData
|
|
|
|
{
|
|
|
|
public:
|
2012-07-21 19:06:24 +00:00
|
|
|
SystemData(std::string name, std::string startPath, std::string extension, std::string command);
|
2012-07-20 16:14:09 +00:00
|
|
|
~SystemData();
|
|
|
|
|
|
|
|
unsigned int getGameCount();
|
|
|
|
GameData* getGame(unsigned int i);
|
|
|
|
std::string getName();
|
2012-07-21 19:06:24 +00:00
|
|
|
|
|
|
|
void buildGameList();
|
|
|
|
void launchGame(unsigned int i);
|
|
|
|
static std::vector<SystemData*> loadConfig(std::string path);
|
2012-07-20 16:14:09 +00:00
|
|
|
private:
|
|
|
|
std::string mName;
|
|
|
|
std::string mStartPath;
|
|
|
|
std::string mSearchExtension;
|
2012-07-21 19:06:24 +00:00
|
|
|
std::string mLaunchCommand;
|
|
|
|
|
2012-07-20 16:14:09 +00:00
|
|
|
std::vector<GameData*> mGameVector;
|
2012-07-21 19:06:24 +00:00
|
|
|
|
|
|
|
void deleteGames();
|
2012-07-20 16:14:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|