mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-14 07:57:27 +08:00
[+] Add LatestVersion to interface
This commit is contained in:
@@ -31,9 +31,9 @@ public class ConfigParser : IConfigParser
|
||||
public void Parse(IConfig config, IConfigView configView)
|
||||
{
|
||||
var configVersion = ConfigMigrationManager.Instance.GetVersion(configView);
|
||||
if (configVersion != ConfigMigrationManager.Instance.latestVersion)
|
||||
if (configVersion != ConfigMigrationManager.Instance.LatestVersion)
|
||||
{
|
||||
throw new InvalidOperationException($"Config version mismatch: expected {ConfigMigrationManager.Instance.latestVersion}, got {configVersion}");
|
||||
throw new InvalidOperationException($"Config version mismatch: expected {ConfigMigrationManager.Instance.LatestVersion}, got {configVersion}");
|
||||
}
|
||||
Hydrate((Config)config, ((ConfigView)configView).root, "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user