From 112804f90e14ec5c046d7675475a9657396c0ba1 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 4 Apr 2026 21:03:50 +0200 Subject: [PATCH] ISO: clarify some more fields --- rpcs3/Loader/ISO.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rpcs3/Loader/ISO.cpp b/rpcs3/Loader/ISO.cpp index 9955e64f02..71af44f7ce 100644 --- a/rpcs3/Loader/ISO.cpp +++ b/rpcs3/Loader/ISO.cpp @@ -65,9 +65,10 @@ static std::optional iso_read_directory_entry(fs::file& entry, // Batch this set of file reads. This reduces overall time spent in iso_read_directory_entry by ~41% #pragma pack(push, 1) - struct entry_header + struct iso_entry_header { - u8 padding; + //u8 entry_length; // Handled separately + u8 extended_attribute_length; std::array start_sector; std::array file_size; u8 year; @@ -78,12 +79,15 @@ static std::optional iso_read_directory_entry(fs::file& entry, u8 second; u8 timezone_value; u8 flags; - std::array padding2; + u8 file_unit_size; + u8 interleave; + std::array volume_sequence_number; u8 file_name_length; + //u8 file_name[file_name_length]; // Handled separately }; #pragma pack(pop) - const entry_header header = entry.read(); + const iso_entry_header header = entry.read(); const u32 start_sector = retrieve_endian_int(header.start_sector.data()); const u32 file_size = retrieve_endian_int(header.file_size.data());