- Gamepad pause menu: "Options" and "Game Difficulty" swap places. With a gamepad the cursor rests on the centre row when the menu opens, and pressing confirm right away used to change the difficulty setting. Touch layout is unchanged.
- Graphics layer (preventive): setting a page read-only now marks it BUSY until mprotect has landed, so an unprotect-before-write from another thread can no longer leave a page read-only with state NONE. Adds the unit test t_dirty_race, which stages the interleaving deterministically.
When the game window is completely covered by another window, macOS sends no display-link callbacks and the script stopped on a "no callback for 2.0 s" report. The fixture run now passes DM_PRESENT_LINK=0, as smoke_mac.sh already does on a local machine.
In rewritten compare-and-swap windows the sequential fall-out exit was placed after the external exits, so a successful write fell into the "compare not equal" exit and was handled as a failed compare (an operation done twice, or a lock-free list popped more than once). Stub 0 is now the fall-out exit. equiv.py now forces each conditional branch inside such a window through both directions, since random states practically never take the "equal" side.
The build output generation changes from r40 to r41; shells built for r40 are refused by the packaging tool. Use the v1.0.3 shell.
The built translator is a standalone program that locates the .NET runtime itself; with a Homebrew-installed .NET and no DOTNET_ROOT it could not start, and that was reported as "the translator was not built from the in-repo source". Both entry points now set DOTNET_ROOT from the runtime location dotnet reports when it is not set, and setup.sh runs the tool once right after building it and prints its own error if it does not start.
Diagnosed by @fjack in #19.
The game carves out a fixed ~3.08 GB and its main heap was left with roughly 100-180 MB free on entering a game, down to a few tens of MB while changing maps. When an allocation fails there, the original code writes through the null result. The pool reported to the game is now 512 MB larger, which turns one-to-one into main heap headroom; untouched heap pages do not count toward resident memory.
The periodic memory line now also logs the main heap total / free / largest allocatable block and, on iOS, the distance to the system memory limit.
Measured in the iOS package on a Mac; devices with 6 GB of RAM have not been measured yet.
The single "Language: English" checkbox becomes two side-by-side options, readable in both UIs, with a hint under the row in the chosen language: tap Apply, then close and reopen the app. Storage is unchanged (still one key).
Suggested in #12.
Idle skill and town-portal icons are no longer multiplied by the idle fade, so an available skill does not look disabled; the base circles and rings still fade to cover less of the view, and the out-of-charges grey state is unchanged.
Proposed by @hubeiqiao in #15.
Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
The timer no longer advances while the app is in the background or the screen is locked, or while the system keyboard is up. Loading screens, time in town and open panels still count. Start, HUD and menu readouts, the timeout check and settlement all read the same clock. Adds the host unit test t_rift_clock.
Idea and first implementation by @hubeiqiao in #17; re-implemented at the source after checking each site.
Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
- Brace every $NAME that is directly followed by a non-ASCII character in the shell scripts: bash 3.2 in a UTF-8 locale read the first byte of the following character as part of the variable name and aborted under set -u (#4, #6).
- setup.sh and d2rm_pack.py: the shader translation step is complete only when every entry in the completion marker is ok and every library file exists; the script's exit status is no longer hidden by a pipe (#5).
- devbattery.sh / devlock.sh: a missing local timeout or ideviceinfo is reported as such and stops at once, instead of being reported as an offline device and polled for up to an hour (#7).
- smoke_mac.sh builds its package for iPhone only regardless of the project default.
Reported by @SakuraToErii. The setup.sh part of #4 was also submitted by @hubeiqiao in #6.
Co-authored-by: hubeiqiao <12777592+hubeiqiao@users.noreply.github.com>
Proposed by @strangeliu in #2. Applied at the source this repository is exported from, so the pull request itself is not merged directly.
Co-authored-by: strangeliu <5244588+strangeliu@users.noreply.github.com>