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

add loader error messages if no usb device is mounted for slippi file write #40

Open
wants to merge 6 commits into
base: slippi
Choose a base branch
from

Conversation

jmlee337
Copy link

@jmlee337 jmlee337 commented Oct 1, 2023

currently, Slippi Nintendont shuts down the Wii completely if there is no usable file write device. there is no way to know beforehand if the file write device is usable. these messages will help users verify that their usb drive is usable for file write, and diagnose why if not

this change also fixes a small bug in diskio.c regarding init status

@@ -817,24 +818,63 @@ static void Menu_GameSelection_Redraw(MenuCtx *ctx)
PrintFormat(DEFAULT_SIZE, (ncfg->Config & (NIN_CFG_SLIPPI_FILE_WRITE)) ? GREEN : RED, MENU_POS_X+340+(22*10),
gamelist_y, "%-3s", (ncfg->Config & (NIN_CFG_SLIPPI_FILE_WRITE)) ? "ON" : "OFF");

// Warn the user if they're running low on USB disk space
if ((usb_attached == 1) && (ncfg->Config & (NIN_CFG_SLIPPI_FILE_WRITE)))
if ((ncfg->UseUSB == 0) && (usb_attached != 1) && (ncfg->Config & (NIN_CFG_SLIPPI_FILE_WRITE)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can i get some pictures of what these states look like?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PXL_20240926_010615707
PXL_20240926_010711920
PXL_20240926_012209324

the text clarifies that the notice will not update until slippi nintendont restart
this allows the user to check usb drive readiness for file write without returning to loader or restarting the Wii.

also add affirmative usb drive file write ready message.

It also fixes a bug where having initially no usb drive for file write inserted and then inserting a valid usb drive and backing out to device selection, then coming back in to game selection would show the file system warning/error.
no one should be using FAT/FAT16, so remove that mention.
add mention that exFAT is recommended, due to some hotswap problems with FAT32 drives that are somewhat full already
@jmlee337
Copy link
Author

not ready for merge, not transitioning from the [wrong format] to [ready] state correctly

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