summaryrefslogtreecommitdiff
path: root/macosx/PcsxrPlugin.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-24 02:19:14 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-24 02:19:14 +0000
commit8b64ca8414e1dcf56b1d3d3a481090e551499445 (patch)
treeec0ca496628d928ab03f4488626cb30bfab8593a /macosx/PcsxrPlugin.m
parent0fe00d6450e7f0288cad751d46fff70118857859 (diff)
downloadpcsxr-8b64ca8414e1dcf56b1d3d3a481090e551499445.tar.gz
Continual improvement to OS X code.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@86890 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrPlugin.m')
-rwxr-xr-xmacosx/PcsxrPlugin.m10
1 files changed, 9 insertions, 1 deletions
diff --git a/macosx/PcsxrPlugin.m b/macosx/PcsxrPlugin.m
index e64ce9ce..3d5b68b7 100755
--- a/macosx/PcsxrPlugin.m
+++ b/macosx/PcsxrPlugin.m
@@ -232,7 +232,10 @@
}
}
- if (pluginRef) SysCloseLibrary(pluginRef);
+ if (pluginRef) {
+ SysCloseLibrary(pluginRef);
+ pluginRef = NULL;
+ }
#if !__has_feature(objc_arc)
self.modDate = nil;
@@ -306,6 +309,7 @@
- (long)shutdownAs:(int)aType
{
+#if 0
long (*shutdown)(void);
shutdown = SysLoadSym(pluginRef, [PluginSymbolName(aType, @"shutdown")
@@ -316,6 +320,10 @@
}
return PSE_ERR_FATAL;
+#else
+ active &= ~aType;
+ return PSE_ERR_SUCCESS;
+#endif
}
#define PluginSymbolNameConfigure(type) PluginSymbolName(type, @"configure")