You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
DirAccess: Drop compat get_next(bool *is_dir) which was hidden
Fixes this warning: ``` ./core/os/dir_access.h:74:17: warning: 'virtual String DirAccess::get_next(bool*)' was hidden [-Woverloaded-virtual] ``` Part of #30790.
This commit is contained in:
@@ -403,11 +403,10 @@ void FileDialog::update_file_list() {
|
||||
List<String> files;
|
||||
List<String> dirs;
|
||||
|
||||
bool is_dir;
|
||||
bool is_hidden;
|
||||
String item;
|
||||
|
||||
while ((item = dir_access->get_next(&is_dir)) != "") {
|
||||
while ((item = dir_access->get_next()) != "") {
|
||||
|
||||
if (item == "." || item == "..")
|
||||
continue;
|
||||
@@ -415,7 +414,7 @@ void FileDialog::update_file_list() {
|
||||
is_hidden = dir_access->current_is_hidden();
|
||||
|
||||
if (show_hidden_files || !is_hidden) {
|
||||
if (!is_dir)
|
||||
if (!dir_access->current_is_dir())
|
||||
files.push_back(item);
|
||||
else
|
||||
dirs.push_back(item);
|
||||
|
||||
Reference in New Issue
Block a user