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:
@@ -59,7 +59,7 @@ struct DirAccessWindowsPrivate {
|
||||
|
||||
// CreateFolderAsync
|
||||
|
||||
bool DirAccessWindows::list_dir_begin() {
|
||||
Error DirAccessWindows::list_dir_begin() {
|
||||
|
||||
_cisdir=false;
|
||||
_cishidden=false;
|
||||
@@ -67,7 +67,7 @@ bool DirAccessWindows::list_dir_begin() {
|
||||
list_dir_end();
|
||||
p->h = FindFirstFileExW((current_dir+"\\*").c_str(), FindExInfoStandard, &p->fu, FindExSearchNameMatch, NULL, 0);
|
||||
|
||||
return (p->h==INVALID_HANDLE_VALUE);
|
||||
return (p->h==INVALID_HANDLE_VALUE) ? ERR_CANT_OPEN : OK;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user