Skip to content

feat: plugin API 8 (nevr-runtime v5.18.0's header, check_mod accepts "api": 8) - #6

Open
marshmallow-mia wants to merge 1 commit into
mainfrom
feat/plugin-api-8
Open

marshmallow-mia wants to merge 1 commit into
mainfrom
feat/plugin-api-8

Conversation

@marshmallow-mia

Copy link
Copy Markdown
Member

nevr-runtime v5.15.0 (#1105) added the game's main level to every context as API v8: level_symbol and level_name at the tail of NvrGameContext, plus the Quest additions after them (game_build_id, NEVR_HOST_PLATFORM_QUEST). A mod that reads them declares "api": 8, which check_mod.py refused.

  • include/nevr_plugin_interface.h: re-copied from nevr-runtime's src/extension/plugin_interface.h at v5.18.0 (6609d425); the template's NEVR_CTX_HAS and static_asserts kept, with the v8 offset (level_symbol at 64) and the context's size (88) asserted.
  • tools/check_mod.py: "api" 5 to 8.
  • tests: 5–8 pass, 4 and 9 are refused.

Checked:

  • the MinGW build (static_asserts hold);
  • the 38 tests;
  • check_mod.py on the built DLL;
  • an "api": 8 copy built with -DECHO_MOD_ASSET_EXAMPLE=ON passing check_mod.py.

…"api": 8)

nevr-runtime v5.15.0 (#1105) added the game's main level to every context as API v8:
level_symbol and level_name at the tail of NvrGameContext, plus the Quest additions after them
(game_build_id, NEVR_HOST_PLATFORM_QUEST). A mod that reads them declares "api": 8, which
check_mod.py refused.

- include/nevr_plugin_interface.h: re-copied from nevr-runtime's src/extension/plugin_interface.h
  at v5.18.0 (6609d425); the template's NEVR_CTX_HAS and static_asserts kept, with the v8 offset
  (level_symbol at 64) and the context's size (88) asserted.
- tools/check_mod.py: "api" 5 to 8.
- tests: 5-8 pass, 4 and 9 are refused.

Checked: the MinGW build (static_asserts hold), the 38 tests, check_mod.py on the built DLL, and
an "api": 8 copy built with -DECHO_MOD_ASSET_EXAMPLE=ON passing check_mod.py.
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