mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-13 11:57:09 +00:00
25 lines
799 B
C++
25 lines
799 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include <unordered_map>
|
|
#include "RomData.h"
|
|
|
|
class GameDatabase
|
|
{
|
|
private:
|
|
static std::unordered_map<uint32_t, GameInfo> _gameDatabase;
|
|
|
|
template<typename T> static T ToInt(string value);
|
|
|
|
static BusConflictType GetBusConflictType(string busConflictSetting);
|
|
static GameSystem GetGameSystem(string system);
|
|
static uint8_t GetSubMapper(GameInfo &info);
|
|
|
|
static void InitDatabase();
|
|
static void UpdateRomData(GameInfo &info, RomData &romData);
|
|
|
|
public:
|
|
static void InitializeInputDevices(string inputType, GameSystem system);
|
|
static void SetGameInfo(uint32_t romCrc, RomData &romData, bool updateRomData);
|
|
static bool GetiNesHeader(uint32_t romCrc, NESHeader &nesHeader);
|
|
static bool GetDbRomSize(uint32_t romCrc, uint32_t &prgSize, uint32_t &chrSize);
|
|
}; |