*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:
dimok321 2009-06-10 08:19:55 +00:00
parent f5e6663784
commit 6f22ffa6f4
2 changed files with 13 additions and 12 deletions

View File

@ -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 )

View File

@ -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){