Add support for the SuperChis (#138)

This commit is contained in:
Edoardo Lolletti
2026-02-15 20:26:24 +01:00
committed by GitHub
parent dca92f3920
commit 7c919cf1c1
22 changed files with 1232 additions and 1164 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include "sections.h"
#include "patches/PatchCode.h"
#include "../ISuperCardSendSdCommandPatchCode.h"
DEFINE_SECTION_SYMBOLS(scsd_sd_command_drop);
extern "C" void scsd_sdCommandAndDropResponse6();
class SuperCardSDSendSdCommandPatchCode : public PatchCode, public ISuperCardSendSdCommandPatchCode
{
public:
explicit SuperCardSDSendSdCommandPatchCode(PatchHeap& patchHeap)
: PatchCode(SECTION_START(scsd_sd_command_drop), SECTION_SIZE(scsd_sd_command_drop), patchHeap) { }
const void* GetSendSdCommandFunction() const override
{
return GetAddressAtTarget((void*)scsd_sdCommandAndDropResponse6);
}
};