From 84149c4df2b5ab07919b557772a93ac7b3bf2291 Mon Sep 17 00:00:00 2001 From: Rushaway Date: Mon, 24 Feb 2025 08:32:12 +0100 Subject: [PATCH] feat: add fix for broken bsp pakfile loading Co-Authored-By: xen <24222257+xen-000@users.noreply.github.com> --- extension.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extension.cpp b/extension.cpp index 755d78f..5380672 100644 --- a/extension.cpp +++ b/extension.cpp @@ -269,6 +269,14 @@ static struct SrcdsPatch (unsigned char *)"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x8B\x03\x8B\x80", "cstrike/bin/server_srv.so" }, + // 18: Remove weird filename handle check in CZipPackFile::GetFileInfo that broke loading mixed case files in bsp pakfiles + { + "_ZN12CZipPackFile11GetFileInfoEPKcRiRxS2_S2_Rt", + (unsigned char *)"\x75\x00\x8B\x09", + "x?xx", + (unsigned char *)"\x90\x90\x8B\x09", + "bin/dedicated_srv.so" + }, }; class CBaseEntity;