From 937e8ed6805b7de6a8291780194928b6781be3c1 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 10 Mar 2016 20:40:55 +0100 Subject: [PATCH] Fix issues and --- src/Components/Modules/Console.cpp | 6 ++++++ src/Components/Modules/Dedicated.cpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/Components/Modules/Console.cpp b/src/Components/Modules/Console.cpp index 0dc7a004..8a4eaa8f 100644 --- a/src/Components/Modules/Console.cpp +++ b/src/Components/Modules/Console.cpp @@ -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') { diff --git a/src/Components/Modules/Dedicated.cpp b/src/Components/Modules/Dedicated.cpp index c572f723..31d730b6 100644 --- a/src/Components/Modules/Dedicated.cpp +++ b/src/Components/Modules/Dedicated.cpp @@ -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(0x5DEC04, 0);