Use UpperMap for rgblink -S scramble spec matching

This also makes invalid RGBLINK CLI options into fatal errors
like the other programs
This commit is contained in:
Rangi42
2025-07-29 03:37:32 -04:00
parent cecbf0aa0e
commit 308d488833
5 changed files with 100 additions and 142 deletions

View File

@@ -22,8 +22,8 @@ struct Options {
bool hasPadValue = false;
// Setting these three to 0 disables the functionality
uint16_t scrambleROMX; // -S
uint8_t scrambleWRAMX;
uint8_t scrambleSRAM;
uint16_t scrambleWRAMX;
uint16_t scrambleSRAM;
bool is32kMode; // -t
bool beVerbose; // -v
bool isWRAM0Mode; // -w

View File

@@ -48,8 +48,6 @@ void error(FileStackNode const *src, uint32_t lineNo, char const *fmt, ...);
void error(char const *fmt, ...);
[[gnu::format(printf, 1, 2)]]
void errorNoDump(char const *fmt, ...);
[[gnu::format(printf, 2, 3)]]
void argError(char flag, char const *fmt, ...);
void scriptError(char const *name, uint32_t lineNo, char const *fmt, va_list args);