Compare commits

...

2 commits
main ... v1.13

Author SHA1 Message Date
Vauff
15b3a88397 Pin Metamod to last SourceHook release 2026-09-24 13:18:36 -04:00
Vauff
2a19ec7a8b Update Linux patch for 2026-09-22 CS2 update 2026-09-24 13:17:57 -04:00
2 changed files with 6 additions and 6 deletions

View file

@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v7 uses: actions/checkout@v7
with: with:
repository: alliedmodders/metamod-source repository: alliedmodders/metamod-source
ref: master ref: 7ec0f16948ab3a0910a98b4ac10e1c0e360d5339
path: mmsource-2.0 path: mmsource-2.0
submodules: recursive submodules: recursive

View file

@ -33,9 +33,9 @@ const unsigned char *pPatchSignature = (unsigned char *)"\x0F\x86\xAF\x2A\x2A\x2
const char *pPatchPattern = "xxx???xxxxxx"; const char *pPatchPattern = "xxx???xxxxxx";
int PatchLen = 6; int PatchLen = 6;
#elif __linux__ #elif __linux__
const unsigned char * pPatchSignature = (unsigned char *)"\x0F\x87\x2A\x2A\x2A\x2A\xF3\x0F\x10\x25\x2A\x2A\x2A\x2A\xF3\x0F\x11\xA5\x2A\x2A\x2A\x2A\x48\x89\xDE"; const unsigned char * pPatchSignature = (unsigned char *)"\x76\x2A\xF3\x0F\x51\xC0\xF3\x0F\x7E\xDB\x49\x8B\x06";
const char* pPatchPattern = "xx????xxxx????xxxx????xxx"; const char* pPatchPattern = "x?xxxxxxxxxxx";
int PatchLen = 6; int PatchLen = 1;
#endif #endif
// From https://git.botox.bz/CSSZombieEscape/sm-ext-PhysHooks // From https://git.botox.bz/CSSZombieEscape/sm-ext-PhysHooks
@ -119,7 +119,7 @@ bool MovementUnlocker::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxl
*(unsigned char*)(pPatchAddress + i) = ((unsigned char*)patchBytes[i])[0]; *(unsigned char*)(pPatchAddress + i) = ((unsigned char*)patchBytes[i])[0];
#elif __linux__ #elif __linux__
for (int i = 0; i < PatchLen; i++) for (int i = 0; i < PatchLen; i++)
*(unsigned char*)(pPatchAddress + i) = ((unsigned char*)"\x90")[0]; *(unsigned char*)(pPatchAddress + i) = ((unsigned char*)"\xEB")[0];
#endif #endif
SourceHook::SetMemAccess((void*)pPatchAddress, PatchLen, SH_MEM_READ | SH_MEM_EXEC); SourceHook::SetMemAccess((void*)pPatchAddress, PatchLen, SH_MEM_READ | SH_MEM_EXEC);
@ -154,7 +154,7 @@ const char *MovementUnlocker::GetLicense()
const char *MovementUnlocker::GetVersion() const char *MovementUnlocker::GetVersion()
{ {
return "1.12"; return "1.13";
} }
const char *MovementUnlocker::GetDate() const char *MovementUnlocker::GetDate()