diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-04-16 20:37:58 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-04-16 20:37:58 +0300 |
| commit | bb43265c50f7c7d9d283a8940e229d0823bcc62c (patch) | |
| tree | d24dd6af6994b3779558c62d39d03314dcd0e51d /src | |
| parent | d0c14ba8ee40c76a9de93cc4477c218695748ab7 (diff) | |
Put const data in npc58
Diffstat (limited to 'src')
| -rw-r--r-- | src/npc/npc58.c | 6 | ||||
| -rw-r--r-- | src/npc/phonograph.c | 6 | ||||
| -rw-r--r-- | src/text.c | 2 |
3 files changed, 9 insertions, 5 deletions
diff --git a/src/npc/npc58.c b/src/npc/npc58.c index c9b9ab72..8e4202f1 100644 --- a/src/npc/npc58.c +++ b/src/npc/npc58.c @@ -3,7 +3,9 @@ extern void sub_0806FFBC(Entity*, u32, u32, u32); -extern SpriteLoadData gUnk_081146D0; +static const SpriteLoadData gUnk_081146D0[] = { + { 0, 0x61, 0x4 }, { 0x800, 0x61, 0x4 }, { 0x1000, 0x61, 0x4 }, { 0x1800, 0x61, 0x4 }, { 0, 0, 0 }, +}; void NPC58(Entity* this) { s32 sVar1; @@ -12,7 +14,7 @@ void NPC58(Entity* this) { Entity* entity; if (this->action == 0) { - if (LoadExtraSpriteData(this, &gUnk_081146D0) == 0) { + if (LoadExtraSpriteData(this, gUnk_081146D0) == 0) { return; } this->action += 1; diff --git a/src/npc/phonograph.c b/src/npc/phonograph.c index a5de78b2..560794d2 100644 --- a/src/npc/phonograph.c +++ b/src/npc/phonograph.c @@ -13,8 +13,6 @@ void sub_0806EABC(Entity* this); void sub_0806EABC(Entity* this, u32 param); #endif -extern Font gUnk_081146B8; - void Phonograph(Entity* this) { if (this->action == 0) { this->action += 1; @@ -187,6 +185,10 @@ void sub_0806E964(Entity* this, ScriptExecutionContext* context) { } #endif +const static Font gUnk_081146B8 = { + (u16*)0x2034fce, (void*)0x0600d000, (void*)0x2000d00, 0, 0xf080, 0xd0, 1, 1, 1, 1, 0, 0, 0, 1, 0 +}; + #ifdef EU void sub_0806EABC(Entity* this) { sub_08050384(); @@ -430,7 +430,7 @@ void sub_0805F440(Token* param_1, u8* param_2) { } } -u32 sub_0805F46C(u32 param_1, Font* param_2) { +u32 sub_0805F46C(u32 param_1, const Font* param_2) { u32 uVar1; WStruct* pWVar4; u32 uVar5; |
