Browse Source

fix: fall back on dirent filename when all route fails on Android (#5484)

pull/5486/head
lucas150670 3 weeks ago
committed by GitHub
parent
commit
8de88c71da
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/utils.c

+ 3
- 1
src/utils.c View File

@ -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…
Cancel
Save