diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-07-25 00:22:41 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-07-25 00:32:40 -0400 |
commit | 2348779ae67e613222b9facafa56ebedb92fa1ba (patch) | |
tree | e6e54ad9ded317734e76f7a42aa4bf2dba7da42c | |
parent | 67db38e7667f724e6036b6bf00fe2a29edb5fad0 (diff) | |
download | rockbox-2348779ae6.tar.gz rockbox-2348779ae6.zip |
[Bugfix #2] initialize the volume names for the sim
and fix red for the devices that don't have ext drives
Change-Id: I66b8ea1e1b22a42cee2957a504756e7f785bd0ae
-rw-r--r-- | uisimulator/common/sim_tasks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/uisimulator/common/sim_tasks.c b/uisimulator/common/sim_tasks.c index 0e5f7fbe7a..1d933e63a2 100644 --- a/uisimulator/common/sim_tasks.c +++ b/uisimulator/common/sim_tasks.c @@ -30,7 +30,10 @@ #include "usb.h" #include "mv.h" #include "ata_idle_notify.h" -#include "pathfuncs.h" +#ifdef HAVE_MULTIVOLUME +#include "pathfuncs.h" /* for init_volume_names */ +#endif + #ifdef WIN32 #include <windows.h> #endif @@ -134,7 +137,9 @@ void sim_thread(void) void sim_tasks_init(void) { +#ifdef HAVE_MULTIVOLUME init_volume_names(); +#endif queue_init(&sim_queue, false); create_thread(sim_thread, sim_thread_stack, sizeof(sim_thread_stack), 0, |