You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fixed dir access return value, changed it to Error like all other funcs
This commit is contained in:
@@ -44,7 +44,7 @@ DirAccess *DirAccessUnix::create_fs() {
|
||||
return memnew( DirAccessUnix );
|
||||
}
|
||||
|
||||
bool DirAccessUnix::list_dir_begin() {
|
||||
Error DirAccessUnix::list_dir_begin() {
|
||||
|
||||
list_dir_end(); //close any previous dir opening!
|
||||
|
||||
@@ -55,9 +55,9 @@ bool DirAccessUnix::list_dir_begin() {
|
||||
dir_stream = opendir(current_dir.utf8().get_data());
|
||||
//chdir(real_current_dir_name);
|
||||
if (!dir_stream)
|
||||
return true; //error!
|
||||
return ERR_CANT_OPEN; //error!
|
||||
|
||||
return false;
|
||||
return OK;
|
||||
}
|
||||
|
||||
bool DirAccessUnix::file_exists(String p_file) {
|
||||
|
||||
Reference in New Issue
Block a user