Introduce REVISION_SUFFIX and integrate it in-game.

REVISION_SUFFIX is either empty or contains a "*" to indicate if a revision is clean or not (see previous commit regarding REVISION_CLEAN for explanation).
This commit is contained in:
/dev/urandom 2016-03-15 03:22:32 +01:00
parent 4d610197f4
commit e3e222611d
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E
2 changed files with 9 additions and 4 deletions

View File

@ -118,16 +118,16 @@ namespace Components
Utils::Hook::Set<char*>(0x6431D1, BASEGAME);
// UI version string
Utils::Hook::Set<char*>(0x43F73B, "IW4x: r" REVISION_STR "-" MILESTONE);
Utils::Hook::Set<char*>(0x43F73B, "IW4x: r" REVISION_STR REVISION_SUFFIX "-" MILESTONE);
// console version string
Utils::Hook::Set<char*>(0x4B12BB, "IW4x r" REVISION_STR "-" MILESTONE " (built " __DATE__ " " __TIME__ ")");
Utils::Hook::Set<char*>(0x4B12BB, "IW4x r" REVISION_STR REVISION_SUFFIX "-" MILESTONE " (built " __DATE__ " " __TIME__ ")");
// version string
Utils::Hook::Set<char*>(0x60BD56, "IW4x (r" REVISION_STR ")");
Utils::Hook::Set<char*>(0x60BD56, "IW4x (r" REVISION_STR REVISION_SUFFIX ")");
// console title
Utils::Hook::Set<char*>(0x4289E8, "IW4x (r" REVISION_STR "): Console");
Utils::Hook::Set<char*>(0x4289E8, "IW4x (r" REVISION_STR REVISION_SUFFIX "): Console");
// window title
Utils::Hook::Set<char*>(0x5076A0, "IW4x: Multiplayer");

View File

@ -112,6 +112,11 @@
#define MILESTONE "beta"
#define REVISION_STR STRINGIZE(REVISION)
#if !REVISION_CLEAN
#define REVISION_SUFFIX "*"
#else
#define REVISION_SUFFIX ""
#endif
#define VERSION 4,2,REVISION
#define VERSION_STR "4.2." REVISION_STR