1
0
Fork 0
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:
romolo.manfredini@gmail.com 2013-08-28 19:46:14 +00:00
parent 013a7d3fb5
commit 3f036e38b5

View file

@ -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++ = '/';