mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-25 15:48:58 +00: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;
|
||||
} 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;
|
||||
|
||||
Reference in New Issue
Block a user