Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
set_name.inc.c
Go to the documentation of this file.
1/* Sets the name to start from, converted to full-width characters and padded
2 with spaces */
3void OVL_NAME(setName)(NameEntry *task, char *name) {
4 TextTools conv;
5 s32 i;
6
7 initTextTools(&conv);
8 conv.convert(task->name, name, 0);
9 for (i = strlen((char *)task->name) >> 1; i < task->maxLength; i++) {
10 task->name[i] = SJIS_SPACE;
11 }
12}
#define OVL_NAME(name)
The name of this overlay's copy of a function of src/shared/.
Definition battle_mode.h:26
signed int s32
Definition common.h:11
int strlen(const char *)
SDK functions declared here rather than from their PsyQ headers: strings.h and memory....
#define SJIS_SPACE
full-width space, 0x81 0x40
Definition name_entry.h:17
void setName(NameEntry *task, char *name)
Sets the name to start from, converted to full-width characters and padded with spaces.
Definition set_name.inc.c:3
A name entry: the keyboard, the name typed so far and the panels that open and close.
Definition name_entry.h:95
Text helpers (initTextTools)
Definition text.h:93
void(* convert)()
(dst, src, mode): font codes <-> Shift-JIS
Definition text.h:96
void initTextTools(TextTools *obj)
Clears a text tools object, gives it its methods and binds it.
Definition text_tools.c:193