Implement ADV system menu input routing

This commit is contained in:
gamer147
2026-07-21 11:16:50 -04:00
parent f0e31343a0
commit 12e5073918
8 changed files with 213 additions and 18 deletions

View File

@@ -55,6 +55,24 @@ public class GfxLifecycleOpsTests
Assert.Equal(-1, vm.Gfx.CurrentRenderTargetSlot);
}
[Fact]
public void DefaultGraphicsObjectSlotOpcodeRetainsLatestSelection()
{
var table = T();
var scene = ScriptAssembler.Assemble(table, "GFX-DEFAULT-SLOT", new List<(int, Operand[])>
{
(0x80, new[] { I(7) }),
(0x80, new[] { I(1) }),
Exit(),
}, System.Array.Empty<string>());
var vm = new VirtualMachine(scene, table, new RecordingHost());
vm.Run();
Assert.Equal(1, vm.Gfx.DefaultObjectSlot);
Assert.Equal("exit", vm.HaltReason);
}
[Fact]
public void BulkReleaseDropsOnlyTransientSurfaceRange()
{