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,9 +1,9 @@
|
||||
#pragma description Intel hex
|
||||
|
||||
/* If you have no delimiters between data records then remove
|
||||
/* If you have no delimiters between data records then remove
|
||||
* the null_bytes field in the data_packet struct.
|
||||
* Set the array at the bottom to the highest index + 1 in the Pattern Data view
|
||||
* NOTE: these were ascii hex values for me, so use the calculator tool to convert
|
||||
* NOTE: these were ascii hex values for me, so use the calculator tool to convert
|
||||
* values
|
||||
*/
|
||||
#pragma endian big
|
||||
@@ -29,25 +29,25 @@ struct data_packet {
|
||||
Bytes byte_count [[color("00A9CBB7")]];
|
||||
u32 address [[color("00F7FF58")]];
|
||||
FileType recordType [[color("00FF934F")]];
|
||||
|
||||
|
||||
// both not A
|
||||
if (byte_count.HOB < 65 && byte_count.LOB < 65) {
|
||||
u16 data[((byte_count.HOB - 48) * 16)
|
||||
+ (byte_count.LOB - 48)] [[color("0095B46A")]];
|
||||
u16 data[((byte_count.HOB - 48) * 16)
|
||||
+ (byte_count.LOB - 48)] [[color("0095B46A")]];
|
||||
// HOB is A but LOB is not
|
||||
} else if (byte_count.HOB >= 65 && byte_count.LOB < 65) {
|
||||
u16 data[((byte_count.HOB - 55) * 16)
|
||||
+ (byte_count.LOB - 48)] [[color("0095B46A")]];
|
||||
u16 data[((byte_count.HOB - 55) * 16)
|
||||
+ (byte_count.LOB - 48)] [[color("0095B46A")]];
|
||||
// LOB is A but HOB is not
|
||||
} else if (byte_count.HOB < 65 && byte_count.LOB >= 65) {
|
||||
u16 data[((byte_count.HOB - 48) * 16)
|
||||
u16 data[((byte_count.HOB - 48) * 16)
|
||||
+ (byte_count.LOB - 55)] [[color("0095B46A")]];
|
||||
// both are A
|
||||
} else {
|
||||
u16 data[((byte_count.HOB - 55) * 16)
|
||||
+ (byte_count.LOB - 55)] [[color("0095B46A")]];
|
||||
u16 data[((byte_count.HOB - 55) * 16)
|
||||
+ (byte_count.LOB - 55)] [[color("0095B46A")]];
|
||||
}
|
||||
|
||||
|
||||
u16 checksum [[color("0045F0DF")]];
|
||||
u8 line_ending_1 [[color("005E565A")]];
|
||||
if (line_ending_1 == '\r')
|
||||
|
||||
Reference in New Issue
Block a user