mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
git: Various style fixes everywhere, removing whitespaces (#321)
* repo-wide: trim trailing spaces Note: This doesn't touch the .tbl files in encodings/ since they include meaningful trailing spaces (`20= `) * patterns: clean up duplicate semicolons * ELF: add header magic check * glTF: use type::Magic for magic value * glTF: check that the file size in the header matches * xgstexture: fix generics syntax for magic value * JPEG: define hex enum with 0x00 instead of 0X00 * CI: update deprecated actions --------- Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#pragma author WerWolv
|
||||
#pragma description Nintendo Switch PRODINFO
|
||||
#pragma description Nintendo Switch PRODINFO
|
||||
|
||||
enum Model : u16 {
|
||||
NX = 1
|
||||
@@ -42,15 +42,15 @@ struct PRODINFO {
|
||||
u32 BodySize;
|
||||
Model Model;
|
||||
u16 UpdateCount;
|
||||
|
||||
|
||||
padding[0x10];
|
||||
|
||||
|
||||
u8 BodyHash[0x20];
|
||||
char ConfigurationId1[0x1E];
|
||||
|
||||
|
||||
padding[0x02];
|
||||
padding[0x20];
|
||||
|
||||
|
||||
u32 WlanCountryCodesNum;
|
||||
u32 WlanCountryCodesLastIndex;
|
||||
WlanCountryCode WlanCountryCodes[WlanCountryCodesNum];
|
||||
@@ -59,9 +59,9 @@ struct PRODINFO {
|
||||
u8 WlanMacAddress[6];
|
||||
padding[0x10 - 6];
|
||||
u8 BdAddress[6];
|
||||
|
||||
|
||||
padding[0x10 - 6];
|
||||
|
||||
|
||||
u8 AccelerometerOffset[6];
|
||||
padding[2];
|
||||
u8 AccelerometerScale[6];
|
||||
@@ -70,50 +70,50 @@ struct PRODINFO {
|
||||
padding[2];
|
||||
u8 GyroscopeScale[6];
|
||||
padding[2];
|
||||
|
||||
|
||||
char SerialNumber[0x18];
|
||||
|
||||
|
||||
padding[8];
|
||||
|
||||
|
||||
Cert EccP256Certificate;
|
||||
Cert EccB233Certificate;
|
||||
|
||||
|
||||
Cert Ecc256ETicket;
|
||||
Cert Ecc233ETicket;
|
||||
|
||||
|
||||
u8 SslKey[0x110];
|
||||
padding[0x10];
|
||||
u32 SslCertificateSize;
|
||||
padding[0x0C];
|
||||
u8 SslCertificate[0x800];
|
||||
u8 SslCertificateHash[0x20];
|
||||
|
||||
|
||||
u8 RandomNumber[0x1000];
|
||||
u8 RandomNumberHash[0x20];
|
||||
|
||||
|
||||
u8 GameCardKey[0x110];
|
||||
u8 GameCardCertificate[0x400];
|
||||
padding[0x10];
|
||||
u8 GameCardCertificateHash[0x20];
|
||||
|
||||
|
||||
u8 Rsa2048ETicketKey[0x220];
|
||||
padding[0x10];
|
||||
u8 Rsa2048ETicketCertificate[0x240];
|
||||
|
||||
|
||||
padding[0x10];
|
||||
|
||||
|
||||
char BatteryLot[0x18];
|
||||
|
||||
|
||||
padding[0x08];
|
||||
|
||||
|
||||
u8 SpeakerCalibrationValue[0x800];
|
||||
|
||||
|
||||
padding[0x10];
|
||||
|
||||
|
||||
RegionCode RegionCode;
|
||||
|
||||
|
||||
padding[0x0C];
|
||||
|
||||
|
||||
u8 AmiiboKey[0x50];
|
||||
padding[0x10];
|
||||
u8 AmiiboEcqvCertificate[0x14];
|
||||
@@ -125,21 +125,21 @@ struct PRODINFO {
|
||||
u8 AmiiboEcqvBlsCertificate[0x20];
|
||||
padding[0x10];
|
||||
u8 AmiiboEcqvBlsRootCertificate[0x90];
|
||||
|
||||
|
||||
padding[0x10];
|
||||
|
||||
|
||||
ProductModel ProductModel;
|
||||
|
||||
|
||||
padding[0x0C];
|
||||
|
||||
|
||||
u8 ColorVariation[6];
|
||||
|
||||
|
||||
padding[0x0A];
|
||||
|
||||
|
||||
u8 LcdBacklightBrightnessMapping[0x0C];
|
||||
|
||||
|
||||
padding[0x04];
|
||||
|
||||
|
||||
u8 ExtendedEccB233DeviceKey[0x50];
|
||||
padding[0x10];
|
||||
u8 ExtendedEccP256ETicketKey[0x50];
|
||||
@@ -153,19 +153,19 @@ struct PRODINFO {
|
||||
u8 ExtendedGameCardKey[0x130];
|
||||
padding[0x10];
|
||||
u32 LcdVendorId;
|
||||
|
||||
|
||||
padding[0x0C];
|
||||
|
||||
|
||||
u8 ExtendedRsa2048DeviceKey[0x240];
|
||||
padding[0x10];
|
||||
u8 Rsa2048DeviceCertificate[0x240];
|
||||
|
||||
|
||||
padding[0x10];
|
||||
|
||||
|
||||
u8 UsbTypeCPowerSourceCircuitVersion;
|
||||
|
||||
|
||||
padding[0x0F];
|
||||
|
||||
|
||||
u32 HousingSubColor;
|
||||
padding[0x0C];
|
||||
u32 HousingBezelColor;
|
||||
@@ -175,9 +175,9 @@ struct PRODINFO {
|
||||
u32 HousingMainColor2;
|
||||
padding[0x0C];
|
||||
u32 HousingMainColor3;
|
||||
|
||||
|
||||
padding[0x0C];
|
||||
|
||||
|
||||
u8 AnalogStickModuleTypeL;
|
||||
padding[0x0F];
|
||||
u8 AnalogStickModelParameterL[0x12];
|
||||
@@ -189,9 +189,9 @@ struct PRODINFO {
|
||||
u8 AnalogStickModelParameterR[0x12];
|
||||
padding[0x0E];
|
||||
u8 AnalogStickFactoryCalibrationR[0x09];
|
||||
|
||||
|
||||
padding[0x07];
|
||||
|
||||
|
||||
u8 ConsoleSixAxisSensorModuleType;
|
||||
padding[0x0F];
|
||||
u8 ConsoleSixAxisSensorHorizontalOffset[6];
|
||||
|
||||
Reference in New Issue
Block a user