mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Attempt to decompile pakSetBitflag
This commit is contained in:
1 parent
f4c6599a89
commit
5f0a2f2e29
1 file changed
+13
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user