Added check to CardiTaskThreadPatch that the required slot is actually mapped to arm7. Fixes #60

This commit is contained in:
Gericom
2025-12-27 12:44:00 +01:00
parent 8036004e5a
commit 64e020182a
18 changed files with 95 additions and 42 deletions

View File

@@ -5,6 +5,7 @@
#include "SdWritePatchCode.h"
#include "../PatchHeap.h"
#include "../PatchCodeCollection.h"
#include "LoaderPlatformType.h"
/// @brief Abstract class for platform (flashcard or other sd access method) specific parts of the loader.
class LoaderPlatform
@@ -38,6 +39,10 @@ public:
virtual const SdReadPatchCode* CreateRomReadPatchCode(
PatchCodeCollection& patchCodeCollection, PatchHeap& patchHeap) const { return nullptr; }
/// @brief Returns the type of this loader platform.
/// @return The type of this loader platform.
virtual LoaderPlatformType GetPlatformType() const = 0;
/// @brief Checks if the platform supports rom reads directly.
/// @return True if the platform supports rom reads, or false otherwise.
virtual bool HasRomReads() const { return false; }