mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Phase sound files should be located in the model dir in selected language subdir
This commit is contained in:
parent
013a7d3fb5
commit
3f036e38b5
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,8 @@ void refreshModelAudioFiles()
|
|||
#endif
|
||||
|
||||
char filename[AUDIO_FILENAME_MAXLEN+1] = SOUNDS_PATH "/";
|
||||
|
||||
strncpy(filename+SOUNDS_PATH_LNG_OFS, currentLanguagePack->id, 2);
|
||||
|
||||
if (sdMounted()) {
|
||||
char *buf = strcat_modelname(&filename[sizeof(SOUNDS_PATH)], g_eeGeneral.currModel);
|
||||
*buf++ = '/';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue