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;
|
2019-12-31 20:23:26 -05:00
|
|
|
class VirtualFile;
|
2018-07-02 14:49:19 -04:00
|
|
|
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;
|
2019-12-31 20:23:26 -05:00
|
|
|
static constexpr uint16_t StudyBoxMapperID = 65533;
|
2016-10-26 22:04:05 -04:00
|
|
|
|
2019-12-31 20:23:26 -05:00
|
|
|
static shared_ptr<BaseMapper> InitializeFromFile(shared_ptr<Console> console, VirtualFile &romFile, RomData &outRomData);
|
2014-06-24 02:47:32 -04:00
|
|
|
};
|