Преглед изворни кода

fix: fall back on dirent filename when all route fails on Android

pull/5484/head
lucas150670 пре 1 месец
родитељ
комит
44d1cc3e4a
1 измењених фајлова са 3 додато и 1 уклоњено
  1. +3
    -1
      src/utils.c

+ 3
- 1
src/utils.c Прегледај датотеку

@ -473,7 +473,9 @@ FILE *android_fopen(const char *fileName, const char *mode)
{
#undef fopen
// Just do a regular open if file is not found in the assets
return fopen(TextFormat("%s/%s", internalDataPath, fileName), mode);
if(fopen(TextFormat("%s/%s", internalDataPath, fileName), mode) == NULL) {
return fopen(fileName, mode);
}
#define fopen(name, mode) android_fopen(name, mode)
}
}

Loading…
Откажи
Сачувај