• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

main code repository.


Commit MetaInfo

Revision64a6696653771b7e9d24eddb7a201392387341aa (tree)
Zeit2018-03-18 10:40:33
Autormasakih <masakih@user...>
Commitermasakih

Log Message

プロパティ名を変更

Ändern Zusammenfassung

Diff

--- a/KCD/CoreDataCore.swift
+++ b/KCD/CoreDataCore.swift
@@ -16,7 +16,7 @@ struct CoreDataConfiguration {
1616 let type: String
1717
1818 // try remake data file, if model file modified.
19- let tryRemake: Bool
19+ let tryRemakeStoreFile: Bool
2020
2121 private static let defaultOptions: [AnyHashable: Any] = [
2222 NSMigratePersistentStoresAutomaticallyOption: true,
@@ -27,13 +27,13 @@ struct CoreDataConfiguration {
2727 fileName: String? = nil,
2828 options: [AnyHashable: Any] = defaultOptions,
2929 type: String = NSSQLiteStoreType,
30- tryRemake: Bool = false) {
30+ tryRemakeStoreFile: Bool = false) {
3131
3232 self.modelName = modelName
3333 self.fileName = fileName ?? "\(modelName).storedata"
3434 self.options = options
3535 self.type = type
36- self.tryRemake = tryRemake
36+ self.tryRemakeStoreFile = tryRemakeStoreFile
3737 }
3838 }
3939
--- a/KCD/MOCGenerator.swift
+++ b/KCD/MOCGenerator.swift
@@ -86,7 +86,7 @@ final class MOCGenerator {
8686 } catch let error as NSError {
8787
8888 // Data Modelが更新されていたらストアファイルを削除してもう一度
89- if config.tryRemake,
89+ if config.tryRemakeStoreFile,
9090 error.domain == NSCocoaErrorDomain,
9191 isMigrationError(error.code) {
9292
--- a/KCD/ServerDataStore.swift
+++ b/KCD/ServerDataStore.swift
@@ -10,7 +10,7 @@ import Cocoa
1010
1111 final class ServerDataStore: CoreDataManager {
1212
13- static let core = CoreDataCore(CoreDataConfiguration("KCD", tryRemake: true))
13+ static let core = CoreDataCore(CoreDataConfiguration("KCD", tryRemakeStoreFile: true))
1414
1515 static let `default` = ServerDataStore(type: .reader)
1616