Submit shutdown tuning without Unity settings gates

This commit is contained in:
Meta Vens 2026-06-21 12:06:22 +01:00
commit d72dd469b5
2 changed files with 16 additions and 1 deletions

View file

@ -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)

View file

@ -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))