fix: main links again: hos_disable_camera_centering is back in host/mouse_native.c #2632

Merged
NotRexed merged 1 commit from fix/camera-centering-link into main 2026-11-12 03:37:56 +00:00
NotRexed commented 2026-11-12 03:31:34 +00:00 (Migrated from github.com)

Main doesn't build. #2617 rewrote host/mouse_native.c and removed hos_disable_camera_centering. The game's patched camera update still calls it (nx2/oot_patches.py, the Controls row "Disable camera centering"). A full build of main at 8568959d compiled everything and then stopped at the link:

ld.lld: error: undefined symbol: hos_disable_camera_centering

Fix: the function is back as it was (rx_option(45, 0)).

Guard: tests/test_patch_hooks_defined.py checks that every host function the game's patches declare extern is defined in host/ or gpu/vk/. It fails on main as it is (naming this function) and passes with the fix. The source checks would have caught this before a build did.

🤖 Generated with Claude Code

**Main doesn't build.** #2617 rewrote `host/mouse_native.c` and removed `hos_disable_camera_centering`. The game's patched camera update still calls it (`nx2/oot_patches.py`, the Controls row "Disable camera centering"). A full build of main at 8568959d compiled everything and then stopped at the link: ``` ld.lld: error: undefined symbol: hos_disable_camera_centering ``` **Fix:** the function is back as it was (`rx_option(45, 0)`). **Guard:** `tests/test_patch_hooks_defined.py` checks that every host function the game's patches declare `extern` is defined in `host/` or `gpu/vk/`. It fails on main as it is (naming this function) and passes with the fix. The source checks would have caught this before a build did. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Commenting is not possible because the repository is archived.
No description provided.