Просмотр исходного кода

archive_extsavedata: Fix member initialization order

shared appears in the initializer list before mount_point
Lioncash 10 лет назад
Родитель
Сommit
f6ad3e42f0
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/core/file_sys/archive_extsavedata.h

+ 2 - 1
src/core/file_sys/archive_extsavedata.h

@@ -45,13 +45,14 @@ public:
     void WriteIcon(const Path& path, const u8* icon_data, size_t icon_size);
     void WriteIcon(const Path& path, const u8* icon_data, size_t icon_size);
 
 
 private:
 private:
+    bool shared; ///< Whether this archive represents an ExtSaveData archive or a SharedExtSaveData archive
+
     /**
     /**
      * This holds the full directory path for this archive, it is only set after a successful call
      * This holds the full directory path for this archive, it is only set after a successful call
      * to Open, this is formed as <base extsavedatapath>/<type>/<high>/<low>.
      * to Open, this is formed as <base extsavedatapath>/<type>/<high>/<low>.
      * See GetExtSaveDataPath for the code that extracts this data from an archive path.
      * See GetExtSaveDataPath for the code that extracts this data from an archive path.
      */
      */
     std::string mount_point;
     std::string mount_point;
-    bool shared; ///< Whether this archive represents an ExtSaveData archive or a SharedExtSaveData archive
 };
 };
 
 
 /**
 /**