Move to the store's own EmulationStation menu entry

Engine 4.0 gives a store its own carousel entry instead of scattering the
games across the box's systems, so this config switches to it: the games
land in /userdata/roms/teletypegames/ with a folder per platform, and the
sync is started from *Teletype Games -> Store -> "Update Teletype Games"*.

That makes the Ports entry redundant, so the installer stops asking for
one — the engine takes the old *Ports -> Teletype Games Store* script away
on the first sync after the upgrade, along with the old ROM folders. The
games are downloaded again into the new place rather than moved; today's
catalog is six cartridges and one native build.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-23 12:57:45 +02:00
co-authored by Claude Opus 5
parent 5062e0da63
commit 049f09d0c0
3 changed files with 91 additions and 49 deletions
+7 -6
View File
@@ -25,14 +25,15 @@ else
fi
export STORE_CONFIG ENGINE_RAW_BASE
# Keep the Ports entry the box already has, so an upgrade replaces it in place.
BATOCERA_PORT_NAME="${BATOCERA_PORT_NAME:-Teletype Games Store}"
export BATOCERA_PORT_NAME
# No Ports entry any more: the store has its own EmulationStation menu entry,
# with the updater inside it. The engine takes the old Ports entry away on the
# first sync after the upgrade.
# --- migrate the pre-split ttg-store layout -------------------------------
# Up to engine 1.x everything lived in /userdata/system/ttg-store. The ROMs
# themselves do not move (the subfolder is still `teletypegames`), so carrying
# state.json across is enough to avoid a full re-download.
# Up to engine 1.x everything lived in /userdata/system/ttg-store. Carrying
# state.json across is what lets the engine recognise what is installed — from
# engine 4.0 on it uses that to take the old layout off the box before filling
# /userdata/roms/teletypegames, the store's own folder.
LEGACY_HOME="${LEGACY_STORE_HOME:-/userdata/system/ttg-store}"
NEW_HOME="${BATOCERA_STORE_ROOT:-/userdata/system/batocera-store}/ttg"