mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-25 14:41:02 +00:00
Don't buffer stdout by default
This commit is contained in:
@@ -18,6 +18,7 @@ namespace
|
||||
bool concise_logging{false};
|
||||
bool verbose_logging{false};
|
||||
bool silent{false};
|
||||
bool buffer_stdout{false};
|
||||
std::filesystem::path dump{};
|
||||
std::string registry_path{"./registry"};
|
||||
std::string emulation_root{};
|
||||
@@ -245,7 +246,7 @@ namespace
|
||||
|
||||
(void)&watch_system_objects;
|
||||
watch_system_objects(*win_emu, options.modules, options.concise_logging);
|
||||
win_emu->buffer_stdout = true;
|
||||
win_emu->buffer_stdout = options.buffer_stdout;
|
||||
|
||||
if (options.silent)
|
||||
{
|
||||
@@ -349,6 +350,10 @@ namespace
|
||||
{
|
||||
options.verbose_logging = true;
|
||||
}
|
||||
else if (arg == "-b")
|
||||
{
|
||||
options.buffer_stdout = true;
|
||||
}
|
||||
else if (arg == "-c")
|
||||
{
|
||||
options.concise_logging = true;
|
||||
|
||||
Reference in New Issue
Block a user