|
g_main.cThis 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. |