From d97c7cbe1ac0a5d1c7172380384d719aeb5f75f7 Mon Sep 17 00:00:00 2001 From: zilmar Date: Fri, 6 Jun 2025 17:54:31 +0930 Subject: [PATCH] Add OnRomBrowserMenuItem, GetRomBrowserMenu, SoftReset to the gfx spec --- Source/Project64-plugin-spec/Video.h | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Source/Project64-plugin-spec/Video.h b/Source/Project64-plugin-spec/Video.h index 38fec416b..fee671c91 100644 --- a/Source/Project64-plugin-spec/Video.h +++ b/Source/Project64-plugin-spec/Video.h @@ -130,6 +130,26 @@ Output: none */ EXPORT void CALL MoveScreen(int xpos, int ypos); +/* +Function: OnRomBrowserMenuItem +Purpose: Callback when the ROM Browser menu supplied by the +caller is invoked +Input: MenuID - ID of the selected menu item +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); + +/* +Function: GetRomBrowserMenu +Purpose: Called when the ROM Browser right clicks on a game to be able to show a menu + Items should have an ID between 4101 and 4200 +Input: none +Output: HMENU - menu to be shown +*/ +EXPORT void * (CALL * GetRomBrowserMenu)(void); + /* Function: ProcessDList Purpose: This function is called when there is a Dlist to be @@ -158,6 +178,15 @@ Output: none */ EXPORT void CALL ShowCFB(void); +/* +Function: SoftReset +Purpose: This function is called to notify the plugin that a +soft reset has occurred. +Input: none +Output: none +*/ +EXPORT void CALL SoftReset(void); + /* Function: UpdateScreen Purpose: This function is called in response to a vsync of the