aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit ad50b598549e4e8b23c7c110136eabeae1d94f4d
parent dbe31c6780e5854c71258dee386dcd68a79fd2be
Author: anon <anon@example.com>
Date:   Tue, 13 Oct 2026 09:24:46 +0000

Translate Clientr buffered AFCM sender callback

Diffstat:
Mdocs/browser-porting.md | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/docs/browser-porting.md b/docs/browser-porting.md @@ -937,6 +937,14 @@ property (-14) with SetClassLongA at RVA `0x30cd` (return address `0x30d3`). The class retains the icon handle supplied to RegisterClassA; replacing it returns the previous handle. This metadata update does not require a browser favicon or another visible window. +Clientr next calls AFCM StartExecutingPrograms and FrameProcess. An indirect +callback at RVA `0x2a60` loads the instance at global RVA `0x9cac` into ECX +and jumps to `0x2a70`. When a buffered payload is present, that method adds +a trailing zero and calls AFCM Send with two integer routing values and the +buffer pointer. It clears the pending length and alternates between two +256-byte buffers at instance offsets +0x38 and +0x138. The callback thunk +has no stack arguments and requires its own translation entry +(REA method evidence `ev_9e632923750b63053982d0eb4c44300eecc5ade744b5f57308f8e9b4413b6ed8`). The browser bridge renders in a worker-owned WebGL2 OffscreenCanvas. D3D row vector matrices upload as transposes; clip depth 0..w becomes -w..w. Readback