mirror of
https://github.com/zeldaret/tmc
synced 2026-06-29 19:42:24 -04:00
36 lines
976 B
C
36 lines
976 B
C
#include "entity.h"
|
|
#include "script.h"
|
|
#include "functions.h"
|
|
#include "fileselect.h"
|
|
#include "screen.h"
|
|
|
|
extern void sub_08057044(u32, struct_020227E8*, u32);
|
|
extern u32 gUnk_081146B8;
|
|
|
|
void Phonograph(Entity* this) {
|
|
if (this->action == 0) {
|
|
this->action += 1;
|
|
this->spriteSettings.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
|
|
ASM_FUNC("asm/non_matching/eu/sub_0806EABC.inc", void sub_0806EABC(Entity* this, u32 param))
|
|
#else
|
|
void sub_0806EABC(Entity* this, u32 param) {
|
|
sub_08050384();
|
|
sub_08057044(param, &gUnk_020227E8[0], 0x202020);
|
|
sub_0805F46C(0x3302, &gUnk_081146B8);
|
|
gScreen.bg0.updated = 1;
|
|
}
|
|
#endif
|