progress #1 on porting battle_util

This commit is contained in:
jiangzhengwenjz
2019-07-31 07:57:24 +08:00
parent 353fe5e797
commit c88c9c6edf
16 changed files with 1428 additions and 4738 deletions
+1 -4
View File
@@ -19,10 +19,7 @@ void AllocateBattleResources(void)
*ptr++ = AllocZeroed(8);
while (--i >= 0);
}
// TODO: Figure out whether 0x200 is really the size of *gBattleStruct.
// The following works in pokeem:
// gBattleStruct = AllocZeroed(sizeof(*gBattleStruct));
gBattleStruct = AllocZeroed(0x200);
gBattleStruct = AllocZeroed(sizeof(*gBattleStruct));
gBattleResources = AllocZeroed(sizeof(*gBattleResources));
gBattleResources->secretBase = AllocZeroed(sizeof(*gBattleResources->secretBase));
gBattleResources->flags = AllocZeroed(sizeof(*gBattleResources->flags));