- fix for nand switching to make it work with root nands. and fixed english.ini thanks to EtheBoss

This commit is contained in:
fledge68 2013-07-10 16:40:47 +00:00
parent 84892d53d8
commit 1e116f27c5
2 changed files with 8 additions and 8 deletions

View File

@ -114,7 +114,6 @@ void CMenu::_Explorer(void)
strcat(dir, entries_char[i-1]); strcat(dir, entries_char[i-1]);
/* otherwise it fails */ /* otherwise it fails */
strcat(dir, "/"); strcat(dir, "/");
//gprintf("Directory path =%s\n", dir);
_refreshExplorer(); _refreshExplorer();
} }
else else
@ -383,8 +382,8 @@ string CMenu::_FolderExplorer(void)
{ {
path = dir; path = dir;
//check to make sure it's not just device+partition //check to make sure it's not just device+partition
if(path.find_first_of("/") == path.find_last_of("/")) //if(path.find_first_of("/") == path.find_last_of("/"))
path = ""; // path = "";
} }
break; break;
} }
@ -410,10 +409,8 @@ string CMenu::_FolderExplorer(void)
else else
{ {
folderName = folderName.erase(folderName.find_last_of("/")); folderName = folderName.erase(folderName.find_last_of("/"));
//if it was just device and :/ then foldername empty //if its more than just device and :/ then erase up to last foldername
if(folderName.find_last_of("/") == string::npos) if(folderName.find_last_of("/") != string::npos)
folderName = "";
else
folderName = folderName.erase(0, folderName.find_last_of("/")+1); folderName = folderName.erase(0, folderName.find_last_of("/")+1);
} }
//if we removed device then clear path completely //if we removed device then clear path completely
@ -434,7 +431,10 @@ string CMenu::_FolderExplorer(void)
{ {
explorer_partition = i-2; explorer_partition = i-2;
if(DeviceHandle.IsInserted(i-2)) if(DeviceHandle.IsInserted(i-2))
{
strcpy(dir, fmt("%s:/", DeviceName[i-2])); strcpy(dir, fmt("%s:/", DeviceName[i-2]));
folderName = dir;
}
_refreshFolderExplorer(); _refreshFolderExplorer();
} }
//if it's a folder add folder+/ to path //if it's a folder add folder+/ to path

View File

@ -134,7 +134,7 @@ cfgne29=Flashed: %d saves / %d files / %d folders
cfgne30=Flashing save files finished! cfgne30=Flashing save files finished!
cfgne31=Select Partition cfgne31=Select Partition
cfgne32=Change Nand cfgne32=Change Nand
cfgne32=Change Saves Nand cfgne33=Change Saves Nand
cfgp1=Game Partition cfgp1=Game Partition
cfgp3=Init network on boot cfgp3=Init network on boot
cfgpl1=Select Plugins cfgpl1=Select Plugins