Skip to content

Add disc management functions for ejecting and inserting discs - #875

Open
SeveNIC8 wants to merge 2 commits into
LoveRetro:mainfrom
SeveNIC8:main
Open

SeveNIC8 wants to merge 2 commits into
LoveRetro:mainfrom
SeveNIC8:main

Conversation

@SeveNIC8

Copy link
Copy Markdown

Introduce functions to manage disc operations, including checking the eject state, inserting, and ejecting discs. Update the menu to support these new disc operations.

@SeveNIC8
SeveNIC8 marked this pull request as ready for review October 23, 2026 22:24
@josegonzalez

Copy link
Copy Markdown
Collaborator

Did the existing code for changing discs within an m3u file not work? What does this add/fix?

@SeveNIC8

Copy link
Copy Markdown
Author

Yes, it doesn't work (tested on the PUAE core). When loading an .m3u file, the first disk loads correctly. However, when the game prompts for a disk change and I select the correct one from the menu, nothing happens. The game remains stuck waiting for the disk change.

Looking at the status bar, I can see D0 (for DF0), but the track number never updates to show it's loading. Normally, when a disk is inserted, the label switches from D0 to the active track number.

I noticed that introducing an explicit eject/insert state cycle during the disk change forces the PUAE core to correctly register the transition. I now get a notification confirming the disk has been inserted or ejected, whereas previously, simply changing the disk did nothing.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants