From 2348779ae67e613222b9facafa56ebedb92fa1ba Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 25 Jul 2024 00:22:41 -0400 Subject: [Bugfix #2] initialize the volume names for the sim and fix red for the devices that don't have ext drives Change-Id: I66b8ea1e1b22a42cee2957a504756e7f785bd0ae --- uisimulator/common/sim_tasks.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'uisimulator') 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 #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, -- cgit v1.2.3