forked from hkc/cc-stuff
1
0
Fork 0

Made it a bit more silent

This commit message is literally longer than change itself.
This commit is contained in:
Casey 2024-10-03 20:39:04 +03:00
parent d4ca60c9f9
commit 36c19b23dc
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ int main(int argc, char **argv) {
unsigned char version = 0; unsigned char version = 0;
assert(fread(header, 1, 4, fp_in) == 4 && "Failed to read header: not enough bytes"); assert(fread(header, 1, 4, fp_in) == 4 && "Failed to read header: not enough bytes");
if (0 == memcmp(header, "CCPI", 4)) { // Original CCPI (CPIv0) if (0 == memcmp(header, "CCPI", 4)) { // Original CCPI (CPIv0)
printf("CPIv0 (old header)\n"); version = 0;
} else if (0 == memcmp(header, "CPI", 3)) { // Newer CCPI (CPIvX) } else if (0 == memcmp(header, "CPI", 3)) { // Newer CCPI (CPIvX)
version = header[3]; version = header[3];
} else { } else {