mirror of
https://github.com/zeldaret/ss
synced 2026-07-04 12:49:56 -04:00
change everything to use a common types file
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "types.h"
|
||||
#include "toBeSorted/bitwise_flag_helper.h"
|
||||
#include <common.h>
|
||||
|
||||
|
||||
bool BitwiseFlagHelper::checkFlag(u16 slot, u16 shift, const u16 *pData, u16 flagCount) {
|
||||
return (pData[slot] >> shift) & 1;
|
||||
@@ -9,4 +10,4 @@ void BitwiseFlagHelper::setFlag(u16 slot, u16 shift, u16 *pData, u16 flagCount)
|
||||
}
|
||||
void BitwiseFlagHelper::unsetFlag(u16 slot, u16 shift, u16 *pData, u16 flagCount) {
|
||||
pData[slot] &= ~(1 << shift);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user