|
|
@ -1,7 +1,7 @@ |
|
|
|
/** |
|
|
|
/** |
|
|
|
* API that provides methods for creating/destroying and managing available |
|
|
|
* API that provides methods for creating/destroying and managing available |
|
|
|
* databases. |
|
|
|
* databases. |
|
|
|
* Copyright 2021-2022 Anton Tarasenko |
|
|
|
* Copyright 2021-2023 Anton Tarasenko |
|
|
|
*------------------------------------------------------------------------------ |
|
|
|
*------------------------------------------------------------------------------ |
|
|
|
* This file is part of Acedia. |
|
|
|
* This file is part of Acedia. |
|
|
|
* |
|
|
|
* |
|
|
@ -55,7 +55,6 @@ public final function Database Load(BaseText databaseLink) |
|
|
|
{ |
|
|
|
{ |
|
|
|
local Parser parser; |
|
|
|
local Parser parser; |
|
|
|
local Database result; |
|
|
|
local Database result; |
|
|
|
local Text immutableDatabaseName; |
|
|
|
|
|
|
|
local MutableText databaseName; |
|
|
|
local MutableText databaseName; |
|
|
|
|
|
|
|
|
|
|
|
if (databaseLink == none) { |
|
|
|
if (databaseLink == none) { |
|
|
@ -71,11 +70,9 @@ public final function Database Load(BaseText databaseLink) |
|
|
|
parser.FreeSelf(); |
|
|
|
parser.FreeSelf(); |
|
|
|
return none; |
|
|
|
return none; |
|
|
|
} |
|
|
|
} |
|
|
|
immutableDatabaseName = databaseName.Copy(); |
|
|
|
result = LoadLocal(databaseName); |
|
|
|
result = LoadLocal(immutableDatabaseName); |
|
|
|
|
|
|
|
parser.FreeSelf(); |
|
|
|
parser.FreeSelf(); |
|
|
|
databaseName.FreeSelf(); |
|
|
|
databaseName.FreeSelf(); |
|
|
|
immutableDatabaseName.FreeSelf(); |
|
|
|
|
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|