mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 03:02:05 -10:00
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format" * fix ui format warnings
23 lines
580 B
C++
23 lines
580 B
C++
#pragma once
|
|
#include "pch.h"
|
|
|
|
class NesConsole;
|
|
class BaseMapper;
|
|
class VirtualFile;
|
|
struct RomData;
|
|
enum class LoadRomResult;
|
|
|
|
class MapperFactory
|
|
{
|
|
private:
|
|
static BaseMapper* GetMapperFromID(RomData& romData);
|
|
|
|
public:
|
|
static constexpr uint16_t FdsMapperID = 65535;
|
|
static constexpr uint16_t NsfMapperID = 65534;
|
|
static constexpr uint16_t StudyBoxMapperID = 65533;
|
|
static constexpr uint16_t FamicomNetworkSystemMapperID = 65532;
|
|
|
|
static unique_ptr<BaseMapper> InitializeFromFile(NesConsole* console, VirtualFile& romFile, RomData& outRomData, LoadRomResult& result);
|
|
};
|