36 lines
928 B
C
36 lines
928 B
C
#include <ultra64.h>
|
|
#include "functions.h"
|
|
#include "variables.h"
|
|
|
|
#define FF_QUESTION_ASKED_BITFIELD_SIZE 0x33
|
|
|
|
/* .bss */
|
|
u8* quizQuestionAskedBitfield;
|
|
|
|
/* .code */
|
|
bool quizQuestionAskedBitfield_get(s32 index){
|
|
return func_803200A4(quizQuestionAskedBitfield, index);
|
|
}
|
|
|
|
void quizQuestionAskedBitfield_free(void){
|
|
free(quizQuestionAskedBitfield);
|
|
quizQuestionAskedBitfield = NULL;
|
|
}
|
|
|
|
void quizQuestionAskedBitfield_init(void){
|
|
int i;
|
|
quizQuestionAskedBitfield =(u8*) malloc(FF_QUESTION_ASKED_BITFIELD_SIZE);
|
|
for(i = 0; i < FF_QUESTION_ASKED_BITFIELD_SIZE; i++){
|
|
quizQuestionAskedBitfield[i] = 0;
|
|
}
|
|
}
|
|
|
|
void quizQuestionAskedBitfield_set(s32 index, bool value){
|
|
func_8032015C(quizQuestionAskedBitfield, index, value);
|
|
}
|
|
|
|
void quizQuestionAskedBitfield_defrag(void){
|
|
if(quizQuestionAskedBitfield != NULL)
|
|
quizQuestionAskedBitfield = (u8*)defrag(quizQuestionAskedBitfield);
|
|
}
|