mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 17:26:48 +02:00
21 lines
607 B
C++
21 lines
607 B
C++
#pragma once
|
|
#include "sections.h"
|
|
#include "thumbInstructions.h"
|
|
#include "patches/PatchCode.h"
|
|
|
|
DEFINE_SECTION_SYMBOLS(iorpg_sendsdiocommand);
|
|
|
|
extern "C" void iorpg_sendSdioCommand(u8 sdio, u8 param_type, u32 param, u32 read_len);
|
|
|
|
class IoRpgSendSdioCommandPatchCode : public PatchCode
|
|
{
|
|
public:
|
|
explicit IoRpgSendSdioCommandPatchCode(PatchHeap& patchHeap)
|
|
: PatchCode(SECTION_START(iorpg_sendsdiocommand), SECTION_SIZE(iorpg_sendsdiocommand), patchHeap) { }
|
|
|
|
const void* GetSendSdioCommandFunction() const
|
|
{
|
|
return GetAddressAtTarget((void*)iorpg_sendSdioCommand);
|
|
}
|
|
};
|