--- nono/lib/mainapp.h 2026/04/29 17:04:51 1.1.1.7 +++ nono/lib/mainapp.h 2026/04/29 17:05:05 1.1.1.10 @@ -35,10 +35,13 @@ class MainApp // 現在の VM が指定の feature を持っているか? bool HasVMFeature(vmf_t flag) const; - public: - // -A: ホストファイル名 (とりあえず) - const char *host_file {}; + // ログレベルを設定する。 + static bool SetLogopt(const std::vector&, std::string *errmsg); + + // ログ名の一覧を表示する + static std::vector GetLogNames(); + public: // -b: ブレークポイント "[,]" std::vector debug_breakaddr {}; @@ -65,6 +68,9 @@ class MainApp // --fontsize: フォントサイズ指定値 (値は fontsize_t ではない) int fontsize {}; + // -H: 内蔵 Human68k 風を組み込む。-X による実行ファイル名が必要。 + bool human_mode {}; + // -L: ログ指定文字列 char logopt[256] {}; @@ -80,9 +86,10 @@ class MainApp // -V: パラメータ指定 std::vector config_options {}; - // -X: Human68k 実行ファイル名と引数 - const char *human68k_file {}; - char human68k_arg[256] {}; + // -X: ホスト実行ファイル名とその引数 + const char *exec_file {}; + std::string exec_arg {}; + bool load_and_exec {}; private: // ヘルプメッセージを表示する @@ -97,6 +104,12 @@ class MainApp // -L オプションを処理する bool ParseLogopt(); + // ログレベル1つを設定する。 + static bool SetLogopt1(const std::string&, std::string *errmsg); + + // コンパイルされている host netdriver の一覧を表示 + void ShowHostnet() const; + // CLI/GUI 区別 bool IsCLI() const { return is_cli; } bool IsGUI() const { return !is_cli; }