[RSP] Replace HINSTANCE/HWND/etc. with void* to match PJ64.

This commit is contained in:
2016-02-11 03:18:00 -05:00
parent 9ed9529cfe
commit 34ae28fdea
1 changed files with 8 additions and 8 deletions

View File

@ -64,7 +64,7 @@ typedef struct {
} PLUGIN_INFO; } PLUGIN_INFO;
typedef struct { typedef struct {
HINSTANCE hInst; void * hInst;
int MemoryBswaped; /* If this is set to TRUE, then the memory has been pre int MemoryBswaped; /* If this is set to TRUE, then the memory has been pre
bswap on a dword (32 bits) boundry */ bswap on a dword (32 bits) boundry */
uint8_t * RDRAM; uint8_t * RDRAM;
@ -102,19 +102,19 @@ typedef struct {
typedef struct { typedef struct {
/* Menu */ /* Menu */
/* Items should have an ID between 5001 and 5100 */ /* Items should have an ID between 5001 and 5100 */
HMENU hRSPMenu; void * hRSPMenu;
void (*ProcessMenuItem) ( int ID ); void (*ProcessMenuItem) ( int ID );
/* Break Points */ /* Break Points */
int UseBPoints; int UseBPoints;
char BPPanelName[20]; char BPPanelName[20];
void (*Add_BPoint) ( void ); void (*Add_BPoint) ( void );
void (*CreateBPPanel) ( HWND hDlg, RECT rcBox ); void (*CreateBPPanel) (void * hDlg, RECT rcBox);
void (*HideBPPanel) ( void ); void (*HideBPPanel) ( void );
void (*PaintBPPanel) ( PAINTSTRUCT ps ); void (*PaintBPPanel) ( PAINTSTRUCT ps );
void (*ShowBPPanel) ( void ); void (*ShowBPPanel) ( void );
void (*RefreshBpoints) ( HWND hList ); void (*RefreshBpoints)(void * hList);
void (*RemoveBpoint) ( HWND hList, int index ); void (*RemoveBpoint) (void * hList, int index);
void (*RemoveAllBpoint) ( void ); void (*RemoveAllBpoint) ( void );
/* RSP command Window */ /* RSP command Window */
@ -133,7 +133,7 @@ typedef struct {
} DEBUG_INFO; } DEBUG_INFO;
EXPORT void CloseDLL(void); EXPORT void CloseDLL(void);
EXPORT void DllAbout(HWND hParent); EXPORT void DllAbout(void * hParent);
EXPORT DWORD DoRspCycles(DWORD Cycles); EXPORT DWORD DoRspCycles(DWORD Cycles);
EXPORT void GetDllInfo(PLUGIN_INFO * PluginInfo); EXPORT void GetDllInfo(PLUGIN_INFO * PluginInfo);
EXPORT void GetRspDebugInfo(RSPDEBUG_INFO * DebugInfo); EXPORT void GetRspDebugInfo(RSPDEBUG_INFO * DebugInfo);
@ -141,7 +141,7 @@ EXPORT void InitiateRSP(RSP_INFO Rsp_Info, DWORD * CycleCount);
EXPORT void InitiateRSPDebugger(DEBUG_INFO Debug_Info); EXPORT void InitiateRSPDebugger(DEBUG_INFO Debug_Info);
EXPORT void RomOpen(void); EXPORT void RomOpen(void);
EXPORT void RomClosed(void); EXPORT void RomClosed(void);
EXPORT void DllConfig(HWND hWnd); EXPORT void DllConfig(void * hWnd);
EXPORT void EnableDebugging(BOOL Enabled); EXPORT void EnableDebugging(BOOL Enabled);
EXPORT void PluginLoaded(void); EXPORT void PluginLoaded(void);
@ -156,7 +156,7 @@ extern int DebuggingEnabled, Profiling, IndvidualBlock, ShowErrors, BreakOnStart
extern DWORD CPUCore; extern DWORD CPUCore;
extern DEBUG_INFO DebugInfo; extern DEBUG_INFO DebugInfo;
extern RSP_INFO RSPInfo; extern RSP_INFO RSPInfo;
extern HINSTANCE hinstDLL; extern void * hinstDLL;
#if defined(__cplusplus) #if defined(__cplusplus)
} }