Route Unity settings reads through managed documents

This commit is contained in:
Meta Vens 2026-06-28 01:52:11 +01:00
commit 943a210bc5
12 changed files with 94 additions and 69 deletions

View file

@ -64,9 +64,10 @@ public static class AetheriaUnityRuntimeClientProvider
try
{
var stored = ResolveClient(AetheriaUnityRuntimePaths.RuntimeStateFilePath)
.PlayerSettingsAsync()
.GetAwaiter()
.GetResult();
.Aetheria()
.Settings
.Player
.Latest();
if (stored == null)
return settings;
@ -99,7 +100,7 @@ public static class AetheriaUnityRuntimeClientProvider
private static void ApplyPlayerSettings(
RuntimePlayerSettings settings,
AetheriaRuntimePlayerSettingsSnapshot stored)
AetheriaRuntimePlayerSettingsDocument stored)
{
if (!string.IsNullOrWhiteSpace(stored.PlayerName))
settings.Name = stored.PlayerName;