Skip to content

NBT App SDK 0.4.0

Pre-release
Pre-release

Choose a tag to compare

@fpoussin fpoussin released this 28 Nov 22:14
· 40 commits to main since this release
89c062b

Phone pages in every form, long lists, and the emulator's page. Source only; an application pins this commit in its release/sdk.ref.

Serves

  • Bridge up to 1.11: companion for modules and guests (through nbt-runner), plus everything of 0.3.0.
  • Host ABI 1.1 for modules and guests: two optional members appended (companion_publish, companion_events). A payload built with this SDK still runs on an older runner, without a page.
  • NBT toolchain 1.2.0, unchanged.

New

  • nbt::app::Companion works in modules and guests: nbt-runner (NBT Manager 0.8.0) holds the page and passes it on.
  • Companion::list(): a list of any length the phone app pages through, 50 rows at a time; Companion::window() tells when the phone asks for other rows.
  • libnbt-retro: an emulator whose package declares companion gets a page in the phone app with no code of its own: the game list, Pause or Resume, Save and Load state with the slot, Reset and Close game.

What applications must change

Nothing for existing applications. A module or guest with a phone page declares --bridge 1.11 and companion (optional); a native program keeps --bridge 1.9.