Refactored platform code to use interfaces for patch code with a special feature and improved patch code file names

This commit is contained in:
Gericom
2026-01-02 15:18:45 +01:00
parent d6080984d1
commit 231f14a783
180 changed files with 1073 additions and 1057 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "sections.h"
#include "patches/PatchCode.h"
#include "../IReadSectorsPatchCode.h"
DEFINE_SECTION_SYMBOLS(stargate_readsd);
extern "C" void stargate_readSd(u32 srcSector, void* dst, u32 sectorCount);
class StargateReadSdPatchCode : public PatchCode, public IReadSectorsPatchCode
{
public:
explicit StargateReadSdPatchCode(PatchHeap& patchHeap)
: PatchCode(SECTION_START(stargate_readsd), SECTION_SIZE(stargate_readsd), patchHeap) { }
const ReadSectorsFunc GetReadSectorsFunction() const override
{
return (const ReadSectorsFunc)GetAddressAtTarget((void*)stargate_readSd);
}
};