UNIF MARIO1-MALEE2 board support
This commit is contained in:
parent
5ed8b7bb71
commit
e5aaaaf377
6 changed files with 32 additions and 2 deletions
|
@ -447,6 +447,7 @@
|
|||
<ClInclude Include="Kaiser202.h" />
|
||||
<ClInclude Include="Kaiser7022.h" />
|
||||
<ClInclude Include="Kaiser7058.h" />
|
||||
<ClInclude Include="Malee.h" />
|
||||
<ClInclude Include="Mapper103.h" />
|
||||
<ClInclude Include="Mapper106.h" />
|
||||
<ClInclude Include="Mapper107.h" />
|
||||
|
|
|
@ -964,6 +964,9 @@
|
|||
<ClInclude Include="Smb2j.h">
|
||||
<Filter>Nes\Mappers\Unif</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Malee.h">
|
||||
<Filter>Nes\Mappers\Unif</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
|
|
22
Core/Malee.h
Normal file
22
Core/Malee.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
#include "stdafx.h"
|
||||
#include "BaseMapper.h"
|
||||
|
||||
class Malee : public BaseMapper
|
||||
{
|
||||
protected:
|
||||
uint16_t GetPRGPageSize() { return 0x800; }
|
||||
uint16_t GetCHRPageSize() { return 0x2000; }
|
||||
|
||||
void InitMapper()
|
||||
{
|
||||
SelectPrgPage4x(0, 0);
|
||||
SelectPrgPage4x(1, 4);
|
||||
SelectPrgPage4x(2, 8);
|
||||
SelectPrgPage4x(3, 12);
|
||||
|
||||
SelectCHRPage(0, 0);
|
||||
|
||||
SetCpuMemoryMapping(0x6000, 0x67FF, 16, PrgMemoryType::PrgRom);
|
||||
}
|
||||
};
|
|
@ -40,6 +40,7 @@
|
|||
#include "Kaiser202.h"
|
||||
#include "Kaiser7022.h"
|
||||
#include "Kaiser7058.h"
|
||||
#include "Malee.h"
|
||||
#include "Mapper15.h"
|
||||
#include "Mapper35.h"
|
||||
#include "Mapper40.h"
|
||||
|
@ -221,6 +222,7 @@ const uint16_t MapperFactory::UnknownBoard;
|
|||
const uint16_t MapperFactory::UnifTf1201;
|
||||
const uint16_t MapperFactory::UnifCoolboy;
|
||||
const uint16_t MapperFactory::UnifSmb2j;
|
||||
const uint16_t MapperFactory::UnifMalee;
|
||||
|
||||
BaseMapper* MapperFactory::GetMapperFromID(RomData &romData)
|
||||
{
|
||||
|
@ -447,9 +449,10 @@ BaseMapper* MapperFactory::GetMapperFromID(RomData &romData)
|
|||
case 254: return new MMC3_254();
|
||||
case 255: return new Bmc255();
|
||||
|
||||
case MapperFactory::UnifTf1201: return new Tf1201();
|
||||
case MapperFactory::UnifCoolboy: return new MMC3_Coolboy();
|
||||
case MapperFactory::UnifMalee: return new Malee();
|
||||
case MapperFactory::UnifSmb2j: return new Smb2j();
|
||||
case MapperFactory::UnifTf1201: return new Tf1201();
|
||||
|
||||
case MapperFactory::NsfMapperID: return new NsfMapper();
|
||||
case MapperFactory::FdsMapperID: return new FDS();
|
||||
|
|
|
@ -15,6 +15,7 @@ class MapperFactory
|
|||
static const uint16_t UnifTf1201 = 65532;
|
||||
static const uint16_t UnifCoolboy = 65531;
|
||||
static const uint16_t UnifSmb2j = 65530;
|
||||
static const uint16_t UnifMalee = 65529;
|
||||
|
||||
static shared_ptr<BaseMapper> InitializeFromFile(string romFilename, stringstream *filestream, string ipsFilename, int32_t archiveFileIndex);
|
||||
};
|
||||
|
|
|
@ -74,7 +74,7 @@ private:
|
|||
{ "LH32", 125 },
|
||||
{ "LH53", MapperFactory::UnknownBoard },
|
||||
{ "MALISB", MapperFactory::UnknownBoard },
|
||||
{ "MARIO1-MALEE2", MapperFactory::UnknownBoard },
|
||||
{ "MARIO1-MALEE2", MapperFactory::UnifMalee },
|
||||
{ "MHROM", 66 },
|
||||
{ "N625092", 221 },
|
||||
{ "NROM", 0 },
|
||||
|
|
Loading…
Add table
Reference in a new issue