diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-31 21:52:44 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-31 22:01:41 +0100 |
commit | 74563bfb8c506150172b9bbf73d828372add3394 (patch) | |
tree | b07d0e83ccfd332354b18d2ef092426a94fa4f1d /src/portalcolours.c | |
parent | 1eff445a270a422ba94ede3205be739e998e530f (diff) |
Add last-minute SteamPipe Portal colour supportv0.4-BETA
Diffstat (limited to 'src/portalcolours.c')
-rw-r--r-- | src/portalcolours.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/portalcolours.c b/src/portalcolours.c index 6030bb8..00eb96b 100644 --- a/src/portalcolours.c +++ b/src/portalcolours.c @@ -111,6 +111,11 @@ static bool find_UTIL_Portal_Color(void *base) { // 3420 orig_UTIL_Portal_Color = (UTIL_Portal_Color_func)mem_offset(base, 0x1AA810); if (!memcmp((void *)orig_UTIL_Portal_Color, x, sizeof(x))) return true; + // SteamPipe (7197370) - almost sure to break in a later update! + static const uchar y[] = HEXBYTES(55, 8B, EC, 8B, 45, 0C, 83, E8, 00, 74, + 24, 48, 74, 16, 48, 8B, 45, 08, 74, 08, C7, 00, FF, FF); + orig_UTIL_Portal_Color = (UTIL_Portal_Color_func)mem_offset(base, 0x234C00); + if (!memcmp((void *)orig_UTIL_Portal_Color, y, sizeof(y))) return true; return false; } |