summaryrefslogtreecommitdiff
path: root/macosx/main.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-05 07:11:57 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-05 07:11:57 +0000
commit8ce6358f4e589662c5ae2a92f54172ec1bf884b8 (patch)
treee35fe44fcae264f9250e5f6df6a8ce59d205b340 /macosx/main.m
parent5a8a70c2ac1d241e22c565d73ca20fff0c4070c7 (diff)
downloadpcsxr-8ce6358f4e589662c5ae2a92f54172ec1bf884b8.tar.gz
Consolidate the plug-ins in OS X into the main PCSXR project.
Add debugging info for SysLibError on OS X. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85835 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/main.m')
-rwxr-xr-xmacosx/main.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/main.m b/macosx/main.m
index 5dd3410c..2b73320e 100755
--- a/macosx/main.m
+++ b/macosx/main.m
@@ -143,7 +143,15 @@ void *SysLoadSym(void *lib, const char *sym) {
}
const char *SysLibError() {
+#ifdef DEBUG
+ const char *theErr = dlerror();
+ if (theErr) {
+ NSLog(@"Error loading binary: %s", theErr);
+ }
+ return theErr;
+#else
return dlerror();
+#endif
}
void SysCloseLibrary(void *lib) {