Files
pico-loader/arm9/source/patches/platform/ezp/ezpWriteSectorsAsm.h
2025-12-02 08:40:36 -08:00

20 lines
583 B
C++

#pragma once
#include "sections.h"
#include "../SdWritePatchCode.h"
DEFINE_SECTION_SYMBOLS(ezp_writesectors);
extern "C" void ezp_writeSectors(u32 dstSector, const void* src, u32 sectorCount);
class EZPWriteSectorsPatchCode : public SdWritePatchCode
{
public:
explicit EZPWriteSectorsPatchCode(PatchHeap& patchHeap)
: SdWritePatchCode(SECTION_START(ezp_writesectors), SECTION_SIZE(ezp_writesectors), patchHeap) { }
const SdWriteFunc GetSdWriteFunction() const override
{
return (const SdWriteFunc)GetAddressAtTarget((void*)ezp_writeSectors);
}
};