View Single Post
Old 07-11-2006, 08:47 PM   #12
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
you can't.

for a syscall to return an it, the engine must intercept the syscall like this:

Code:
case COPY_SPECIFIC_MODEL_G2_WHATEVER:
	return theEngineCall(...............);
for a void syscall it looks like this:

Code:
case COPY_SPECIFIC_MODEL_G2_WHATEVER:
	theEngineCall(...............);
	return 0;
so even if you changed the cg_syscall.c function to return int, it would always be giving you a 0.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,