mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-10 10:05:52 -05:00
split text util
This commit is contained in:
7
include/pokemon_abilities.h
Normal file
7
include/pokemon_abilities.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef GUARD_POKEMON_ABILITIES_H
|
||||
#define GUARD_POKEMON_ABILITIES_H
|
||||
|
||||
void CopyAbilityNametoBuffer(char *buffer, u8 index);
|
||||
const u8 *GetAbilityDescription(u8 index);
|
||||
|
||||
#endif // GUARD_POKEMON_ABILITIES_H
|
||||
9
include/pokemon_types.h
Normal file
9
include/pokemon_types.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef GUARD_POKEMON_TYPES_H
|
||||
#define GUARD_POKEMON_TYPES_H
|
||||
|
||||
const char *GetUnformattedTypeString(u8 type);
|
||||
const char * GetFormattedTypeString(u8 type);
|
||||
u8 IsTypePhysical(u8 index);
|
||||
u8 GetBestResistingType(u8 index);
|
||||
|
||||
#endif // GUARD_POKEMON_TYPES_H
|
||||
@@ -30,7 +30,6 @@ void sub_80920D8(u8 *buffer);
|
||||
void SetRescueTeamName(u8 *buffer);
|
||||
s32 GetTeamRankPts(void);
|
||||
s32 GetPtsToNextRank(void);
|
||||
void SetTeamRankPoints(s32 newPts);
|
||||
void AddToTeamRankPts(s32 newPts);
|
||||
u8 GetRescueTeamRank(void);
|
||||
const u8 *GetTeamRankString(u32 index);
|
||||
|
||||
@@ -29,7 +29,7 @@ extern const u8 *const gUnknown_810AF50[20];
|
||||
extern const u8 *const gAdventureLogText[32];
|
||||
extern const u8 *const gRescueTeamRanks[MAX_TEAM_RANKS];
|
||||
extern const u8 *const gAbilityNames[NUM_ABILITIES];
|
||||
extern const u8 *const AbilityDescriptions[NUM_ABILITIES];
|
||||
extern const u8 *const gAbilityDescriptions[NUM_ABILITIES];
|
||||
extern const u8 *const gRangeNames[49];
|
||||
extern const u8 *const gUnknown_810CF00;
|
||||
extern const u8 *const gTextType;
|
||||
|
||||
@@ -1,16 +1,10 @@
|
||||
#ifndef GUARD_TEXT_UTIL_H
|
||||
#define GUARD_TEXT_UTIL_H
|
||||
|
||||
void sub_80922B4(u8 *buffer, const u8 *string, s32 size);
|
||||
u32 sub_80922E4(u32 r0);
|
||||
void StrncpyCustom(u8 *buffer, const u8 *string, s32 n); // Regular strncpy, but it calls GetCharId for each char
|
||||
void CopyStringtoBuffer(u8 *buffer, const u8 *string);
|
||||
void BoundedCopyStringtoBuffer(u8 *buffer, u8 *string, s32 size);
|
||||
const char *GetUnformattedTypeString(u8 type);
|
||||
const char * GetFormattedTypeString(u8 type);
|
||||
u8 IsTypePhysical(u8 index);
|
||||
u8 sub_8092364(u8 index);
|
||||
void CopyAbilityNametoBuffer(char *buffer, u8 index);
|
||||
const u8 *GetAbilityDescription(u8 index);
|
||||
u32 ReturnIntFromChar2(u8);
|
||||
s32 ReturnIntFromChar(u8 c);
|
||||
u32 GetCharId(u8);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user