David Anderson
David Anderson
There's also a build error: ``` /home/runner/work/metamod-source/metamod-source/metamod-source/core/sourcehook/sourcehook.h:1279:5: error: use of undeclared identifier 'vsnprintf' vsnprintf(buf, sizeof(buf), fmt, ap); ``` I'm not sure why this didn't get pulled in as part of...
This feature was dropped a while ago. I can look into re-adding it.
My main motivation here is that it's better than having a "main.sp" that includes a bunch of source files. Also, many modern languages treat same-dir files as automatically part of...
This is going to be harder than I thought. The old compiler would concatenate all the source files together, which meant they had to be correctly ordered on the command...
Most likely the real answer is to finally write a replacement for `#include`, which multi-source projects would be obliged to switch to.
Spitballing a bit, I can see this going in 3 directions. (1) Runtime linking. Compile every file into its own .smx - including stuff like `sourcemod.inc`. The compiler would put...
static_assert() that your intention is true and move on, I say.
why spam the address space when you can read /proc/maps or VirtualQueryEx? why do you even need to allocate memory close by? for functions that are < N bytes? (I'm...
and because of the [rip+X] it's non-trivial(ish) to relocate the instruction into the thunk? if that kind of thing will be common in the target binary - that's a pretty...
also, curious, why does a detouring library need iostream at all?