mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Fixed subdirectories showing in enumeration of Steam storage
This commit is contained in:
parent
7e78636e8e
commit
97b0b13147
1 changed files with 5 additions and 4 deletions
|
|
@ -137,13 +137,14 @@ static bool STEAM_EnumerateStorageDirectory(void *userdata, const char *path, SD
|
|||
}
|
||||
fname = file + dirlen;
|
||||
} else {
|
||||
// Make sure this is a top-level file
|
||||
if (SDL_strchr(file, '/') != NULL) {
|
||||
continue;
|
||||
}
|
||||
fname = file;
|
||||
}
|
||||
|
||||
// Make sure this is a file in the current directory
|
||||
if (SDL_strchr(fname, '/') != NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (callback(callback_userdata, dirname, fname)) {
|
||||
case SDL_ENUM_SUCCESS:
|
||||
done = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue