|
29 | 29 | MovementUnlocker g_MovementUnlocker; |
30 | 30 |
|
31 | 31 | #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"; |
34 | 34 | int PatchLen = 6; |
35 | 35 | #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"; |
37 | 37 | const char* pPatchPattern = "xx????xxxx????xxxx????xxx"; |
38 | 38 | int PatchLen = 6; |
39 | 39 | #endif |
@@ -113,7 +113,7 @@ bool MovementUnlocker::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxl |
113 | 113 | SourceHook::SetMemAccess((void*)pPatchAddress, PatchLen, SH_MEM_READ | SH_MEM_WRITE | SH_MEM_EXEC); |
114 | 114 |
|
115 | 115 | #ifdef _WIN32 |
116 | | - const char* patchBytes[] = {"\xE9", "\xB1", "\x00", "\x00", "\x00", "\x90"}; |
| 116 | + const char* patchBytes[] = {"\xE9", "\xB0", "\x00", "\x00", "\x00", "\x90"}; |
117 | 117 |
|
118 | 118 | for (int i = 0; i < PatchLen; i++) |
119 | 119 | *(unsigned char*)(pPatchAddress + i) = ((unsigned char*)patchBytes[i])[0]; |
@@ -154,7 +154,7 @@ const char *MovementUnlocker::GetLicense() |
154 | 154 |
|
155 | 155 | const char *MovementUnlocker::GetVersion() |
156 | 156 | { |
157 | | - return "1.9"; |
| 157 | + return "1.10"; |
158 | 158 | } |
159 | 159 |
|
160 | 160 | const char *MovementUnlocker::GetDate() |
|
0 commit comments