From d72dd469b51ba6b422d6f93a10d651aebd1d3bf6 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 21 Jun 2026 12:06:22 +0100 Subject: [PATCH] Submit shutdown tuning without Unity settings gates --- Aetheria.State.Verify/Program.cs | 15 +++++++++++++++ Assets/Scripts/Gameplay/ActionGameManager.cs | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index 231b1a234..367391b71 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -8492,6 +8492,21 @@ static void RequireRuntimeSimulationTuningRequests(string root) string.Join("; ", hits)); } + var forbiddenUnityAcceptanceSymbols = new[] + { + "entity?.Settings == null", + "entity.Settings == null" + }; + var unityAcceptanceHits = forbiddenUnityAcceptanceSymbols + .Where(symbol => actionGameManager.Contains(symbol, StringComparison.Ordinal)) + .ToArray(); + if (unityAcceptanceHits.Length > 0) + { + throw new InvalidOperationException( + "Unity runtime tuning requests still reject through renderer-local settings checks instead of daemon authority: " + + string.Join(", ", unityAcceptanceHits)); + } + var daemonOperationsPath = Path.Combine(root, "Packages", "org.gamecult.aetheria.state", "Runtime", "AetheriaRuntimeDaemonOperations.cs"); var daemonOperations = File.Exists(daemonOperationsPath) ? File.ReadAllText(daemonOperationsPath) diff --git a/Assets/Scripts/Gameplay/ActionGameManager.cs b/Assets/Scripts/Gameplay/ActionGameManager.cs index 64505d705..f21caeb68 100644 --- a/Assets/Scripts/Gameplay/ActionGameManager.cs +++ b/Assets/Scripts/Gameplay/ActionGameManager.cs @@ -1546,7 +1546,7 @@ public class ActionGameManager : MonoBehaviour public void RequestEntityShutdownPerformance(Entity entity, float shutdownPerformance) { - if (entity?.Settings == null) + if (entity == null) return; if (TryRequestDaemonEntityShutdownPerformance(entity, shutdownPerformance))