summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-28 05:23:01 +0100
committerGitHub <noreply@github.com>2019-11-28 05:23:01 +0100
commitc47fc3301d75f9f3924335d674e516d2670b8aab (patch)
treec5359b18494a8e2ff8f0df6f3a52b0ca3a03e211
parentMerge pull request #3174 from lioncash/optional (diff)
parentfile_sys/directory: Make EntryType an enum class (diff)
downloadyuzu-c47fc3301d75f9f3924335d674e516d2670b8aab.tar
yuzu-c47fc3301d75f9f3924335d674e516d2670b8aab.tar.gz
yuzu-c47fc3301d75f9f3924335d674e516d2670b8aab.tar.bz2
yuzu-c47fc3301d75f9f3924335d674e516d2670b8aab.tar.lz
yuzu-c47fc3301d75f9f3924335d674e516d2670b8aab.tar.xz
yuzu-c47fc3301d75f9f3924335d674e516d2670b8aab.tar.zst
yuzu-c47fc3301d75f9f3924335d674e516d2670b8aab.zip
-rw-r--r--src/core/file_sys/directory.h2
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/directory.h b/src/core/file_sys/directory.h
index 7b5c509fb..0d73eecc9 100644
--- a/src/core/file_sys/directory.h
+++ b/src/core/file_sys/directory.h
@@ -15,7 +15,7 @@
namespace FileSys {
-enum EntryType : u8 {
+enum class EntryType : u8 {
Directory = 0,
File = 1,
};
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 5874ed6bd..ea9cc901e 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -256,8 +256,8 @@ public:
// TODO(DarkLordZach): Verify that this is the correct behavior.
// Build entry index now to save time later.
- BuildEntryIndex(entries, backend->GetFiles(), FileSys::File);
- BuildEntryIndex(entries, backend->GetSubdirectories(), FileSys::Directory);
+ BuildEntryIndex(entries, backend->GetFiles(), FileSys::EntryType::File);
+ BuildEntryIndex(entries, backend->GetSubdirectories(), FileSys::EntryType::Directory);
}
private: