Skip to content

Commit d6815c1

Browse files
Merge pull request #271 from MiranDMC/master
Fix menuDrawingEvent for classic VC.
2 parents 62fd0ef + 28c2fa8 commit d6815c1

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

shared/Events.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace plugin {
2222
class Events {
2323
public:
2424
#ifdef GTASA
25-
static inline CdeclEvent <AddressList<0x53C6DB, H_CALL>, PRIORITY_AFTER, ArgPickNone, void()> restartGameEvent;
25+
static inline CdeclEvent <AddressList<0x53C6DB, H_CALL>, PRIORITY_AFTER, ArgPickNone, void()> restartGameEvent;
2626

2727
static inline CdeclEvent <AddressList<0x53E293, H_CALL>, PRIORITY_AFTER, ArgPickNone, void()> drawingEvent;
2828
static inline CdeclEvent <AddressList<0x53E4FF, H_CALL>, PRIORITY_AFTER, ArgPickNone, void()> drawHudEvent;
@@ -83,6 +83,12 @@ namespace plugin {
8383
0x5BA340, H_CALL,
8484
0x5D4FD7, H_CALL>, PRIORITY_AFTER, ArgPickNone, void()> initScriptsEvent;
8585
static inline CdeclEvent <AddressList<0x53C077, H_CALL>, PRIORITY_AFTER, ArgPickNone, void()> processScriptsEvent;
86+
87+
static inline ThiscallEvent <AddressList<
88+
0x53E82D, H_CALL, // before game session
89+
0x53EB8C, H_CALL>, // during game session
90+
PRIORITY_AFTER, ArgPickNone, void(CMenuManager*)> menuDrawingEvent;
91+
8692
static inline CdeclEvent <AddressList<0x53ECA1, H_CALL>, PRIORITY_AFTER, ArgPickNone, bool()> attachRwPluginsEvent;
8793
#endif
8894
#ifdef GTAVC
@@ -232,9 +238,11 @@ namespace plugin {
232238
static inline CdeclEvent <AddressListMulti<0x4A5BB5, GAME_10EN, H_CALL,
233239
0x4A5BD5, GAME_11EN, H_CALL,
234240
0x4A5A85, GAME_STEAM, H_CALL>, PRIORITY_AFTER, ArgPickNone, bool()> attachRwPluginsEvent;
235-
static inline CdeclEvent <AddressListMulti<0x49E3D9, GAME_10EN, H_CALL,
236-
0x49E3FA, GAME_11EN, H_CALL,
237-
0x49E298, GAME_STEAM, H_CALL>, PRIORITY_AFTER, ArgPickNone, void()> menuDrawingEvent;
241+
static inline ThiscallEvent <AddressListMulti<
242+
0x4A5D33, GAME_10EN, H_CALL, // before game session
243+
0x4A612E, GAME_10EN, H_CALL>, // during game session
244+
// TODO: add 11EN and STEAM
245+
PRIORITY_AFTER, ArgPickNone, void(CMenuManager*)> menuDrawingEvent;
238246
#endif
239247
#ifdef GTA3
240248
static inline CdeclEvent <AddressList<0x48C7BE, H_CALL>, PRIORITY_AFTER, ArgPickNone, void()> restartGameEvent;

0 commit comments

Comments
 (0)