You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -673,12 +673,11 @@ void EditorFileSystem::_scan_new_dir(EditorFileSystemDirectory *p_dir, DirAccess
|
||||
da->list_dir_begin();
|
||||
while (true) {
|
||||
|
||||
bool isdir;
|
||||
String f = da->get_next(&isdir);
|
||||
String f = da->get_next();
|
||||
if (f == "")
|
||||
break;
|
||||
|
||||
if (isdir) {
|
||||
if (da->current_is_dir()) {
|
||||
|
||||
if (f.begins_with(".")) //ignore hidden and . / ..
|
||||
continue;
|
||||
@@ -870,12 +869,11 @@ void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir, const
|
||||
da->list_dir_begin();
|
||||
while (true) {
|
||||
|
||||
bool isdir;
|
||||
String f = da->get_next(&isdir);
|
||||
String f = da->get_next();
|
||||
if (f == "")
|
||||
break;
|
||||
|
||||
if (isdir) {
|
||||
if (da->current_is_dir()) {
|
||||
|
||||
if (f.begins_with(".")) //ignore hidden and . / ..
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user