Skip to content

Fix bugfixedapi_amxx engine table ABI for Metamod-R - #313

Open
tamiuwu wants to merge 3 commits into
tmp64:masterfrom
tamiuwu:fix-312-metamod-r-abi
Open

tamiuwu wants to merge 3 commits into
tmp64:masterfrom
tamiuwu:fix-312-metamod-r-abi

Conversation

@tamiuwu

@tamiuwu tamiuwu commented Nov 18, 2026 •

Copy link
Copy Markdown

Summary

  • Limit GetEngineFunctions and GetEngineFunctions_Post copies to the common enginefuncs_t prefix, using the offset of BugfixedHL's trailing extension.
  • Zero-initialize the local extended table before importing the host prefix, leaving pfnPEntityOfEntIndexAllEntities null when Metamod-R does not provide it.
  • Add a CTest regression test for the destination guard and null extension; include it in the server CI target.

Tip

Update: Tested.

Note

Metamod-P already incorporated support for entry 159. Its implementation includes interfaces for 158 and 159 entries.
Therefore, PR #313 is not a universal implementation of the 159-function interface. It is a safe adaptation to the 158-function ABI. If bhl API starts using the additional function in the future, that part will need to be adapted.

Relates to #312

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@tamiuwu tamiuwu closed this Nov 18, 2026
@tamiuwu
tamiuwu deleted the fix-312-metamod-r-abi branch November 18, 2026 07:10
@tamiuwu
tamiuwu restored the fix-312-metamod-r-abi branch November 18, 2026 07:13
@tamiuwu tamiuwu reopened this Nov 18, 2026
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.

1 participant