Fix directory globbing on Android

This commit is contained in:
Alexander Batalov
2025-08-04 19:51:37 +03:00
committed by Ryan C. Gordon
parent a05aca51ec
commit b6fa89ea74

View File

@@ -1855,7 +1855,7 @@ bool Android_JNI_FileClose(void *userdata)
bool Android_JNI_EnumerateAssetDirectory(const char *path, SDL_EnumerateDirectoryCallback cb, void *userdata)
{
SDL_assert((*path == '\0') || (path[SDL_strlen(path) - 1] == '/')); // SDL_SYS_EnumerateDirectory() should have verified this.
SDL_assert(path != NULL);
if (!asset_manager) {
Internal_Android_Create_AssetManager();