Repository navigation
mgs: load the second disc - #16
Merged
Merged
Conversation
Bumps mgs_reversing to the virtual disc tray: disc 2's files go in mgs/DISC2 on the card, and the game's disc change screen swaps to them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
There was a problem hiding this comment.
🔵 Needs a closer look
The unpopulated mgs_reversing submodule prevents verification of the missing-disc fallback, return to disc 1, and disc-2 save-state restoration.
No open issues 🎉
What changed in this PR
Updates the MGS port’s README to document second-disc setup and disc-switching behavior.
Changes:
- Explains where to place disc 2’s extracted files and how to switch discs using START.
- Describes missing-disc behavior and restoration of disc 2 when loading a save state.
| File | Description |
|---|---|
components/mgs/README.md |
Documents disc 2 installation, switching, and save-state support. |
Review effort: Balanced
ESP-IDF Size Report for 'Tab5 Emu'
FLASH uses app .bin size or json2 flash sum. RAM sums DRAM+IRAM via idf_size. Percentages shown when totals are available. |
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
MGS can now change to disc 2. Copy disc 2's extracted files into
mgs/DISC2/on the SD card (next to disc 1'sSTAGE.DIR). When the game shows its "insert disc 2" screen, press START. The port swaps the files it reads in place of opening the console's lid, then the game runs its own disc check.How (mgs_reversing
esp32p4)change, abst's load,open/title,demosel) wait for the lid to open and close. On the port,MGS_TRAY_STEPputs the wanted disc in at that step and skips the spin-up steps. The sector-16 read is faked, andFS_CdMakePositionTablereports which disc is in.virtual_cd.c:Mgs_CdInsertDiscpauses the read-ahead task, reopens the files from the other disc's folder and clears the sectors it had already read from the old disc. IfDISC2is missing, it logs that and the game reports the wrong disc and asks again.MGS_DiskNamenow includes disc 2's executable name,SLUS_007.76.Testing
changestage.[vcd] disc 1 out, disc 2 in, then the game'sTHIS IS DISC 2!!/OK! OK!, thenload s13a.🤖 Generated with Claude Code
https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY