Support stdout buffering

This commit is contained in:
momo5502
2024-09-21 20:26:20 +02:00
parent efb1e818bd
commit dd039f8f4b
3 changed files with 4 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ namespace
};
//watch_system_objects(win_emu);
win_emu.buffer_stdout = true;
const auto& exe = *win_emu.process().executable;

View File

@@ -367,7 +367,7 @@ namespace
const emulator_object<FILE_FS_DEVICE_INFORMATION> info_obj{c.emu, fs_information};
info_obj.access([&](FILE_FS_DEVICE_INFORMATION& info)
{
if (file_handle == STDOUT_HANDLE.bits)
if (file_handle == STDOUT_HANDLE.bits && !c.win_emu.buffer_stdout)
{
info.DeviceType = FILE_DEVICE_CONSOLE;
info.Characteristics = 0x20000;

View File

@@ -602,7 +602,7 @@ void windows_emulator::setup_hooks()
printf("!!! DLL init: %s\n", name);
}*/
if (!this->verbose_ && !this->verbose_calls_ && !is_interesting_call)
if (!this->verbose && !this->verbose_calls && !is_interesting_call)
{
return;
}
@@ -628,7 +628,7 @@ void windows_emulator::setup_hooks()
}
}
if (!this->verbose_)
if (!this->verbose)
{
return;
}