You've already forked pico-loader
mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-01-09 16:28:35 -08:00
18 lines
584 B
C++
18 lines
584 B
C++
#pragma once
|
|
|
|
/// @brief Interface for patch code implementing sector writes.
|
|
class IWriteSectorsPatchCode
|
|
{
|
|
protected:
|
|
IWriteSectorsPatchCode() { }
|
|
|
|
public:
|
|
/// @brief Pointer to a function for writing sectorCount sectors
|
|
/// from the given src buffer to dstSector.
|
|
typedef void (*WriteSectorsFunc)(u32 dstSector, const void* src, u32 sectorCount);
|
|
|
|
/// @brief Gets a pointer to the sector write function in the patch code.
|
|
/// @return The pointer to the sector write function.
|
|
virtual const WriteSectorsFunc GetWriteSectorFunction() const = 0;
|
|
};
|