From 165aa899bc9d1ea0bebb7b08351582dfeff8bbde Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 30 May 2022 00:57:45 +0100 Subject: 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. --- compile.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compile.bat') diff --git a/compile.bat b/compile.bat index c218816..60372a1 100644 --- a/compile.bat +++ b/compile.bat @@ -42,8 +42,8 @@ goto :eof -o .build/mkgamedata.exe src/build/mkgamedata.c src/kv.c || exit /b %HOSTCC% -municode -O2 %warnings% -D_CRT_SECURE_NO_WARNINGS -ladvapi32 ^ -o .build/mkentprops.exe src/build/mkentprops.c src/kv.c || exit /b -.build\codegen.exe src/autojump.c src/con_.c src/demorec.c src/engineapi.c src/ent.c src/extmalloc.c src/fixes.c ^ -src/fov.c src/gamedata.c src/gameinfo.c src/hook.c src/kv.c src/l4dwarp.c src/nosleep.c src/rinput.c src/sst.c src/x86.c || exit /b +.build\codegen.exe src/autojump.c src/con_.c src/demorec.c src/engineapi.c src/ent.c src/extmalloc.c src/fixes.c src/fov.c ^ +src/gamedata.c src/gameinfo.c src/hook.c src/kv.c src/l4dwarp.c src/nosleep.c src/portalcolours.c src/rinput.c src/sst.c src/x86.c || exit /b .build\mkgamedata.exe gamedata/engine.kv gamedata/gamelib.kv gamedata/inputsystem.kv || exit /b .build\mkentprops.exe gamedata/entprops.kv || exit /b llvm-rc /FO .build\dll.res src\dll.rc || exit /b @@ -63,6 +63,7 @@ call :cc src/hook.c || exit /b call :cc src/kv.c || exit /b call :cc src/l4dwarp.c || exit /b call :cc src/nosleep.c || exit /b +call :cc src/portalcolours.c || exit /b call :cc src/rinput.c || exit /b call :cc src/sst.c || exit /b call :cc src/x86.c || exit /b -- cgit v1.2.3