Skip to content

1.12.2 - one owner for the resolution, and the kill tested

Choose a tag to compare

@phoenixd123 phoenixd123 released this 27 Nov 23:40
· 5 commits to main since this release

Two fixes on top of 1.12.1: the resolution pick has a single owner, and the launcher's kill of the copy's own
game is now tested.

One owner for the resolution

1.12.1 took an offered mode in two places: ChangeDisplaySettingsA and the device reset the game runs after a mode
change. The Options screen calls ChangeDisplaySettingsA once for every mode it tests, so on a machine where that
loop runs the pick could have changed again per test and sh3.ini been rewritten sixteen times.

ChangeDisplaySettingsA now only answers, as it must, and the device reset is the single place that adopts the
mode. Nothing is lost by it: the reset is what sizes the render target, so a mode not adopted there was never going
to render at that size.

The Ctrl+Alt+End kill is tested

The watcher moved out of rt_core.c into src/runtime/watchdog.c, and build/watchdog_test.c starts its own
binary as a stub game and checks all three ways out:

  • SH3_WATCH_KILL_MS=800 ends a child that never exits, and the child is gone afterwards;
  • a WM_HOTKEY with id 1 - the message the registered Ctrl+Alt+End delivers - ends it too;
  • a child that exits by itself is left alone and reported as not killed.

build/modes_test.c and build/ini_test.c still pass, and build/wcheck.sh compiles 28 units and links.

Not tested: the launcher menu itself was not clicked through, because nothing in it changed - only which host
function waits for the game.