Add variables to common.h

This commit is contained in:
gamemasterplc 2023-11-23 12:53:00 -06:00
parent 905f5a7e73
commit 39286d7a62
4 changed files with 24 additions and 9 deletions

View file

@ -4,5 +4,6 @@
#include "types.h"
#include "common_structs.h"
#include "functions.h"
#include "variables.h"
#endif

23
include/variables.h Normal file
View file

@ -0,0 +1,23 @@
#ifndef _VARIABLES_H
#define _VARIABLES_H
#include "types.h"
#include "common_structs.h"
#include "dolphin/os.h"
extern u16 HuPadBtnDown[4];
extern u8 HuPadDStk[4];
extern OSHeapHandle currentHeapHandle;
extern BOOL saftyFrameF;
extern u16 strlinecnt;
extern u16 empstrline;
extern int fontcolor;
extern u32 procfunc;
extern WipeState wipeData;
extern PlayerConfig gPlayerConfig[4];
#endif

View file

@ -4,13 +4,6 @@
const double _half = 0.5;
const double _three = 3.0;
extern WipeState wipeData;
extern PlayerConfig gPlayerConfig[4];
extern u16 HuPadBtnDown[4];
extern u8 HuPadDStk[4];
extern int fontcolor;
static void SubchrMain(void);
static u8 cur_direction[4];

View file

@ -1,8 +1,6 @@
#include "common.h"
#include "dolphin/os.h"
extern OSHeapHandle currentHeapHandle;
static u32 HeapSizeTbl[5] = { 0x240000, 0x140000, 0xA80000, 0x580000, 0 };
static void *HeapTbl[5];