|
g_syscalls.c/asm
The asm file is used when compiling in Linux, the c file
is used when compiling in Windows. This contains traps into the engine.
There is no actual endpoint of the trap, an exit from the engine to
another part of the code simply appears. The easiest way to follow the
traps is to find an entry point into the engine (from existing calls),
and find similar exit points in the code. We used "grep" to do this.
Most of the traps pass in text, eg "spectate", so find where the line of
text "spectate" is used elsewhere, and bingo! You have mapped the
wormhole, or engine trap.
|