From c4ba1e992f125f66b16e9646908a1895daa0a752 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 13 Apr 2025 17:00:39 +0200 Subject: [PATCH] Don't buffer stdout by default --- src/analyzer/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/analyzer/main.cpp b/src/analyzer/main.cpp index 7e002334..646be0d7 100644 --- a/src/analyzer/main.cpp +++ b/src/analyzer/main.cpp @@ -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;