mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-16 16:28:13 +00:00
Fix directory globbing on Android
This commit is contained in:

committed by
Ryan C. Gordon

parent
a05aca51ec
commit
b6fa89ea74
@@ -1855,7 +1855,7 @@ bool Android_JNI_FileClose(void *userdata)
|
|||||||
|
|
||||||
bool Android_JNI_EnumerateAssetDirectory(const char *path, SDL_EnumerateDirectoryCallback cb, 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) {
|
if (!asset_manager) {
|
||||||
Internal_Android_Create_AssetManager();
|
Internal_Android_Create_AssetManager();
|
||||||
|
Reference in New Issue
Block a user