forked from len0rd/rockbox
[Bugfix] initialize the volume names for the sim
init_volume_names() wasn't being called by the sim Change-Id: Ife0d345cf29bd4a0a658ed194ee85ca4852bc92f
This commit is contained in:
parent
bcaeaa135a
commit
67db38e766
2 changed files with 5 additions and 1 deletions
|
@ -113,6 +113,7 @@ static const unsigned char storage_dec_indexes[STORAGE_NUM_TYPES+1] =
|
|||
/* builds a list of drive/volume specifiers <volstr#> */
|
||||
void init_volume_names(void)
|
||||
{
|
||||
DEBUGF("%s: ", __func__);
|
||||
FOR_EACH_VOLUME(-1, volume)
|
||||
{
|
||||
const char *voldec = "";
|
||||
|
@ -124,8 +125,9 @@ void init_volume_names(void)
|
|||
voldec = storage_dec_names[storage_dec_indexes[type]];
|
||||
snprintf(buffer, VOL_MAX_LEN + 1, "%c%s%d%c",
|
||||
VOL_START_TOK, voldec, volume, VOL_END_TOK);
|
||||
DEBUGF("%s: vol: %d %s", __func__, volume, buffer);
|
||||
DEBUGF("vol<%d> = %s ", volume, buffer);
|
||||
}
|
||||
DEBUGF("\n");
|
||||
}
|
||||
|
||||
/* Returns on which volume this is and sets *nameptr to the portion of the
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "usb.h"
|
||||
#include "mv.h"
|
||||
#include "ata_idle_notify.h"
|
||||
#include "pathfuncs.h"
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
@ -133,6 +134,7 @@ void sim_thread(void)
|
|||
|
||||
void sim_tasks_init(void)
|
||||
{
|
||||
init_volume_names();
|
||||
queue_init(&sim_queue, false);
|
||||
|
||||
create_thread(sim_thread, sim_thread_stack, sizeof(sim_thread_stack), 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue