Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freezer resets CHDIR U12 (SD card current working directory) #63

Open
dansanderson opened this issue Feb 8, 2023 · 1 comment
Open
Labels
enhancement New feature or request
Milestone

Comments

@dansanderson
Copy link
Contributor

The CHDIR command can be used with U12 to change the current working directory on the SD card, such that subsequent SD card commands like DIR U12 use that subdir. If I enter the Freezer then resume, the current working directory is reset back to the root.

This sounds obscure but I discovered it while using Gurce's Demo Disk #2, which uses MOUNT programmatically. I keep the contents in a subdir, and load the demo disk menu with CHDIR "INTRO2",U12:MOUNT "INTRO2.D81":BOOT. Everything works fine. But then I opened the Freezer to activate Joystick Swap, then when I resumed the menu could not access other disk images because the current working directory went back to the root.

It would be an improvement if the Freezer did not reset the current working directory on the SD card. If the Freezer's own SD card nav shares the same cwd as these BASIC commands, maybe it's fine if it's preserved on resume.

Bonus feature request: Make it an explicit feature of the Freezer to change the cwd via its browser, so I can use it instead of CHDIR U12.

@lydon42 lydon42 added the enhancement New feature or request label Mar 11, 2023
@lydon42 lydon42 added this to the far future milestone Mar 11, 2023
@lydon42
Copy link
Member

lydon42 commented Mar 11, 2023

There is currently no way to do this, as you can't query the current directory.
To be able to do this, we will need core/HYPPO support. Perhaps HYPPO needs to store where it changed directory to, in combination with some UID of the card, so it can be invalidated if the card is changed.

Connected to #62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants