mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-09-10 10:25:49 -05:00
[F] Method not found error when migrating with old HeadlessLoader.dll (#4)
This commit is contained in:
@@ -38,7 +38,7 @@ public class ConfigMigrationManager : IConfigMigrationManager
|
||||
{
|
||||
var migration = migrationMap[currentVersion];
|
||||
Utility.Log($"Migrating config from v{migration.FromVersion} to v{migration.ToVersion}");
|
||||
config = migration.Migrate(config);
|
||||
config = migration.Migrate((ConfigView)config);
|
||||
currentVersion = migration.ToVersion;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ public class ConfigMigration_V1_0_V2_0 : IConfigMigration
|
||||
public string FromVersion => "1.0";
|
||||
public string ToVersion => "2.0";
|
||||
|
||||
public IConfigView Migrate(IConfigView src)
|
||||
public ConfigView Migrate(ConfigView src)
|
||||
{
|
||||
var dst = new ConfigView();
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@ public class ConfigMigration_V2_0_V2_1 : IConfigMigration
|
||||
public string FromVersion => "2.0";
|
||||
public string ToVersion => "2.1";
|
||||
|
||||
public IConfigView Migrate(IConfigView src)
|
||||
public ConfigView Migrate(ConfigView src)
|
||||
{
|
||||
var dst = src.Clone();
|
||||
var dst = (ConfigView)src.Clone();
|
||||
dst.SetValue("Version", ToVersion);
|
||||
|
||||
if (src.IsSectionEnabled("Tweaks.ResetTouchAfterTrack"))
|
||||
|
||||
@@ -8,9 +8,9 @@ public class ConfigMigration_V2_1_V2_2 : IConfigMigration
|
||||
public string FromVersion => "2.1";
|
||||
public string ToVersion => "2.2";
|
||||
|
||||
public IConfigView Migrate(IConfigView src)
|
||||
public ConfigView Migrate(ConfigView src)
|
||||
{
|
||||
var dst = src.Clone();
|
||||
var dst = (ConfigView)src.Clone();
|
||||
dst.SetValue("Version", ToVersion);
|
||||
|
||||
if (src.IsSectionEnabled("GameSystem.Assets.UseJacketAsDummyMovie"))
|
||||
|
||||
@@ -6,5 +6,5 @@ public interface IConfigMigration
|
||||
{
|
||||
public string FromVersion { get; }
|
||||
public string ToVersion { get; }
|
||||
public IConfigView Migrate(IConfigView config);
|
||||
public ConfigView Migrate(ConfigView config);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user