diff options
Diffstat (limited to 'src/factories/bk64/ConfigFactory.h')
| -rw-r--r-- | src/factories/bk64/ConfigFactory.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/factories/bk64/ConfigFactory.h b/src/factories/bk64/ConfigFactory.h index 7822647..c2c6982 100644 --- a/src/factories/bk64/ConfigFactory.h +++ b/src/factories/bk64/ConfigFactory.h @@ -69,6 +69,12 @@ enum class CustomCodeKind : uint16_t { BB_INJECTED = 2, }; +// Pre-extraction probe for callers that decide the warning policy themselves +// (e.g. the extraction UI checks RomhackTable for hand-ported hashes): reports +// the detected blob's kind and its SHA1 as 40 lowercase hex chars + NUL. +// Returns false (kind NONE, empty hash) when no blob is found. +bool GetCustomCodeBlobInfo(const std::vector<uint8_t>& rom, CustomCodeKind& outKind, char outSha1Hex[41]); + // CODE_CONSTANTS key IDs - they index into the sBBConfigs table. enum class CodeConstantKey : uint16_t { NEW_GAME_MAP = 0, |
