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:
@@ -131,7 +131,7 @@ struct UF2_ExtensionTag {
|
||||
u8 size;
|
||||
UF2_TagType type;
|
||||
u8 data[size - 4];
|
||||
|
||||
|
||||
if (size == 0 && type.bytes[0] == 0x00 && type.bytes[1] == 0x00 && type.bytes[2] == 0x00)
|
||||
break;
|
||||
};
|
||||
@@ -144,26 +144,26 @@ struct UF2_Block {
|
||||
u32 payloadSize;
|
||||
u32 blockNo;
|
||||
u32 numBlocks;
|
||||
|
||||
|
||||
if (flags.FamilyIDPresent)
|
||||
UF2_FamilyID familyId;
|
||||
else
|
||||
u32 fileSize;
|
||||
|
||||
|
||||
if (flags.MD5ChecksumPresent) {
|
||||
u8 data[452];
|
||||
UF2_Hash hash;
|
||||
UF2_Hash hash;
|
||||
}
|
||||
else {
|
||||
u8 data[476];
|
||||
}
|
||||
|
||||
|
||||
if (flags.ExtensionTagsPresent) {
|
||||
UF2_ExtensionTag extensionTags[0xFF];
|
||||
}
|
||||
|
||||
|
||||
u32 magicEnd;
|
||||
|
||||
|
||||
std::assert(magicStart0 == "UF2\n", "Invalid magicStart0 value!");
|
||||
std::assert(magicStart1 == 0x9E5D5157, "Invalid magicStart1 value!");
|
||||
std::assert(magicEnd == 0x0AB16F30, "Invalid magicEnd value!");
|
||||
|
||||
Reference in New Issue
Block a user