summaryrefslogtreecommitdiff
path: root/win32/gui/plugin.c
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-14 22:44:17 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-14 22:44:17 +0000
commitf1d5f92e6bfbff24667a766610f7171bcf6d7116 (patch)
treefb4a2ccf4cd310d62e82873377ef5558924af081 /win32/gui/plugin.c
parentba0c9b98bf69b8e54e7117b21f2282d3b79c2988 (diff)
...
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82903 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'win32/gui/plugin.c')
-rwxr-xr-xwin32/gui/plugin.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/win32/gui/plugin.c b/win32/gui/plugin.c
index d4d8c284..e5b9ad77 100755
--- a/win32/gui/plugin.c
+++ b/win32/gui/plugin.c
@@ -170,8 +170,6 @@ void PADhandleKey(int key) {
}
}
-void CALLBACK SPUirq(void);
-
char charsTable[4] = { "|/-\\" };
BOOL CALLBACK ConnectDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam) {
@@ -292,7 +290,12 @@ int _OpenPlugins(HWND hWnd) {
if (ret < 0) { SysMessage (_("Error Opening PAD2 Plugin (%d)"), ret); return -1; }
PAD2_registerVibration(GPU_visualVibration);
PAD2_registerCursor(GPU_cursor);
-
+#ifdef ENABLE_SIO1API
+ ret = SIO1_open();
+ if (ret < 0) { SysMessage (_("Error Opening SIO1 plugin (%d)"), ret); return -1; }
+ SIO1_registerCallback(SIO1irq);
+#endif
+
SetCurrentDirectory(PcsxrDir);
ShowCursor(FALSE);
return 0;
@@ -324,6 +327,10 @@ void ClosePlugins() {
if (ret < 0) { SysMessage (_("Error Closing GPU Plugin")); return; }
ret = SPU_close();
if (ret < 0) { SysMessage (_("Error Closing SPU Plugin")); return; }
+#ifdef ENABLE_SIO1API
+ ret = SIO1_close();
+ if (ret < 0) { SysMessage (_("Error Closing SIO1 plugin")); return; }
+#endif
if (Config.UseNet) {
NET_pause();
@@ -338,6 +345,9 @@ void ResetPlugins() {
SPU_shutdown();
PAD1_shutdown();
PAD2_shutdown();
+#ifdef ENABLE_SIO1API
+ SIO1_shutdown();
+#endif
if (Config.UseNet) NET_shutdown();
ret = CDR_init();
@@ -350,6 +360,11 @@ void ResetPlugins() {
if (ret != 0) { SysMessage (_("PAD1init error: %d"), ret); return; }
ret = PAD2_init(2);
if (ret != 0) { SysMessage (_("PAD2init error: %d"), ret); return; }
+#ifdef ENABLE_SIO1API
+ ret = SIO1_init();
+ if (ret != 0) { SysMessage (_("SIO1init error: %d"), ret); return; }
+#endif
+
if (Config.UseNet) {
ret = NET_init();
if (ret < 0) { SysMessage (_("NETinit error: %d"), ret); return; }