mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05:17 +03:00
Bug in SD audio parse
This commit is contained in:
parent
7f12f50036
commit
a91bfbba9e
1 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,7 @@ char * getModelPath(char * path)
|
|||
strncpy(path+SOUNDS_PATH_LNG_OFS, currentLanguagePack->id, 2);
|
||||
char * result = strcat_modelname(path+sizeof(SOUNDS_PATH), g_eeGeneral.currModel);
|
||||
*result++ = '/';
|
||||
*result = '\0';
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -229,6 +230,7 @@ void referenceModelAudioFiles()
|
|||
sdAvailableLogicalSwitchAudioFiles = 0;
|
||||
|
||||
char * filename = getModelPath(path);
|
||||
// TODO au cas ou ... *(filename-1) = '\0';
|
||||
|
||||
FRESULT res = f_opendir(&dir, path); /* Open the directory */
|
||||
if (res == FR_OK) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue