mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Hold Y during logo to skip Slot-1 read
This commit is contained in:
parent
66af04e81a
commit
568f0f0eb7
@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
bool flashcardMountSkipped = true;
|
||||||
static bool flashcardMountRan = true;
|
static bool flashcardMountRan = true;
|
||||||
static bool dmTextPrinted = false;
|
static bool dmTextPrinted = false;
|
||||||
int dmCursorPosition = 0;
|
int dmCursorPosition = 0;
|
||||||
@ -42,7 +43,7 @@ void driveMenu (void) {
|
|||||||
int held = 0;
|
int held = 0;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (isDSiMode() && !pressed && !held) {
|
if (isDSiMode() && !flashcardMountSkipped && !pressed && !held) {
|
||||||
if (REG_SCFG_MC == 0x11) {
|
if (REG_SCFG_MC == 0x11) {
|
||||||
if (flashcardMounted) {
|
if (flashcardMounted) {
|
||||||
flashcardUnmount();
|
flashcardUnmount();
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
extern bool flashcardMountSkipped;
|
||||||
extern int dmCursorPosition;
|
extern int dmCursorPosition;
|
||||||
|
|
||||||
extern void driveMenu (void);
|
extern void driveMenu (void);
|
||||||
|
|||||||
@ -120,7 +120,11 @@ int main(int argc, char **argv) {
|
|||||||
if (isDSiMode()) {
|
if (isDSiMode()) {
|
||||||
sdMounted = sdMount();
|
sdMounted = sdMount();
|
||||||
}
|
}
|
||||||
|
scanKeys();
|
||||||
|
if (!isDSiMode() || !(keysHeld() & KEY_Y)) {
|
||||||
flashcardMounted = flashcardMount();
|
flashcardMounted = flashcardMount();
|
||||||
|
flashcardMountSkipped = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Top screen as a console
|
// Top screen as a console
|
||||||
videoSetMode(MODE_0_2D);
|
videoSetMode(MODE_0_2D);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user