summaryrefslogtreecommitdiff
path: root/gui
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 /gui
parentba0c9b98bf69b8e54e7117b21f2282d3b79c2988 (diff)
downloadpcsxr-f1d5f92e6bfbff24667a766610f7171bcf6d7116.tar.gz
...
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82903 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'gui')
-rwxr-xr-xgui/Plugin.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/Plugin.c b/gui/Plugin.c
index 62e8feb3..daf232c8 100755
--- a/gui/Plugin.c
+++ b/gui/Plugin.c
@@ -334,6 +334,11 @@ int _OpenPlugins() {
if (ret < 0) { SysMessage(_("Error opening Controller 2 plugin!")); return -1; }
PAD2_registerVibration(GPU_visualVibration);
PAD2_registerCursor(GPU_cursor);
+#ifdef ENABLE_SIO1API
+ ret = SIO1_open(&gpuDisp);
+ if (ret < 0) { SysMessage(_("Error opening SIO1 plugin!")); return -1; }
+ SIO1_registerCallback(SIO1irq);
+#endif
if (Config.UseNet && !NetOpened) {
netInfo info;
@@ -422,6 +427,10 @@ void ClosePlugins() {
if (ret < 0) { SysMessage(_("Error closing Controller 2 plugin!")); return; }
ret = GPU_close();
if (ret < 0) { SysMessage(_("Error closing GPU plugin!")); return; }
+#ifdef ENABLE_SIO1API
+ ret = SIO1_close();
+ if (ret < 0) { SysMessage(_("Error closing SIO1 plugin!")); return; }
+#endif
if (Config.UseNet) {
NET_pause();