Do not load sets with a newer file version than the one supported.

This commit is contained in:
Damiano Galassi committed 2016-12-07 10:08:53 +01:00
1 parent 7db32891ef
commit d77bb4f1ec
1 file changed
+2
+2
View File
@@ -93,8 +93,10 @@ NSString *SBPresetManagerUpdatedNotification = @"SBPresetManagerUpdatedNotificat
MP42Metadata *newPreset = [unarchiver decodeObjectOfClass:[MP42Metadata class] forKey:NSKeyedArchiveRootObjectKey]; MP42Metadata *newPreset = [unarchiver decodeObjectOfClass:[MP42Metadata class] forKey:NSKeyedArchiveRootObjectKey];
[unarchiver finishDecoding]; [unarchiver finishDecoding];
if (newPreset) {
[_presets addObject:newPreset]; [_presets addObject:newPreset];
} }
}
@catch (NSException *exception) { @catch (NSException *exception) {
continue; continue;
} }