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:
parent
7264f33c12
commit
04600f5488
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -133,7 +133,7 @@ const char *SysLibError() {
|
|||
}
|
||||
|
||||
void SysCloseLibrary(void *lib) {
|
||||
//dlclose(lib);
|
||||
dlclose(lib);
|
||||
}
|
||||
|
||||
// Called periodically from the emu thread
|
||||
|
|
Loading…
Reference in New Issue
Block a user