feat: update Godot integration and coordinated package dependencies
This commit is contained in:
11 files changed
+525
-49
No files matched your search
@@ -15,6 +15,7 @@ public sealed class ShrinkDataSaverRuntimeConfig
|
||||
public int MaxSlots { get; set; } = 3;
|
||||
public float SettingsWriteDebounceSeconds { get; set; } = 0.35f;
|
||||
public bool DontDestroyOnLoadDriver { get; set; }
|
||||
public IStorageProvider? Storage { get; set; }
|
||||
}
|
||||
|
||||
public static class ShrinkDataSaverRuntime
|
||||
@@ -29,7 +30,7 @@ public static class ShrinkDataSaverRuntime
|
||||
? ShrinkRuntimeServices.Paths.PersistentDataPath
|
||||
: config.RootPath!;
|
||||
Directory.CreateDirectory(root);
|
||||
var storage = new LocalStorageProvider(root);
|
||||
var storage = config.Storage ?? new LocalStorageProvider(root);
|
||||
ShrinkDataSaverPlatform.SettingsWriteDebounceSeconds = config.SettingsWriteDebounceSeconds;
|
||||
ShrinkDataSaverPlatform.MaxSlots = config.MaxSlots;
|
||||
ShrinkSettings.Initialize(storage, Path.Combine(root, config.SettingsFileName));
|
||||
|
||||
Reference in new issue
Block a user