summaryrefslogtreecommitdiffhomepage
path: root/src/portalcolours.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/portalcolours.c')
-rw-r--r--src/portalcolours.c5
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;
}