feat: add native runtime settings

This commit is contained in:
2026-07-21 12:07:18 +09:00
parent b6208c0971
commit fc4007d676
25 changed files with 3543 additions and 63 deletions

View File

@@ -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",