Hold Y during logo to skip Slot-1 read

This commit is contained in:
RocketRobz 2018-10-06 21:21:24 -06:00
parent 66af04e81a
commit 568f0f0eb7
3 changed files with 8 additions and 2 deletions

View File

@ -33,6 +33,7 @@
using namespace std;
bool flashcardMountSkipped = true;
static bool flashcardMountRan = true;
static bool dmTextPrinted = false;
int dmCursorPosition = 0;
@ -42,7 +43,7 @@ void driveMenu (void) {
int held = 0;
while (true) {
if (isDSiMode() && !pressed && !held) {
if (isDSiMode() && !flashcardMountSkipped && !pressed && !held) {
if (REG_SCFG_MC == 0x11) {
if (flashcardMounted) {
flashcardUnmount();

View File

@ -4,6 +4,7 @@
#include <string>
#include <vector>
extern bool flashcardMountSkipped;
extern int dmCursorPosition;
extern void driveMenu (void);

View File

@ -120,7 +120,11 @@ int main(int argc, char **argv) {
if (isDSiMode()) {
sdMounted = sdMount();
}
flashcardMounted = flashcardMount();
scanKeys();
if (!isDSiMode() || !(keysHeld() & KEY_Y)) {
flashcardMounted = flashcardMount();
flashcardMountSkipped = false;
}
// Top screen as a console
videoSetMode(MODE_0_2D);