Maximised kernel debug console scroll buffer
This commit is contained in:
parent
3a5a2a237c
commit
275756f73b
|
@ -382,12 +382,20 @@ extern "C" CXBXKRNL_API void CxbxKrnlInit
|
||||||
{
|
{
|
||||||
if (AllocConsole())
|
if (AllocConsole())
|
||||||
{
|
{
|
||||||
|
HANDLE StdHandle = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
|
|
||||||
|
// Maximise the console scroll buffer height :
|
||||||
|
CONSOLE_SCREEN_BUFFER_INFO coninfo;
|
||||||
|
GetConsoleScreenBufferInfo(StdHandle, &coninfo);
|
||||||
|
coninfo.dwSize.Y = SHRT_MAX - 1; // = 32767-1 = 32766 = maximum value that works
|
||||||
|
SetConsoleScreenBufferSize(StdHandle, coninfo.dwSize);
|
||||||
|
|
||||||
freopen("CONOUT$", "wt", stdout);
|
freopen("CONOUT$", "wt", stdout);
|
||||||
freopen("CONIN$", "rt", stdin);
|
freopen("CONIN$", "rt", stdin);
|
||||||
|
|
||||||
SetConsoleTitle("Cxbx-Reloaded : Kernel Debug Console");
|
SetConsoleTitle("Cxbx-Reloaded : Kernel Debug Console");
|
||||||
|
|
||||||
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_RED);
|
SetConsoleTextAttribute(StdHandle, FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_RED);
|
||||||
|
|
||||||
printf("EmuMain (0x%X): Cxbx-Reloaded Version %s\n", GetCurrentThreadId(), _CXBX_VERSION);
|
printf("EmuMain (0x%X): Cxbx-Reloaded Version %s\n", GetCurrentThreadId(), _CXBX_VERSION);
|
||||||
printf("EmuMain (0x%X): Debug Console Allocated (DM_CONSOLE).\n", GetCurrentThreadId());
|
printf("EmuMain (0x%X): Debug Console Allocated (DM_CONSOLE).\n", GetCurrentThreadId());
|
||||||
|
|
|
@ -775,6 +775,7 @@ unimplemented_opcode:
|
||||||
|
|
||||||
void EmuX86_Init()
|
void EmuX86_Init()
|
||||||
{
|
{
|
||||||
|
DbgPrintf("EmuX86: Initializing distorm version %d\n", distorm_version());
|
||||||
EmuX86_InitContextRecordOffsetByRegisterType();
|
EmuX86_InitContextRecordOffsetByRegisterType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue