Update MovementUnlocker.cpp

This commit is contained in:
bnt0p 2025-09-18 12:04:10 -03:00
parent 00c8e16452
commit dcd8cd6c45

View file

@ -15,7 +15,6 @@
* *
* You should have received a copy of the GNU General Public License along with * You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>. * this program. If not, see <http://www.gnu.org/licenses/>.
*
*/ */
#include <stdio.h> #include <stdio.h>
@ -31,11 +30,11 @@ MovementUnlocker g_MovementUnlocker;
#ifdef _WIN32 #ifdef _WIN32
const unsigned char *pPatchSignature = (unsigned char *)"\x0F\x86\xB8\x2A\x2A\x2A\xF3\x0F\x58\xD4"; const unsigned char *pPatchSignature = (unsigned char *)"\x0F\x86\xB8\x2A\x2A\x2A\xF3\x0F\x58\xD4";
const char *pPatchPattern = "x?xxxx?xxxxxxx"; const char *pPatchPattern = "xxx???xxxx";
int PatchLen = 1; int PatchLen = 1;
#elif __linux__ #elif __linux__
const unsigned char * pPatchSignature = (unsigned char *)"\x0F\x87\x2A\x2A\x2A\x2A\xF3\x0F\x10\x3D\x2A\x2A\x2A\x2A\xF3\x0F\x11\xBD"; const unsigned char * pPatchSignature = (unsigned char *)"\x0F\x87\x2A\x2A\x2A\x2A\xF3\x0F\x10\x3D\x2A\x2A\x2A\x2A\xF3\x0F\x11\xBD";
const char* pPatchPattern = "xx????xxxx?xxx"; const char* pPatchPattern = "xx????xxxx????xxxx";
int PatchLen = 6; int PatchLen = 6;
#endif #endif