mirror of
https://github.com/wiidev/usbloadergx.git
synced 2025-01-11 03:09:08 +01:00
*Changed the OnScreenKeyboard to allow to remove "SD:/" now so you can just enter "USB:/" instead to use USB FAT/FAT32 for covers and stuff
*Added USB Remount to SDCard Button
This commit is contained in:
parent
f5e6663784
commit
6f22ffa6f4
@ -1244,7 +1244,7 @@ int MenuSettings()
|
|||||||
w.Remove(&backBtn);
|
w.Remove(&backBtn);
|
||||||
char entered[43] = "";
|
char entered[43] = "";
|
||||||
strncpy(entered, Settings.covers_path, sizeof(entered));
|
strncpy(entered, Settings.covers_path, sizeof(entered));
|
||||||
int result = OnScreenKeyboard(entered,43,4);
|
int result = OnScreenKeyboard(entered,43,0);
|
||||||
w.Append(&optionBrowser2);
|
w.Append(&optionBrowser2);
|
||||||
w.Append(&backBtn);
|
w.Append(&backBtn);
|
||||||
if ( result == 1 )
|
if ( result == 1 )
|
||||||
@ -1270,7 +1270,7 @@ int MenuSettings()
|
|||||||
w.Remove(&backBtn);
|
w.Remove(&backBtn);
|
||||||
char entered[43] = "";
|
char entered[43] = "";
|
||||||
strncpy(entered, Settings.disc_path, sizeof(entered));
|
strncpy(entered, Settings.disc_path, sizeof(entered));
|
||||||
int result = OnScreenKeyboard(entered, 43,4);
|
int result = OnScreenKeyboard(entered, 43,0);
|
||||||
w.Append(&optionBrowser2);
|
w.Append(&optionBrowser2);
|
||||||
w.Append(&backBtn);
|
w.Append(&backBtn);
|
||||||
if ( result == 1 )
|
if ( result == 1 )
|
||||||
@ -1296,7 +1296,7 @@ int MenuSettings()
|
|||||||
w.Remove(&backBtn);
|
w.Remove(&backBtn);
|
||||||
char entered[43] = "";
|
char entered[43] = "";
|
||||||
strncpy(entered, CFG.theme_path, sizeof(entered));
|
strncpy(entered, CFG.theme_path, sizeof(entered));
|
||||||
int result = OnScreenKeyboard(entered, 43,4);
|
int result = OnScreenKeyboard(entered, 43,0);
|
||||||
HaltGui();
|
HaltGui();
|
||||||
w.RemoveAll();
|
w.RemoveAll();
|
||||||
if ( result == 1 )
|
if ( result == 1 )
|
||||||
@ -1353,7 +1353,7 @@ int MenuSettings()
|
|||||||
w.Remove(&backBtn);
|
w.Remove(&backBtn);
|
||||||
char entered[43] = "";
|
char entered[43] = "";
|
||||||
strncpy(entered, Settings.titlestxt_path, sizeof(entered));
|
strncpy(entered, Settings.titlestxt_path, sizeof(entered));
|
||||||
int result = OnScreenKeyboard(entered,43,4);
|
int result = OnScreenKeyboard(entered,43,0);
|
||||||
w.Append(&optionBrowser2);
|
w.Append(&optionBrowser2);
|
||||||
w.Append(&backBtn);
|
w.Append(&backBtn);
|
||||||
if ( result == 1 )
|
if ( result == 1 )
|
||||||
@ -1384,7 +1384,7 @@ int MenuSettings()
|
|||||||
w.Remove(&backBtn);
|
w.Remove(&backBtn);
|
||||||
char entered[43] = "";
|
char entered[43] = "";
|
||||||
strncpy(entered, Settings.update_path, sizeof(entered));
|
strncpy(entered, Settings.update_path, sizeof(entered));
|
||||||
int result = OnScreenKeyboard(entered,43,4);
|
int result = OnScreenKeyboard(entered,43,0);
|
||||||
w.Append(&optionBrowser2);
|
w.Append(&optionBrowser2);
|
||||||
w.Append(&backBtn);
|
w.Append(&backBtn);
|
||||||
if ( result == 1 )
|
if ( result == 1 )
|
||||||
|
@ -185,8 +185,8 @@ static int MenuDiscList()
|
|||||||
int selectImg1 = 0;
|
int selectImg1 = 0;
|
||||||
char ID[4];
|
char ID[4];
|
||||||
char IDfull[7];
|
char IDfull[7];
|
||||||
|
|
||||||
|
|
||||||
datagB=0;
|
datagB=0;
|
||||||
int menu = MENU_NONE, dataef=0;
|
int menu = MENU_NONE, dataef=0;
|
||||||
char imgPath[100];
|
char imgPath[100];
|
||||||
@ -341,8 +341,8 @@ static int MenuDiscList()
|
|||||||
GuiButton gameInfo(0,0);
|
GuiButton gameInfo(0,0);
|
||||||
gameInfo.SetTrigger(&trig2);
|
gameInfo.SetTrigger(&trig2);
|
||||||
gameInfo.SetSoundClick(&btnClick);
|
gameInfo.SetSoundClick(&btnClick);
|
||||||
|
|
||||||
|
|
||||||
GuiImage wiiBtnImg(&dataID);
|
GuiImage wiiBtnImg(&dataID);
|
||||||
wiiBtnImg.SetWidescreen(CFG.widescreen);
|
wiiBtnImg.SetWidescreen(CFG.widescreen);
|
||||||
GuiButton wiiBtn(&wiiBtnImg,&wiiBtnImg, 0, 4, 0, -10, &trigA, &btnSoundOver, &btnClick,0);
|
GuiButton wiiBtn(&wiiBtnImg,&wiiBtnImg, 0, 4, 0, -10, &trigA, &btnSoundOver, &btnClick,0);
|
||||||
@ -677,6 +677,7 @@ static int MenuDiscList()
|
|||||||
|
|
||||||
else if(sdcardBtn.GetState() == STATE_CLICKED)
|
else if(sdcardBtn.GetState() == STATE_CLICKED)
|
||||||
{
|
{
|
||||||
|
USBDevice_Init()
|
||||||
SDCard_deInit();
|
SDCard_deInit();
|
||||||
SDCard_Init();
|
SDCard_Init();
|
||||||
if (Settings.gameDisplay==list){
|
if (Settings.gameDisplay==list){
|
||||||
@ -1067,7 +1068,7 @@ static int MenuDiscList()
|
|||||||
struct discHdr *header = &gameList[selectImg1];
|
struct discHdr *header = &gameList[selectImg1];
|
||||||
snprintf (ID,sizeof(ID),"%c%c%c", header->id[0], header->id[1], header->id[2]);
|
snprintf (ID,sizeof(ID),"%c%c%c", header->id[0], header->id[1], header->id[2]);
|
||||||
snprintf (IDfull,sizeof(IDfull),"%c%c%c%c%c%c", header->id[0], header->id[1], header->id[2],header->id[3], header->id[4], header->id[5]);
|
snprintf (IDfull,sizeof(IDfull),"%c%c%c%c%c%c", header->id[0], header->id[1], header->id[2],header->id[3], header->id[4], header->id[5]);
|
||||||
|
|
||||||
choice = showGameInfo(IDfull, header->id);
|
choice = showGameInfo(IDfull, header->id);
|
||||||
if (choice>0){
|
if (choice>0){
|
||||||
gameInfo.ResetState();
|
gameInfo.ResetState();
|
||||||
@ -1091,7 +1092,7 @@ static int MenuDiscList()
|
|||||||
if (Settings.gameDisplay==list) {
|
if (Settings.gameDisplay==list) {
|
||||||
//Get selected game under cursor
|
//Get selected game under cursor
|
||||||
int selectimg;//, promptnumber;
|
int selectimg;//, promptnumber;
|
||||||
|
|
||||||
selectimg = gameBrowser->GetSelectedOption();
|
selectimg = gameBrowser->GetSelectedOption();
|
||||||
gameSelected = gameBrowser->GetClickedOption();
|
gameSelected = gameBrowser->GetClickedOption();
|
||||||
selectImg1=selectimg;
|
selectImg1=selectimg;
|
||||||
@ -1198,7 +1199,7 @@ static int MenuDiscList()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((gameSelected >= 0) && (gameSelected < (s32)gameCnt))
|
if ((gameSelected >= 0) && (gameSelected < (s32)gameCnt))
|
||||||
{
|
{
|
||||||
struct discHdr *header = &gameList[gameSelected];
|
struct discHdr *header = &gameList[gameSelected];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user