Raised This Month: $51 Target: $400
 12% 

Catching custom menus


Post New Thread Reply   
 
Thread Tools Display Modes
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 12-03-2017 , 20:15   Re: Catching custom menus
Reply With Quote #11

Quote:
You have to use orpheu
It's not the first time you've said that.

Quote:
Or you can do something else, make a define like #define USING_REGAMEDLL. Then when you hook ShowMenu check if USING_REGAMEDLL is defined and hook with regamedll, else hook with orpheu. It's minimal code and it makes sure it will work on both dlls.
Just use the ReAPI native is_regamedll()

Last edited by CrazY.; 12-03-2017 at 20:20.
CrazY. is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-03-2017 , 21:37   Re: Catching custom menus
Reply With Quote #12

Quote:
Originally Posted by CrazY. View Post
Just use the ReAPI native is_regamedll()
That will fail if ReAPI isn't loaded. set_module_filter() is the right way to go.
klippy is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-04-2017 , 02:06   Re: Catching custom menus
Reply With Quote #13

Quote:
Originally Posted by CrazY. View Post
It's not the first time you've said that.



Just use the ReAPI native is_regamedll()
I said it since it's correct. Do it without orpheu on default gamedll and we can talk.
__________________
HamletEagle is offline
Reply



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 07:24.


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