You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (adir) { // This does _not_ return NULL for a missing directory! Treat empty directories as missing. Better than nothing. :/
1903
+
constboolcontains_something= (AAssetDir_getNextFileName(adir) !=NULL); // if not NULL, there are files in this directory, so it's _definitely_ a directory.
1904
+
AAssetDir_close(adir);
1905
+
if (contains_something) {
1906
+
info->type=SDL_PATHTYPE_DIRECTORY;
1907
+
info->size=0;
1908
+
return true;
1909
+
}
1910
+
}
1911
+
1909
1912
returnSDL_SetError("Couldn't open asset '%s'", path);
0 commit comments