app_info dialog:

- make 'load' button selected by default
- make sure dvd icon is shown, if necessary
This commit is contained in:
Christopher Roy Bratusek 2012-03-20 18:17:28 +01:00
parent cd0da08952
commit 477538c898
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,4 @@
38-
37-
Beta-
36-

View File

@ -60,7 +60,7 @@ AppInfo(const char *title, string dir, u8* icon)
GuiImage * viewdevice = NULL;
if((Options.device_icon == 2 || Options.device_icon == 3) && Settings.device == "sd_usb")
if((Options.device_icon == 2 || Options.device_icon == 3 || Options.device_icon == 5) && (Settings.device == "sd_usb" || Settings.device == "all"))
{
bool icon = false;
if(strncmp(dir.c_str(), "sd", 2) == 0)
@ -73,6 +73,11 @@ AppInfo(const char *title, string dir, u8* icon)
viewdevice = new GuiImage(new GuiImageData(Theme.usb_inactive));
icon = true;
}
else if(strncmp(dir.c_str(), "dvd", 3) == 0)
{
viewdevice = new GuiImage(new GuiImageData(Theme.dvd_inactive));
icon = true;
}
if(icon)
{
@ -260,7 +265,7 @@ AppInfo(const char *title, string dir, u8* icon)
ResumeGui();
edit.ResetState();
cancel.SetState(STATE_SELECTED);
btn1.SetState(STATE_SELECTED);
while(choice == -1)
{
usleep(100);

View File

@ -1,3 +1,8 @@
//rev38:
- in the app-info dialog pre-select the 'load' button, rather than
the exit button (allows A+A on an app for quick-start)
- in the app-info dialog the dvd-icon is now shown if necessary
//rev37:
- improved update-mechanism:
* copy the old boot.dol to prev.dol