Skip to content

Commit

Permalink
-if the config file provided only contains one title id boot that dir…
Browse files Browse the repository at this point in the history
…ectly, no need to display a selection menu for that
  • Loading branch information
FIX94 committed Jan 4, 2017
1 parent f0498cb commit b308a94
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct selTitle {
std::string name;
};

static const char *verChar = "HBL2HBC v1.1 by FIX94";
static const char *verChar = "HBL2HBC v1.1u1 by FIX94";

static unsigned int getButtonsDown();
static bool doIdSelect();
Expand Down Expand Up @@ -183,6 +183,12 @@ static bool doIdSelect()
titleToBoot = 0x4c554c5a;
goto func_exit;
}
else if(entries == 1)
{
//no point in displaying 1 option
titleToBoot = selTitles[0].id;
goto func_exit;
}

OSScreenInit();
screen_buf0_size = OSScreenGetBufferSizeEx(0);
Expand Down

0 comments on commit b308a94

Please sign in to comment.