1
0
Fork 0
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:
William Wilgus 2024-07-24 23:37:53 -04:00 committed by William Wilgus
parent bcaeaa135a
commit 67db38e766
2 changed files with 5 additions and 1 deletions

View file

@ -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