Neutralize Unity runtime client fallback

This commit is contained in:
Meta Vens 2026-07-05 21:16:38 +01:00
commit e1506d4db0
3 changed files with 13 additions and 3 deletions

View file

@ -28,7 +28,9 @@ public static class AetheriaUnityRuntimeClientProvider
private static AetheriaClient ResolveClient(string stateFilePath, string runtimeId = "")
{
var effectiveRuntimeId = string.IsNullOrWhiteSpace(runtimeId) ? "raven-unity" : runtimeId;
var effectiveRuntimeId = string.IsNullOrWhiteSpace(runtimeId)
? AetheriaRuntimeStateBoundary.DefaultClientRuntimeId
: runtimeId;
var cacheKey = CacheKey(stateFilePath, effectiveRuntimeId);
if (RuntimeClients.TryGetValue(cacheKey, out var runtimeClient))
return runtimeClient;