usbloadergx icon indicating copy to clipboard operation
usbloadergx copied to clipboard

Add options to autoboot from disc

Open jdfr228 opened this issue 1 year ago • 0 comments

This pull request is intended to:

  • Eliminate an unnecessary disc drive reset when loading games from disc.
    • A manual reset is added for the Install Disc prompt where the reset is actually needed if a disc is already in the drive.
  • Add two options in the GUI Settings menu:
    • Autoboot Discs- This will attempt to autoboot a game disc during the initial splash loading screen. The user is shown a "Press B to cancel" prompt to skip the autoboot process, with a countdown timer identical to the 20 second waiting for HDD prompt when not in SD card mode. Defaults to OFF.
    • Autoboot Discs Delay- This is the time in seconds that the prompt will be shown before attempting to boot from disc, selectable from 0-5 seconds. Defaults to 3 seconds.

Some notes/things you may want to change:

  • drawCancel and cancelTxt in StartUpProcess.cpp can probably be re-used for the "Press B to cancel" message.
  • You may want to remove the short wait after a potential disc mounting failure in AutobootDisc()- depends on if the rest of the project often shows error messages to users, or if the delay is too long on real hardware.
  • Initialization functions past the "Loading Resources" message were moved to avoid a font reload making the autoboot prompt look very strange (any message past text loading would be affected by this).

jdfr228 avatar Apr 16 '23 03:04 jdfr228