062d22ae80
-Added support for work ram size field in NES 2.0 -Updated DB to list both work ram & save ram sizes -Fixed MMC1/MMC3 implementation (and implemented the wram/sram protection bits) Holy Diver tests now all pass (except a minor IRQ timing issue for FME7)
23 lines
No EOL
638 B
C++
23 lines
No EOL
638 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 vector<string> split(const string &s, char delim);
|
|
|
|
static GameSystem GetGameSystem(string system);
|
|
static uint8_t GetSubMapper(GameInfo &info);
|
|
static void InitializeInputDevices(string inputType, GameSystem system);
|
|
|
|
static void InitDatabase();
|
|
static void UpdateRomData(GameInfo &info, RomData &romData);
|
|
|
|
public:
|
|
static void SetGameInfo(uint32_t romCrc, RomData &romData, bool updateRomData);
|
|
}; |