Skip to content

Commit b5807e2

Browse files
committed
Update patches for 2025-09-23 CS2 update
1 parent ce00eec commit b5807e2

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,12 +29,12 @@
2929
MovementUnlocker g_MovementUnlocker;
3030

3131
#ifdef _WIN32
32-
const unsigned char *pPatchSignature = (unsigned char *)"\x0F\x86\xB8\x2A\x2A\x2A\xF3\x0F\x58\xD4";
32+
const unsigned char *pPatchSignature = (unsigned char *)"\x0F\x86\xB7\x2A\x2A\x2A\xF3\x0F\x58\xD4";
3333
const char *pPatchPattern = "xxx???xxxx";
3434
int PatchLen = 6;
3535
#elif __linux__
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";
37-
const char* pPatchPattern = "xx????xxxx????xxxx";
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\x48\x89\xDE";
37+
const char* pPatchPattern = "xx????xxxx????xxxx????xxx";
3838
int PatchLen = 6;
3939
#endif
4040

@@ -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", "\xB9", "\x00", "\x00", "\x00", "\x90"};
116+
const char* patchBytes[] = {"\xE9", "\xB8", "\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.6";
157+
return "1.7";
158158
}
159159

160160
const char *MovementUnlocker::GetDate()

0 commit comments

Comments
 (0)