Update Rsp.h

Fix multi line comments to be single line, fix some typos, abbreviations, and capitalization, and fix some punctuation
This commit is contained in:
Derek "Turtle" Roe 2021-03-19 01:13:56 -05:00
parent 8efe8cc800
commit fcc45c4f09
1 changed files with 14 additions and 17 deletions
Source/RSP

View File

@ -15,7 +15,7 @@ extern "C" {
#define CALL #define CALL
#endif #endif
/************ Profiling **************/ // Profiling
#define Default_ProfilingOn FALSE #define Default_ProfilingOn FALSE
#define Default_IndvidualBlock FALSE #define Default_IndvidualBlock FALSE
#define Default_ShowErrors FALSE #define Default_ShowErrors FALSE
@ -27,21 +27,18 @@ extern "C" {
#define PLUGIN_TYPE_CONTROLLER 4 #define PLUGIN_TYPE_CONTROLLER 4
typedef struct { typedef struct {
uint16_t Version; /* Should be set to 0x0101 */ uint16_t Version; // Should be set to 0x0101
uint16_t Type; /* Set to PLUGIN_TYPE_RSP */ uint16_t Type; // Set to PLUGIN_TYPE_RSP
char Name[100]; /* Name of the DLL */ char Name[100]; // Name of the DLL
/* If DLL supports memory these memory options then set them to TRUE or FALSE // If DLL supports memory these memory options then set them to TRUE or FALSE if it does not support it
if it does not support it */ int NormalMemory; // A normal BYTE array
int NormalMemory; /* a normal BYTE array */ int MemoryBswaped; // A normal BYTE array where the memory has been pre-bswap'd on a DWORD (32-bit) boundary
int MemoryBswaped; /* a normal BYTE array where the memory has been pre
bswap on a dword (32 bits) boundry */
} PLUGIN_INFO; } PLUGIN_INFO;
typedef struct { typedef struct {
void * 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'd on a DWORD (32-bit) boundary
bswap on a dword (32 bits) boundry */
uint8_t * HEADER; uint8_t * HEADER;
uint8_t * RDRAM; uint8_t * RDRAM;
uint8_t * DMEM; uint8_t * DMEM;
@ -77,7 +74,7 @@ typedef struct {
typedef struct { typedef struct {
long left, top, right, bottom; long left, top, right, bottom;
} rectangle; /* <windows.h> equivalent: RECT */ } rectangle; // <windows.h> equivalent: RECT
typedef struct { typedef struct {
void * hdc; void * hdc;
Boolean fErase; Boolean fErase;
@ -85,15 +82,15 @@ typedef struct {
Boolean fRestore; Boolean fRestore;
Boolean fIncUpdate; Boolean fIncUpdate;
uint8_t rgbReserved[32]; uint8_t rgbReserved[32];
} window_paint; /* <windows.h> equivalent: PAINTSTRUCT */ } window_paint; // <windows.h> equivalent: PAINTSTRUCT
typedef struct { typedef struct {
/* Menu */ // Menu
/* Items should have an ID between 5001 and 5100 */ // Items should have an ID between 5001 and 5100
void * hRSPMenu; void * hRSPMenu;
void (*ProcessMenuItem) ( int ID ); void (*ProcessMenuItem) ( int ID );
/* Break Points */ // Breakpoints
int UseBPoints; int UseBPoints;
char BPPanelName[20]; char BPPanelName[20];
void (*Add_BPoint) ( void ); void (*Add_BPoint) ( void );
@ -105,7 +102,7 @@ typedef struct {
void (*RemoveBpoint) (void * hList, int index); void (*RemoveBpoint) (void * hList, int index);
void (*RemoveAllBpoint) ( void ); void (*RemoveAllBpoint) ( void );
/* RSP command Window */ // RSP command window
void (*Enter_RSP_Commands_Window) ( void ); void (*Enter_RSP_Commands_Window) ( void );
} RSPDEBUG_INFO; } RSPDEBUG_INFO;