2016-06-16 01:59:34 +00:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include <unordered_map>
|
2016-07-26 23:19:28 +00:00
|
|
|
#include "RomData.h"
|
2016-06-16 01:59:34 +00:00
|
|
|
|
|
|
|
class GameDatabase
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static std::unordered_map<uint32_t, GameInfo> _gameDatabase;
|
|
|
|
|
|
|
|
template<typename T> static T ToInt(string value);
|
|
|
|
static vector<string> split(const string &s, char delim);
|
|
|
|
|
|
|
|
static GameSystem GetGameSystem(string system);
|
|
|
|
static uint8_t GetSubMapper(GameInfo &info);
|
|
|
|
|
|
|
|
static void InitDatabase();
|
2016-07-26 23:19:28 +00:00
|
|
|
static void UpdateRomData(GameInfo &info, RomData &romData);
|
2016-06-16 01:59:34 +00:00
|
|
|
|
|
|
|
public:
|
2016-09-10 13:43:01 +00:00
|
|
|
static void InitializeInputDevices(string inputType, GameSystem system);
|
2016-07-26 23:19:28 +00:00
|
|
|
static void SetGameInfo(uint32_t romCrc, RomData &romData, bool updateRomData);
|
2016-06-16 01:59:34 +00:00
|
|
|
};
|