mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-19 04:15:57 +00:00
recomp/patches-v121.txt gets set fov on the two camera routines the aspect set already patches, at the load of the camera's vertical view angle (+0x13c): camera update main+0xcb4ad8, camera setup main+0x1252194. The update site matches 1.4.3's instruction for instruction around the load; the setup site copies the camera's fields with other instructions and registers before it and matches 1.4.3's from the load on. Both call sinf, cosf and tanf in the same order as on 1.4.3. Each version fills sead's perspective projection this way in ten places, each with its counterpart in the other version: these two camera copies, which are the only places 1.4.3 patches, and eight others (inlined copies, projection routines and four projections on the stack), none patched. The replacement words are those of the 1.1.0 and 1.4.3 sets (x10 kept on the stack, s8 overwritten by the next instruction), so no register liveness is assumed. #621 (ipavlin98, closed by its author) chose the same two sites with x8 and s2 as scratch registers. The setting's text in totk.ini.example and in the four menu languages names 1.2.1, and the comment of runtime/resolution.c res_fov_live names the patch files of all three versions. Co-Authored-By: Claude <noreply@anthropic.com>