mirror of
https://github.com/zeldaret/tmc
synced 2026-09-10 04:11:53 -04:00
40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
#include "entity.h"
|
|
#include "script.h"
|
|
#include "functions.h"
|
|
#include "fileScreen.h"
|
|
#include "screen.h"
|
|
|
|
extern void sub_08057044(u32, struct_020227E8*, u32);
|
|
extern u32 gUnk_081146B8;
|
|
|
|
extern u16 gBG0Settings[];
|
|
|
|
void Phonograph(Entity* this) {
|
|
if (this->action == 0) {
|
|
this->action += 1;
|
|
this->spriteSettings.b.draw = 1;
|
|
this->field_0x68.HWORD = 1;
|
|
this->field_0x6a.HWORD = 0xffff;
|
|
sub_0807DD64(this);
|
|
this->frameIndex = 0;
|
|
}
|
|
ExecuteScriptForEntity(this, NULL);
|
|
HandleEntity0x82Actions(this);
|
|
}
|
|
|
|
ASM_FUNC("asm/non_matching/phonograph/sub_0806E964.inc",
|
|
void sub_0806E964(Entity* this, ScriptExecutionContext* context))
|
|
|
|
#ifdef EU
|
|
NAKED void sub_0806EABC(Entity* this, u32 param) {
|
|
asm(".incbin \"baserom_eu.gba\", 0x06E4F8, 0x000003C"); // TODOg disassemble
|
|
}
|
|
#else
|
|
void sub_0806EABC(Entity* this, u32 param) {
|
|
sub_08050384();
|
|
sub_08057044(param, &gUnk_020227E8, 0x202020);
|
|
sub_0805F46C(0x3302, &gUnk_081146B8);
|
|
gScreen.bg.bg0Updated = 1;
|
|
}
|
|
#endif
|