summarylogtreecommitdiffstats
path: root/ceserver.patch
blob: ce10529434f97705f6d18a3b1e3b4ce477b2433f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff -ura --color "cheat-engine-7.5/Cheat Engine/ceserver/api.c" "cheat-engine-7.5-new/Cheat Engine/ceserver/api.c"
--- "cheat-engine-7.5/Cheat Engine/ceserver/api.c"	2023-02-23 14:52:23.000000000 -0600
+++ "cheat-engine-7.5-new/Cheat Engine/ceserver/api.c"	2024-09-09 03:58:50.868238356 -0500
@@ -2273,8 +2273,8 @@
           uintptr_t DR0,DR1,DR2,DR3,DR7, IP, SP;
           regDR6 DR6;
 #if defined __i386__
-          IP=safe_ptrace(PTRACE_PEEKUSER, p->debuggedThreadEvent.threadid, offsetof(struct user, regs.eip), 0);
-          SP=safe_ptrace(PTRACE_PEEKUSER, p->debuggedThreadEvent.threadid, offsetof(struct user, regs.esp), 0);
+          IP=safe_ptrace(PTRACE_PEEKUSER, p->debuggedThreadEvent.threadid, (void*)offsetof(struct user, regs.eip), 0);
+          SP=safe_ptrace(PTRACE_PEEKUSER, p->debuggedThreadEvent.threadid, (void*)offsetof(struct user, regs.esp), 0);
 #else
           IP=safe_ptrace(PTRACE_PEEKUSER, p->debuggedThreadEvent.threadid, (void*)offsetof(struct user, regs.rip), 0);
           SP=safe_ptrace(PTRACE_PEEKUSER, p->debuggedThreadEvent.threadid, (void*)offsetof(struct user, regs.rsp), 0);
diff -ura --color "cheat-engine-7.5/Cheat Engine/ceserver/ceservertest.c" "cheat-engine-7.5-new/Cheat Engine/ceserver/ceservertest.c"
--- "cheat-engine-7.5/Cheat Engine/ceserver/ceservertest.c"	2023-02-23 14:52:23.000000000 -0600
+++ "cheat-engine-7.5-new/Cheat Engine/ceserver/ceservertest.c"	2024-09-09 03:57:51.731644915 -0500
@@ -476,7 +476,7 @@
       {
         debug_log("going to set breakpoint\n");
 
-        i=cenet_setBreakpoint(fd, pHandle, -1, 0x00ce0000, 3, 4,0);
+        i=cenet_setBreakpoint(fd, pHandle, -1, (void *) 0x00ce0000, 3, 4,0);
         //cenet_setBreakpoint(fd, pHandle, -1, 0x85e4, 0, 1,2);
         //cenet_setBreakpoint(fd, pHandle, -1, 0x85e4, 0, 1,3);
        // cenet_setBreakpoint(fd, pHandle, -1, 0x85e4, 0, 1,4);
diff -ura --color "cheat-engine-7.5/Cheat Engine/ceserver/extension/server.c" "cheat-engine-7.5-new/Cheat Engine/ceserver/extension/server.c"
--- "cheat-engine-7.5/Cheat Engine/ceserver/extension/server.c"	2023-02-23 14:52:23.000000000 -0600
+++ "cheat-engine-7.5-new/Cheat Engine/ceserver/extension/server.c"	2024-09-09 03:58:15.958272891 -0500
@@ -335,7 +335,7 @@
 
       if (recvall(currentsocket, &params, sizeof(params),0)>0)
       {
-        char *modulepath[params.modulepathlength+1];
+        char modulepath[params.modulepathlength+1];
         if (recvall(currentsocket, modulepath, params.modulepathlength, 0)>0)
         {
           typedef void* (*_dlopen)(const char *filename, int flags);