switched to cpp

This commit is contained in:
2023-10-23 12:19:51 +02:00
parent 1ee58a04e4
commit 6c6332bbfb
5 changed files with 61 additions and 54 deletions

21
src/client/main.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include "memory.hpp"
#include <stdint.h>
int main() {
if (!open_device())
return -1;
int pid = get_pid("nsnake");
if (!open_process(pid))
return -1;
uintptr_t addr = get_module("nsnake");
printf("module : 0x%lx\n", addr);
WPM<int>(addr + 0x1d71510, 1337);
int out = RPM<int>(addr + 0x1d71510);
printf("Value from RPM: %d\n", out);
close_device();
return 0;
}