You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +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:
@@ -29,6 +29,7 @@
|
||||
/*************************************************************************/
|
||||
|
||||
#include "editor_file_dialog.h"
|
||||
|
||||
#include "core/os/file_access.h"
|
||||
#include "core/os/keyboard.h"
|
||||
#include "core/os/os.h"
|
||||
@@ -731,19 +732,15 @@ void EditorFileDialog::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;
|
||||
|
||||
is_hidden = dir_access->current_is_hidden();
|
||||
|
||||
if (show_hidden_files || !is_hidden) {
|
||||
if (!is_dir)
|
||||
if (show_hidden_files || !dir_access->current_is_hidden()) {
|
||||
if (!dir_access->current_is_dir())
|
||||
files.push_back(item);
|
||||
else
|
||||
dirs.push_back(item);
|
||||
|
||||
Reference in New Issue
Block a user