mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 19:23:56 +00:00
Support stdout buffering
This commit is contained in:
@@ -67,7 +67,7 @@ namespace
|
||||
};
|
||||
|
||||
//watch_system_objects(win_emu);
|
||||
|
||||
win_emu.buffer_stdout = true;
|
||||
|
||||
const auto& exe = *win_emu.process().executable;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user