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:
Sam Lantinga
2026-04-08 09:09:29 -07:00
parent 51aeebd889
commit 5c430f8715

View File

@@ -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");
}