[RSP] Use the central EXPORT #define for spec funcs.

This commit is contained in:
2016-02-15 15:10:49 -05:00
parent 818f1998e0
commit b349f3c239
1 changed files with 12 additions and 11 deletions

View File

@ -164,7 +164,7 @@ void DisplayError(char* Message, ...)
input: none input: none
output: none output: none
*******************************************************************/ *******************************************************************/
__declspec(dllexport) void CloseDLL (void) EXPORT void CloseDLL(void)
{ {
FreeMemory(); FreeMemory();
} }
@ -176,7 +176,7 @@ __declspec(dllexport) void CloseDLL (void)
input: a handle to the window that calls this function input: a handle to the window that calls this function
output: none output: none
*******************************************************************/ *******************************************************************/
__declspec(dllexport) void DllAbout ( HWND hParent ) EXPORT void DllAbout(HWND hParent)
{ {
MessageBox(hParent,AboutMsg(),"About",MB_OK | MB_ICONINFORMATION ); MessageBox(hParent,AboutMsg(),"About",MB_OK | MB_ICONINFORMATION );
} }
@ -217,7 +217,7 @@ void FixMenuState(void)
filled by the function. (see def above) filled by the function. (see def above)
output: none output: none
*******************************************************************/ *******************************************************************/
__declspec(dllexport) void GetDllInfo ( PLUGIN_INFO * PluginInfo ) EXPORT void GetDllInfo(PLUGIN_INFO * PluginInfo)
{ {
PluginInfo->Version = 0x0102; PluginInfo->Version = 0x0102;
PluginInfo->Type = PLUGIN_TYPE_RSP; PluginInfo->Type = PLUGIN_TYPE_RSP;
@ -240,7 +240,7 @@ __declspec(dllexport) void GetDllInfo ( PLUGIN_INFO * PluginInfo )
output: none output: none
*******************************************************************/ *******************************************************************/
__declspec(dllexport) void GetRspDebugInfo ( RSPDEBUG_INFO * DebugInfo ) EXPORT void GetRspDebugInfo(RSPDEBUG_INFO * DebugInfo)
{ {
if (hRSPMenu == NULL) if (hRSPMenu == NULL)
{ {
@ -339,7 +339,7 @@ void DetectCpuSpecs(void)
} }
} }
__declspec(dllexport) void InitiateRSP ( RSP_INFO Rsp_Info, DWORD * CycleCount) EXPORT void InitiateRSP(RSP_INFO Rsp_Info, DWORD * CycleCount)
{ {
RSPInfo = Rsp_Info; RSPInfo = Rsp_Info;
AudioHle = GetSystemSetting(Set_AudioHle); AudioHle = GetSystemSetting(Set_AudioHle);
@ -364,7 +364,7 @@ __declspec(dllexport) void InitiateRSP ( RSP_INFO Rsp_Info, DWORD * CycleCount)
above. above.
output: none output: none
*******************************************************************/ *******************************************************************/
__declspec(dllexport) void InitiateRSPDebugger ( DEBUG_INFO Debug_Info) EXPORT void InitiateRSPDebugger(DEBUG_INFO Debug_Info)
{ {
DebugInfo = Debug_Info; DebugInfo = Debug_Info;
} }
@ -536,7 +536,7 @@ void ProcessMenuItem(int ID)
input: none input: none
output: none output: none
*******************************************************************/ *******************************************************************/
__declspec(dllexport) void RomOpen (void) EXPORT void RomOpen(void)
{ {
ClearAllx86Code(); ClearAllx86Code();
if (DebuggingEnabled) if (DebuggingEnabled)
@ -552,7 +552,8 @@ __declspec(dllexport) void RomOpen (void)
input: none input: none
output: none output: none
*******************************************************************/ *******************************************************************/
__declspec(dllexport) void RomClosed (void) { EXPORT void RomClosed(void)
{
if (Profiling) if (Profiling)
{ {
StopTimer(); StopTimer();
@ -698,13 +699,13 @@ BOOL CALLBACK ConfigDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM /*lParam
} }
#endif #endif
/*__declspec(dllexport) void DllConfig (HWND hWnd) /*EXPORT void DllConfig(HWND hWnd)
{ {
// DialogBox(hinstDLL, "RSPCONFIG", hWnd, ConfigDlgProc); // DialogBox(hinstDLL, "RSPCONFIG", hWnd, ConfigDlgProc);
DialogBox(hinstDLL, "RSPCONFIG", GetForegroundWindow(), ConfigDlgProc); DialogBox(hinstDLL, "RSPCONFIG", GetForegroundWindow(), ConfigDlgProc);
}*/ }*/
__declspec(dllexport) void EnableDebugging(Boolean Enabled) EXPORT void EnableDebugging(Boolean Enabled)
{ {
DebuggingEnabled = Enabled; DebuggingEnabled = Enabled;
if (DebuggingEnabled) if (DebuggingEnabled)
@ -740,7 +741,7 @@ __declspec(dllexport) void EnableDebugging(Boolean Enabled)
} }
} }
__declspec(dllexport) void PluginLoaded (void) EXPORT void PluginLoaded(void)
{ {
BreakOnStart = false; BreakOnStart = false;
CPUCore = RecompilerCPU; CPUCore = RecompilerCPU;