mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 06:04:15 +01:00
Merge pull request #3170 from lioncash/enum
file_sys/directory: Make EntryType an enum class
This commit is contained in:
commit
c47fc3301d
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
namespace FileSys {
|
namespace FileSys {
|
||||||
|
|
||||||
enum EntryType : u8 {
|
enum class EntryType : u8 {
|
||||||
Directory = 0,
|
Directory = 0,
|
||||||
File = 1,
|
File = 1,
|
||||||
};
|
};
|
||||||
|
@ -256,8 +256,8 @@ public:
|
|||||||
|
|
||||||
// TODO(DarkLordZach): Verify that this is the correct behavior.
|
// TODO(DarkLordZach): Verify that this is the correct behavior.
|
||||||
// Build entry index now to save time later.
|
// Build entry index now to save time later.
|
||||||
BuildEntryIndex(entries, backend->GetFiles(), FileSys::File);
|
BuildEntryIndex(entries, backend->GetFiles(), FileSys::EntryType::File);
|
||||||
BuildEntryIndex(entries, backend->GetSubdirectories(), FileSys::Directory);
|
BuildEntryIndex(entries, backend->GetSubdirectories(), FileSys::EntryType::Directory);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user