summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-21 01:10:55 +0100
committerGitHub <noreply@github.com>2018-11-21 01:10:55 +0100
commit58d82243f793f6b1ba37cf3175ecc71febb30061 (patch)
tree447eb4d6858acf28ce8cb2be5d4e9cb3b4e20391
parentMerge pull request #1667 from DarkLordZach/swkbd (diff)
parentfile_sys/card_image: Provide named members for the GamecardInfo struct (diff)
downloadyuzu-58d82243f793f6b1ba37cf3175ecc71febb30061.tar
yuzu-58d82243f793f6b1ba37cf3175ecc71febb30061.tar.gz
yuzu-58d82243f793f6b1ba37cf3175ecc71febb30061.tar.bz2
yuzu-58d82243f793f6b1ba37cf3175ecc71febb30061.tar.lz
yuzu-58d82243f793f6b1ba37cf3175ecc71febb30061.tar.xz
yuzu-58d82243f793f6b1ba37cf3175ecc71febb30061.tar.zst
yuzu-58d82243f793f6b1ba37cf3175ecc71febb30061.zip
-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 {
};
struct GamecardInfo {
- std::array<u8, 0x70> data;
+ u64_le firmware_version;
+ u32_le access_control_flags;
+ u32_le read_wait_time1;
+ u32_le read_wait_time2;
+ u32_le write_wait_time1;
+ u32_le write_wait_time2;
+ u32_le firmware_mode;
+ u32_le cup_version;
+ std::array<u8, 4> reserved1;
+ u64_le update_partition_hash;
+ u64_le cup_id;
+ std::array<u8, 0x38> reserved2;
};
static_assert(sizeof(GamecardInfo) == 0x70, "GamecardInfo has incorrect size.");