From dbbdf2418de7b61f935822ca9c6dd57abe49fdc8 Mon Sep 17 00:00:00 2001 From: xen Date: Mon, 24 Feb 2025 01:27:43 +0200 Subject: [PATCH] Add fix for broken bsp pakfile loading --- extension.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extension.cpp b/extension.cpp index f7dc822..a769bb8 100644 --- a/extension.cpp +++ b/extension.cpp @@ -319,6 +319,14 @@ static struct SrcdsPatch (unsigned char *)"\xEB\x0F\xE8\x69\xCE\xDA\xFF\x8B\x45\x08", "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;