forked from Ports/goldeneye-pc-port
- The front options screen numbers items 0..s_rowN (0 = the top save-file row, k = content row k-1), but the level-1 draw loop painted content row k at rowY(k) -- the save row's own line -- and mapped s_hl (item-numbered) straight into s_rowIdx (content-numbered): the 'Save file' row overlapped the first content row, highlights/adjusts hit the wrong row, the last content row was dead, and s_rowIdx[s_hl] could read one past the built rows. Content rows now draw at rowY(k+1) and all s_hl -> s_rowIdx uses take s_hl - 1 (A-press, L/R repeat, reset-maintain); hit-test/cursor were already item-numbered and are untouched. - Per-file row tag '(save)' -> '(profile)' (maintainer request), both UIs (front options + F10 overlay) plus the stale comments. - docs/dev/D357-SETTINGS-VALUES-PLAN.md (PROPOSAL): row-by-row audit of current defaults/ranges/steps/displays vs the PD port (local checkout) and the Turok PC list (maintainer notes); proposals: mouse sensitivity as a x multiplier, deadzone as a whole-% key (D333 legacy-alias pattern), texture filter '3-Point' -> Bilinear, audio step 128 -> 328 (whole-%), MSAA +16x, FPS-cap preset grid, FOV degrees; kResetDefaults lockstep gate + GE_WSPROBE_RESET re-verification. Build clean (248 targets), headless menu boot smoke clean; visual check of the front options screen + F10 owed to the maintainer.
18 lines
862 B
Batchfile
18 lines
862 B
Batchfile
@echo off
|
|
REM D356-session fix: build the PC port from a plain cmd environment.
|
|
REM
|
|
REM Background: the pi agent shell (git-bash/MSYS) silently drops nearly all
|
|
REM inherited env vars at the boundary into msys-2.0.dll programs (sh/gcc) --
|
|
REM they see only ~7 MSYS-standard vars, so gcc has no TEMP/TMP and fails
|
|
REM with "Cannot create temporary file in C:\Windows\: Permission denied"
|
|
REM (silent exit 1 under ninja). cmd.exe carries the full Windows env, so we
|
|
REM build through it with the MSYS2 toolchain prepended to PATH (needed for
|
|
REM cc1's sibling DLLs) and a guaranteed-writable temp dir.
|
|
setlocal
|
|
set "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%"
|
|
set "TEMP=C:\Users\james\AppData\Local\Temp"
|
|
set "TMP=%TEMP%"
|
|
cd /d C:\Users\james\Source\Repos\gh-fullhist
|
|
C:\msys64\mingw64\bin\cmake.exe --build build-pc -j %*
|
|
endlocal & exit /b %errorlevel%
|