2016-01-28 20:47:16 -05:00
|
|
|
#pragma once
|
2014-06-24 02:47:32 -04:00
|
|
|
#include "stdafx.h"
|
2014-07-09 19:05:07 -04:00
|
|
|
#include "BaseMapper.h"
|
2016-01-28 20:47:16 -05:00
|
|
|
#include "RomData.h"
|
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:
|
2016-01-28 20:47:16 -05:00
|
|
|
static const uint16_t FdsMapperID = 65535;
|
2016-06-25 20:46:54 -04:00
|
|
|
static const uint16_t NsfMapperID = 65534;
|
2016-10-26 22:04:05 -04:00
|
|
|
|
2017-06-28 19:00:08 -04:00
|
|
|
static shared_ptr<BaseMapper> InitializeFromFile(string romFilename, vector<uint8_t> &fileData);
|
2014-06-24 02:47:32 -04:00
|
|
|
};
|