--- nono/lib/mainapp.h 2026/04/29 17:04:30 1.1.1.2 +++ nono/lib/mainapp.h 2026/04/29 17:04:34 1.1.1.3 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once @@ -27,12 +28,15 @@ class MainApp // (Config が持っているのは文字列) vmtype_t GetVMType() const { return vmtype; } + // 現在の VM が指定の feature を持っているか? + bool HasVMFeature(vmf_t flag) const; + public: // -A: ホストファイル名 (とりあえず) const char *host_file = NULL; // -b: ブレークポイント - uint32 debug_breakaddr = 0; + std::vector debug_breakaddr {}; // -B: ベンチマークモード int benchmark_mode = 0; @@ -65,8 +69,8 @@ class MainApp // -s,--scale: 画面スケール double screen_scale = 0.0; - // --show-config: 設定内容を表示 - bool show_config {}; + // --show-config: 設定内容を表示 (1なら通常、2ならall) + int show_config {}; // -V: パラメータ指定 std::vector config_options;