Some more documentation

This commit is contained in:
PikalaxALT
2019-11-04 09:33:19 -05:00
parent 0f4621c730
commit d16532c262
14 changed files with 147 additions and 139 deletions
+4 -4
View File
@@ -67,12 +67,12 @@ static bool32 RunMysteryEventScriptCommand(struct ScriptContext *ctx)
return FALSE;
}
void sub_80DA89C(u8 *script)
void MEventScript_InitContext(u8 *script)
{
InitMysteryEventScript(&sMysteryEventScriptContext, script);
}
bool32 sub_80DA8B0(u32 *a0)
bool32 MEventScript_Run(u32 *a0)
{
bool32 ret = RunMysteryEventScriptCommand(&sMysteryEventScriptContext);
*a0 = sMysteryEventScriptContext.data[2];
@@ -83,8 +83,8 @@ bool32 sub_80DA8B0(u32 *a0)
u32 RunMysteryEventScript(u8 *script)
{
u32 ret;
sub_80DA89C(script);
while (sub_80DA8B0(&ret));
MEventScript_InitContext(script);
while (MEventScript_Run(&ret));
return ret;
}