From 5f0a2f2e29cbc847ac43f44c62c29405d0a3b644 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 26 Mar 2021 22:32:32 +1000 Subject: [PATCH] Attempt to decompile pakSetBitflag --- src/game/pak/pak.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/game/pak/pak.c b/src/game/pak/pak.c index 89ae750c8..b690c5751 100644 --- a/src/game/pak/pak.c +++ b/src/game/pak/pak.c @@ -16837,6 +16837,19 @@ glabel pakSetBitflag /* f11e580: 00000000 */ sll $zero,$zero,0x0 ); +// Mismatch: regalloc +//void pakSetBitflag(u32 flagnum, u8 *bitstream, bool set) +//{ +// u32 byteindex = flagnum / 8; +// u8 mask = 1 << (flagnum % 8); +// +// if (set) { +// bitstream[byteindex] |= mask; +// } else { +// bitstream[byteindex] &= ~mask; +// } +//} + bool pakHasBitflag(u32 flagnum, u8 *bitstream) { u32 byteindex = flagnum / 8;