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:
19
arm9/source/patches/platform/ace3ds/ace3dsReadSdAsm.h
Normal file
19
arm9/source/patches/platform/ace3ds/ace3dsReadSdAsm.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "sections.h"
|
||||
#include "../SdReadPatchCode.h"
|
||||
|
||||
DEFINE_SECTION_SYMBOLS(ace3ds_readsd);
|
||||
|
||||
extern "C" void ace3ds_readSd(u32 srcSector, void* dst, u32 sectorCount);
|
||||
|
||||
class Ace3DSReadSdPatchCode : public SdReadPatchCode
|
||||
{
|
||||
public:
|
||||
explicit Ace3DSReadSdPatchCode(PatchHeap& patchHeap)
|
||||
: SdReadPatchCode(SECTION_START(ace3ds_readsd), SECTION_SIZE(ace3ds_readsd), patchHeap) { }
|
||||
|
||||
const SdReadFunc GetSdReadFunction() const override
|
||||
{
|
||||
return (const SdReadFunc)GetAddressAtTarget((void*)ace3ds_readSd);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user