|
|
@ -128,9 +128,10 @@ public final function LocalDatabaseInstance NewLocal(BaseText databaseName) |
|
|
|
local Text rootRecordName; |
|
|
|
local Text rootRecordName; |
|
|
|
local LocalDatabase newConfig; |
|
|
|
local LocalDatabase newConfig; |
|
|
|
local LocalDatabaseInstance newLocalDBInstance; |
|
|
|
local LocalDatabaseInstance newLocalDBInstance; |
|
|
|
|
|
|
|
|
|
|
|
CreateLocalDBMapIfMissing(); |
|
|
|
CreateLocalDBMapIfMissing(); |
|
|
|
// No need to check `databaseName` for being valid, |
|
|
|
if (databaseName == none) return none; |
|
|
|
// since `Load()` will just return `none` if it is not. |
|
|
|
if (!databaseName.IsValidName()) return none; |
|
|
|
newConfig = class'LocalDatabase'.static.Load(databaseName); |
|
|
|
newConfig = class'LocalDatabase'.static.Load(databaseName); |
|
|
|
if (newConfig == none) return none; |
|
|
|
if (newConfig == none) return none; |
|
|
|
if (newConfig.HasDefinedRoot()) return none; |
|
|
|
if (newConfig.HasDefinedRoot()) return none; |
|
|
|