Fix rgbasm -s not overriding a previous -s

This commit is contained in:
Rangi
2026-03-30 20:07:53 -04:00
parent 44b6a2c453
commit 18b074711e
5 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ static void parseArg(int ch, char *arg) {
if (localOptions.stateFileSpecs.find(name) != localOptions.stateFileSpecs.end()) {
warnx("Overriding state file \"%s\"", name);
}
localOptions.stateFileSpecs.emplace(name, std::move(features));
localOptions.stateFileSpecs[name] = std::move(features);
break;
}
+2
View File
@@ -0,0 +1,2 @@
DEF s EQUS "hello"
DEF n EQU 42
+1
View File
@@ -0,0 +1 @@
warning: Overriding state file "-"
+1
View File
@@ -0,0 +1 @@
-s equs:- -s equ:-
+4
View File
@@ -0,0 +1,4 @@
; File generated by rgbasm
; Numeric constants
def n equ $2a