2025-11-22 11:08:28 +01:00
|
|
|
#include "common.h"
|
|
|
|
|
#include "patches/platform/LoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/dspico/DSPicoLoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/isnitro/IsNitroLoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/m3ds/M3DSLoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/r4/R4LoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/ace3ds/Ace3DSLoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/g003/G003LoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/melonds/MelonDSLoaderPlatform.h"
|
2026-01-02 15:18:45 +01:00
|
|
|
#include "patches/platform/dstt/DsttLoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/ak2/Ak2LoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/akrpg/AkRpgLoaderPlatform.h"
|
|
|
|
|
#include "patches/platform/r4idsn/R4iDsnLoaderPlatform.h"
|
2025-11-22 11:08:28 +01:00
|
|
|
#include "patches/platform/supercard/SuperCardLoaderPlatform.h"
|
2026-01-02 15:18:45 +01:00
|
|
|
#include "patches/platform/ezp/EzpLoaderPlatform.h"
|
2025-12-28 20:25:22 +01:00
|
|
|
#include "patches/platform/datel/DatelLoaderPlatform.h"
|
2025-12-28 12:22:56 -08:00
|
|
|
#include "patches/platform/stargate/StargateLoaderPlatform.h"
|
2025-11-22 11:08:28 +01:00
|
|
|
#include "LoaderPlatformFactory.h"
|
|
|
|
|
|
|
|
|
|
LoaderPlatform* LoaderPlatformFactory::CreateLoaderPlatform() const
|
|
|
|
|
{
|
|
|
|
|
#if defined(PICO_LOADER_TARGET_ISNITRO)
|
|
|
|
|
return new IsNitroLoaderPlatform();
|
|
|
|
|
#elif defined(PICO_LOADER_TARGET_DSPICO)
|
|
|
|
|
return new DSPicoLoaderPlatform();
|
|
|
|
|
#elif defined(PICO_LOADER_TARGET_M3DS)
|
|
|
|
|
return new M3DSLoaderPlatform();
|
|
|
|
|
#elif defined(PICO_LOADER_TARGET_R4)
|
|
|
|
|
return new R4LoaderPlatform();
|
|
|
|
|
#elif defined(PICO_LOADER_TARGET_ACE3DS)
|
|
|
|
|
return new Ace3DSLoaderPlatform();
|
|
|
|
|
#elif defined(PICO_LOADER_TARGET_G003)
|
|
|
|
|
return new G003LoaderPlatform();
|
|
|
|
|
#elif defined(PICO_LOADER_TARGET_MELONDS)
|
|
|
|
|
return new MelonDSLoaderPlatform();
|
|
|
|
|
#elif defined(PICO_LOADER_TARGET_DSTT)
|
2026-01-02 15:18:45 +01:00
|
|
|
return new DsttLoaderPlatform();
|
2025-11-22 11:08:28 +01:00
|
|
|
#elif defined(PICO_LOADER_TARGET_AK2)
|
2026-01-02 15:18:45 +01:00
|
|
|
return new Ak2LoaderPlatform();
|
2025-11-22 11:08:28 +01:00
|
|
|
#elif defined(PICO_LOADER_TARGET_AKRPG)
|
2026-01-02 15:18:45 +01:00
|
|
|
return new AkRpgLoaderPlatform();
|
2025-11-22 11:08:28 +01:00
|
|
|
#elif defined(PICO_LOADER_TARGET_R4iDSN)
|
2026-01-02 15:18:45 +01:00
|
|
|
return new R4iDsnLoaderPlatform();
|
2025-11-22 11:08:28 +01:00
|
|
|
#elif defined(PICO_LOADER_TARGET_SUPERCARD)
|
|
|
|
|
return new SuperCardLoaderPlatform();
|
2025-01-07 12:49:04 -08:00
|
|
|
#elif defined(PICO_LOADER_TARGET_EZP)
|
2026-01-02 15:18:45 +01:00
|
|
|
return new EzpLoaderPlatform();
|
2025-12-28 20:25:22 +01:00
|
|
|
#elif defined(PICO_LOADER_TARGET_DATEL)
|
|
|
|
|
return new DatelLoaderPlatform();
|
2025-12-28 12:22:56 -08:00
|
|
|
#elif defined(PICO_LOADER_TARGET_STARGATE)
|
|
|
|
|
return new StargateLoaderPlatform();
|
2025-11-22 11:08:28 +01:00
|
|
|
#else
|
|
|
|
|
#error "No loader platform defined"
|
|
|
|
|
return nullptr;
|
|
|
|
|
#endif
|
|
|
|
|
}
|