diff --git a/Common/File/DirListing.h b/Common/File/DirListing.h index cea0fbb37a..4d4cf7d10d 100644 --- a/Common/File/DirListing.h +++ b/Common/File/DirListing.h @@ -19,10 +19,10 @@ struct FileInfo { bool isWritable = false; uint64_t size = 0; - uint64_t atime; - uint64_t mtime; - uint64_t ctime; - uint32_t access; // st_mode & 0x1ff + uint64_t atime = 0; + uint64_t mtime = 0; + uint64_t ctime = 0; + uint32_t access = 0; // st_mode & 0x1ff // Currently only supported for Android storage files. // Other places use different methods to get this. diff --git a/Core/FileSystems/DirectoryFileSystem.h b/Core/FileSystems/DirectoryFileSystem.h index 2c7a2ca709..0bcd3f8bfc 100644 --- a/Core/FileSystems/DirectoryFileSystem.h +++ b/Core/FileSystems/DirectoryFileSystem.h @@ -116,7 +116,7 @@ private: struct OpenFileEntry { DirectoryFileHandle hFile = DirectoryFileHandle::NORMAL; std::string guestFilename; - FileAccess access; + FileAccess access = FILEACCESS_NONE; }; typedef std::map EntryMap; diff --git a/Core/FileSystems/ISOFileSystem.h b/Core/FileSystems/ISOFileSystem.h index 1941cc998c..676964f079 100644 --- a/Core/FileSystems/ISOFileSystem.h +++ b/Core/FileSystems/ISOFileSystem.h @@ -55,21 +55,20 @@ public: private: struct TreeEntry { - TreeEntry() : flags(0), valid(false) {} ~TreeEntry(); std::string name; - u32 flags; - u32 startingPosition; - s64 size; - bool isDirectory; + u32 flags = 0; + u32 startingPosition = 0; + s64 size = 0; + bool isDirectory = false; - u32 startsector; - u32 dirsize; + u32 startsector = 0; + u32 dirsize = 0; - TreeEntry *parent; + TreeEntry *parent = nullptr; - bool valid; + bool valid = false; std::vector children; };