From 9705d5e38bdf4ec72daf480de0830dfde6e33a70 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 18 Feb 2023 15:06:40 +0100 Subject: Preliminary work to get steamwebhelper working --- src/include/custommem.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include/custommem.h') diff --git a/src/include/custommem.h b/src/include/custommem.h index 42f75a89..590fd561 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -38,13 +38,17 @@ uintptr_t getJumpAddress64(uintptr_t addr); #define PROT_DYNAREC 0x80 #define PROT_DYNAREC_R 0x40 -#define PROT_CUSTOM (PROT_DYNAREC | PROT_DYNAREC_R) +#define PROT_MMAP 0x20 +#define PROT_DYN (PROT_DYNAREC | PROT_DYNAREC_R) +#define PROT_CUSTOM (PROT_DYNAREC | PROT_DYNAREC_R | PROT_MMAP) void updateProtection(uintptr_t addr, size_t size, uint32_t prot); void setProtection(uintptr_t addr, size_t size, uint32_t prot); +void setProtection_mmap(uintptr_t addr, size_t size, uint32_t prot); void freeProtection(uintptr_t addr, size_t size); void refreshProtection(uintptr_t addr); uint32_t getProtection(uintptr_t addr); +int getMmapped(uintptr_t addr); void loadProtectionFromMap(); #ifdef DYNAREC void protectDB(uintptr_t addr, size_t size); -- cgit 1.4.1