mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-09 10:27:17 +02:00
Fixed SDL_GlobDirectory() on asset paths on Android
Make sure we pass the original path back to the directory enumeration callback.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user