mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Compare commits
2 commits
b4a276e19e
...
71d2016f4d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71d2016f4d | ||
|
|
994acefa23 |
2 changed files with 5 additions and 13 deletions
|
|
@ -1398,7 +1398,7 @@ static int create_album_index(void)
|
||||||
/* Albums */
|
/* Albums */
|
||||||
pf_idx.album_ct = 0;
|
pf_idx.album_ct = 0;
|
||||||
pf_idx.album_len =0;
|
pf_idx.album_len =0;
|
||||||
pf_idx.album_untagged_idx = 0;
|
pf_idx.album_untagged_idx = -1;
|
||||||
pf_idx.album_untagged_seek = -1;
|
pf_idx.album_untagged_seek = -1;
|
||||||
|
|
||||||
/* album_index starts at end of buf it will be rearranged when finalized */
|
/* album_index starts at end of buf it will be rearranged when finalized */
|
||||||
|
|
@ -1523,16 +1523,8 @@ retry_artist_lookup:
|
||||||
|
|
||||||
/* remove any extra untagged albums
|
/* remove any extra untagged albums
|
||||||
* extra space is orphaned till restart */
|
* extra space is orphaned till restart */
|
||||||
for (i = 0; i < pf_idx.album_ct; i++)
|
pf_idx.album_index += pf_idx.album_untagged_idx + 1;
|
||||||
{
|
pf_idx.album_ct -= pf_idx.album_untagged_idx + 1;
|
||||||
if (pf_idx.album_index[i].artist_idx > 0)
|
|
||||||
{
|
|
||||||
if (i > 0) { i--; }
|
|
||||||
pf_idx.album_index += i;
|
|
||||||
pf_idx.album_ct -= i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pf_idx.buf = buf;
|
pf_idx.buf = buf;
|
||||||
pf_idx.buf_sz = buf_size;
|
pf_idx.buf_sz = buf_size;
|
||||||
|
|
|
||||||
|
|
@ -821,7 +821,7 @@ int do_shortcut_menu(void *ignored)
|
||||||
run_debug_screen(sc->u.path);
|
run_debug_screen(sc->u.path);
|
||||||
break;
|
break;
|
||||||
case SHORTCUT_SHUTDOWN:
|
case SHORTCUT_SHUTDOWN:
|
||||||
#if CONFIG_CHARGING
|
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||||
if (charger_inserted())
|
if (charger_inserted())
|
||||||
charging_splash();
|
charging_splash();
|
||||||
else
|
else
|
||||||
|
|
@ -829,7 +829,7 @@ int do_shortcut_menu(void *ignored)
|
||||||
sys_poweroff();
|
sys_poweroff();
|
||||||
break;
|
break;
|
||||||
case SHORTCUT_REBOOT:
|
case SHORTCUT_REBOOT:
|
||||||
#if CONFIG_CHARGING
|
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||||
if (charger_inserted())
|
if (charger_inserted())
|
||||||
charging_splash();
|
charging_splash();
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue