Skip to content

Commit a2673dd

Browse files
committed
Update patches for 2026-01-21 CS2 update
1 parent 0193cd3 commit a2673dd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

MovementUnlocker.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
MovementUnlocker g_MovementUnlocker;
3030

3131
#ifdef _WIN32
32-
const unsigned char *pPatchSignature = (unsigned char *)"\x0F\x86\xB0\x2A\x2A\x2A\xF3\x0F\x58\xD3";
33-
const char *pPatchPattern = "xxx???xxxx";
32+
const unsigned char *pPatchSignature = (unsigned char *)"\x0F\x86\xAF\x2A\x2A\x2A\x0F\x57\xC0\x0F\x2E\xC2";
33+
const char *pPatchPattern = "xxx???xxxxxx";
3434
int PatchLen = 6;
3535
#elif __linux__
36-
const unsigned char * pPatchSignature = (unsigned char *)"\x0F\x87\x2A\x2A\x2A\x2A\xF3\x0F\x10\x35\x2A\x2A\x2A\x2A\xF3\x0F\x11\xB5\x2A\x2A\x2A\x2A\x4C\x89\xEE";
36+
const unsigned char * pPatchSignature = (unsigned char *)"\x0F\x87\x2A\x2A\x2A\x2A\xF3\x0F\x10\x3D\x2A\x2A\x2A\x2A\xF3\x0F\x11\xBD\x2A\x2A\x2A\x2A\x48\x89\xDE";
3737
const char* pPatchPattern = "xx????xxxx????xxxx????xxx";
3838
int PatchLen = 6;
3939
#endif
@@ -113,7 +113,7 @@ bool MovementUnlocker::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxl
113113
SourceHook::SetMemAccess((void*)pPatchAddress, PatchLen, SH_MEM_READ | SH_MEM_WRITE | SH_MEM_EXEC);
114114

115115
#ifdef _WIN32
116-
const char* patchBytes[] = {"\xE9", "\xB1", "\x00", "\x00", "\x00", "\x90"};
116+
const char* patchBytes[] = {"\xE9", "\xB0", "\x00", "\x00", "\x00", "\x90"};
117117

118118
for (int i = 0; i < PatchLen; i++)
119119
*(unsigned char*)(pPatchAddress + i) = ((unsigned char*)patchBytes[i])[0];
@@ -154,7 +154,7 @@ const char *MovementUnlocker::GetLicense()
154154

155155
const char *MovementUnlocker::GetVersion()
156156
{
157-
return "1.9";
157+
return "1.10";
158158
}
159159

160160
const char *MovementUnlocker::GetDate()

0 commit comments

Comments
 (0)