فهرست منبع

archive_extsavedata: Fix member initialization order

shared appears in the initializer list before mount_point
Lioncash 10 سال پیش
والد
کامیت
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);
 
 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
      * to Open, this is formed as <base extsavedatapath>/<type>/<high>/<low>.
      * See GetExtSaveDataPath for the code that extracts this data from an archive path.
      */
     std::string mount_point;
-    bool shared; ///< Whether this archive represents an ExtSaveData archive or a SharedExtSaveData archive
 };
 
 /**