Home
Q3A source
game directory
bg_lib
bg_local
bg_pmove
bg_public
g_active
g_client
g_cmds
g_local
g_main
g_pseudocam
g_svcmds
g_syscalls
q_math
q_shared

g_main.c

This is the entry point from the engine to the server code. The function vmMain is called from within the engine and passes arguments to it. There is no huge reason why one function is called rather than another (other than the switch in place). Simply believe that when things occur, vmMain will be called with appropriate parameters, or you might as well bang your head against a brick wall. We had to add some initialisation to the Init function, very self explanatory however.