From 40780c761972a5592e0f65bb859e9aca941dd0ec Mon Sep 17 00:00:00 2001 From: oddMLan Date: Wed, 28 May 2025 00:25:18 -0700 Subject: [PATCH] Make Rom browser menu callbacks optional This prevents any possible linking errors for not defining them in your plugin --- Source/Project64-plugin-spec/Video.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Project64-plugin-spec/Video.h b/Source/Project64-plugin-spec/Video.h index f525c789b..8de80b7b8 100644 --- a/Source/Project64-plugin-spec/Video.h +++ b/Source/Project64-plugin-spec/Video.h @@ -138,8 +138,8 @@ hParent - handle to the parent window HEADER - pointer to the ROM header Output: none */ -EXPORT void(CALL * OnRomBrowserMenuItem)(int32_t MenuID, void * hParent, uint8_t * HEADER); -EXPORT void *(CALL * GetRomBrowserMenu)(void); // Items should have an ID between 4101 and 4200 +extern void (CALL * OnRomBrowserMenuItem)(int32_t MenuID, void * hParent, uint8_t * HEADER); +extern void * (CALL * GetRomBrowserMenu)(void); // Items should have an ID between 4101 and 4200 /* Function: ProcessDList