Skip to content

EN Compatibility

Cavanshirpro edited this page Sep 20, 2026 · 2 revisions

Backward Compatibility — LeoMiniGames v0.7.0

v0.7.0 is designed as an additive compatibility/security upgrade. A supported v0.5/v0.6 RCC package must not be rejected merely because it predates v0.7 API metadata.

Three compatibility paths

  1. v0.5/v0.6 legacy package: missing api_version is accepted and selects compatibility behavior.
  2. Legacy RCC prefix: internal /mods/<id> is accepted only when the whole RCC is namespace-contained.
  3. v0.7 modern package: explicit API/minimum API and hard capability negotiation can be used.

Preserved game-facing names

Compatibility facades preserve supported call shapes such as App, Settings, Lang, Audio, GameTheme and Lifecycle. Newer services such as GameSave, GameSettings, GameInput, GameI18n, GameAudio, GameStats, Achievements, GameRandom, GameClock, GameEvents, GameResources, GameRuntime and GameLogger remain available where appropriate.

Preservation of a name does not mean external QML receives the raw host object. v0.7 uses scoped facades so backward compatibility does not become host-global settings/filesystem/package-manager authority.

Settings and save compatibility

Legacy unnamespaced settings can be read through compatibility migration and moved into the scoped compatibility namespace. New writes use the game namespace. Gameplay saves are not automatically rewritten merely because the host upgraded; GameSave migration is explicit and ordered.

Audio/input compatibility

Legacy audio conveniences are retained through a scoped facade. Named effect IDs must not be confused with arbitrary filesystem paths. Arrow keys remain logical fallbacks; physical WASD handling is centralized so games do not need duplicated keyboard-layout scan-code tables.

Network compatibility

Modern v0.7 external packages need the appropriate declared network capability for HTTPS. Installed legacy packages without a v0.7 API declaration retain their historical HTTPS behavior. Developer-local RCC networking stays disabled as a deliberate trust boundary.

Intentional non-compatibility

Compatibility does not restore private or unsafe implementation access that was never a supported game API: raw application paths, unrestricted package install/remove managers, arbitrary filesystem audio, host-global diagnostics export, or self-declared Native/L3 trust remain outside the external RCC contract.

Regression corpus

The repository includes compatibility fixtures for canonical v0.5, legacy-prefix v0.5, v0.6 services, v0.7 modern packages and a malicious legacy namespace case that must be rejected. Qt-enabled CTest converts fixtures into real RCCs when the required Qt tooling is available.

Migration rule for maintainers

When a legitimate supported old package breaks, prefer a scoped adapter, migration or fallback over deleting old support. If the old package depended on a private/unsafe implementation detail, report the incompatibility clearly rather than silently re-granting privilege.

Canonical sources: docs/sdk/COMPATIBILITY.md and COMPATIBILITY_REPORT.md.

Clone this wiki locally