mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Initial commit
This commit is contained in:
28
arm9/source/patches/platform/melonds/MelonDSLoaderPlatform.h
Normal file
28
arm9/source/patches/platform/melonds/MelonDSLoaderPlatform.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
#include "common.h"
|
||||
#include "../LoaderPlatform.h"
|
||||
#include "melondsReadSdAsm.h"
|
||||
#include "melondsWriteSdAsm.h"
|
||||
|
||||
/// @brief Implementation of LoaderPlatform for MelonDS
|
||||
class MelonDSLoaderPlatform : public LoaderPlatform
|
||||
{
|
||||
public:
|
||||
const SdReadPatchCode* CreateSdReadPatchCode(
|
||||
PatchCodeCollection& patchCodeCollection, PatchHeap& patchHeap) const override
|
||||
{
|
||||
return patchCodeCollection.GetOrAddSharedPatchCode([&]
|
||||
{
|
||||
return new MelonDSReadSdPatchCode(patchHeap);
|
||||
});
|
||||
}
|
||||
|
||||
const SdWritePatchCode* CreateSdWritePatchCode(
|
||||
PatchCodeCollection& patchCodeCollection, PatchHeap& patchHeap) const override
|
||||
{
|
||||
return patchCodeCollection.GetOrAddSharedPatchCode([&]
|
||||
{
|
||||
return new MelonDSWriteSdPatchCode(patchHeap);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user