diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-29 00:03:28 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-12-29 00:03:28 +0000 |
| commit | 67804ee6d6d8d6c5d66cd9ab79346dfa56a6ffdf (patch) | |
| tree | 50b03871e699e61574fb417d311161b9408de757 | |
| parent | a3c3fe37b2144c37f3df656adc25ff6beeef463a (diff) | |
| download | pcsxr-67804ee6d6d8d6c5d66cd9ab79346dfa56a6ffdf.tar.gz | |
Fail in PcsxrPlugin initialization if we can't find the plugin specified. Prevents a crash if a plug-in was removed/renamed.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@73846 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | macosx/PcsxrPlugin.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/PcsxrPlugin.m b/macosx/PcsxrPlugin.m index d0b712de..2d5e99ce 100644 --- a/macosx/PcsxrPlugin.m +++ b/macosx/PcsxrPlugin.m @@ -120,6 +120,12 @@ } } } + + if (goodPath == nil) { + [self autorelease]; + return nil; + } + pluginRef = SysLoadLibrary([goodPath fileSystemRepresentation]); if (pluginRef == nil) { [self release]; |
