소스 검색

Fixed SDL_GlobDirectory() on asset paths on Android

Make sure we pass the original path back to the directory enumeration callback.

(cherry picked from commit 5c430f87155deede1743ae2af73e113f8151d4e3)
Sam Lantinga 1 일 전
부모
커밋
a22488663c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/android/SDL_android.c

+ 2 - 2
src/core/android/SDL_android.c

@@ -1970,9 +1970,9 @@ bool Android_JNI_EnumerateAssetDirectory(const char *path, SDL_EnumerateDirector
         }
     }
 
-    path = GetAssetPath(path);
+    const char *asset_path = GetAssetPath(path);
 
-    AAssetDir *adir = AAssetManager_openDir(asset_manager, path);
+    AAssetDir *adir = AAssetManager_openDir(asset_manager, asset_path);
     if (!adir) {
         return SDL_SetError("AAssetManager_openDir failed");
     }