summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-07-26 10:44:38 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-07-26 10:54:07 -0400
commit13830439fae202247626e5ebfd7fe3d57d7c5628 (patch)
tree793cc66a239b73b794626a272ba1a26d848912fd /apps
parente94f778f1c5efdc4d11c61dec0e4a4ab073899d7 (diff)
downloadrockbox-13830439fae202247626e5ebfd7fe3d57d7c5628.tar.gz
rockbox-13830439fae202247626e5ebfd7fe3d57d7c5628.zip
Fix multidrive/multivolume hosted builds.
Generalize the fix in 2348779ae6 to apply to hosted as well as simulator builds. Original regression introduced in c0ac043c6d Change-Id: Ia786533cc318555e3bb842eb21a73a1f76888379
Diffstat (limited to 'apps')
-rw-r--r--apps/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c
index 0a104576e1..4c7689ce8c 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -131,6 +131,12 @@
131#define MAIN_NORETURN_ATTR 131#define MAIN_NORETURN_ATTR
132#endif 132#endif
133 133
134#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
135#ifdef HAVE_MULTIVOLUME
136#include "pathfuncs.h" /* for init_volume_names */
137#endif
138#endif
139
134#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA)) 140#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO|PLATFORM_PANDORA))
135#ifdef SIMULATOR 141#ifdef SIMULATOR
136#include "sim_tasks.h" 142#include "sim_tasks.h"
@@ -381,6 +387,9 @@ static void init(void)
381 powermgmt_init(); 387 powermgmt_init();
382 backlight_init(); 388 backlight_init();
383 unicode_init(); 389 unicode_init();
390#ifdef HAVE_MULTIVOLUME
391 init_volume_names();
392#endif
384#ifdef SIMULATOR 393#ifdef SIMULATOR
385 sim_tasks_init(); 394 sim_tasks_init();
386#endif 395#endif