You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
New option to show/hide hidden files
This commit is contained in:
@@ -68,6 +68,7 @@ struct DirAccessWindowsPrivate {
|
||||
bool DirAccessWindows::list_dir_begin() {
|
||||
|
||||
_cisdir=false;
|
||||
_cishidden=false;
|
||||
|
||||
if (unicode) {
|
||||
list_dir_end();
|
||||
@@ -95,6 +96,8 @@ String DirAccessWindows::get_next() {
|
||||
if (unicode) {
|
||||
|
||||
_cisdir=(p->fu.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
|
||||
_cishidden=(p->fu.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN);
|
||||
|
||||
String name=p->fu.cFileName;
|
||||
|
||||
if (FindNextFileW(p->h, &p->fu) == 0) {
|
||||
@@ -108,6 +111,7 @@ String DirAccessWindows::get_next() {
|
||||
|
||||
#ifndef WINRT_ENABLED
|
||||
_cisdir=(p->fu.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
|
||||
_cishidden=(p->fu.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN);
|
||||
|
||||
String name=p->f.cFileName;
|
||||
|
||||
@@ -128,6 +132,11 @@ bool DirAccessWindows::current_is_dir() const {
|
||||
return _cisdir;
|
||||
}
|
||||
|
||||
bool DirAccessWindows::current_is_hidden() const {
|
||||
|
||||
return _cishidden;
|
||||
}
|
||||
|
||||
void DirAccessWindows::list_dir_end() {
|
||||
|
||||
if (p->h!=INVALID_HANDLE_VALUE) {
|
||||
|
||||
Reference in New Issue
Block a user