mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
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 5c430f8715)
This commit is contained in:
parent
d2289755e9
commit
a22488663c
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue