ncch_container: choose the first id as extdata id when extended save data access is used

This commit is contained in:
zhupengfei
2018-10-01 08:41:40 +08:00
committed by zhupengfei
parent bbf391abb9
commit 8cf1132b2e
2 changed files with 35 additions and 3 deletions

View File

@ -125,9 +125,23 @@ struct ExHeader_SystemInfo {
};
struct ExHeader_StorageInfo {
u64_le ext_save_data_id;
union {
u64_le ext_save_data_id;
// When using extended savedata access
// Prefer the ID specified in the most significant bits
BitField<40, 20, u64_le> extdata_id3;
BitField<20, 20, u64_le> extdata_id4;
BitField<0, 20, u64_le> extdata_id5;
};
u8 system_save_data_id[8];
u8 reserved[8];
union {
u64_le storage_accessible_unique_ids;
// When using extended savedata access
// Prefer the ID specified in the most significant bits
BitField<40, 20, u64_le> extdata_id0;
BitField<20, 20, u64_le> extdata_id1;
BitField<0, 20, u64_le> extdata_id2;
};
u8 access_info[7];
u8 other_attributes;
};