From f1d5f92e6bfbff24667a766610f7171bcf6d7116 Mon Sep 17 00:00:00 2001 From: "SND\\edgbla_cp" Date: Thu, 14 Feb 2013 22:44:17 +0000 Subject: ... git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82903 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- gui/Plugin.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gui/Plugin.c') 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(); -- cgit v1.2.3