Raised This Month: $ Target: $400
 0% 

[FM] forward_return


  
 
 
Thread Tools Display Modes
Author Message
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 01-23-2007 , 06:24   Re: [FM] forward_return
#1

It's how metamod works.

Override: Don't actually block the target function, but use your return value instead of the one from the target function.
Supercede: Block the target function and use my return value.

Overriding a function when the function's only purpose is to return a value (getgamedescription) would act identically to superceding it from your point of view.

Unless I'm mis-understanding you...

edit: Just reviewed the module source...

The FMRES_OVERRIDE / FMRES_SUPERCEDE appears as though it's working for all the module is concerned. I think this would be something with how Metamod is handling it. Although there is no point to using override instead of supercede in either yours or avalanches case. In fact, I can't honestly think of an instance where override would be preferable to use.

As for avalanche's bug, that is due to a long-standing bug with non-string forward_return values. I have it fixed locally and will commit to svn as soon as I'm done testing some other stuff.
__________________
fyren sucks

Last edited by sawce the snail; 01-23-2007 at 08:20.
sawce is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode