forked from len0rd/rockbox
Hopefully fix crashes if the start screen is set to previous and nvram.bin becomes invalid
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18686 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fcdffd68af
commit
28f1f50ab7
1 changed files with 3 additions and 0 deletions
|
@ -500,6 +500,9 @@ void root_menu(void)
|
|||
int next_screen = GO_TO_ROOT;
|
||||
int selected = 0;
|
||||
|
||||
if ((global_status.last_screen&0xff) == -1)
|
||||
global_status.last_screen = GO_TO_ROOT;
|
||||
|
||||
if (global_settings.start_in_screen == 0)
|
||||
next_screen = (int)global_status.last_screen;
|
||||
else next_screen = global_settings.start_in_screen - 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue