mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 14:53:47 +08:00
Fixed subdirectories showing in enumeration of Steam storage
This commit is contained in:
@@ -137,13 +137,14 @@ static bool STEAM_EnumerateStorageDirectory(void *userdata, const char *path, SD
|
|||||||
}
|
}
|
||||||
fname = file + dirlen;
|
fname = file + dirlen;
|
||||||
} else {
|
} else {
|
||||||
// Make sure this is a top-level file
|
|
||||||
if (SDL_strchr(file, '/') != NULL) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
fname = file;
|
fname = file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure this is a file in the current directory
|
||||||
|
if (SDL_strchr(fname, '/') != NULL) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
switch (callback(callback_userdata, dirname, fname)) {
|
switch (callback(callback_userdata, dirname, fname)) {
|
||||||
case SDL_ENUM_SUCCESS:
|
case SDL_ENUM_SUCCESS:
|
||||||
done = true;
|
done = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user