diff options
Diffstat (limited to 'include/text.h')
-rw-r--r-- | include/text.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/include/text.h b/include/text.h index 19c9b3040..bfad8e938 100644 --- a/include/text.h +++ b/include/text.h @@ -60,7 +60,7 @@ struct Window u16 tileDataStartOffset; u16 tileDataOffset; u16 textIndex; - u8 *text; + const u8 *text; u8 *tileData; u16 *tilemap; struct WindowConfig *config; @@ -136,18 +136,18 @@ u16 InitWindowTileData(struct Window *win, u16 startOffset); u32 MultistepInitWindowTileData(struct Window *win, u16 startOffset); bool32 MultistepLoadFont(void); void InitWindowFromConfig(struct Window *win, struct WindowConfig *winConfig); -void InitWindow(struct Window *win, u8 *text, u16 tileDataStartOffset, u8 left, u8 top); -void sub_8002E4C(struct Window *win, u8 *text, u16 tileDataStartOffset, u8 left, u16 top, u32 a6); -void sub_8002E90(struct Window *win, u8 *text); -void sub_8002EB0(struct Window *win, u8 *text, u16 tileDataStartOffset, u8 left, u8 top); +void InitWindow(struct Window *win, const u8 *text, u16 tileDataStartOffset, u8 left, u8 top); +void sub_8002E4C(struct Window *win, const u8 *text, u16 tileDataStartOffset, u8 left, u16 top, u32 a6); +void sub_8002E90(struct Window *win, const u8 *text); +void sub_8002EB0(struct Window *win, const u8 *text, u16 tileDataStartOffset, u8 left, u8 top); u8 sub_8002F44(struct Window *win); u8 sub_8003418(struct Window *win); -u8 sub_8003460(struct Window *win, u8 *text, u16 tileDataStartOffset, u8 left, u8 top); +u8 sub_8003460(struct Window *win, const u8 *text, u16 tileDataStartOffset, u8 left, u8 top); u8 sub_8003490(struct Window *win, u8 c, u16 tileDataStartOffset, u8 left, u8 top); void sub_80034D4(u8 *tileData, u8 *text); u8 sub_80034EC(u8 *str); u8 *sub_8003504(u8 *dest, s32 value, u8 alignAmount, u8 alignType); -u8 *sub_8003558(u8 *dest, u8 *src, u8 alignAmount, u8 alignType); +u8 *sub_8003558(u8 *dest, const u8 *src, u8 alignAmount, u8 alignType); u8 sub_80035AC(struct Window *win); u8 sub_800374C(struct Window *win); u8 sub_8003778(struct Window *win); @@ -164,18 +164,18 @@ void FillWindowRectWithBlankTile(struct Window *win, u8 left, u8 top, u8 right, u8 GetExtCtrlCodeLength(u8 code); u8 *AlignInt1(struct Window *win, u8 *dest, s32 value, u8 alignAmount, u8 alignType); u8 *AlignInt2(struct Window *win, u8 *dest, s32 value, u8 alignAmount, u8 alignType); -u8 *AlignString(struct Window *win, u8 *dest, u8 *src, u8 alignAmount, u8 alignType); -u8 GetStringWidth(struct Window *win, u8 *s); -u8 sub_8004D04(struct Window *win, u8 *text, u16 tileDataStartOffset, u8 left, u16 top, u32 a6); -u8 sub_8004D38(struct Window *win, u8 *text, u16 tileDataStartOffset, u8 left, u8 top); -u8 sub_8004DB0(struct Window *win, u8 *text, u16 tileDataStartOffset, u8 left, u8 top, u16 a6); +u8 *AlignString(struct Window *win, u8 *dest, const u8 *src, u8 alignAmount, u8 alignType); +u8 GetStringWidth(struct Window *win, const u8 *s); +u8 sub_8004D04(struct Window *win, const u8 *text, u16 tileDataStartOffset, u8 left, u16 top, u32 a6); +u8 sub_8004D38(struct Window *win, const u8 *text, u16 tileDataStartOffset, u8 left, u8 top); +u8 sub_8004DB0(struct Window *win, const u8 *text, u16 tileDataStartOffset, u8 left, u8 top, u16 a6); u8 sub_8004E24(struct Window *win); void sub_8004E28(struct Window *win, u8 *foreground, u8 *background, u8 *shadow); -void sub_8004E3C(struct WindowConfig *winConfig, u8 *tileData, u8 *text); -u8 GetStringWidthGivenWindowConfig(struct WindowConfig *winConfig, u8 *s); +void sub_8004E3C(struct WindowConfig *winConfig, u8 *tileData, const u8 *text); +u8 GetStringWidthGivenWindowConfig(struct WindowConfig *winConfig, const u8 *s); void ConvertInternationalString(u8 *s, u8 language); void SkipExtCtrlCodes(u8 *str); -s32 StringCompareWithoutExtCtrlCodes(u8 *str1, u8 *str2); -u8 sub_8004FD0(struct Window *win, u8 *dest, u8 *src, u16 tileDataStartOffset, u8 left, u16 top, u8 width, u32 a8); +s32 StringCompareWithoutExtCtrlCodes(const u8 *str1, const u8 *str2); +u8 sub_8004FD0(struct Window *win, u8 *dest, const u8 *src, u16 tileDataStartOffset, u8 left, u16 top, u8 width, u32 a8); #endif // GUARD_TEXT_H |