Repository navigation
1.12.1 - the resolution row switches, and the game opens in a window
The resolution row in the game's Options screen works now, and the game opens as a window again.
Picking a resolution switches to it, and keeps it
The row listed sixteen modes, and every pick was answered with success, but the port went on rendering at
resolution=. ChangeDisplaySettingsA threw the mode away, and the device reset the game runs after a mode
change was pinned back to the old size, so all sixteen were no-ops.
A pick now becomes the port's mode: the reset is built at that size, a windowed port resizes its window, and
resolution= is rewritten in sh3.ini, so the next start begins there. Only the modes the screen offered are
taken, so the game's own startup default cannot replace resolution=. resolution= also reads up to 4096 now:
2560x1920 and 3200x2400 are on the list and used to be clamped back to 1280x720 on the next start.
A window by default
fullscreen defaults to 0 in sh3.ini, in Options > Window and in the launcher's row, so the game opens as a
window at resolution=. Alt+Enter still switches in game, and fullscreen=1 is still the desktop without a
border.
The launcher can end the copy's own sh3.exe
Most players start the imported copy's own sh3.exe through the launcher. That executable's Options screen still
hangs on the display-mode list, and no launcher can change another process from outside it: the fix has to be code
inside that executable, which is what the community ASI fixes are and what this port does by recompiling it
instead. What the launcher can do is get you out: it now stays running while the game runs, and Ctrl+Alt+End
ends it - a registered hotkey, which Windows delivers even while a hung fullscreen window has the focus. The
confirm dialog says so.
The port's own build needs none of that: Alt+F4 closes it from any screen.
Tested, and not
build/modes_test.cpasses, now including the offered-mode check the resolution pick depends on.build/ini_test.cis new and passes: a rewrite keeps comments,cores=3 ; threeandnexus_key, replaces one
line, appends to a file whose last line has no newline, and writes a new file.build/wcheck.shcompiles 27 units and links.- In the launcher with scripted keys, the port started
window: windowed, 1280x720with nofullscreen=in the
file, and Options > Window switched it towindow: fullscreenand wrotefullscreen=1. - Not tested: the in-game resolution pick itself (there are no game files in this build, so the device reset it feeds
was not run), and Ctrl+Alt+End (it ends a retailsh3.exe).