From 9a0d8730fa977f666b5c12e4c5901e7d0391e245 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 29 Jul 2023 14:32:06 +0100 Subject: Make various preparations for upcoming features A lot of this is random WIP from a while back, at least a month ago, and is being committed now to get it out of the way so that other patches can be brought in and integrated against it without causing headaches. Also rolled into this commit is a way to distinguish plugin_unload from exiting the game. This is required for another soon-to-be-integrated feature to avoid crashing on exit, and could in theory also be used to speed up unloading on exit in future. While we're at it, this also avoids the need to linearly scan through the plugin list to do the old branch unloading fix, because we can. Rough summary of the other smaller stuff I can remember doing: - Rework bitbuf a bit - Add some cryptographic nonsense in ac.c (not final at all) - Introduce the first couple of "chunklets" libraries as a sort-of subproject of this one - Tidy up random small bits and bobs - Add source for a small keypair generation tool - Rework democustom to be very marginally more useful --- compile.bat | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'compile.bat') diff --git a/compile.bat b/compile.bat index 75ac2fe..9d8a2a3 100644 --- a/compile.bat +++ b/compile.bat @@ -58,11 +58,13 @@ setlocal EnableDelayedExpansion for /f "tokens=2" %%f in ('findstr /B /C:":+ " "%~nx0"') do set src=!src! src/%%f setlocal DisableDelayedExpansion :+ ac.c -:+ bind.c -:+ crypto.c :+ alias.c :+ autojump.c +:+ bind.c :+ con_.c +:+ chunklets/fastspin.c +:+ chunklets/msg.c +:+ crypto.c :+ democustom.c :+ demorec.c :+ engineapi.c @@ -110,7 +112,7 @@ if "%dbg%"=="1" ( ) %CC% -shared -flto %ldflags% -Wl,/IMPLIB:.build/sst.lib,/Brepro,/nodefaultlib ^ -L.build %clibs% -lkernel32 -luser32 -ladvapi32 -lshlwapi -ld3d9 -ldsound ^ --ltier0 -lvstdlib -o sst.dll%objs% .build/dll.res || exit /b +-ltier0 -lvstdlib -lntdll -o sst.dll%objs% .build/dll.res || exit /b :: get rid of another useless file (can we just not create this???) del .build\sst.lib -- cgit v1.2.3