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::InfoWindow);
endwin();
Console::OutputWindow = nullptr;
Console::InputWindow = nullptr;
Console::InfoWindow = nullptr;
}
void Console::Create()
@ -327,6 +331,8 @@ namespace Components
void Console::Print(const char* message)
{
if (!Console::OutputWindow) return;
const char* p = message;
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(0x60BC52, 0x15); // recommended settings check
Utils::Hook::Nop(0x45148B, 5); // Disable splash screen
// isHost script call return 0
Utils::Hook::Set<DWORD>(0x5DEC04, 0);