2016-01-28 20:47:16 -05:00
|
|
|
#pragma once
|
2014-06-24 02:47:32 -04:00
|
|
|
#include "stdafx.h"
|
2018-07-02 14:49:19 -04:00
|
|
|
|
2018-07-01 15:21:05 -04:00
|
|
|
class MemoryManager;
|
2018-07-02 14:49:19 -04:00
|
|
|
class Console;
|
|
|
|
class BaseMapper;
|
|
|
|
struct RomData;
|
2014-06-24 02:47:32 -04:00
|
|
|
|
|
|
|
class MapperFactory
|
|
|
|
{
|
2014-06-26 23:13:02 -04:00
|
|
|
private:
|
2016-01-28 20:47:16 -05:00
|
|
|
static BaseMapper* GetMapperFromID(RomData &romData);
|
2014-06-26 23:13:02 -04:00
|
|
|
|
2014-06-24 02:47:32 -04:00
|
|
|
public:
|
2018-07-01 15:21:05 -04:00
|
|
|
static constexpr uint16_t FdsMapperID = 65535;
|
|
|
|
static constexpr uint16_t NsfMapperID = 65534;
|
2016-10-26 22:04:05 -04:00
|
|
|
|
2019-06-22 16:33:59 -04:00
|
|
|
static shared_ptr<BaseMapper> InitializeFromFile(shared_ptr<Console> console, string romFilename, vector<uint8_t> &fileData, RomData &outRomData);
|
2014-06-24 02:47:32 -04:00
|
|
|
};
|