From 13d3825d7345cfa5b676e2a015c073fe84c4d386 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 10 Nov 2022 08:50:26 +0100 Subject: [PATCH] -Q --- main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 45036dc..8f3c283 100644 --- a/main.cpp +++ b/main.cpp @@ -80,14 +80,20 @@ int main(int argc, char *argv[]) uint16_t console_switches = 0; + std::string test; + int opt = -1; - while((opt = getopt(argc, argv, "hm:T:r:R:p:ndtL:b:l:3s:")) != -1) + while((opt = getopt(argc, argv, "hm:T:r:R:p:ndtL:b:l:3s:Q:")) != -1) { switch(opt) { case 'h': help(); return 1; + case 'Q': + test = optarg; + break; + case 's': console_switches = strtol(optarg, NULL, 8); break; @@ -225,6 +231,9 @@ int main(int argc, char *argv[]) sigaction(SIGTERM, &sa, nullptr); sigaction(SIGINT , &sa, nullptr); + if (test.empty() == false) + load_p11_x11(b, test); + #if 0 // loadbin(b, 0, "test.dat"); // c->setRegister(7, 0);