Update main.cpp
Fix some typos, fix abbreviations, convert multi line comments into single line comments, add newline, add spacing
This commit is contained in:
parent
e00a90e14e
commit
b42c787ae0
|
@ -15,13 +15,14 @@ BOOL WINAPI DllMain(void * hinst, DWORD /*fdwReason*/, LPVOID /*lpvReserved*/)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/******************************************************************
|
/*
|
||||||
Function: CloseDLL
|
Function: CloseDLL
|
||||||
Purpose: This function is called when the emulator is closing
|
Purpose: This function is called when the emulator is closing
|
||||||
down allowing the dll to de-initialise.
|
down allowing the DLL to de-initialize.
|
||||||
input: none
|
input: none
|
||||||
output: none
|
output: none
|
||||||
*******************************************************************/
|
*/
|
||||||
|
|
||||||
void CloseDLL(void)
|
void CloseDLL(void)
|
||||||
{
|
{
|
||||||
if (g_hle)
|
if (g_hle)
|
||||||
|
@ -31,13 +32,14 @@ void CloseDLL(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/*
|
||||||
Function: DllAbout
|
Function: DllAbout
|
||||||
Purpose: This function is optional function that is provided
|
Purpose: This function is optional function that is provided
|
||||||
to give further information about the DLL.
|
to give further information about the DLL.
|
||||||
input: a handle to the window that calls this function
|
input: a handle to the window that calls this function
|
||||||
output: none
|
output: none
|
||||||
*******************************************************************/
|
*/
|
||||||
|
|
||||||
void DllAbout(void * hParent)
|
void DllAbout(void * hParent)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@ -45,17 +47,18 @@ void DllAbout(void * hParent)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/*
|
||||||
Function: DoRspCycles
|
Function: DoRspCycles
|
||||||
Purpose: This function is to allow the RSP to run in parrel with
|
Purpose: This function is to allow the RSP to run in parallel with
|
||||||
the r4300 switching control back to the r4300 once the
|
the r4300 switching control back to the r4300 once the
|
||||||
function ends.
|
function ends.
|
||||||
input: The number of cylces that is meant to be executed
|
input: The number of cycles that is meant to be executed
|
||||||
output: The number of cycles that was executed. This value can
|
output: The number of cycles that was executed. This value can
|
||||||
be greater than the number of cycles that the RSP
|
be greater than the number of cycles that the RSP
|
||||||
should have performed.
|
should have performed.
|
||||||
(this value is ignored if the RSP is stoped)
|
(this value is ignored if the RSP is stopped)
|
||||||
*******************************************************************/
|
*/
|
||||||
|
|
||||||
uint32_t DoRspCycles(uint32_t Cycles)
|
uint32_t DoRspCycles(uint32_t Cycles)
|
||||||
{
|
{
|
||||||
if (g_hle)
|
if (g_hle)
|
||||||
|
@ -65,38 +68,40 @@ uint32_t DoRspCycles(uint32_t Cycles)
|
||||||
return Cycles;
|
return Cycles;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/*
|
||||||
Function: GetDllInfo
|
Function: GetDllInfo
|
||||||
Purpose: This function allows the emulator to gather information
|
Purpose: This function allows the emulator to gather information
|
||||||
about the dll by filling in the PluginInfo structure.
|
about the DLL by filling in the PluginInfo structure.
|
||||||
input: a pointer to a PLUGIN_INFO stucture that needs to be
|
input: a pointer to a PLUGIN_INFO structure that needs to be
|
||||||
filled by the function. (see def above)
|
filled by the function. (see def above)
|
||||||
output: none
|
output: none
|
||||||
*******************************************************************/
|
*/
|
||||||
|
|
||||||
void GetDllInfo(PLUGIN_INFO * PluginInfo)
|
void GetDllInfo(PLUGIN_INFO * PluginInfo)
|
||||||
{
|
{
|
||||||
PluginInfo->Version = 0x0102;
|
PluginInfo->Version = 0x0102;
|
||||||
PluginInfo->Type = PLUGIN_TYPE_RSP;
|
PluginInfo->Type = PLUGIN_TYPE_RSP;
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
sprintf(PluginInfo->Name, "RSP HLE Debug Plugin %s", VER_FILE_VERSION_STR);
|
sprintf(PluginInfo->Name, "RSP HLE debug plugin %s", VER_FILE_VERSION_STR);
|
||||||
#else
|
#else
|
||||||
sprintf(PluginInfo->Name, "RSP HLE Plugin %s", VER_FILE_VERSION_STR);
|
sprintf(PluginInfo->Name, "RSP HLE plugin %s", VER_FILE_VERSION_STR);
|
||||||
#endif
|
#endif
|
||||||
PluginInfo->NormalMemory = false;
|
PluginInfo->NormalMemory = false;
|
||||||
PluginInfo->MemoryBswaped = true;
|
PluginInfo->MemoryBswaped = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/*
|
||||||
Function: InitiateRSP
|
Function: InitiateRSP
|
||||||
Purpose: This function is called when the DLL is started to give
|
Purpose: This function is called when the DLL is started to give
|
||||||
information from the emulator that the n64 RSP
|
information from the emulator that the N64 RSP
|
||||||
interface needs
|
interface needs
|
||||||
input: Rsp_Info is passed to this function which is defined
|
input: Rsp_Info is passed to this function which is defined
|
||||||
above.
|
above.
|
||||||
CycleCount is the number of cycles between switching
|
CycleCount is the number of cycles between switching
|
||||||
control between teh RSP and r4300i core.
|
control between the RSP and r4300i core.
|
||||||
output: none
|
output: none
|
||||||
*******************************************************************/
|
*/
|
||||||
|
|
||||||
void InitiateRSP(RSP_INFO Rsp_Info, uint32_t * /*CycleCount*/)
|
void InitiateRSP(RSP_INFO Rsp_Info, uint32_t * /*CycleCount*/)
|
||||||
{
|
{
|
||||||
if (g_hle)
|
if (g_hle)
|
||||||
|
@ -107,22 +112,24 @@ void InitiateRSP(RSP_INFO Rsp_Info, uint32_t * /*CycleCount*/)
|
||||||
g_hle = new CHle(Rsp_Info);
|
g_hle = new CHle(Rsp_Info);
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/*
|
||||||
Function: RomOpen
|
Function: RomOpen
|
||||||
Purpose: This function is called when a rom is opened.
|
Purpose: This function is called when a ROM is opened.
|
||||||
input: none
|
input: none
|
||||||
output: none
|
output: none
|
||||||
*******************************************************************/
|
*/
|
||||||
|
|
||||||
void RomOpen(void)
|
void RomOpen(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/*
|
||||||
Function: RomClosed
|
Function: RomClosed
|
||||||
Purpose: This function is called when a rom is closed.
|
Purpose: This function is called when a ROM is closed.
|
||||||
input: none
|
input: none
|
||||||
output: none
|
output: none
|
||||||
*******************************************************************/
|
*/
|
||||||
|
|
||||||
void RomClosed(void)
|
void RomClosed(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue