Uncomment out dlclose in SysCloseLibrary.

Load the most recent plug-in with the same file name.

git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@73442 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
SND\MaddTheSane_cp 2011-12-18 00:46:51 +00:00
parent 7264f33c12
commit 04600f5488
2 changed files with 10 additions and 2 deletions

View File

@ -98,12 +98,20 @@
pluginRef = nil;
name = nil;
path = [aPath retain];
long tempVers = 0;
NSString *goodPath = nil;
for (NSString *plugDir in [PcsxrPlugin pluginsPaths])
{
NSString *fullPath = [plugDir stringByAppendingPathComponent:path];
if ([[NSFileManager defaultManager] fileExistsAtPath:fullPath]) {
goodPath = fullPath;
void *tempHandle = SysLoadLibrary([fullPath fileSystemRepresentation]);
PSEgetLibVersion tempLibVersion = SysLoadSym(tempHandle, "PSEgetLibVersion");
long tempVers2 = tempLibVersion();
if (tempVers <= tempVers2 ){
goodPath = fullPath;
tempVers = tempVers2;
}
SysCloseLibrary(tempHandle);
}
}

View File

@ -133,7 +133,7 @@ const char *SysLibError() {
}
void SysCloseLibrary(void *lib) {
//dlclose(lib);
dlclose(lib);
}
// Called periodically from the emu thread