--- nono/lib/mainapp.cpp 2026/04/29 17:05:26 1.1.1.17 +++ nono/lib/mainapp.cpp 2026/04/29 17:05:30 1.1.1.18 @@ -107,6 +107,7 @@ MainApp::ShowHelp(bool all) const p(" set breakpoint. is either 'main'(default) or 'xp'"); p("--bi-exg set instruction breakpoint on 'exg sp,sp'"); p("-C output log to console"); + p("--console-log specify the console output log"); p("-d debugger prompt on startup"); p("-D same as '-V debugger-driver=stdio'"); p("-H human68k console emulation"); @@ -124,6 +125,7 @@ MainApp::ShowHelp(bool all) const enum { OPTstart = 0x80 - 1, OPT_bi_exg, + OPT_console_log, OPT_create_sram, OPT_fontsize, OPT_help, @@ -135,6 +137,7 @@ enum { }; static struct option longopts[] = { { "bi-exg", no_argument, NULL, OPT_bi_exg }, + { "console-log", required_argument, NULL, OPT_console_log }, { "create-sram", no_argument, NULL, OPT_create_sram }, { "fontsize", required_argument, NULL, OPT_fontsize }, { "help", no_argument, NULL, OPT_help }, @@ -544,6 +547,12 @@ MainApp::ParseOpt(int ac, char *av[]) debug_breakinst_exg = true; break; + case OPT_console_log: + // この時点ではコンソールを持つ VM かどうかが分からないので + // コンソールのない設定でもエラーを出さない(出せない)。 + console_logfile = optarg; + break; + case OPT_create_sram: create_sram = true; break;