Support verbose logging during tests

This commit is contained in:
momo5502
2025-01-25 13:05:25 +01:00
parent d2b735c26e
commit d387477883
5 changed files with 28 additions and 2 deletions

View File

@@ -838,6 +838,7 @@ windows_emulator::windows_emulator(const emulator_settings& settings, emulator_c
this->file_sys().set_working_directory(settings.application.parent());
}
this->verbose_calls = settings.verbose_calls;
this->silent_until_main_ = settings.silent_until_main && !settings.disable_logging;
this->use_relative_time_ = settings.use_relative_time;
this->log.disable_output(settings.disable_logging || this->silent_until_main_);

View File

@@ -32,6 +32,7 @@ struct emulator_settings
std::filesystem::path registry_directory{"./registry"};
std::filesystem::path emulation_root{};
std::vector<std::u16string> arguments{};
bool verbose_calls{false};
bool disable_logging{false};
bool silent_until_main{false};
bool use_relative_time{false};