Make loadout restore requests submit-only
This commit is contained in:
parent
3e1a9d029c
commit
cd50732b29
2 changed files with 20 additions and 7 deletions
|
|
@ -9714,7 +9714,7 @@ static void RequireInventoryLoadoutRestoreRequestAuthority(string root)
|
|||
var requiredSymbols = new[]
|
||||
{
|
||||
"RequestRuntimeLoadoutRestore",
|
||||
"TryRequestDaemonLoadoutRestore",
|
||||
"RequestDaemonLoadoutRestore",
|
||||
"Operations.RestoreLoadout"
|
||||
};
|
||||
|
||||
|
|
@ -9735,6 +9735,21 @@ static void RequireInventoryLoadoutRestoreRequestAuthority(string root)
|
|||
"Unity loadout restore still rejects requests through renderer-local credits instead of daemon acceptance.");
|
||||
}
|
||||
|
||||
var forbiddenActionSymbols = new[]
|
||||
{
|
||||
"TryRequestDaemonLoadoutRestore",
|
||||
"private bool TryRequestDaemonLoadoutRestore("
|
||||
};
|
||||
var forbiddenActionHits = forbiddenActionSymbols
|
||||
.Where(symbol => actionGameManager.Contains(symbol, StringComparison.Ordinal))
|
||||
.ToArray();
|
||||
if (forbiddenActionHits.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Unity loadout restore still exposes daemon request submission as local acceptance state: " +
|
||||
string.Join(", ", forbiddenActionHits));
|
||||
}
|
||||
|
||||
var daemonOperationsPath = Path.Combine(root, "Packages", "org.gamecult.aetheria.state", "Runtime", "AetheriaRuntimeDaemonOperations.cs");
|
||||
var daemonOperations = File.Exists(daemonOperationsPath)
|
||||
? File.ReadAllText(daemonOperationsPath)
|
||||
|
|
|
|||
Loading…
Reference in a new issue