add revision number
This commit is contained in:
parent
bf9e7f18ba
commit
75db36aba9
@ -25,8 +25,8 @@ namespace Components
|
|||||||
// External console
|
// External console
|
||||||
Utils::Hook::Nop(0x60BB58, 11);
|
Utils::Hook::Nop(0x60BB58, 11);
|
||||||
|
|
||||||
// Console '%s: %s> ' string - TODO: add buildnumber here
|
// Console '%s: %s> ' string
|
||||||
Utils::Hook::Set<char*>(0x5A44B4, "IW4x: r123> ");
|
Utils::Hook::Set<char*>(0x5A44B4, "IW4x: r" REVISION_STR "> ");
|
||||||
|
|
||||||
// Internal console
|
// Internal console
|
||||||
Utils::Hook(0x4F690C, Console::ToggleConsole, HOOK_CALL).Install()->Quick();
|
Utils::Hook(0x4F690C, Console::ToggleConsole, HOOK_CALL).Install()->Quick();
|
||||||
|
@ -72,17 +72,17 @@ namespace Components
|
|||||||
// fs_basegame
|
// fs_basegame
|
||||||
Utils::Hook::Set<char*>(0x6431D1, "data");
|
Utils::Hook::Set<char*>(0x6431D1, "data");
|
||||||
|
|
||||||
// UI version string - TODO: add buildnumber here
|
// UI version string
|
||||||
Utils::Hook::Set<char*>(0x43F73B, "iw4x IW4x: r123");
|
Utils::Hook::Set<char*>(0x43F73B, "iw4x IW4x: r" REVISION_STR);
|
||||||
|
|
||||||
// console version string
|
// console version string
|
||||||
Utils::Hook::Set<char*>(0x4B12BB, "iw4x IW4x r123 (built " __DATE__ " " __TIME__ ")");
|
Utils::Hook::Set<char*>(0x4B12BB, "iw4x IW4x r" REVISION_STR " (built " __DATE__ " " __TIME__ ")");
|
||||||
|
|
||||||
// version string
|
// version string
|
||||||
Utils::Hook::Set<char*>(0x60BD56, "iw4x.IW4x (r123)");
|
Utils::Hook::Set<char*>(0x60BD56, "iw4x IW4x (r" REVISION_STR ")");
|
||||||
|
|
||||||
// console title
|
// console title
|
||||||
Utils::Hook::Set<char*>(0x4289E8, "iw4x IW4x (r123): Console");
|
Utils::Hook::Set<char*>(0x4289E8, "iw4x IW4x (r" REVISION_STR "): Console");
|
||||||
|
|
||||||
// window title
|
// window title
|
||||||
Utils::Hook::Set<char*>(0x5076A0, "iw4x IW4x: Multiplayer");
|
Utils::Hook::Set<char*>(0x5076A0, "iw4x IW4x: Multiplayer");
|
||||||
@ -91,7 +91,7 @@ namespace Components
|
|||||||
Utils::Hook::Set<char*>(0x4D378B, "IW4Host");
|
Utils::Hook::Set<char*>(0x4D378B, "IW4Host");
|
||||||
|
|
||||||
// shortversion
|
// shortversion
|
||||||
Utils::Hook::Set<char*>(0x60BD91, "4.2.123");
|
Utils::Hook::Set<char*>(0x60BD91, VERSION_STR);
|
||||||
|
|
||||||
// console logo
|
// console logo
|
||||||
Utils::Hook::Set<char*>(0x428A66, "data/images/logo.bmp");
|
Utils::Hook::Set<char*>(0x428A66, "data/images/logo.bmp");
|
||||||
|
@ -36,3 +36,11 @@
|
|||||||
#pragma comment(lib, "Winmm.lib")
|
#pragma comment(lib, "Winmm.lib")
|
||||||
#pragma comment(lib, "Crypt32.lib")
|
#pragma comment(lib, "Crypt32.lib")
|
||||||
#pragma comment(lib, "Ws2_32.lib")
|
#pragma comment(lib, "Ws2_32.lib")
|
||||||
|
|
||||||
|
// Revision number
|
||||||
|
#define STRINGIZE_(x) #x
|
||||||
|
#define STRINGIZE(x) STRINGIZE_(x)
|
||||||
|
|
||||||
|
#define REVISION_STR STRINGIZE(REVISION)
|
||||||
|
#define VERSION 4,2,REVISION
|
||||||
|
#define VERSION_STR "4.2." REVISION_STR
|
||||||
|
Loading…
Reference in New Issue
Block a user