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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue