Route trade menu through managed runtime client

This commit is contained in:
Meta Vens 2026-06-28 02:41:48 +01:00
commit ddef3fde64
2 changed files with 18 additions and 28 deletions

View file

@ -12864,6 +12864,10 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root)
var sectorRenderer = File.Exists(sectorRendererPath)
? File.ReadAllText(sectorRendererPath)
: throw new InvalidOperationException("Cannot verify daemon state acquisition; SectorRenderer.cs is missing.");
var tradeMenuPath = Path.Combine(root, "Assets", "Scripts", "UI", "Menu", "TradeMenu.cs");
var tradeMenu = File.Exists(tradeMenuPath)
? File.ReadAllText(tradeMenuPath)
: throw new InvalidOperationException("Cannot verify daemon state acquisition; TradeMenu.cs is missing.");
var gameplayBootShellPath = Path.Combine(root, "Assets", "Scripts", "Gameplay", "AetheriaUnityGameplayBootShell.cs");
var gameplayBootShell = File.Exists(gameplayBootShellPath)
? File.ReadAllText(gameplayBootShellPath)
@ -12972,7 +12976,8 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root)
["Assets/Scripts/UI/Menu/SectorMap.cs"] = sectorMap,
["Assets/Scripts/UI/Menu/LocalMenu.cs"] = localMenu,
["Assets/Scripts/UI/Menu/SectorRenderer.cs"] = sectorRenderer,
["Assets/Scripts/UI/HUD/SchematicDisplay.cs"] = schematicDisplay
["Assets/Scripts/UI/HUD/SchematicDisplay.cs"] = schematicDisplay,
["Assets/Scripts/UI/Menu/TradeMenu.cs"] = tradeMenu
};
var directClientOpenHits = providerOwnedClientAccessSources
.Where(pair =>