Skip to content

Remove GB emulator code & add meta.json index ordering#23

Open
Inter-Raptor wants to merge 1 commit into
mainfrom
codex/update-launcher-configuration-and-fix-errors
Open

Remove GB emulator code & add meta.json index ordering#23
Inter-Raptor wants to merge 1 commit into
mainfrom
codex/update-launcher-configuration-and-fix-errors

Conversation

@Inter-Raptor
Copy link
Copy Markdown
Owner

Motivation

  • Fix a compilation/runtime issue caused by leftover Game Boy emulator integration and simplify the launcher to only start native game.bin images.
  • Provide a deterministic, user-controllable ordering for games via an integer index in meta.json so prioritized apps appear first.
  • Keep the SD sample data consistent with the requested priorities and remove GB/.gb assets from the bundled SD tree.

Description

  • Removed Game Boy launch-specific code and header from RaptorLauncher_V4/launcher_ui.cpp so the launcher no longer depends on gb_launch_config.h or the emulationGB code path and now launches only the native game.bin.
  • Replaced GameInfo::rom with an integer GameInfo::index in RaptorLauncher_V4/types.h and updated SD parsing in RaptorLauncher_V4/storage_manager.cpp to read index (falling back to legacy indice) and default to 30 when absent.
  • Added deterministic sorting in storageListGames(): sort by ascending index then case-insensitive alphabetical name for ties.
  • Updated the SD sample metadata under CarteSD/games/*/meta.json to include index values as requested (1: RaptorSDKTestLab; 2: WiFiTouchConsole; 3: DinoBlaster, DinoLife, JurassicBrickBreaker, ParaRunner; others 30) and regenerated CarteSD/games/index.json accordingly.
  • Removed the example Game Boy folder and assets (CarteSD/games/PokemonBleu_GB) and other GB emulator remnants from the SD sample to fully drop .gb/emulator artifacts.

Testing

  • Ran a JSON parse check with python against all CarteSD/games/*/meta.json and CarteSD/games/index.json, and parsing completed successfully.
  • Searched the codebase with rg for GB/emulation symbols and ROM references (gb_launch_config|emulationGB|PokemonBleu_GB|.gb|gb_emulator|"rom"|rom_path) and confirmed no remaining matches in the launcher and SD sample files.
  • Inspected the modified source files (RaptorLauncher_V4/launcher_ui.cpp, RaptorLauncher_V4/storage_manager.cpp, RaptorLauncher_V4/types.h) and SD metadata to verify the index read path, defaulting behavior, and sorting logic were applied as described.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant