aorecomp

Anarchy Online classic in the browser

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


commit b67393f796dfbbd8998dc7d77d7e1be6118f1057
parent 01ed7539a62147c0b0e91a3395fd4e3e3781d6b2
Author: anon <anon@example.com>
Date:   Tue, 13 Oct 2026 12:50:32 +0000

Implement UTC SYSTEMTIME imports for translated client startup

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

diff --git a/docs/browser-porting.md b/docs/browser-porting.md @@ -992,3 +992,10 @@ Direct3D state defaults remain unfinished. State setters retain values for the native startup cache; unset states currently read as zero. Unsupported device operations fail explicitly. Passing this startup boundary is not yet evidence of a playable AO scene. + +NR startup calls `GetLocalTime` and `GetSystemTime` consecutively (guest return +addresses `0xd9636b` and `0xd96375`). Both write a 16-byte `SYSTEMTIME`: +eight WORDs containing year, month, weekday, day, hour, minute, second and +milliseconds. The browser runtime uses UTC for both, consistent with its +zero timezone offset and CRT clock policy; it does not inherit the host's +local timezone.