1
0
Fork 0
forked from len0rd/rockbox

[Bug Fix] filetypes.c move voice data out of INIT_ATTR

tree_get_filetype_voiceclip is called after init it shouldn't be marked as INIT_ATTR

add _init to the functions & data that are used at init only to be a bit more clear

Change-Id: I8eb1914560b782c2c0fdd7649e761f94e382d5cb
This commit is contained in:
William Wilgus 2022-12-10 14:36:39 -05:00 committed by William Wilgus
parent 8ff2c81bde
commit c6c1d62489
3 changed files with 13 additions and 21 deletions

View file

@ -77,9 +77,6 @@
#include "root_menu.h"
static const struct filetype *filetypes;
static int filetypes_count;
static struct gui_synclist tree_lists;
/* I put it here because other files doesn't use it yet,
@ -1090,7 +1087,6 @@ void tree_mem_init(void)
cache->entries_handle = core_alloc_ex("tree entries",
cache->max_entries*(sizeof(struct entry)),
&ops);
tree_get_filetypes(&filetypes, &filetypes_count);
}
bool bookmark_play(char *resume_file, int index, unsigned long elapsed,