mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2026-04-05 21:51:03 +00:00
Add PS3 related media tags.
This commit is contained in:
@@ -1073,7 +1073,12 @@ typedef enum
|
||||
DVD_PFI_2ndLayer = 74, ///< DVD Physical Format Information for the second layer
|
||||
Floppy_WriteProtect = 75, ///< Write protection status of the floppy disk
|
||||
WiiUDiscKey = 76, ///< Nintendo Wii U disc key (16 bytes, from non-readable disc area)
|
||||
MaxMediaTag = WiiUDiscKey
|
||||
PS3_DiscKey = 77, ///< PS3 derived disc key (16 bytes)
|
||||
PS3_Data1 = 78, ///< PS3 data1 key (16 bytes, from disc)
|
||||
PS3_Data2 = 79, ///< PS3 data2 key (16 bytes, from disc)
|
||||
PS3_PIC = 80, ///< PS3 PIC data (115 bytes, from disc lead-in)
|
||||
PS3_EncryptionMap = 81, ///< PS3 encryption region map (serialized from sector 0)
|
||||
MaxMediaTag = PS3_EncryptionMap
|
||||
} MediaTagType;
|
||||
|
||||
/** @} */ /* end of MediaTags group */
|
||||
|
||||
@@ -133,8 +133,13 @@ typedef enum
|
||||
DvdPfi2ndLayer = 88, ///< DVD Physical Format Information for the second layer
|
||||
FluxData = 89, ///< Flux data.
|
||||
BitstreamData = 90, ///< Bitstream data.
|
||||
FloppyWriteProtectStatus = 91, ///< Floppy write-protect status.
|
||||
FloppyWriteProtectStatus = 91, ///< Floppy write-protect status.
|
||||
NintendoWiiUDiscKey = 92, ///< Nintendo Wii U disc key (16 bytes, from non-readable disc area)
|
||||
PS3DiscKey = 93, ///< PS3 derived disc key (16 bytes)
|
||||
PS3Data1 = 94, ///< PS3 data1 key (16 bytes, from disc)
|
||||
PS3Data2 = 95, ///< PS3 data2 key (16 bytes, from disc)
|
||||
PS3PIC = 96, ///< PS3 PIC data (115 bytes, from disc lead-in)
|
||||
PS3EncryptionMap = 97, ///< PS3 encryption region map (serialized from sector 0)
|
||||
} DataType;
|
||||
|
||||
/**
|
||||
|
||||
@@ -186,6 +186,16 @@ AARU_LOCAL int32_t AARU_CALL aaruf_get_media_tag_type_for_datatype(const int32_t
|
||||
return Floppy_WriteProtect;
|
||||
case NintendoWiiUDiscKey:
|
||||
return WiiUDiscKey;
|
||||
case PS3DiscKey:
|
||||
return PS3_DiscKey;
|
||||
case PS3Data1:
|
||||
return PS3_Data1;
|
||||
case PS3Data2:
|
||||
return PS3_Data2;
|
||||
case PS3PIC:
|
||||
return PS3_PIC;
|
||||
case PS3EncryptionMap:
|
||||
return PS3_EncryptionMap;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
@@ -350,6 +360,16 @@ AARU_LOCAL int32_t AARU_CALL aaruf_get_datatype_for_media_tag_type(const int32_t
|
||||
return FloppyWriteProtectStatus;
|
||||
case WiiUDiscKey:
|
||||
return NintendoWiiUDiscKey;
|
||||
case PS3_DiscKey:
|
||||
return PS3DiscKey;
|
||||
case PS3_Data1:
|
||||
return PS3Data1;
|
||||
case PS3_Data2:
|
||||
return PS3Data2;
|
||||
case PS3_PIC:
|
||||
return PS3PIC;
|
||||
case PS3_EncryptionMap:
|
||||
return PS3EncryptionMap;
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user