changed to P_ENABLE_DEBUG

This commit is contained in:
TheXaman 2021-11-30 11:20:26 +01:00
parent 50e95878e9
commit c402a840b1
4 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#ifndef GUARD_POKEMON_DEBUG_H
#define GUARD_POKEMON_DEBUG_H
#define POKEMON_DEBUG
#define P_ENABLE_DEBUG
void CB2_Debug_Pokemon(void);

View File

@ -114,7 +114,7 @@ void LoadSpecialPokePic(const struct CompressedSpriteSheet *src, void *dest, s32
DrawSpindaSpots(species, personality, dest, isFrontPic);
}
#ifdef POKEMON_DEBUG
#ifdef P_ENABLE_DEBUG
static void LoadSpecialPokePicCustom(const struct CompressedSpriteSheet *src, void *dest, s32 species, u32 personality, bool8 isFrontPic, bool8 isFemale)
{
if (species == SPECIES_UNOWN)

View File

@ -132,7 +132,7 @@ void FieldGetPlayerInput(struct FieldInput *input, u16 newKeys, u16 heldKeys)
else if (heldKeys & DPAD_RIGHT)
input->dpadDirection = DIR_EAST;
#ifdef POKEMON_DEBUG
#ifdef P_ENABLE_DEBUG
if ((heldKeys & R_BUTTON) && input->pressedStartButton)
{
input->input_field_1_2 = TRUE;
@ -199,7 +199,7 @@ int ProcessPlayerFieldInput(struct FieldInput *input)
return TRUE;
#ifdef POKEMON_DEBUG
#ifdef P_ENABLE_DEBUG
if (input->input_field_1_2)
{
//PlaySE(SE_WIN_OPEN);

View File

@ -23,7 +23,7 @@ struct MonIconSpriteTemplate
// static functions
static u8 CreateMonIconSprite(struct MonIconSpriteTemplate *, s16, s16, u8);
#ifdef POKEMON_DEBUG
#ifdef P_ENABLE_DEBUG
static const u8 *GetMonIconPtrCustom(u16 species, u32 personality, bool8 isFemale);
static const u8* GetMonIconTilesCustom(u16 species, bool8 isFemale);
#endif
@ -2580,7 +2580,7 @@ u8 CreateMonIcon(u16 species, void (*callback)(struct Sprite *), s16 x, s16 y, u
return spriteId;
}
#ifdef POKEMON_DEBUG
#ifdef P_ENABLE_DEBUG
u8 CreateMonIconCustom(u16 species, void (*callback)(struct Sprite *), s16 x, s16 y, u8 subpriority, u32 personality, bool8 isFemale, bool8 isShiny)
{
u8 spriteId;
@ -2678,7 +2678,7 @@ const u8 *GetMonIconPtr(u16 species, u32 personality)
return GetMonIconTiles(GetIconSpecies(species, personality), personality);
}
#ifdef POKEMON_DEBUG
#ifdef P_ENABLE_DEBUG
static const u8 *GetMonIconPtrCustom(u16 species, u32 personality, bool8 isFemale)
{
return GetMonIconTilesCustom(GetIconSpecies(species, personality), isFemale);
@ -2754,7 +2754,7 @@ const u8* GetMonIconTiles(u16 species, u32 personality)
return iconSprite;
}
#ifdef POKEMON_DEBUG
#ifdef P_ENABLE_DEBUG
static const u8* GetMonIconTilesCustom(u16 species, bool8 isFemale)
{
const u8* iconSprite = gMonIconTable[species];