diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-30 00:57:45 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-30 23:37:45 +0100 |
commit | 165aa899bc9d1ea0bebb7b08351582dfeff8bbde (patch) | |
tree | 4f966f7d4526224138b8c38bb57dcddae26029aa /src/autojump.c | |
parent | dacb42286f41065c495b685a73ac6885dba3dcd8 (diff) |
Add basic Portal crosshair colour customisation
Currently only works in 3420 and 5135 and uses hardcoded offsets with a
byte pattern sanity check. Future work includes making it more widely
compatible, and also doing the crazy thing I wanted to do but gave up on
wherein the actual textures and stuff get patched in memory to sync up
all the colours.
Oh also, a couple of vtables were erroneously made executable, so I went
ahead and fixed that while I was at it.
Diffstat (limited to 'src/autojump.c')
-rw-r--r-- | src/autojump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autojump.c b/src/autojump.c index 590b916..a8064da 100644 --- a/src/autojump.c +++ b/src/autojump.c @@ -62,7 +62,7 @@ static bool VCALLCONV hookcl(void *this) { static bool unprot(void *gm) { void **vtable = *(void ***)gm; bool ret = os_mprot(vtable + vtidx_CheckJumpButton, sizeof(void *), - PAGE_EXECUTE_READWRITE); + PAGE_READWRITE); if (!ret) con_warn("autojump: couldn't make memory writable\n"); return ret; } |