Fixes outdated Game and SaveState Attributes enums
This commit is contained in:
parent
a8ca3ef547
commit
056e8aba6e
@ -62,9 +62,9 @@ class GameCollectionViewDataSource: NSObject
|
||||
fetchRequest.predicate = CompoundPredicate(orPredicateWithSubpredicates: predicates)
|
||||
}
|
||||
|
||||
fetchRequest.sortDescriptors = [SortDescriptor(key: Game.Attributes.typeIdentifier.rawValue, ascending: true), SortDescriptor(key: Game.Attributes.name.rawValue, ascending: true)]
|
||||
fetchRequest.sortDescriptors = [SortDescriptor(key: Game.Attributes.type.rawValue, ascending: true), SortDescriptor(key: Game.Attributes.name.rawValue, ascending: true)]
|
||||
|
||||
self.fetchedResultsController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: DatabaseManager.sharedManager.managedObjectContext, sectionNameKeyPath: Game.Attributes.typeIdentifier.rawValue, cacheName: nil)
|
||||
self.fetchedResultsController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: DatabaseManager.sharedManager.managedObjectContext, sectionNameKeyPath: Game.Attributes.type.rawValue, cacheName: nil)
|
||||
self.fetchedResultsController.delegate = previousDelegate
|
||||
|
||||
self.update()
|
||||
|
||||
@ -21,7 +21,7 @@ extension Game
|
||||
case filename
|
||||
case identifier
|
||||
case name
|
||||
case typeIdentifier
|
||||
case type
|
||||
|
||||
case gameCollections
|
||||
case saveStates
|
||||
|
||||
@ -21,6 +21,7 @@ extension SaveState
|
||||
case creationDate
|
||||
case modifiedDate
|
||||
case type
|
||||
case gameType
|
||||
|
||||
case game
|
||||
case previewGame
|
||||
|
||||
Loading…
Reference in New Issue
Block a user