mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
20 lines
541 B
C++
20 lines
541 B
C++
#pragma once
|
|
#include "sections.h"
|
|
#include "../SdWritePatchCode.h"
|
|
|
|
DEFINE_SECTION_SYMBOLS(r4_writesd);
|
|
|
|
extern "C" void r4_writeSd(u32 dstSector, const void* src, u32 sectorCount);
|
|
|
|
class R4WriteSdPatchCode : public SdWritePatchCode
|
|
{
|
|
public:
|
|
explicit R4WriteSdPatchCode(PatchHeap& patchHeap)
|
|
: SdWritePatchCode(SECTION_START(r4_writesd), SECTION_SIZE(r4_writesd), patchHeap) { }
|
|
|
|
const SdWriteFunc GetSdWriteFunction() const override
|
|
{
|
|
return (const SdWriteFunc)GetAddressAtTarget((void*)r4_writeSd);
|
|
}
|
|
};
|