ram vars to C files
This commit is contained in:
@@ -88,9 +88,6 @@ extern u32 GetGameStat(u8 statId);
|
||||
extern u32 gBattleTypeFlags;
|
||||
extern u8 gBattleOutcome;
|
||||
extern void (*gFieldCallback)(void);
|
||||
extern u8 gApproachingTrainerId;
|
||||
extern u8 gNoOfApproachingTrainers;
|
||||
extern u16 gUnknown_03006080;
|
||||
|
||||
// this file's functions
|
||||
static void DoBattlePikeWildBattle(void);
|
||||
@@ -113,7 +110,7 @@ static void HandleRematchVarsOnBattleEnd(void);
|
||||
static const u8 *GetIntroSpeechOfApproachingTrainer(void);
|
||||
static const u8 *GetTrainerCantBattleSpeech(void);
|
||||
|
||||
// ewram data
|
||||
// ewram vars
|
||||
EWRAM_DATA static u16 sTrainerBattleMode = 0;
|
||||
EWRAM_DATA u16 gTrainerBattleOpponent_A = 0;
|
||||
EWRAM_DATA u16 gTrainerBattleOpponent_B = 0;
|
||||
|
||||
@@ -14,12 +14,6 @@
|
||||
#include "event_data.h"
|
||||
#include "script_movement.h"
|
||||
|
||||
extern u8 gApproachingTrainerId;
|
||||
extern u8 gNoOfApproachingTrainers;
|
||||
extern u8 gUnknown_030060AC;
|
||||
extern u16 gUnknown_03006080;
|
||||
extern u8 gUnknown_03006084[];
|
||||
|
||||
extern bool8 InBattlePyramid(void);
|
||||
extern bool32 InTrainerHill(void);
|
||||
extern bool8 GetBattlePyramidTrainerFlag(u8 mapObjectId);
|
||||
@@ -55,6 +49,16 @@ static bool8 sub_80B44AC(u8 taskId, struct Task *task, struct MapObject *trainer
|
||||
|
||||
static void SpriteCB_TrainerIcons(struct Sprite *sprite);
|
||||
|
||||
// IWRAM common
|
||||
u16 gUnknown_03006080;
|
||||
u8 gUnknown_03006084[4];
|
||||
struct ApproachingTrainer gApproachingTrainers[2];
|
||||
u8 gNoOfApproachingTrainers;
|
||||
u8 gUnknown_030060AC;
|
||||
|
||||
// EWRAM
|
||||
EWRAM_DATA u8 gApproachingTrainerId = 0;
|
||||
|
||||
// const rom data
|
||||
static const u8 sEmotion_ExclamationMarkGfx[] = INCBIN_U8("graphics/misc/emotion_exclamation.4bpp");
|
||||
static const u8 sEmotion_QuestionMarkGfx[] = INCBIN_U8("graphics/misc/emotion_question.4bpp");
|
||||
|
||||
Reference in New Issue
Block a user