summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-11-20 18:40:50 -0500
committerGravatar Lioncash2018-11-20 18:40:53 -0500
commit820bcee6a4fc70843257ebaaef15e0657b1d4609 (patch)
tree447eb4d6858acf28ce8cb2be5d4e9cb3b4e20391 /src
parentMerge pull request #1667 from DarkLordZach/swkbd (diff)
downloadyuzu-820bcee6a4fc70843257ebaaef15e0657b1d4609.tar.gz
yuzu-820bcee6a4fc70843257ebaaef15e0657b1d4609.tar.xz
yuzu-820bcee6a4fc70843257ebaaef15e0657b1d4609.zip
file_sys/card_image: Provide named members for the GamecardInfo struct
Fills out the struct according to information provided by SwitchBrew
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/card_image.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/file_sys/card_image.h b/src/core/file_sys/card_image.h
index 25f5914b6..a350496f7 100644
--- a/src/core/file_sys/card_image.h
+++ b/src/core/file_sys/card_image.h
@@ -32,7 +32,18 @@ enum class GamecardSize : u8 {
32}; 32};
33 33
34struct GamecardInfo { 34struct GamecardInfo {
35 std::array<u8, 0x70> data; 35 u64_le firmware_version;
36 u32_le access_control_flags;
37 u32_le read_wait_time1;
38 u32_le read_wait_time2;
39 u32_le write_wait_time1;
40 u32_le write_wait_time2;
41 u32_le firmware_mode;
42 u32_le cup_version;
43 std::array<u8, 4> reserved1;
44 u64_le update_partition_hash;
45 u64_le cup_id;
46 std::array<u8, 0x38> reserved2;
36}; 47};
37static_assert(sizeof(GamecardInfo) == 0x70, "GamecardInfo has incorrect size."); 48static_assert(sizeof(GamecardInfo) == 0x70, "GamecardInfo has incorrect size.");
38 49