Fix variable ordering
This commit is contained in:
parent
ff69afeb4e
commit
b3452a8b91
2 changed files with 4 additions and 92 deletions
|
|
@ -10,10 +10,11 @@ extern void gclongjmp(jmp_buf *jump, int status);
|
||||||
#define EXEC_KILLED 3
|
#define EXEC_KILLED 3
|
||||||
|
|
||||||
static jmp_buf processjmpbuf;
|
static jmp_buf processjmpbuf;
|
||||||
u32 procfunc;
|
|
||||||
static u16 processcnt;
|
|
||||||
static Process *processcur;
|
|
||||||
static Process *processtop;
|
static Process *processtop;
|
||||||
|
static Process *processcur;
|
||||||
|
static u16 processcnt;
|
||||||
|
u32 procfunc;
|
||||||
|
|
||||||
|
|
||||||
void HuPrcInit(void)
|
void HuPrcInit(void)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,89 +0,0 @@
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
extern unkStruct145A98 lbl_80145A98[0x100];
|
|
||||||
extern s32 debugFontColor;
|
|
||||||
extern s16 lbl_801D3B2C;
|
|
||||||
extern s16 lbl_801D3B2E;
|
|
||||||
extern unkStruct1D3B44* lbl_801D3B44;
|
|
||||||
|
|
||||||
void fn_8000AEF0(void) {
|
|
||||||
s32 i;
|
|
||||||
|
|
||||||
debugFontColor = 0xF;
|
|
||||||
lbl_801D3B2E = 0;
|
|
||||||
|
|
||||||
for (i = 0; i < 0x100; i++) {
|
|
||||||
lbl_80145A98[i].unk_14 = 0;
|
|
||||||
}
|
|
||||||
fn_8000AF54();
|
|
||||||
}
|
|
||||||
|
|
||||||
void fn_8000AF54(void) {
|
|
||||||
s32 i;
|
|
||||||
|
|
||||||
lbl_801D3B2E = 0;
|
|
||||||
lbl_801D3B2C = 0;
|
|
||||||
for (i = 0; i < 0x100; i++) {
|
|
||||||
lbl_80145A98[i].unk_0C = (s16) (i + 1);
|
|
||||||
lbl_80145A98[i].unk_00 = 0;
|
|
||||||
if (lbl_80145A98[i].unk_14 != 0) {
|
|
||||||
lbl_80145A98[i].unk_14 = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// HuPrcCall
|
|
||||||
|
|
||||||
// HuPrcMemAlloc
|
|
||||||
|
|
||||||
// HuPrcMemFree
|
|
||||||
|
|
||||||
void HuPrcSetStat(unkStruct1D3B44* arg0, u16 arg1) {
|
|
||||||
arg0->unk_1E |= arg1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void HuPrcResetStat(unkStruct1D3B44* arg0, s32 arg1) {
|
|
||||||
arg0->unk_1E &= ~arg1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void HuPrcAllPause(s32 arg0) {
|
|
||||||
unkStruct1D3B44* var_r31;
|
|
||||||
|
|
||||||
var_r31 = lbl_801D3B44;
|
|
||||||
if (arg0 != 0) {
|
|
||||||
while (var_r31 != NULL) {
|
|
||||||
if ((var_r31->unk_1E & 4) == 0) {
|
|
||||||
var_r31->unk_1E |= (u16) 1;
|
|
||||||
}
|
|
||||||
var_r31 = var_r31->prev;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
while (var_r31 != NULL) {
|
|
||||||
if ((var_r31->unk_1E & 1) != 0) {
|
|
||||||
var_r31->unk_1E &= -2;
|
|
||||||
}
|
|
||||||
var_r31 = var_r31->prev;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void HuPrcAllUPause(s32 arg0) {
|
|
||||||
unkStruct1D3B44* var_r31;
|
|
||||||
|
|
||||||
var_r31 = lbl_801D3B44;
|
|
||||||
if (arg0 != 0) {
|
|
||||||
while (var_r31 != NULL) {
|
|
||||||
if ((var_r31->unk_1E & 8) == 0) {
|
|
||||||
var_r31->unk_1E |= (u16) 2;
|
|
||||||
}
|
|
||||||
var_r31 = var_r31->prev;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
while (var_r31 != NULL) {
|
|
||||||
if ((var_r31->unk_1E & 2) != 0) {
|
|
||||||
var_r31->unk_1E &= -3;
|
|
||||||
}
|
|
||||||
var_r31 = var_r31->prev;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue