소스 검색

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)
}
}

불러오는 중...
취소
저장