Support silencing the logging until the main function gets executed

This commit is contained in:
momo5502
2024-12-24 09:14:35 +01:00
parent 4deb007a8e
commit 98265ce2a9
2 changed files with 10 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ struct emulator_settings
std::vector<std::wstring> arguments{};
std::function<void(std::string_view)> stdout_callback{};
bool disable_logging{false};
bool silent_until_main{false};
bool use_relative_time{false};
};
@@ -102,6 +103,7 @@ public:
bool buffer_stdout{false};
bool fuzzing{false};
bool switch_thread{false};
bool silent_until_main{false};
void yield_thread();
void perform_thread_switch();