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

Fixed SDL_GlobDirectory() on asset paths on Android

Make sure we pass the original path back to the directory enumeration callback.
Sam Lantinga пре 3 дана
родитељ
комит
5c430f8715
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");
     }