diff --git a/Source/RSP/Cpu.c b/Source/RSP/Cpu.c index d9b221355..ea34c8318 100644 --- a/Source/RSP/Cpu.c +++ b/Source/RSP/Cpu.c @@ -27,7 +27,7 @@ #include #include #include -#include "RSP.h" +#include "Rsp.h" #include "Cpu.h" #include "RSP registers.h" #include "RSP Command.h" diff --git a/Source/RSP/Interpreter CPU.c b/Source/RSP/Interpreter CPU.c index 0c1a2aff5..ff928cf3e 100644 --- a/Source/RSP/Interpreter CPU.c +++ b/Source/RSP/Interpreter CPU.c @@ -28,7 +28,7 @@ #include #include #include "breakpoint.h" -#include "RSP.h" +#include "Rsp.h" #include "Cpu.h" #include "Interpreter Ops.h" #include "Interpreter CPU.h" diff --git a/Source/RSP/Interpreter Ops.c b/Source/RSP/Interpreter Ops.c index fc6ad1dd8..f56dfecc2 100644 --- a/Source/RSP/Interpreter Ops.c +++ b/Source/RSP/Interpreter Ops.c @@ -27,7 +27,7 @@ #include #include #include -#include "RSP.h" +#include "Rsp.h" #include "CPU.h" #include "RSP Command.h" #include "RSP Registers.h" diff --git a/Source/RSP/Mmx.c b/Source/RSP/Mmx.c index 8176bd7e7..94a8bf6ea 100644 --- a/Source/RSP/Mmx.c +++ b/Source/RSP/Mmx.c @@ -26,7 +26,7 @@ #include #include -#include "rsp.h" +#include "Rsp.h" #include "x86.h" #include "memory.h" #include "RSP registers.h" diff --git a/Source/RSP/RSP Command.c b/Source/RSP/RSP Command.c index 109b91322..dc8e03eb3 100644 --- a/Source/RSP/RSP Command.c +++ b/Source/RSP/RSP Command.c @@ -29,7 +29,7 @@ #include #include "opcode.h" -#include "RSP.h" +#include "Rsp.h" #include "CPU.h" #include "RSP Registers.h" #include "RSP Command.h" diff --git a/Source/RSP/RSP Register.c b/Source/RSP/RSP Register.c index 34e3b7fc4..6dcaf0294 100644 --- a/Source/RSP/RSP Register.c +++ b/Source/RSP/RSP Register.c @@ -27,7 +27,7 @@ #include #include #include -#include "rsp.h" +#include "Rsp.h" #include "types.h" #define GeneralPurpose 1 diff --git a/Source/RSP/RSP Registers.h b/Source/RSP/RSP Registers.h index 5e87a2e9f..0c5a91cac 100644 --- a/Source/RSP/RSP Registers.h +++ b/Source/RSP/RSP Registers.h @@ -24,7 +24,7 @@ * */ -#include "types.h" +#include "Types.h" #define SP_STATUS_HALT 0x001 /* Bit 0: halt */ #define SP_STATUS_BROKE 0x002 /* Bit 1: broke */ diff --git a/Source/RSP/Recompiler Analysis.c b/Source/RSP/Recompiler Analysis.c index 6b5c7781e..1e9051870 100644 --- a/Source/RSP/Recompiler Analysis.c +++ b/Source/RSP/Recompiler Analysis.c @@ -25,7 +25,7 @@ */ #include -#include "rsp.h" +#include "Rsp.h" #include "CPU.h" #include "Interpreter CPU.h" #include "Recompiler CPU.h" diff --git a/Source/RSP/Recompiler CPU.c b/Source/RSP/Recompiler CPU.c index 39e4f95c8..081699df5 100644 --- a/Source/RSP/Recompiler CPU.c +++ b/Source/RSP/Recompiler CPU.c @@ -28,7 +28,7 @@ #include #include #include -#include "RSP.h" +#include "Rsp.h" #include "Cpu.h" #include "Interpreter CPU.h" #include "Recompiler CPU.h" diff --git a/Source/RSP/Recompiler Ops.c b/Source/RSP/Recompiler Ops.c index c7b7db35b..e7d3aa2c2 100644 --- a/Source/RSP/Recompiler Ops.c +++ b/Source/RSP/Recompiler Ops.c @@ -26,7 +26,7 @@ #include #include -#include "RSP.h" +#include "Rsp.h" #include "CPU.h" #include "Interpreter CPU.h" #include "Interpreter Ops.h" diff --git a/Source/RSP/Recompiler Sections.c b/Source/RSP/Recompiler Sections.c index 4459ccf1a..ad18cc310 100644 --- a/Source/RSP/Recompiler Sections.c +++ b/Source/RSP/Recompiler Sections.c @@ -26,7 +26,7 @@ #include #include -#include "RSP.h" +#include "Rsp.h" #include "CPU.h" #include "Recompiler CPU.h" #include "RSP Command.h" diff --git a/Source/RSP/Rsp.h b/Source/RSP/Rsp.h index f63083637..78cc73b00 100644 --- a/Source/RSP/Rsp.h +++ b/Source/RSP/Rsp.h @@ -64,7 +64,7 @@ typedef struct { } PLUGIN_INFO; typedef struct { - HINSTANCE hInst; + void * hInst; int MemoryBswaped; /* If this is set to TRUE, then the memory has been pre bswap on a dword (32 bits) boundry */ uint8_t * RDRAM; @@ -102,19 +102,19 @@ typedef struct { typedef struct { /* Menu */ /* Items should have an ID between 5001 and 5100 */ - HMENU hRSPMenu; + void * hRSPMenu; void (*ProcessMenuItem) ( int ID ); /* Break Points */ int UseBPoints; char BPPanelName[20]; void (*Add_BPoint) ( void ); - void (*CreateBPPanel) ( HWND hDlg, RECT rcBox ); + void (*CreateBPPanel) (void * hDlg, RECT rcBox); void (*HideBPPanel) ( void ); void (*PaintBPPanel) ( PAINTSTRUCT ps ); void (*ShowBPPanel) ( void ); - void (*RefreshBpoints) ( HWND hList ); - void (*RemoveBpoint) ( HWND hList, int index ); + void (*RefreshBpoints)(void * hList); + void (*RemoveBpoint) (void * hList, int index); void (*RemoveAllBpoint) ( void ); /* RSP command Window */ @@ -133,30 +133,30 @@ typedef struct { } DEBUG_INFO; EXPORT void CloseDLL(void); -EXPORT void DllAbout(HWND hParent); -EXPORT DWORD DoRspCycles(DWORD Cycles); +EXPORT void DllAbout(void * hParent); +EXPORT uint32_t DoRspCycles(uint32_t Cycles); EXPORT void GetDllInfo(PLUGIN_INFO * PluginInfo); EXPORT void GetRspDebugInfo(RSPDEBUG_INFO * DebugInfo); -EXPORT void InitiateRSP(RSP_INFO Rsp_Info, DWORD * CycleCount); +EXPORT void InitiateRSP(RSP_INFO Rsp_Info, uint32_t * CycleCount); EXPORT void InitiateRSPDebugger(DEBUG_INFO Debug_Info); EXPORT void RomOpen(void); EXPORT void RomClosed(void); -EXPORT void DllConfig(HWND hWnd); -EXPORT void EnableDebugging(BOOL Enabled); +EXPORT void DllConfig(void * hWnd); +EXPORT void EnableDebugging(int Enabled); EXPORT void PluginLoaded(void); -DWORD AsciiToHex (char * HexValue); +uint32_t AsciiToHex(char * HexValue); void DisplayError (char * Message, ...); -int GetStoredWinPos( char * WinName, DWORD * X, DWORD * Y ); +int GetStoredWinPos(char * WinName, uint32_t * X, uint32_t * Y); #define InterpreterCPU 0 #define RecompilerCPU 1 extern int DebuggingEnabled, Profiling, IndvidualBlock, ShowErrors, BreakOnStart, LogRDP, LogX86Code; -extern DWORD CPUCore; +extern uint32_t CPUCore; extern DEBUG_INFO DebugInfo; extern RSP_INFO RSPInfo; -extern HINSTANCE hinstDLL; +extern void * hinstDLL; #if defined(__cplusplus) } diff --git a/Source/RSP/Sse.c b/Source/RSP/Sse.c index c6ad08a5a..898fcacf6 100644 --- a/Source/RSP/Sse.c +++ b/Source/RSP/Sse.c @@ -26,7 +26,7 @@ #include #include -#include "rsp.h" +#include "Rsp.h" #include "x86.h" #include "memory.h" #include "RSP registers.h" diff --git a/Source/RSP/X86.c b/Source/RSP/X86.c index b9227bd24..a83097539 100644 --- a/Source/RSP/X86.c +++ b/Source/RSP/X86.c @@ -26,7 +26,7 @@ #include #include -#include "rsp.h" +#include "Rsp.h" #include "x86.h" #include "memory.h" #include "RSP registers.h" diff --git a/Source/RSP/breakpoint.c b/Source/RSP/breakpoint.c index f0e9fc61e..ec9793662 100644 --- a/Source/RSP/breakpoint.c +++ b/Source/RSP/breakpoint.c @@ -26,7 +26,7 @@ #include #include -#include "rsp.h" +#include "Rsp.h" #include "CPU.h" #include "breakpoint.h" diff --git a/Source/RSP/dma.c b/Source/RSP/dma.c index 33523364a..7bdd05e73 100644 --- a/Source/RSP/dma.c +++ b/Source/RSP/dma.c @@ -26,7 +26,7 @@ #include #include -#include "RSP.h" +#include "Rsp.h" #include "RSP Registers.h" #include "memory.h" diff --git a/Source/RSP/memory.c b/Source/RSP/memory.c index c96901b49..987af3043 100644 --- a/Source/RSP/memory.c +++ b/Source/RSP/memory.c @@ -27,7 +27,7 @@ enum { MaxMaps = 32 }; #include -#include "rsp.h" +#include "Rsp.h" #include "RSP Registers.h" DWORD NoOfMaps, MapsCRC[MaxMaps], Table; diff --git a/Source/RSP/memory.h b/Source/RSP/memory.h index 8a31abed2..497557a41 100644 --- a/Source/RSP/memory.h +++ b/Source/RSP/memory.h @@ -24,16 +24,15 @@ * */ -#include -#include "types.h" +#include "Types.h" int AllocateMemory ( void ); void FreeMemory ( void ); -void SetJumpTable ( DWORD End ); +void SetJumpTable (uint32_t End); -extern BYTE * RecompCode, * RecompCodeSecondary, * RecompPos; +extern uint8_t * RecompCode, * RecompCodeSecondary, * RecompPos; extern void ** JumpTable; -extern DWORD Table; +extern uint32_t Table; void RSP_LB_DMEM ( uint32_t Addr, uint8_t * Value ); void RSP_LBV_DMEM ( uint32_t Addr, int vect, int element );