Make action bar binding requests submit-only
This commit is contained in:
parent
540cadbef1
commit
ed42de8e84
2 changed files with 21 additions and 10 deletions
|
|
@ -9027,6 +9027,21 @@ static void RequireActionBarBindingRequestAuthority(string root)
|
|||
string.Join(", ", legacyHits));
|
||||
}
|
||||
|
||||
var forbiddenPublicAcceptanceApis = new[]
|
||||
{
|
||||
"public bool RequestWeaponGroupActionBarBinding(",
|
||||
"public bool RequestClearActionBarBinding("
|
||||
};
|
||||
var publicAcceptanceApiHits = forbiddenPublicAcceptanceApis
|
||||
.Where(symbol => actionGameManager.Contains(symbol, StringComparison.Ordinal))
|
||||
.ToArray();
|
||||
if (publicAcceptanceApiHits.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"ActionBar binding request APIs still expose submission as public acceptance state: " +
|
||||
string.Join(", ", publicAcceptanceApiHits));
|
||||
}
|
||||
|
||||
var inventoryMenuPath = Path.Combine(root, "Assets", "Scripts", "UI", "Menu", "InventoryMenu.cs");
|
||||
var inventoryMenu = File.Exists(inventoryMenuPath)
|
||||
? File.ReadAllText(inventoryMenuPath)
|
||||
|
|
|
|||
Loading…
Reference in a new issue