From c371a45b91a6163567a9c313778965c0d1b9173a Mon Sep 17 00:00:00 2001 From: Will Date: Sun, 6 Dec 2026 19:44:48 +1000 Subject: [PATCH] options: store Hex values passed on the command line (#944) Ye olde classic case of "review this code" and the robot saying "this is also broken". Only two hex options and both kinda rare so makes sense they've not been seen as a bug before. Looks like it's been there some time. Co-authored-by: Claude Opus 5.5 --- src/spice2x/launcher/options.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spice2x/launcher/options.cpp b/src/spice2x/launcher/options.cpp index 433b1e17..486d6445 100644 --- a/src/spice2x/launcher/options.cpp +++ b/src/spice2x/launcher/options.cpp @@ -3582,6 +3582,7 @@ std::unique_ptr> launcher::parse_options(int argc, char *arg // validate it is an integer try { auto _ = std::stoull(argv[i], nullptr, 16); + option.value_add(argv[i]); } catch (const std::exception &ex) { log_fatal("options", "parameter for -{} is not a hex number: {}", alias, argv[i]); }