Repository navigation
One core picker on every screen, and nine more cores to choose from - #318
Merged
Merged
Conversation
The core picker (web/src/pages/games/CorePicker.tsx): which core plays one game, or a console's
games. Each core says what it's good at (accuracy, speed or balanced), how it draws here and
where else it runs, whether it needs a BIOS of the owner's own and whether it's installed.
Choosing one that isn't installed installs it, with its progress, then uses it. A sheet: from
the side on wide screens and from the bottom on a phone; ×, Escape, a controller's B, a remote's
Back or a tap outside closes it, and focus starts on the current choice.
- Game page: "Change core" beside the core that plays it, and "Choose a core" for a console with
none, replacing the old drop-down under How it plays.
- Settings, Consoles & cores: each console says what plays its games, with "Change core",
replacing the drop-down that only listed installed cores.
- The player's page offers chooseCore to the game menu, for administrators: the same picker over
the game, which answers restart, later or none, and says that in-game saves stay and save
states load only in the core that made them.
Server:
- GET /api/gaming/consoles/{console}/core, and choices on GET /api/gaming/games/{id}/core: every
core for the console, installed or not, with licence, strength and a line on it, coreSupport,
canInstall, recommended, a BIOS it can't start without and whether it's here, and for a game
how each has gone (core_choices.go).
- GET /api/gaming/cores/{id}/install: bytes received and the download's size while an install
runs, from WittyPlay's new cores.Manager.InstallProgress (stub regenerated; an older module
answers installing: false).
- core_notes.go: a line for every core in corebuilds.txt, kept in step by a test.
GET /games/consoles gives them as coreAbout.
- corebuilds.txt: QuickNES, bsnes, Gearboy, VBA-M, gpSP, Beetle PCE, Beetle SuperGrafx, Beetle
Lynx and RACE, checked against libretro's build server per platform. They're offered once
WittyPlay's console table has them (wittywilla/WittyPlay, same change).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The core picker (
web/src/pages/games/CorePicker.tsx): which core plays one game, or a console's games unless a game says otherwise.InstallProgress), then uses it.chooseCore()to the game menu (administrators only): the same picker over the game, answeringrestart,laterornone, and saying that in-game saves stay and save states load only in the core that made them. The game menu's row that calls it belongs to the WittyPlay design session's menu work (asked; see below).Server
GET /api/gaming/consoles/{console}/core, andchoicesonGET /api/gaming/games/{id}/core(itsoptionsstay for older clients): every core for the console, installed or not, withstrength,about,support(coreSupport),canInstall,recommended,bios, and per-game stats.core_choices.go.GET /api/gaming/cores/{id}/install:{installing, received, total}while an install runs. An older WittyPlay answersinstalling: false, and the bar has no size.core_notes.go: a line for every core incorebuilds.txt, kept in step by a test;GET /games/consolesgives them ascoreAbout.corebuilds.txt: nine new cores, checked per platform withscripts/corebuilds(HEAD requests only). They're offered once WittyPlay has them: Nine more cores, and an install says how far it has got WittyPlay#42.internal/play/cores/gen.goregenerated forInstallProgressonly. Regenerating everything from WittyPlay'smainalso brings Play!'s.binrefusals and an unused import instream/gen.go, so those stubs are left as they were.New cores and where each has a build (libretro's build server; FreeBSD has none):
Tested
go test -raceforinternal/server,internal/play/...andscripts/corebuilds, with WittyPlay#42 from a test catalogue (WMS_TEST_CATALOG); new tests for the choices, the BIOS need and the notes table.npx tsc --noEmit,npm run build, CI's node tests (111 pass),npm run test:pads, theme contrast, design tokens and design rules.wittyplay-checkwith the owner's games: see WittyPlay#42 for bsnes (16 retail games, special chips included).Not done here
host.chooseCore, switching mid-game goes through the game's page.🤖 Generated with Claude Code