Runtime finding: SC0000's bg is a slot-0 full-screen slideshow (res 0x23 first), not the static-path res 0x21. Target corrected to 0x23. CaptureHost/CountHost no-op the new methods. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
731 B
C#
15 lines
731 B
C#
namespace Age.Engine.Hosting;
|
|
public sealed class CaptureHost : IHost
|
|
{
|
|
public List<(int Offset, string Text)> Emitted { get; } = new();
|
|
public int CallScriptCount { get; private set; }
|
|
public Dictionary<int, int> Stubs { get; } = new();
|
|
public void ShowText(int offset, string text) => Emitted.Add((offset, text));
|
|
public void CallScript(long id) => CallScriptCount++;
|
|
public void OnStub(int opcode) { Stubs.TryGetValue(opcode, out var c); Stubs[opcode] = c + 1; }
|
|
public void WaitForInput() { }
|
|
public void CreateTexture(int slot, int width, int height) { }
|
|
public void SetTexture(long resourceId, int slot) { }
|
|
public void DrawTexture(int slot, int x, int y, int width, int height) { }
|
|
}
|