dep: Update RAInterface

This commit is contained in:
Connor McLaughlin
2022-08-22 19:33:00 +10:00
parent ce5ff4186c
commit 43869bf74c
3 changed files with 51 additions and 2 deletions

View File

@ -72,6 +72,21 @@ extern HMENU RA_CreatePopupMenu(void);
#define IDM_RA_MENUSTART 1700
#define IDM_RA_MENUEND 1739
typedef struct RA_MenuItem
{
LPCWSTR sLabel;
LPARAM nID;
int bChecked;
} RA_MenuItem;
/**
* Gets items for building a popup menu.
*
* @param pItems Pre-allocated array to populate [should contain space for at least 32 items]
* @return Number of items populated in the items array
*/
extern int RA_GetPopupMenuItems(RA_MenuItem *pItems);
/**
* Called when a menu item in the popup menu is selected.
*
@ -127,6 +142,9 @@ typedef void (RA_WriteMemoryFunc)(unsigned int nAddress, unsigned char nValue);
*/
extern void RA_InstallMemoryBank(int nBankID, RA_ReadMemoryFunc pReader, RA_WriteMemoryFunc pWriter, int nBankSize);
typedef unsigned int (RA_ReadMemoryBlockFunc)(unsigned int nAddress, unsigned char* pBuffer, unsigned int nBytes);
extern void RA_InstallMemoryBankBlockReader(int nBankID, RA_ReadMemoryBlockFunc pReader);
/**
* Deinitializes and unloads the DLL.
*/