Skip to content

Commit

Permalink
add missing error check to arch command
Browse files Browse the repository at this point in the history
  • Loading branch information
randomdude999 committed Jan 18, 2024
1 parent 8b1130e commit 6e337e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/asar/assembleblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,7 @@ void assembleblock(const char * block, int& single_line_for_tracker)
if (!stricmp(par, "65816")) { arch=arch_65816; return; }
if (!stricmp(par, "spc700")) { arch=arch_spc700; return; }
if (!stricmp(par, "superfx")) { arch=arch_superfx; return; }
asar_throw_error(0, error_type_block, error_id_broken_command, "arch", "Invalid architecture, expected one of 65816, spc700, superfx");
}
else if (is0("{") || is0("}")) {}
else
Expand Down

0 comments on commit 6e337e9

Please sign in to comment.