feat: add native runtime settings
This commit is contained in:
@@ -33,9 +33,17 @@ public sealed class DatabaseRuntime
|
||||
public static DatabaseRuntime CreateLegacyExecutableDefault(
|
||||
string baseDirectory,
|
||||
string? fallbackConfigurationPath = null,
|
||||
string? legacyOverridePath = null)
|
||||
string? legacyOverridePath = null,
|
||||
bool preferLegacyOverride = false)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(baseDirectory);
|
||||
if (preferLegacyOverride &&
|
||||
!string.IsNullOrWhiteSpace(legacyOverridePath) &&
|
||||
File.Exists(legacyOverridePath))
|
||||
{
|
||||
return Create(new LegacyIniDatabaseOptionsLoader().Load(legacyOverridePath));
|
||||
}
|
||||
|
||||
var legacyIniPath = Path.Combine(
|
||||
Path.GetFullPath(baseDirectory),
|
||||
"Res",
|
||||
|
||||
Reference in New Issue
Block a user