Do not load sets with a newer file version than the one supported.
This commit is contained in:
1 parent
7db32891ef
commit
d77bb4f1ec
1 file changed
+3
-1
@@ -93,7 +93,9 @@ NSString *SBPresetManagerUpdatedNotification = @"SBPresetManagerUpdatedNotificat
|
|||||||
MP42Metadata *newPreset = [unarchiver decodeObjectOfClass:[MP42Metadata class] forKey:NSKeyedArchiveRootObjectKey];
|
MP42Metadata *newPreset = [unarchiver decodeObjectOfClass:[MP42Metadata class] forKey:NSKeyedArchiveRootObjectKey];
|
||||||
[unarchiver finishDecoding];
|
[unarchiver finishDecoding];
|
||||||
|
|
||||||
[_presets addObject:newPreset];
|
if (newPreset) {
|
||||||
|
[_presets addObject:newPreset];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@catch (NSException *exception) {
|
@catch (NSException *exception) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user