diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-12-10 14:36:39 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2022-12-13 22:35:24 -0500 |
commit | c6c1d62489b81c3568aa7d57a01c543a1c3f1f4a (patch) | |
tree | fe4234e7085c1a5130246a4d35a80e74003abf5e /apps/tree.c | |
parent | 8ff2c81bde5078ea55e1865ec980fe09bc3d5f09 (diff) | |
download | rockbox-c6c1d62489b81c3568aa7d57a01c543a1c3f1f4a.tar.gz rockbox-c6c1d62489b81c3568aa7d57a01c543a1c3f1f4a.zip |
[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
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c index 3684e395a1..4df2c4e327 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -77,9 +77,6 @@ | |||
77 | 77 | ||
78 | #include "root_menu.h" | 78 | #include "root_menu.h" |
79 | 79 | ||
80 | static const struct filetype *filetypes; | ||
81 | static int filetypes_count; | ||
82 | |||
83 | static struct gui_synclist tree_lists; | 80 | static struct gui_synclist tree_lists; |
84 | 81 | ||
85 | /* I put it here because other files doesn't use it yet, | 82 | /* I put it here because other files doesn't use it yet, |
@@ -1090,7 +1087,6 @@ void tree_mem_init(void) | |||
1090 | cache->entries_handle = core_alloc_ex("tree entries", | 1087 | cache->entries_handle = core_alloc_ex("tree entries", |
1091 | cache->max_entries*(sizeof(struct entry)), | 1088 | cache->max_entries*(sizeof(struct entry)), |
1092 | &ops); | 1089 | &ops); |
1093 | tree_get_filetypes(&filetypes, &filetypes_count); | ||
1094 | } | 1090 | } |
1095 | 1091 | ||
1096 | bool bookmark_play(char *resume_file, int index, unsigned long elapsed, | 1092 | bool bookmark_play(char *resume_file, int index, unsigned long elapsed, |