mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Refactored platform code to use interfaces for patch code with a special feature and improved patch code file names
This commit is contained in:
19
arm9/source/patches/platform/ezp/EzpReadSdDataPatchCode.h
Normal file
19
arm9/source/patches/platform/ezp/EzpReadSdDataPatchCode.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "sections.h"
|
||||
#include "thumbInstructions.h"
|
||||
|
||||
DEFINE_SECTION_SYMBOLS(ezp_readsddata);
|
||||
|
||||
extern "C" void ezp_readSdData(u32 srcSector, void* dst, u32 sectorCount, u32 sectorCountThisRead);
|
||||
|
||||
class EzpReadSdDataPatchCode : public PatchCode
|
||||
{
|
||||
public:
|
||||
explicit EzpReadSdDataPatchCode(PatchHeap& patchHeap)
|
||||
: PatchCode(SECTION_START(ezp_readsddata), SECTION_SIZE(ezp_readsddata), patchHeap) { }
|
||||
|
||||
const void* GetReadSDDataFunction() const
|
||||
{
|
||||
return GetAddressAtTarget((void*)ezp_readSdData);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user