Fix issues and

This commit is contained in:
momo5502 2016-03-10 20:40:55 +01:00
parent e253ab7070
commit 937e8ed680
2 changed files with 8 additions and 0 deletions

View File

@ -242,6 +242,10 @@ namespace Components
delwin(Console::InputWindow); delwin(Console::InputWindow);
delwin(Console::InfoWindow); delwin(Console::InfoWindow);
endwin(); endwin();
Console::OutputWindow = nullptr;
Console::InputWindow = nullptr;
Console::InfoWindow = nullptr;
} }
void Console::Create() void Console::Create()
@ -327,6 +331,8 @@ namespace Components
void Console::Print(const char* message) void Console::Print(const char* message)
{ {
if (!Console::OutputWindow) return;
const char* p = message; const char* p = message;
while (*p != '\0') while (*p != '\0')
{ {

View File

@ -261,6 +261,8 @@ namespace Components
Utils::Hook::Nop(0x64CF77, 5); // function detecting video card, causes Direct3DCreate9 to be called Utils::Hook::Nop(0x64CF77, 5); // function detecting video card, causes Direct3DCreate9 to be called
Utils::Hook::Nop(0x60BC52, 0x15); // recommended settings check Utils::Hook::Nop(0x60BC52, 0x15); // recommended settings check
Utils::Hook::Nop(0x45148B, 5); // Disable splash screen
// isHost script call return 0 // isHost script call return 0
Utils::Hook::Set<DWORD>(0x5DEC04, 0); Utils::Hook::Set<DWORD>(0x5DEC04, 0);