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,15 +218,18 @@ namespace Components
// Fire protocol handlers // Fire protocol handlers
// Make sure this happens after the pipe-initialization! // Make sure this happens after the pipe-initialization!
if (!Singleton::IsFirstInstance() && ConnectProtocol::Used()) if (ConnectProtocol::Used())
{ {
IPCPipe::Write("connect", ConnectProtocol::ConnectContainer.ConnectString); if (!Singleton::IsFirstInstance())
ExitProcess(0); {
} IPCPipe::Write("connect", ConnectProtocol::ConnectContainer.ConnectString);
else ExitProcess(0);
{ }
// Only skip intro here, invocation will be done later. else
Utils::Hook::Set<BYTE>(0x60BECF, 0xEB); {
// Only skip intro here, invocation will be done later.
Utils::Hook::Set<BYTE>(0x60BECF, 0xEB);
}
} }
} }
} }

View File

@ -139,6 +139,11 @@ namespace Components
Utils::Hook::Nop(0x4AA89F, 2); Utils::Hook::Nop(0x4AA89F, 2);
Utils::Hook::Nop(0x4AA8A1, 6); 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 // Rename stat file - TODO: beautify
Utils::Hook::SetString(0x71C048, "iw4x.stat"); Utils::Hook::SetString(0x71C048, "iw4x.stat");