Skip to content

fix(port): stub gMapTop/gMapBottom for debug_actions_test - #207

Merged
999sian merged 1 commit into
999sian:masterfrom
jacobjordan94:fix/debug-actions-test-map-stubs
Oct 20, 2026
Merged

999sian merged 1 commit into
999sian:masterfrom
jacobjordan94:fix/debug-actions-test-map-stubs

Conversation

@jacobjordan94

Copy link
Copy Markdown

What this does

Fixes a link failure in the debug_actions_test target: port_debug_actions.c references gMapTop/gMapBottom (in Port_DebugAction_FindSafe and Port_DebugAction_WarpTick), but this test's minimal file list never picked up a definition for them. They're only defined in the full engine's port_linked_stubs.c, which this isolated test deliberately doesn't link.

Adds local stubs for both, following the exact same pattern this file already uses for gSave, gArea, gMain, gRoomControls, etc.

Found while investigating a CI failure on PR #206 (unrelated feature work) -- reproduces identically on a clean master checkout, confirming it predates #206 and wasn't introduced by it.

Testing

  • xmake build -y debug_actions_test -- links clean (previously failed with undefined reference to 'gMapBottom' 'gMapTop').
  • ./build/pc/debug_actions_test -- DEBUG-ACTIONS REGRESSION OK, exit 0.
  • xmake build -y tmc_pc -- unaffected, still builds clean.
  • Headless smoke run reaches Port layer initialized. Entering AgbMain....

Tested on Linux (Debian via distrobox).

Follows the existing local-stub pattern for gSave/gArea/gMain; the test target never links the real engine definitions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants