Decompile jpegutils.c (#75)

* Decompile jpegutils.c

jpegutils.c : OK

* Fix a typo

* Fixes in PR #75

- Fix a type in JpegWork
- Remove clang-format off/on in z_quake.c
- Move the jpegutils rule at the end of makefile
This commit is contained in:
Random
2020-04-16 20:08:23 +02:00
committed by GitHub
parent 045a92d7c3
commit 9ac1f8130d
10 changed files with 210 additions and 418 deletions
+4 -2
View File
@@ -40,8 +40,9 @@ s32 osReadMempak(OSMesgQueue* ctrlrqueue, s32 ctrlridx, u16 addr, PIF_mempak_dat
if (!ret) {
if (bufptr[0x26] != osMempakDataCRC(bufptr + 6)) {
ret = func_80101910(ctrlrqueue, ctrlridx);
if (ret)
if (ret) {
break;
}
ret = 4; // Retry
} else {
bcopy(bufptr + 6, data, 0x20);
@@ -49,8 +50,9 @@ s32 osReadMempak(OSMesgQueue* ctrlrqueue, s32 ctrlridx, u16 addr, PIF_mempak_dat
} else {
ret = 1; // Error
}
if (ret != 4)
if (ret != 4) {
break;
}
} while (0 <= read_try_count--);
__osSiRelAccess();
return ret;