Intro stuff.

This commit is contained in:
momo5502 2016-01-13 13:18:36 +01:00
parent 0dbd45c844
commit 5f0cfd7a19
2 changed files with 16 additions and 8 deletions

View File

@ -218,7 +218,9 @@ namespace Components
// Fire protocol handlers
// Make sure this happens after the pipe-initialization!
if (!Singleton::IsFirstInstance() && ConnectProtocol::Used())
if (ConnectProtocol::Used())
{
if (!Singleton::IsFirstInstance())
{
IPCPipe::Write("connect", ConnectProtocol::ConnectContainer.ConnectString);
ExitProcess(0);
@ -229,4 +231,5 @@ namespace Components
Utils::Hook::Set<BYTE>(0x60BECF, 0xEB);
}
}
}
}

View File

@ -139,6 +139,11 @@ namespace Components
Utils::Hook::Nop(0x4AA89F, 2);
Utils::Hook::Nop(0x4AA8A1, 6);
// intro stuff
Utils::Hook::Nop(0x60BEE9, 5); // Don't show legals
Utils::Hook::Set<char*>(0x60BED2, "unskippablecinematic IW_logo\n");
Utils::Hook::Nop(0x60BEF6, 5); // Don't reset intro dvar
// Rename stat file - TODO: beautify
Utils::Hook::SetString(0x71C048, "iw4x.stat");