mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-15 12:24:39 +00:00
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:
parent
045a92d7c3
commit
9ac1f8130d
10 changed files with 210 additions and 418 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue