Browse Source
Merge pull request #3170 from lioncash/enum
file_sys/directory: Make EntryType an enum class
pull/15/merge
bunnei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
src/core/file_sys/directory.h
-
src/core/hle/service/filesystem/fsp_srv.cpp
|
|
|
@ -15,7 +15,7 @@ |
|
|
|
|
|
|
|
namespace FileSys { |
|
|
|
|
|
|
|
enum EntryType : u8 { |
|
|
|
enum class EntryType : u8 { |
|
|
|
Directory = 0, |
|
|
|
File = 1, |
|
|
|
}; |
|
|
|
|
|
|
|
@ -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: |
|
|
|
|