mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Add support for the SuperChis (#138)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user