diff --git a/.clangd b/.clangd
new file mode 100644
index 0000000000..fdc5690c2d
--- /dev/null
+++ b/.clangd
@@ -0,0 +1,2 @@
+Diagnostics:
+ Suppress: 'pp_including_mainfile_in_preamble'
diff --git a/.gitignore b/.gitignore
index 3a72332d1d..3ee9f2dc3b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -87,3 +87,5 @@ sdk/
__pycache__
.cache
+
+compile_commands.json
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000000..2c8c1cc4de
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,25 @@
+# Contributing to pret/pokeplatinum
+
+This document provides a synopsis and loose guidelines for how to contribute to this project. It is a work in progress. Maintainers should expand this document.
+
+## Contents
+- [Editor enhancements](#editor-enhancements)
+
+
+## Editor enhancements
+
+This repository includes a script to generate a `compile_commands.json` that is compatible with C language servers such as `clangd`.
+
+### Requirements
+
+- python3.8 or newer
+- gcc-arm-none-eabi
+- clangd
+
+### Usage
+
+```bash
+./gen_compile_commands.py
+```
+
+This will create a file named `compile_commands.json` in the project root, overwriting the previous copy.
diff --git a/INSTALL.md b/INSTALL.md
index 415498d18d..a7350a5a9b 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -28,10 +28,13 @@ You now have the choice between two different environments to use to build the p
Press 'Y' when prompted to confirm the update. The update process may take a few minutes. Once completed, the terminal will automatically close.
-3. Reopen an MSYS terminal (pink icon) and enter the following command to install the necessary packages:
+3. Reopen an MSYS terminal (pink icon) and enter the following commands to install the necessary packages:
```
- pacman -S git meson gcc arm-none-eabi-binutils
+ echo 'export MINGW_PACKAGE_PREFIX=mingw-w64-x86_64-' >> ~/.bashrc
+ echo 'export PATH=${PATH}:/mingw64/bin' >> ~/.bashrc
+ source ~/.bashrc
+ pacman -S git meson gcc "${MINGW_PACKAGE_PREFIX}arm-none-eabi-binutils"
```
Press 'Y' when prompted to confirm the installation.
diff --git a/build.sh b/build.sh
index 7906ccd9bc..d8b399b8d0 100755
--- a/build.sh
+++ b/build.sh
@@ -9,4 +9,5 @@ fi
# Set up env variable to show % of completion during ninja build
export NINJA_STATUS="[%p %f/%t] "
+# Build the project
ninja -C build "$target" "$@"
diff --git a/gen_compile_commands.py b/gen_compile_commands.py
new file mode 100644
index 0000000000..181b667b58
--- /dev/null
+++ b/gen_compile_commands.py
@@ -0,0 +1,228 @@
+import json
+import pathlib
+
+homedir = pathlib.Path(__file__).parent
+builddir = homedir / 'build'
+
+arm7_c_flags = [
+ 'arm-none-eabi-gcc',
+ '-c',
+ '-O3',
+ '-std=c99',
+ '-mcpu=arm7tdmi',
+ '-mfloat-abi=soft',
+ '-nostdinc',
+ '-D_NITRO',
+ '-DSDK_4M',
+ '-DSDK_ARM7',
+ '-DSDK_CODE_ARM',
+ '-DSDK_CW',
+ '-DSDK_CW_FORCE_EXPORT_SUPPORT',
+ '-DSDK_FINALROM',
+ '-DSDK_TS',
+]
+
+arm9_c_flags = [
+ 'arm-none-eabi-gcc',
+ '-c',
+ '-O3',
+ '-std=c99',
+ '-mcpu=arm946e-s',
+ '-mfloat-abi=soft',
+ '-nostdinc',
+ '-D_NITRO',
+ '-DLINK_PPWLOBBY',
+ '-DNNS_FINALROM',
+ '-DSDK_4M',
+ '-DSDK_ARM9',
+ '-DSDK_CODE_ARM',
+ '-DSDK_CW',
+ '-DSDK_CW_FORCE_EXPORT_SUPPORT',
+ '-DSDK_FINALROM',
+ '-DSDK_TS',
+]
+
+asm_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': [
+ 'arm-none-eabi-as',
+ '-mcpu=arm946e-s',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'asm').rglob('*.s')
+]
+
+nitrosdk_c_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': arm9_c_flags + [
+ f'-I{homedir}/tools/cw/include/MSL_C',
+ f'-I{homedir}/tools/cw/include/MSL_Extras',
+ f'-I{homedir}/subprojects/NitroSDK-4.2.30001/include',
+ f'-I{builddir}/subprojects/NitroSDK-4.2.30001/gen',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'subprojects/NitroSDK-4.2.30001').rglob('*.c')
+]
+
+nitrosystem_c_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': arm9_c_flags + [
+ f'-I{homedir}/tools/cw/include/MSL_C',
+ f'-I{homedir}/tools/cw/include/MSL_Extras',
+ f'-I{homedir}/subprojects/NitroSDK-4.2.30001/include',
+ f'-I{builddir}/subprojects/NitroSDK-4.2.30001/gen',
+ f'-I{homedir}/subprojects/NitroSystem-071126.1/include',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'subprojects/NitroSystem-071126.1').rglob('*.c')
+]
+
+nitrowifi_c_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': arm9_c_flags + [
+ f'-I{homedir}/tools/cw/include/MSL_C',
+ f'-I{homedir}/tools/cw/include/MSL_Extras',
+ f'-I{homedir}/subprojects/NitroSDK-4.2.30001/include',
+ f'-I{builddir}/subprojects/NitroSDK-4.2.30001/gen',
+ f'-I{homedir}/subprojects/NitroSystem-071126.1/include',
+ f'-I{homedir}/subprojects/NitroWiFi-2.1.30003/include',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'subprojects/NitroWiFi-2.1.30003').rglob('*.c')
+]
+
+nitrodwc_c_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': arm9_c_flags + [
+ f'-I{homedir}/tools/cw/include/MSL_C',
+ f'-I{homedir}/tools/cw/include/MSL_Extras',
+ f'-I{homedir}/subprojects/NitroSDK-4.2.30001/include',
+ f'-I{builddir}/subprojects/NitroSDK-4.2.30001/gen',
+ f'-I{homedir}/subprojects/NitroSystem-071126.1/include',
+ f'-I{homedir}/subprojects/NitroWiFi-2.1.30003/include',
+ f'-I{homedir}/subprojects/NitroDWC-2.2.30008/include',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'subprojects/NitroDWC-2.2.30008').rglob('*.c')
+]
+
+libvct_c_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': arm9_c_flags + [
+ f'-I{homedir}/tools/cw/include/MSL_C',
+ f'-I{homedir}/tools/cw/include/MSL_Extras',
+ f'-I{homedir}/subprojects/NitroSDK-4.2.30001/include',
+ f'-I{builddir}/subprojects/NitroSDK-4.2.30001/gen',
+ f'-I{homedir}/subprojects/NitroSystem-071126.1/include',
+ f'-I{homedir}/subprojects/NitroWiFi-2.1.30003/include',
+ f'-I{homedir}/subprojects/NitroDWC-2.2.30008/include',
+ f'-I{homedir}/subprojects/libvct-1.3.1/include',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'subprojects/libvct-1.3.1').rglob('*.c')
+]
+
+libcrypto_c_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': arm9_c_flags + [
+ f'-I{homedir}/tools/cw/include/MSL_C',
+ f'-I{homedir}/tools/cw/include/MSL_Extras',
+ f'-I{homedir}/subprojects/NitroSDK-4.2.30001/include',
+ f'-I{builddir}/subprojects/NitroSDK-4.2.30001/gen',
+ f'-I{homedir}/subprojects/NitroSystem-071126.1/include',
+ f'-I{homedir}/subprojects/NitroWiFi-2.1.30003/include',
+ f'-I{homedir}/subprojects/NitroDWC-2.2.30008/include',
+ f'-I{homedir}/subprojects/libvct-1.3.1/include',
+ f'-I{homedir}/subprojects/libcrypto/include',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'subprojects/libcrypto').rglob('*.c')
+]
+
+ppwlobby_c_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': arm9_c_flags + [
+ f'-I{homedir}/tools/cw/include/MSL_C',
+ f'-I{homedir}/tools/cw/include/MSL_Extras',
+ f'-I{homedir}/subprojects/NitroSDK-4.2.30001/include',
+ f'-I{builddir}/subprojects/NitroSDK-4.2.30001/gen',
+ f'-I{homedir}/subprojects/NitroSystem-071126.1/include',
+ f'-I{homedir}/subprojects/NitroWiFi-2.1.30003/include',
+ f'-I{homedir}/subprojects/NitroDWC-2.2.30008/include',
+ f'-I{homedir}/subprojects/libvct-1.3.1/include',
+ f'-I{homedir}/subprojects/libcrypto/include',
+ f'-I{homedir}/subprojects/ppwlobby/include',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'subprojects/ppwlobby').rglob('*.c')
+]
+
+c_commands = [
+ {
+ 'directory': builddir,
+ 'arguments': arm9_c_flags + [
+ f'-I{homedir}/tools/cw/include/MSL_C',
+ f'-I{homedir}/tools/cw/include/MSL_Extras',
+ f'-I{homedir}/subprojects/NitroSDK-4.2.30001/include',
+ f'-I{builddir}/subprojects/NitroSDK-4.2.30001/gen',
+ f'-I{homedir}/subprojects/NitroSystem-071126.1/include',
+ f'-I{homedir}/subprojects/NitroWiFi-2.1.30003/include',
+ f'-I{homedir}/subprojects/NitroDWC-2.2.30008/include',
+ f'-I{homedir}/subprojects/libvct-1.3.1/include',
+ f'-I{homedir}/subprojects/libcrypto/include',
+ f'-I{homedir}/subprojects/ppwlobby/include',
+ f'-I{homedir}/lib/gds/include',
+ f'-I{homedir}/lib/spl/include',
+ f'-iquote{homedir}',
+ f'-iquote{homedir}/include',
+ f'-include{homedir}/include/pch/global_pch.h',
+ '-mthumb',
+ '-o',
+ file.with_suffix('.o'),
+ file.resolve()
+ ],
+ 'file': file.resolve()
+ } for file in (homedir / 'src').rglob('*.c')
+]
+
+with open('compile_commands.json', 'w') as ofp:
+ json.dump(
+ asm_commands + nitrosdk_c_commands + nitrosystem_c_commands
+ + nitrowifi_c_commands + nitrodwc_c_commands + libvct_c_commands
+ + libcrypto_c_commands + ppwlobby_c_commands + c_commands,
+ ofp,
+ default=str,
+ indent=4
+ )
diff --git a/include/constants/pokemon.h b/include/constants/pokemon.h
index 65eb414818..66b43011b6 100644
--- a/include/constants/pokemon.h
+++ b/include/constants/pokemon.h
@@ -204,7 +204,7 @@ enum PokemonDataParam {
MON_DATA_SP_DEF,
MON_DATA_170,
MON_DATA_171,
- MON_DATA_172,
+ MON_DATA_172, //!< possible data sanity check
MON_DATA_173,
MON_DATA_SPECIES_EGG,
MON_DATA_COMBINED_IVS,
diff --git a/include/constants/sound.h b/include/constants/sound.h
index d353843070..7d13fe5ee2 100644
--- a/include/constants/sound.h
+++ b/include/constants/sound.h
@@ -3,8 +3,20 @@
enum PokemonCryMod {
POKECRY_NORMAL = 0,
-
- POKECRY_PINCH_NORMAL = 11,
+ POKECRY_HALF_DURATION,
+ POKECRY_FIELD_EVENT,
+ POKECRY_MID_MOVE,
+ POKECRY_HYPERVOICE_1,
+ POKECRY_FAINT,
+ POKECRY_HYPERVOICE_2,
+ POKECRY_HOWL_1,
+ POKECRY_HOWL_2,
+ POKECRY_UPROAR_1,
+ POKECRY_UPROAR_2,
+ POKECRY_PINCH_NORMAL,
+ POKECRY_PINCH_HALF_DURATION,
+ POKECRY_POKEDEX_CHORUS,
+ POKECRY_POKEDEX,
};
#endif // POKEPLATINUM_CONSTANTS_SOUND_H
diff --git a/include/core_sys.h b/include/core_sys.h
index 5aa3de4a5a..373c58a77b 100644
--- a/include/core_sys.h
+++ b/include/core_sys.h
@@ -1,10 +1,11 @@
#ifndef POKEPLATINUM_CORE_SYS_H
#define POKEPLATINUM_CORE_SYS_H
-#include "functypes/funcptr_02017798.h"
#include "struct_decls/struct_0201CD88_decl.h"
#include "overlay023/funcptr_ov23_022537D4.h"
+typedef void (* Callback)(void *);
+
enum ButtonMode {
BUTTON_MODE_NORMAL = 0,
BUTTON_MODE_START_IS_X = 1,
@@ -13,10 +14,10 @@ enum ButtonMode {
};
typedef struct CoreSys {
- UnkFuncPtr_02017798 unk_00;
- void * unk_04;
- UnkFuncPtr_02017798 unk_08;
- void * unk_0C;
+ Callback mainCallback;
+ void *mainCallbackData;
+ Callback hblankCallback;
+ void *hblankCallbackData;
UnkFuncPtr_ov23_022537D4 unk_10;
UnkFuncPtr_ov23_022537D4 unk_14;
UnkStruct_0201CD88 * unk_18;
@@ -24,7 +25,7 @@ typedef struct CoreSys {
UnkStruct_0201CD88 * unk_20;
UnkStruct_0201CD88 * unk_24;
u32 * unk_28;
- u32 unk_2C;
+ u32 frameCounter;
u32 unk_30;
enum ButtonMode buttonMode;
u32 heldKeysRaw;
@@ -43,11 +44,11 @@ typedef struct CoreSys {
u8 unk_64;
u8 unk_65;
u8 unk_66;
- u8 unk_67;
- u8 unk_68;
+ u8 inhibitSleep;
+ u8 inhibitReset;
u8 padding_69[3];
BOOL unk_6C;
- u32 * unk_70;
+ u32 *heapCanary;
} CoreSys;
extern CoreSys gCoreSys;
diff --git a/include/functypes/funcptr_02017798.h b/include/functypes/funcptr_02017798.h
deleted file mode 100644
index e2e881b55d..0000000000
--- a/include/functypes/funcptr_02017798.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef POKEPLATINUM_FUNCPTR_02017798_H
-#define POKEPLATINUM_FUNCPTR_02017798_H
-
-typedef void (* UnkFuncPtr_02017798)(void *);
-
-#endif // POKEPLATINUM_FUNCPTR_02017798_H
diff --git a/include/functypes/funcptr_0207E634.h b/include/functypes/funcptr_0207E634.h
index bc865c4c1b..50976fccf6 100644
--- a/include/functypes/funcptr_0207E634.h
+++ b/include/functypes/funcptr_0207E634.h
@@ -3,6 +3,6 @@
#include "struct_defs/struct_0207F248.h"
-typedef void (* UnkFuncPtr_0207E634)(UnkStruct_0207F248 *, int *);
+typedef void (* UnkFuncPtr_0207E634)(GameWindowLayout *, int *);
#endif // POKEPLATINUM_FUNCPTR_0207E634_H
diff --git a/include/functypes/funcptr_0207F248.h b/include/functypes/funcptr_0207F248.h
index 0639fbea97..b314df85ec 100644
--- a/include/functypes/funcptr_0207F248.h
+++ b/include/functypes/funcptr_0207F248.h
@@ -1,6 +1,6 @@
#ifndef POKEPLATINUM_FUNCPTR_0207F248_H
#define POKEPLATINUM_FUNCPTR_0207F248_H
-typedef int (* UnkFuncPtr_0207F248)(void *);
+typedef int (* GenericFunctionPtr)(void *);
#endif // POKEPLATINUM_FUNCPTR_0207F248_H
diff --git a/include/functypes/struct_0207F248_1.h b/include/functypes/struct_0207F248_1.h
index 82ee5381e1..32015e768c 100644
--- a/include/functypes/struct_0207F248_1.h
+++ b/include/functypes/struct_0207F248_1.h
@@ -1,6 +1,6 @@
#ifndef POKEPLATINUM_STRUCT_0207F248_1_H
#define POKEPLATINUM_STRUCT_0207F248_1_H
-typedef int (* UnkStruct_0207F248_1)(void *);
+typedef int (* GameWindowLayout_1)(void *);
#endif // POKEPLATINUM_STRUCT_0207F248_1_H
diff --git a/include/overlay005/ov5_021D2F14.h b/include/overlay005/ov5_021D2F14.h
index 77d06bfefa..02ac50abaf 100644
--- a/include/overlay005/ov5_021D2F14.h
+++ b/include/overlay005/ov5_021D2F14.h
@@ -12,7 +12,7 @@
void ov5_021D2F14(UnkStruct_ov5_021D30A8 * param0, const UnkStruct_ov7_0224F2EC * param1, u32 param2, u32 param3);
void ov5_021D30A8(UnkStruct_ov5_021D30A8 * param0);
-UnkStruct_02022550 * ov5_021D3104(UnkStruct_ov5_021D30A8 * param0, const UnkStruct_ov7_0224F358 * param1);
+GraphicElementData * ov5_021D3104(UnkStruct_ov5_021D30A8 * param0, const UnkStruct_ov7_0224F358 * param1);
void ov5_021D3190(UnkStruct_ov5_021D30A8 * param0, UnkStruct_ov104_02241308 * param1, u32 param2, u32 param3);
void ov5_021D3270(UnkStruct_ov5_021D30A8 * param0, int param1, int param2, int param3, int param4, int param5, int param6);
void ov5_021D32E8(UnkStruct_ov5_021D30A8 * param0, NARC * param1, int param2, int param3, int param4, int param5, int param6);
diff --git a/include/overlay005/ov5_021DDBE8.h b/include/overlay005/ov5_021DDBE8.h
index e90f602b85..7f880769b0 100644
--- a/include/overlay005/ov5_021DDBE8.h
+++ b/include/overlay005/ov5_021DDBE8.h
@@ -51,8 +51,8 @@ void ov5_021DE47C(UnkStruct_ov5_021DE47C * param0, int param1, int param2);
void ov5_021DE4AC(UnkStruct_ov5_021DE47C * param0);
void ov5_021DE4CC(NARC * param0, UnkStruct_ov5_021DE47C * param1, UnkStruct_ov5_021DE5A4 * param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
void ov5_021DE5A4(UnkStruct_ov5_021DE47C * param0, UnkStruct_ov5_021DE5A4 * param1);
-void ov5_021DE5D0(UnkStruct_02022550 * param0, u32 param1, u32 param2, u8 param3, u16 param4);
-UnkStruct_02022550 * ov5_021DE62C(UnkStruct_ov5_021DE47C * param0, UnkStruct_ov5_021DE5A4 * param1, fx32 param2, fx32 param3, fx32 param4, int param5);
+void ov5_021DE5D0(GraphicElementData * param0, u32 param1, u32 param2, u8 param3, u16 param4);
+GraphicElementData * ov5_021DE62C(UnkStruct_ov5_021DE47C * param0, UnkStruct_ov5_021DE5A4 * param1, fx32 param2, fx32 param3, fx32 param4, int param5);
VecFx32 ov5_021DE660(fx32 param0, fx32 param1, fx32 param2);
UnkStruct_ov5_021DE6BC * ov5_021DE6A4(u32 param0);
void ov5_021DE6BC(UnkStruct_ov5_021DE6BC * param0);
diff --git a/include/overlay005/struct_ov5_021D30A8.h b/include/overlay005/struct_ov5_021D30A8.h
index 6219959f5a..e71f7fc94f 100644
--- a/include/overlay005/struct_ov5_021D30A8.h
+++ b/include/overlay005/struct_ov5_021D30A8.h
@@ -8,7 +8,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009508 * unk_190;
UnkStruct_02009714 * unk_194[6];
diff --git a/include/overlay005/struct_ov5_021DE47C.h b/include/overlay005/struct_ov5_021DE47C.h
index c6cb864176..7832ecf8d9 100644
--- a/include/overlay005/struct_ov5_021DE47C.h
+++ b/include/overlay005/struct_ov5_021DE47C.h
@@ -6,7 +6,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
} UnkStruct_ov5_021DE47C;
diff --git a/include/overlay006/battle_params.h b/include/overlay006/battle_params.h
index 2eb07f5f36..bd104f67d2 100644
--- a/include/overlay006/battle_params.h
+++ b/include/overlay006/battle_params.h
@@ -7,7 +7,7 @@
#include "struct_decls/struct_02027F8C_decl.h"
#include "struct_decls/struct_0202B628_decl.h"
#include "struct_decls/struct_0202C878_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_0202CD88_decl.h"
#include "struct_decls/struct_02056B24_decl.h"
#include "struct_decls/struct_0206D140_decl.h"
@@ -31,10 +31,10 @@ typedef struct {
UnkStruct_0207D99C * unk_E4;
UnkStruct_02026324 * unk_E8;
PCBoxes * unk_EC;
- UnkStruct_0202CC84 * unk_F0[4];
+ ChatotCry * unk_F0[4];
UnkStruct_02056B24 * unk_100;
UnkStruct_0202C878 * unk_104;
- UnkStruct_020279FC * unk_108;
+ AnimationControlFlags * unk_108;
UnkStruct_0206D140 * unk_10C;
BattleParams_sub1 unk_110;
UnkStruct_0202CD88 * unk_11C;
diff --git a/include/overlay006/struct_ov6_02246254.h b/include/overlay006/struct_ov6_02246254.h
index f38541bd25..82df7abc34 100644
--- a/include/overlay006/struct_ov6_02246254.h
+++ b/include/overlay006/struct_ov6_02246254.h
@@ -11,7 +11,7 @@ typedef struct {
const TrainerInfo * unk_08;
int unk_0C;
int unk_10;
- const UnkStruct_020279FC * unk_14;
+ const AnimationControlFlags * unk_14;
} UnkStruct_ov6_02246254;
#endif // POKEPLATINUM_STRUCT_OV6_02246254_H
diff --git a/include/overlay007/struct_ov7_0224D008.h b/include/overlay007/struct_ov7_0224D008.h
index 781a6b4245..2c1cd68f22 100644
--- a/include/overlay007/struct_ov7_0224D008.h
+++ b/include/overlay007/struct_ov7_0224D008.h
@@ -26,18 +26,18 @@ typedef struct {
Window unk_08[6];
Window unk_68;
UnkStruct_0200112C * unk_78;
- UnkStruct_02013A04 * unk_7C;
- UnkStruct_02001AF4 * unk_80;
- UnkStruct_02013A04 * unk_84;
+ ResourceMetadata * unk_7C;
+ UIControlData * unk_80;
+ ResourceMetadata * unk_84;
MessageLoader * unk_88;
UnkStruct_0200B358 * unk_8C;
UnkStruct_020203AC * unk_90;
UnkStruct_ov5_021D30A8 unk_94;
- UnkStruct_02022550 * unk_25C[4];
+ GraphicElementData * unk_25C[4];
u16 unk_26C[2];
TrainerInfo * unk_270;
void * unk_274;
- UnkStruct_020279FC * unk_278;
+ AnimationControlFlags * unk_278;
UnkStruct_0202B628 * unk_27C;
UnkStruct_0202CD88 * unk_280;
SaveData * unk_284;
diff --git a/include/overlay012/funcptr_ov12_02239E64_1.h b/include/overlay012/funcptr_ov12_02239E64_1.h
index b88ea4c345..525b0ed23e 100644
--- a/include/overlay012/funcptr_ov12_02239E64_1.h
+++ b/include/overlay012/funcptr_ov12_02239E64_1.h
@@ -6,6 +6,6 @@
#include "struct_decls/struct_02022550_decl.h"
#include "overlay012/struct_ov12_0221FCDC_decl.h"
-typedef void (* UnkFuncPtr_ov12_02239E64_1)(UnkStruct_ov12_0221FCDC *, UnkStruct_0200C6E4 *, UnkStruct_0200C704 *, UnkStruct_02022550 *);
+typedef void (* UnkFuncPtr_ov12_02239E64_1)(UnkStruct_ov12_0221FCDC *, CellTransferStateData *, AnimationResourceCollection *, GraphicElementData *);
#endif // POKEPLATINUM_FUNCPTR_OV12_02239E64_1_H
diff --git a/include/overlay012/funcptr_ov12_02239E68.h b/include/overlay012/funcptr_ov12_02239E68.h
index 92fa1701db..bf33bc2168 100644
--- a/include/overlay012/funcptr_ov12_02239E68.h
+++ b/include/overlay012/funcptr_ov12_02239E68.h
@@ -6,6 +6,6 @@
#include "struct_decls/cell_actor_data.h"
#include "overlay012/struct_ov12_0221FCDC_decl.h"
-typedef void (* UnkFuncPtr_ov12_02239E68)(UnkStruct_ov12_0221FCDC *, UnkStruct_0200C6E4 *, UnkStruct_0200C704 *, CellActorData *);
+typedef void (* UnkFuncPtr_ov12_02239E68)(UnkStruct_ov12_0221FCDC *, CellTransferStateData *, AnimationResourceCollection *, CellActorData *);
#endif // POKEPLATINUM_FUNCPTR_OV12_02239E68_H
diff --git a/include/overlay012/ov12_0221FC20.h b/include/overlay012/ov12_0221FC20.h
index cac8104161..ce43c14753 100644
--- a/include/overlay012/ov12_0221FC20.h
+++ b/include/overlay012/ov12_0221FC20.h
@@ -46,9 +46,9 @@ BGL * ov12_02220278(UnkStruct_ov12_0221FCDC * param0);
s32 ov12_02220280(UnkStruct_ov12_0221FCDC * param0, int param1);
CellActorData * ov12_02220298(UnkStruct_ov12_0221FCDC * param0, int param1);
CellActorData * ov12_022202C0(UnkStruct_ov12_0221FCDC * param0, int param1);
-UnkStruct_0200C704 * ov12_022202EC(UnkStruct_ov12_0221FCDC * param0);
-UnkStruct_0200C704 * ov12_02220300(UnkStruct_ov12_0221FCDC * param0);
-UnkStruct_0200C6E4 * ov12_02220308(UnkStruct_ov12_0221FCDC * param0);
+AnimationResourceCollection * ov12_022202EC(UnkStruct_ov12_0221FCDC * param0);
+AnimationResourceCollection * ov12_02220300(UnkStruct_ov12_0221FCDC * param0);
+CellTransferStateData * ov12_02220308(UnkStruct_ov12_0221FCDC * param0);
void ov12_02220474(void);
int ov12_02220540(UnkStruct_ov12_0221FCDC * param0, int param1);
void ov12_02220590(UnkStruct_ov12_0221FCDC * param0, UnkStruct_ov12_022380DC * param1, int param2);
diff --git a/include/overlay012/ov12_022269C0.h b/include/overlay012/ov12_022269C0.h
index 1a4841f3a8..fb7189517f 100644
--- a/include/overlay012/ov12_022269C0.h
+++ b/include/overlay012/ov12_022269C0.h
@@ -10,6 +10,6 @@ void ov12_022269C0(UnkStruct_ov12_0221FCDC * param0);
void ov12_022269EC(UnkStruct_ov12_0221FCDC * param0);
void ov12_02226A3C(UnkStruct_ov12_0221FCDC * param0);
void ov12_02226A88(UnkStruct_ov12_0221FCDC * param0);
-void ov12_02226B1C(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_02226B1C(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
#endif // POKEPLATINUM_OV12_022269C0_H
diff --git a/include/overlay012/ov12_02226B84.h b/include/overlay012/ov12_02226B84.h
index aaa1bc0577..221cd2493b 100644
--- a/include/overlay012/ov12_02226B84.h
+++ b/include/overlay012/ov12_02226B84.h
@@ -11,7 +11,7 @@ void ov12_02226EB0(UnkStruct_ov12_0221FCDC * param0);
void ov12_022271D8(UnkStruct_ov12_0221FCDC * param0);
void ov12_02227408(UnkStruct_ov12_0221FCDC * param0);
void ov12_02227534(UnkStruct_ov12_0221FCDC * param0);
-void ov12_0222777C(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222777C(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_02227828(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222797C(UnkStruct_ov12_0221FCDC * param0);
void ov12_02227CBC(UnkStruct_ov12_0221FCDC * param0);
@@ -38,10 +38,10 @@ void ov12_02229B28(UnkStruct_ov12_0221FCDC * param0);
void ov12_02229C5C(UnkStruct_ov12_0221FCDC * param0);
void ov12_02229E54(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222A00C(UnkStruct_ov12_0221FCDC * param0);
-void ov12_0222A1AC(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_0222A34C(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_0222A410(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_0222A5C0(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222A1AC(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_0222A34C(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_0222A410(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_0222A5C0(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_0222A604(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222A8F4(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222AB50(UnkStruct_ov12_0221FCDC * param0);
diff --git a/include/overlay012/ov12_0222AC70.h b/include/overlay012/ov12_0222AC70.h
index 4f9760180a..7c86437cc9 100644
--- a/include/overlay012/ov12_0222AC70.h
+++ b/include/overlay012/ov12_0222AC70.h
@@ -6,7 +6,7 @@
#include "struct_decls/cell_actor_data.h"
#include "overlay012/struct_ov12_0221FCDC_decl.h"
-void ov12_0222AE68(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222AE68(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_0222B194(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222B45C(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222B68C(UnkStruct_ov12_0221FCDC * param0);
@@ -22,8 +22,8 @@ void ov12_0222C6D4(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222C8F8(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222CA2C(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222CB90(UnkStruct_ov12_0221FCDC * param0);
-void ov12_0222CC54(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222CC54(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_0222CFA0(UnkStruct_ov12_0221FCDC * param0);
-void ov12_0222D56C(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222D56C(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
#endif // POKEPLATINUM_OV12_0222AC70_H
diff --git a/include/overlay012/ov12_0222D6B0.h b/include/overlay012/ov12_0222D6B0.h
index 3f7e3e6678..2231692a24 100644
--- a/include/overlay012/ov12_0222D6B0.h
+++ b/include/overlay012/ov12_0222D6B0.h
@@ -6,12 +6,12 @@
#include "struct_decls/cell_actor_data.h"
#include "overlay012/struct_ov12_0221FCDC_decl.h"
-void ov12_0222D7C0(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_0222DB60(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_0222DEFC(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222D7C0(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_0222DB60(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_0222DEFC(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_0222E1A8(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222E248(CellActorData * param0);
-void ov12_0222E2F8(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_0222E61C(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222E2F8(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_0222E61C(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
#endif // POKEPLATINUM_OV12_0222D6B0_H
diff --git a/include/overlay012/ov12_0222E91C.h b/include/overlay012/ov12_0222E91C.h
index 5037719548..1685044da3 100644
--- a/include/overlay012/ov12_0222E91C.h
+++ b/include/overlay012/ov12_0222E91C.h
@@ -7,7 +7,7 @@
#include "overlay012/struct_ov12_0221FCDC_decl.h"
void ov12_0222EAA0(UnkStruct_ov12_0221FCDC * param0);
-void ov12_0222EC90(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222EC90(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_0222EFB0(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222F2F8(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222F5EC(UnkStruct_ov12_0221FCDC * param0);
diff --git a/include/overlay012/ov12_0222F700.h b/include/overlay012/ov12_0222F700.h
index b56a3410ea..951453e421 100644
--- a/include/overlay012/ov12_0222F700.h
+++ b/include/overlay012/ov12_0222F700.h
@@ -8,33 +8,33 @@
void ov12_0222F770(UnkStruct_ov12_0221FCDC * param0);
void ov12_0222F9E4(UnkStruct_ov12_0221FCDC * param0);
-void ov12_0222FE30(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_0222FE30(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_022300C4(UnkStruct_ov12_0221FCDC * param0);
void ov12_022303D0(UnkStruct_ov12_0221FCDC * param0);
void ov12_02230754(UnkStruct_ov12_0221FCDC * param0);
void ov12_02230804(UnkStruct_ov12_0221FCDC * param0);
void ov12_02230A8C(UnkStruct_ov12_0221FCDC * param0);
-void ov12_02230CEC(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_02231010(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_022312A4(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_02230CEC(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_02231010(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_022312A4(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_02231444(UnkStruct_ov12_0221FCDC * param0);
-void ov12_02231650(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_02231950(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_02231C1C(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_02231650(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_02231950(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_02231C1C(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_02231E7C(UnkStruct_ov12_0221FCDC * param0);
void ov12_02232024(UnkStruct_ov12_0221FCDC * param0);
-void ov12_02232378(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_02232378(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_0223249C(UnkStruct_ov12_0221FCDC * param0);
void ov12_022326AC(UnkStruct_ov12_0221FCDC * param0);
-void ov12_022329E0(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_02232CA8(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_022329E0(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_02232CA8(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_02233178(UnkStruct_ov12_0221FCDC * param0);
-void ov12_02233454(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_02233734(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_022339C4(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_02233454(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_02233734(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_022339C4(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_02233CD4(UnkStruct_ov12_0221FCDC * param0);
void ov12_02233F30(UnkStruct_ov12_0221FCDC * param0);
-void ov12_02234008(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_02234008(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
void ov12_02234214(UnkStruct_ov12_0221FCDC * param0);
void ov12_022342C4(UnkStruct_ov12_0221FCDC * param0);
void ov12_022344D0(UnkStruct_ov12_0221FCDC * param0);
diff --git a/include/overlay012/ov12_022346A4.h b/include/overlay012/ov12_022346A4.h
index c9df5e17e7..00b28ec309 100644
--- a/include/overlay012/ov12_022346A4.h
+++ b/include/overlay012/ov12_022346A4.h
@@ -6,9 +6,9 @@
#include "struct_decls/cell_actor_data.h"
#include "overlay012/struct_ov12_0221FCDC_decl.h"
-void ov12_022346A4(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_022348C8(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_02234A10(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
-void ov12_02234D98(UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3);
+void ov12_022346A4(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_022348C8(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_02234A10(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
+void ov12_02234D98(UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3);
#endif // POKEPLATINUM_OV12_022346A4_H
diff --git a/include/overlay012/struct_ov12_02223764_sub1.h b/include/overlay012/struct_ov12_02223764_sub1.h
index c940d40b4b..a6191fae12 100644
--- a/include/overlay012/struct_ov12_02223764_sub1.h
+++ b/include/overlay012/struct_ov12_02223764_sub1.h
@@ -6,8 +6,8 @@
#include "struct_decls/struct_0200C704_decl.h"
typedef struct {
- UnkStruct_0200C6E4 * unk_00;
- UnkStruct_0200C704 * unk_04;
+ CellTransferStateData * unk_00;
+ AnimationResourceCollection * unk_04;
PaletteSys * unk_08;
} UnkStruct_ov12_02223764_sub1;
diff --git a/include/overlay012/struct_ov12_0223595C.h b/include/overlay012/struct_ov12_0223595C.h
index 33247ecd28..ea4d3177ed 100644
--- a/include/overlay012/struct_ov12_0223595C.h
+++ b/include/overlay012/struct_ov12_0223595C.h
@@ -13,9 +13,9 @@ typedef struct {
u8 unk_02;
u8 unk_03;
UnkStruct_ov12_0221FCDC * unk_04;
- UnkStruct_0200C6E4 * unk_08;
- UnkStruct_0200C704 * unk_0C;
- UnkStruct_0200C704 * unk_10;
+ CellTransferStateData * unk_08;
+ AnimationResourceCollection * unk_0C;
+ AnimationResourceCollection * unk_10;
BGL * unk_14;
PaletteSys * unk_18;
} UnkStruct_ov12_0223595C;
diff --git a/include/overlay012/struct_ov12_02237728.h b/include/overlay012/struct_ov12_02237728.h
index 571dbfca7e..4b15e3d383 100644
--- a/include/overlay012/struct_ov12_02237728.h
+++ b/include/overlay012/struct_ov12_02237728.h
@@ -13,7 +13,7 @@ typedef struct BallThrow {
int ballID;
int bgPrio;
int surface;
- UnkStruct_0200C6E4 *cellActorSys;
+ CellTransferStateData *cellActorSys;
PaletteSys *paletteSys;
BattleSystem *battleSys;
} BallThrow;
diff --git a/include/overlay013/ov13_02228A38.h b/include/overlay013/ov13_02228A38.h
index e4a635aefa..3c11013b13 100644
--- a/include/overlay013/ov13_02228A38.h
+++ b/include/overlay013/ov13_02228A38.h
@@ -13,7 +13,7 @@ void ov13_02228A60(UnkStruct_ov13_02228A50 * param0, u8 param1);
void ov13_02228A64(UnkStruct_ov13_02228A50 * param0, UnkStruct_ov16_0226DC24 * param1);
void ov13_02228A68(UnkStruct_ov13_02228A50 * param0, u8 param1);
void ov13_02228A90(UnkStruct_ov13_02228A50 * param0);
-void ov13_02228A9C(UnkStruct_ov13_02228A50 * param0, const UnkStruct_020F1DB8 * param1);
+void ov13_02228A9C(UnkStruct_ov13_02228A50 * param0, const ByteFlagSet * param1);
void ov13_02228AC8(UnkStruct_ov13_02228A50 * param0, u32 param1);
u32 ov13_02228B64(UnkStruct_ov13_02228A50 * param0);
diff --git a/include/overlay013/struct_ov13_022213F0.h b/include/overlay013/struct_ov13_022213F0.h
index ab18bb4ace..c043bda4ec 100644
--- a/include/overlay013/struct_ov13_022213F0.h
+++ b/include/overlay013/struct_ov13_022213F0.h
@@ -41,7 +41,7 @@ typedef struct {
MessageLoader * unk_1FA4;
UnkStruct_0200B358 * unk_1FA8;
Strbuf* unk_1FAC;
- UnkStruct_0200C704 * unk_1FB0;
+ AnimationResourceCollection * unk_1FB0;
CellActorData * unk_1FB4[38];
Window unk_204C[2];
Window * unk_206C;
diff --git a/include/overlay013/struct_ov13_02227244.h b/include/overlay013/struct_ov13_02227244.h
index 2e9f3b4c87..319716ebb2 100644
--- a/include/overlay013/struct_ov13_02227244.h
+++ b/include/overlay013/struct_ov13_02227244.h
@@ -31,7 +31,7 @@ typedef struct {
UnkStruct_ov13_02228A50 * unk_34;
UnkStruct_ov16_0226DEEC * unk_38;
BagItem unk_3C[5][36];
- UnkStruct_0200C704 * unk_30C;
+ AnimationResourceCollection * unk_30C;
CellActorData * unk_310[6];
u16 unk_328[3][144];
u16 unk_688[4][130];
diff --git a/include/overlay016/ov16_0223DF00.h b/include/overlay016/ov16_0223DF00.h
index a4fe65c754..313b51b9ef 100644
--- a/include/overlay016/ov16_0223DF00.h
+++ b/include/overlay016/ov16_0223DF00.h
@@ -18,7 +18,7 @@
#include "trainer_info.h"
#include "struct_decls/struct_02026324_decl.h"
#include "struct_defs/struct_020279FC.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_defs/struct_0205AA50.h"
#include "pokemon.h"
#include "struct_decls/struct_020797DC_decl.h"
@@ -80,8 +80,8 @@ int BattleSystem_PartyCount(BattleSystem *battleSys, int battler);
Pokemon* BattleSystem_PartyPokemon(BattleSystem *battleSys, int battler, int slot);
UnkStruct_02007768 * ov16_0223E000(BattleSystem * param0);
UnkStruct_ov12_0221FCDC * ov16_0223E008(BattleSystem * param0);
-UnkStruct_0200C6E4 * ov16_0223E010(BattleSystem * param0);
-UnkStruct_0200C704 * ov16_0223E018(BattleSystem * param0);
+CellTransferStateData * ov16_0223E010(BattleSystem * param0);
+AnimationResourceCollection * ov16_0223E018(BattleSystem * param0);
UnkStruct_ov16_02268520 * ov16_0223E020(BattleSystem * param0, int param1);
UnkStruct_ov16_02268A14 * ov16_0223E02C(BattleSystem * param0);
UnkStruct_ov16_0226D160 * ov16_0223E034(BattleSystem * param0, UnkEnum_ov16_0226D194 param1);
@@ -191,7 +191,7 @@ u8 ov16_0223ED60(BattleSystem * param0);
u8 ov16_0223ED6C(BattleSystem * param0);
int BattleSystem_NumSafariBalls(BattleSystem * param0);
void BattleSystem_SetSafariBalls(BattleSystem * param0, int param1);
-UnkStruct_020279FC * ov16_0223EDA4(BattleSystem * param0);
+AnimationControlFlags * ov16_0223EDA4(BattleSystem * param0);
/**
* @brief Check if battle animations are turned on.
@@ -204,7 +204,7 @@ int ov16_0223EDE0(BattleSystem * param0);
u8 BattleSystem_TextSpeed(BattleSystem * param0);
int BattleSystem_Ruleset(BattleSystem * param0);
PokemonAnimationSys * ov16_0223EE28(BattleSystem * param0);
-UnkStruct_0202CC84 * BattleSystem_ChatotVoice(BattleSystem * param0, int param1);
+ChatotCry * BattleSystem_ChatotVoice(BattleSystem * param0, int param1);
void ov16_0223EE70(BattleSystem * param0);
void ov16_0223EF2C(BattleSystem * param0, int param1, int param2);
void ov16_0223EF48(BattleSystem * param0, Pokemon * param1);
diff --git a/include/overlay016/ov16_02266F1C.h b/include/overlay016/ov16_02266F1C.h
index f88eca5cd5..1dc4a7e05a 100644
--- a/include/overlay016/ov16_02266F1C.h
+++ b/include/overlay016/ov16_02266F1C.h
@@ -8,8 +8,8 @@
#include "struct_decls/cell_actor_data.h"
#include "overlay016/struct_ov16_022674C4.h"
-void ov16_02266F1C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, PaletteSys * param3, int param4);
-CellActorData * ov16_02267060(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2);
+void ov16_02266F1C(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, PaletteSys * param3, int param4);
+CellActorData * ov16_02267060(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2);
void ov16_02267084(UnkStruct_ov16_022674C4 * param0, u32 param1, u32 param2);
void ov16_02267220(UnkStruct_ov16_022674C4 * param0);
void ov16_02267258(UnkStruct_ov16_022674C4 * param0);
diff --git a/include/overlay016/ov16_0226D094.h b/include/overlay016/ov16_0226D094.h
index f374ea5b45..9630cfbef2 100644
--- a/include/overlay016/ov16_0226D094.h
+++ b/include/overlay016/ov16_0226D094.h
@@ -8,9 +8,9 @@
#include "enums.h"
-void ov16_0226D094(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2);
-void ov16_0226D12C(UnkStruct_0200C704 * param0);
-UnkStruct_ov16_0226D160 * ov16_0226D194(u8 param0[], UnkEnum_ov16_0226D194 param1, UnkEnum_ov16_0226D194_1 param2, UnkEnum_ov16_0226D194_3 param3, UnkStruct_0200C6E4 * param4, UnkStruct_0200C704 * param5);
+void ov16_0226D094(CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2);
+void ov16_0226D12C(AnimationResourceCollection * param0);
+UnkStruct_ov16_0226D160 * ov16_0226D194(u8 param0[], UnkEnum_ov16_0226D194 param1, UnkEnum_ov16_0226D194_1 param2, UnkEnum_ov16_0226D194_3 param3, CellTransferStateData * param4, AnimationResourceCollection * param5);
BOOL ov16_0226D1FC(UnkStruct_ov16_0226D160 * param0);
void ov16_0226D220(UnkStruct_ov16_0226D160 * param0, UnkEnum_ov16_0226D220 param1, UnkEnum_ov16_0226D194_2 param2);
BOOL ov16_0226D258(UnkStruct_ov16_0226D160 * param0);
diff --git a/include/overlay016/ov16_0226DB7C.h b/include/overlay016/ov16_0226DB7C.h
index 6119a99fe1..fe8e56c0cb 100644
--- a/include/overlay016/ov16_0226DB7C.h
+++ b/include/overlay016/ov16_0226DB7C.h
@@ -6,9 +6,9 @@
#include "struct_decls/struct_0200C704_decl.h"
#include "overlay016/struct_ov16_0226DC24_decl.h"
-void ov16_0226DB7C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, int param3, u32 param4, u32 param5, u32 param6, u32 param7);
-void ov16_0226DBFC(UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4);
-UnkStruct_ov16_0226DC24 * ov16_0226DC24(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
+void ov16_0226DB7C(CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, int param3, u32 param4, u32 param5, u32 param6, u32 param7);
+void ov16_0226DBFC(AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4);
+UnkStruct_ov16_0226DC24 * ov16_0226DC24(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
void ov16_0226DCA8(UnkStruct_ov16_0226DC24 * param0);
void ov16_0226DCCC(UnkStruct_ov16_0226DC24 * param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, fx32 param9);
void ov16_0226DD54(UnkStruct_ov16_0226DC24 * param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8);
diff --git a/include/overlay016/ov16_0226DE44.h b/include/overlay016/ov16_0226DE44.h
index 017651011a..484c2f2c1a 100644
--- a/include/overlay016/ov16_0226DE44.h
+++ b/include/overlay016/ov16_0226DE44.h
@@ -6,9 +6,9 @@
#include "struct_decls/struct_0200C704_decl.h"
#include "overlay016/struct_ov16_0226DEEC_decl.h"
-void ov16_0226DE44(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u32 param2, PaletteSys * param3, u32 param4, u32 param5, u32 param6, u32 param7);
-void ov16_0226DEC4(UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4);
-UnkStruct_ov16_0226DEEC * ov16_0226DEEC(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
+void ov16_0226DE44(CellTransferStateData * param0, AnimationResourceCollection * param1, u32 param2, PaletteSys * param3, u32 param4, u32 param5, u32 param6, u32 param7);
+void ov16_0226DEC4(AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4);
+UnkStruct_ov16_0226DEEC * ov16_0226DEEC(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
void ov16_0226DF68(UnkStruct_ov16_0226DEEC * param0);
void ov16_0226DF80(UnkStruct_ov16_0226DEEC * param0, int param1, int param2, fx32 param3);
void ov16_0226DFB0(UnkStruct_ov16_0226DEEC * param0, int param1, int param2);
diff --git a/include/overlay016/struct_ov16_02264408.h b/include/overlay016/struct_ov16_02264408.h
index 306bfe4de9..c5b73f57b0 100644
--- a/include/overlay016/struct_ov16_02264408.h
+++ b/include/overlay016/struct_ov16_02264408.h
@@ -5,12 +5,12 @@
#include "struct_decls/sprite_decl.h"
#include "struct_decls/struct_0200C6E4_decl.h"
#include "struct_decls/struct_02018340_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "overlay016/struct_ov16_0223E0C8.h"
#include "overlay016/struct_ov16_02264408_sub1.h"
typedef struct {
- UnkStruct_0200C6E4 * unk_00;
+ CellTransferStateData * unk_00;
BGL * unk_04;
PaletteSys * unk_08;
UnkStruct_ov16_0223E0C8 * unk_0C[4];
@@ -25,7 +25,7 @@ typedef struct {
u32 unk_4C[4];
int unk_50;
UnkStruct_ov16_02264408_sub1 unk_54;
- UnkStruct_0202CC84 * unk_6C;
+ ChatotCry * unk_6C;
u8 * unk_70;
u16 * unk_74;
} UnkStruct_ov16_02264408;
diff --git a/include/overlay017/ov17_0223F118.h b/include/overlay017/ov17_0223F118.h
index b4b9300aa4..7ff7c2a73b 100644
--- a/include/overlay017/ov17_0223F118.h
+++ b/include/overlay017/ov17_0223F118.h
@@ -13,17 +13,17 @@
#include "overlay017/struct_ov17_0223F6E8.h"
#include "overlay017/struct_ov17_0223F744.h"
-UnkStruct_0207C690 * ov17_0223F140(int param0);
-void ov17_0223F1E0(UnkStruct_0207C690 * param0);
-void ov17_0223F1E8(int param0, BGL * param1, UnkStruct_0200C704 * param2, UnkStruct_02012744 * param3, UnkStruct_ov17_0223F2E4 * param4, const Strbuf *param5, int param6, u32 param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14);
+GenericPointerData * ov17_0223F140(int param0);
+void ov17_0223F1E0(GenericPointerData * param0);
+void ov17_0223F1E8(int param0, BGL * param1, AnimationResourceCollection * param2, UnkStruct_02012744 * param3, UnkStruct_ov17_0223F2E4 * param4, const Strbuf *param5, int param6, u32 param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14);
void ov17_0223F2E4(UnkStruct_ov17_0223F2E4 * param0);
void ov17_0223F2F8(UnkStruct_ov17_0223F2E4 * param0, int param1, int param2, int param3);
Strbuf* ov17_0223F310(u32 param0, u32 param1);
void ov17_0223F334(UnkStruct_02095C48 * param0, int param1);
void ov17_0223F374(UnkStruct_02095C48 * param0);
-void ov17_0223F560(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, int param3, int param4, int param5, int param6);
-void ov17_0223F5E8(UnkStruct_0200C704 * param0, int param1, int param2, int param3, int param4);
-void ov17_0223F630(UnkStruct_ov17_0223F6E8 * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, u32 param10);
+void ov17_0223F560(CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, int param3, int param4, int param5, int param6);
+void ov17_0223F5E8(AnimationResourceCollection * param0, int param1, int param2, int param3, int param4);
+void ov17_0223F630(UnkStruct_ov17_0223F6E8 * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, u32 param10);
void ov17_0223F6C4(UnkStruct_ov17_0223F6E8 * param0);
UnkStruct_ov17_0223F744 * ov17_0223F70C(int param0, PaletteSys * param1, const u16 * param2, int param3, int param4, u32 param5);
void ov17_0223F744(UnkStruct_ov17_0223F744 * param0);
diff --git a/include/overlay017/ov17_02241270.h b/include/overlay017/ov17_02241270.h
index cb7b700f48..41115deb30 100644
--- a/include/overlay017/ov17_02241270.h
+++ b/include/overlay017/ov17_02241270.h
@@ -6,13 +6,13 @@
#include "struct_decls/struct_0200C704_decl.h"
#include "struct_decls/cell_actor_data.h"
-void ov17_02241270(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-CellActorData * ov17_022412C0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2);
-void ov17_022412F0(UnkStruct_0200C704 * param0);
+void ov17_02241270(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+CellActorData * ov17_022412C0(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2);
+void ov17_022412F0(AnimationResourceCollection * param0);
void ov17_02241314(CellActorData * param0);
-void ov17_0224131C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-CellActorData * ov17_0224136C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4);
+void ov17_0224131C(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+CellActorData * ov17_0224136C(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4);
void ov17_022413AC(CellActorData * param0);
-void ov17_022413B4(UnkStruct_0200C704 * param0);
+void ov17_022413B4(AnimationResourceCollection * param0);
#endif // POKEPLATINUM_OV17_02241270_H
diff --git a/include/overlay017/ov17_022413D8.h b/include/overlay017/ov17_022413D8.h
index 41b5c853a3..831d088fb7 100644
--- a/include/overlay017/ov17_022413D8.h
+++ b/include/overlay017/ov17_022413D8.h
@@ -26,8 +26,8 @@ void ov17_022415E4(UnkStruct_ov17_0223F88C * param0);
void ov17_022416E4(UnkStruct_ov17_0223F88C * param0);
void ov17_02241928(UnkStruct_ov17_0223F88C * param0, UnkStruct_02095C48 * param1, NARC * param2);
void ov17_0224197C(UnkStruct_ov17_0223F88C * param0);
-void ov17_022419AC(PaletteSys * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, NARC * param3);
-void ov17_02241A00(UnkStruct_0200C704 * param0);
+void ov17_022419AC(PaletteSys * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, NARC * param3);
+void ov17_02241A00(AnimationResourceCollection * param0);
void ov17_02241A24(UnkStruct_ov17_0223F88C * param0);
void ov17_02241A64(UnkStruct_ov17_0223F88C * param0);
void ov17_02241A8C(UnkStruct_ov17_0223F88C * param0, int param1, int param2);
@@ -35,12 +35,12 @@ void ov17_02241B1C(UnkStruct_ov17_0223F88C * param0);
void ov17_02241B3C(UnkStruct_ov17_02246F24 * param0, int param1, int param2, u8 * param3);
void ov17_02241D94(UnkStruct_ov17_0223F88C * param0, int param1, NARC * param2);
void ov17_02241E24(UnkStruct_ov17_0223F88C * param0);
-void ov17_02241E58(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_02241EA4(UnkStruct_0200C704 * param0);
+void ov17_02241E58(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_02241EA4(AnimationResourceCollection * param0);
void ov17_02241EF0(UnkStruct_ov17_0223F88C * param0);
void ov17_02241F34(UnkStruct_ov17_0223F88C * param0, int param1, int param2, int param3);
-void ov17_02242154(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_022421E0(UnkStruct_0200C704 * param0);
+void ov17_02242154(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_022421E0(AnimationResourceCollection * param0);
void ov17_02242248(UnkStruct_ov17_0223F88C * param0);
BOOL ov17_022424A8(UnkStruct_ov17_0223F88C * param0, int param1);
void ov17_022424D4(UnkStruct_ov17_0223F88C * param0, int param1, int param2);
@@ -53,8 +53,8 @@ void ov17_02242EE4(UnkStruct_ov17_02246F24 * param0, int param1);
void ov17_02242FA4(UnkStruct_ov17_02246F24 * param0);
void ov17_02242FC0(UnkStruct_ov17_02246F24 * param0);
void ov17_02242FE8(UnkStruct_ov17_02246F24 * param0);
-void ov17_02243040(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224308C(UnkStruct_0200C704 * param0);
+void ov17_02243040(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224308C(AnimationResourceCollection * param0);
void ov17_022430AC(UnkStruct_ov17_0223F88C * param0, int param1, int param2);
void ov17_022430F8(UnkStruct_ov17_0223F88C * param0);
void ov17_02243120(UnkStruct_ov17_02246F24 * param0, UnkStruct_ov17_022449B8 * param1, int param2);
diff --git a/include/overlay017/ov17_022476F8.h b/include/overlay017/ov17_022476F8.h
index 354a5ef6d5..5b288d1c31 100644
--- a/include/overlay017/ov17_022476F8.h
+++ b/include/overlay017/ov17_022476F8.h
@@ -10,8 +10,8 @@
void ov17_022476F8(UnkStruct_ov17_022476F8 * param0, int param1);
void ov17_02247734(UnkStruct_ov17_022476F8 * param0);
-void ov17_0224774C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_02247798(UnkStruct_0200C704 * param0);
+void ov17_0224774C(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_02247798(AnimationResourceCollection * param0);
void ov17_022477B8(UnkStruct_ov17_02247A48 * param0, int param1, int param2, fx32 param3, int param4);
void ov17_022478D0(UnkStruct_ov17_02247A48 * param0, int param1);
void ov17_02247918(UnkStruct_ov17_02247A48 * param0);
diff --git a/include/overlay017/ov17_0224A0FC.h b/include/overlay017/ov17_0224A0FC.h
index ee2a782d82..4e6f2846be 100644
--- a/include/overlay017/ov17_0224A0FC.h
+++ b/include/overlay017/ov17_0224A0FC.h
@@ -22,42 +22,42 @@ s16 ov17_0224A10C(int param0);
s16 ov17_0224A120(int param0);
void ov17_0224A134(UnkStruct_ov17_0224DF54 * param0);
void ov17_0224A1EC(UnkStruct_ov17_0224A1EC * param0);
-void ov17_0224A20C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1);
-void ov17_0224A210(UnkStruct_0200C704 * param0);
+void ov17_0224A20C(CellTransferStateData * param0, AnimationResourceCollection * param1);
+void ov17_0224A210(AnimationResourceCollection * param0);
void ov17_0224A214(UnkStruct_ov17_0224A1EC * param0, int param1, int param2);
void ov17_0224A368(UnkStruct_ov17_0224A1EC * param0, int param1, int param2, int param3);
-void ov17_0224A390(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224A428(UnkStruct_0200C704 * param0);
+void ov17_0224A390(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224A428(AnimationResourceCollection * param0);
void ov17_0224A580(UnkStruct_ov17_0224A1EC * param0);
-void ov17_0224A5A8(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224A5F8(UnkStruct_0200C704 * param0);
-void ov17_0224A61C(UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2);
+void ov17_0224A5A8(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224A5F8(AnimationResourceCollection * param0);
+void ov17_0224A61C(UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2);
void ov17_0224A650(UnkStruct_ov17_0224A1EC * param0);
void ov17_0224A674(UnkStruct_ov17_0224A1EC * param0);
void ov17_0224A7B8(UnkStruct_ov17_0224A1EC * param0);
-void ov17_0224A7E0(UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, int param3, int param4, u8 param5);
+void ov17_0224A7E0(UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, int param3, int param4, u8 param5);
void ov17_0224A95C(UnkStruct_ov17_0224A1EC * param0);
-void ov17_0224A984(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224A9D4(UnkStruct_0200C704 * param0);
-void ov17_0224A9F8(UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2);
+void ov17_0224A984(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224A9D4(AnimationResourceCollection * param0);
+void ov17_0224A9F8(UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2);
void ov17_0224AA1C(UnkStruct_ov17_0224A1EC * param0);
void ov17_0224AA38(UnkStruct_ov17_0224DF54 * param0);
void ov17_0224AA58(UnkStruct_ov17_0224DF54 * param0);
-void ov17_0224AA94(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224AAE4(UnkStruct_0200C704 * param0);
-void ov17_0224AB08(UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2);
+void ov17_0224AA94(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224AAE4(AnimationResourceCollection * param0);
+void ov17_0224AB08(UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2);
void ov17_0224ABB0(UnkStruct_ov17_0224A1EC * param0);
void ov17_0224ABDC(UnkStruct_ov17_0224A1EC * param0, int param1);
void ov17_0224AC78(UnkStruct_ov17_0224ABFC * param0, int param1, int param2);
-void ov17_0224AC80(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224ACD0(UnkStruct_0200C704 * param0);
-void ov17_0224ACF4(UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2);
+void ov17_0224AC80(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224ACD0(AnimationResourceCollection * param0);
+void ov17_0224ACF4(UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2);
void ov17_0224ACF8(UnkStruct_ov17_0224A1EC * param0);
-void ov17_0224ACFC(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224AD4C(UnkStruct_0200C704 * param0);
+void ov17_0224ACFC(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224AD4C(AnimationResourceCollection * param0);
BOOL ov17_0224AD70(UnkStruct_ov17_0224DF54 * param0, int param1, int param2);
-void ov17_0224AFA8(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224AFF8(UnkStruct_0200C704 * param0);
+void ov17_0224AFA8(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224AFF8(AnimationResourceCollection * param0);
BOOL ov17_0224B01C(UnkStruct_ov17_0224DF54 * param0);
void ov17_0224B058(UnkStruct_ov17_0224DF54 * param0);
void ov17_0224B068(UnkStruct_ov17_0224A1EC * param0, int param1);
@@ -75,9 +75,9 @@ int ov17_0224BDF0(UnkStruct_ov17_0224DF54 * param0, int param1);
int ov17_0224BE24(UnkStruct_ov17_0224DF54 * param0, int param1);
void ov17_0224C2CC(UnkStruct_ov17_0224DF54 * param0, u32 param1, const UnkStruct_ov17_0224C0C0 * param2);
int ov17_0224C300(UnkStruct_ov17_0224DF54 * param0);
-void ov17_0224C310(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2);
-void ov17_0224C360(UnkStruct_0200C704 * param0);
-void ov17_0224C384(UnkStruct_ov17_0224DF54 * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2);
+void ov17_0224C310(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2);
+void ov17_0224C360(AnimationResourceCollection * param0);
+void ov17_0224C384(UnkStruct_ov17_0224DF54 * param0, CellTransferStateData * param1, AnimationResourceCollection * param2);
void ov17_0224C3E4(UnkStruct_ov17_0224DF54 * param0);
void ov17_0224C434(UnkStruct_ov17_0224B058 * param0, u32 param1, u32 param2, int param3);
void ov17_0224C47C(UnkStruct_ov17_0224B058 * param0, int param1);
diff --git a/include/overlay017/ov17_0224F080.h b/include/overlay017/ov17_0224F080.h
index 7ed7fc6e6b..14ad9973b0 100644
--- a/include/overlay017/ov17_0224F080.h
+++ b/include/overlay017/ov17_0224F080.h
@@ -13,11 +13,11 @@ u32 ov17_0224F098(void);
u32 ov17_0224F09C(void);
u8 ov17_0224F0A0(int param0);
u32 ov17_0224F0B8(void);
-void ov17_0224F0BC(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4);
-void ov17_0224F0F0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u32 param2, u32 param3);
-void ov17_0224F138(UnkStruct_0200C704 * param0, u32 param1);
-void ov17_0224F140(UnkStruct_0200C704 * param0, u32 param1, u32 param2);
-CellActorData * ov17_0224F154(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, const UnkStruct_ov104_0223F9E0 * param3);
+void ov17_0224F0BC(CellTransferStateData * param0, AnimationResourceCollection * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4);
+void ov17_0224F0F0(CellTransferStateData * param0, AnimationResourceCollection * param1, u32 param2, u32 param3);
+void ov17_0224F138(AnimationResourceCollection * param0, u32 param1);
+void ov17_0224F140(AnimationResourceCollection * param0, u32 param1, u32 param2);
+CellActorData * ov17_0224F154(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, const UnkStruct_ov104_0223F9E0 * param3);
void ov17_0224F184(CellActorData * param0);
#endif // POKEPLATINUM_OV17_0224F080_H
diff --git a/include/overlay017/ov17_02252AB0.h b/include/overlay017/ov17_02252AB0.h
index 57ba1c0b42..c4ca9c35ec 100644
--- a/include/overlay017/ov17_02252AB0.h
+++ b/include/overlay017/ov17_02252AB0.h
@@ -6,9 +6,9 @@
#include "struct_decls/struct_0200C704_decl.h"
#include "overlay017/struct_ov17_02252B48_decl.h"
-void ov17_02252AB0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, u32 param3, u32 param4, u32 param5, u32 param6);
-void ov17_02252B20(UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4);
-UnkStruct_ov17_02252B48 * ov17_02252B48(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
+void ov17_02252AB0(CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, u32 param3, u32 param4, u32 param5, u32 param6);
+void ov17_02252B20(AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4);
+UnkStruct_ov17_02252B48 * ov17_02252B48(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
void ov17_02252BCC(UnkStruct_ov17_02252B48 * param0);
void ov17_02252BF0(UnkStruct_ov17_02252B48 * param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, fx32 param9);
void ov17_02252C78(UnkStruct_ov17_02252B48 * param0, int param1, int param2, int param3, int param4, fx32 param5);
diff --git a/include/overlay017/struct_ov17_0223F88C.h b/include/overlay017/struct_ov17_0223F88C.h
index 913aa7b2e1..7e1573df71 100644
--- a/include/overlay017/struct_ov17_0223F88C.h
+++ b/include/overlay017/struct_ov17_0223F88C.h
@@ -22,8 +22,8 @@ typedef struct {
UnkStruct_02095C48_sub1 * unk_00;
UnkStruct_02007768 * unk_04;
Sprite * unk_08[4];
- UnkStruct_0200C6E4 * unk_18;
- UnkStruct_0200C704 * unk_1C;
+ CellTransferStateData * unk_18;
+ AnimationResourceCollection * unk_1C;
UnkStruct_ov12_0221FCDC * unk_20;
BGL * unk_24;
Window unk_28[1];
diff --git a/include/overlay017/struct_ov17_02246F24.h b/include/overlay017/struct_ov17_02246F24.h
index bbb65abd99..cd05fc333c 100644
--- a/include/overlay017/struct_ov17_02246F24.h
+++ b/include/overlay017/struct_ov17_02246F24.h
@@ -14,7 +14,7 @@
typedef struct {
UnkStruct_02095C48 * unk_00;
SysTask * unk_04;
- UnkStruct_0207C690 * unk_08;
+ GenericPointerData * unk_08;
UnkStruct_ov17_0223F88C unk_0C;
UnkStruct_ov17_022472F8 unk_220;
UnkStruct_ov17_02246F24_sub1 unk_304;
diff --git a/include/overlay017/struct_ov17_022476F8.h b/include/overlay017/struct_ov17_022476F8.h
index 38e74c2e46..cf66fa8aa4 100644
--- a/include/overlay017/struct_ov17_022476F8.h
+++ b/include/overlay017/struct_ov17_022476F8.h
@@ -21,8 +21,8 @@ typedef struct {
UnkStruct_02007768 * unk_04;
Sprite * unk_08[4];
Sprite * unk_18;
- UnkStruct_0200C6E4 * unk_1C;
- UnkStruct_0200C704 * unk_20;
+ CellTransferStateData * unk_1C;
+ AnimationResourceCollection * unk_20;
BGL * unk_24;
Window unk_28[1];
MessageLoader * unk_38;
diff --git a/include/overlay017/struct_ov17_02247A48.h b/include/overlay017/struct_ov17_02247A48.h
index 019026e129..ee457c0c51 100644
--- a/include/overlay017/struct_ov17_02247A48.h
+++ b/include/overlay017/struct_ov17_02247A48.h
@@ -15,7 +15,7 @@
typedef struct {
UnkStruct_02095C48 * unk_00;
SysTask * unk_04;
- UnkStruct_0207C690 * unk_08;
+ GenericPointerData * unk_08;
UnkStruct_ov17_022476F8 unk_0C;
UnkStruct_ov17_02247A48_sub1 unk_D2;
UnkStruct_ov17_02249260 unk_E0;
diff --git a/include/overlay017/struct_ov17_0224A1EC.h b/include/overlay017/struct_ov17_0224A1EC.h
index 926b71e34d..4b0fa4d2fd 100644
--- a/include/overlay017/struct_ov17_0224A1EC.h
+++ b/include/overlay017/struct_ov17_0224A1EC.h
@@ -32,8 +32,8 @@ typedef struct {
UnkStruct_ov17_0224B09C unk_04[4];
UnkStruct_02007768 * unk_44;
Sprite * unk_48[4];
- UnkStruct_0200C6E4 * unk_58;
- UnkStruct_0200C704 * unk_5C;
+ CellTransferStateData * unk_58;
+ AnimationResourceCollection * unk_5C;
BGL * unk_60;
Window unk_64[2];
MessageLoader * unk_84;
diff --git a/include/overlay017/struct_ov17_0224DF54.h b/include/overlay017/struct_ov17_0224DF54.h
index 36293eba3b..37dba5614b 100644
--- a/include/overlay017/struct_ov17_0224DF54.h
+++ b/include/overlay017/struct_ov17_0224DF54.h
@@ -22,7 +22,7 @@ typedef struct UnkStruct_ov17_0224DF54_t {
SysTask * unk_04;
SysTask * unk_08;
UnkStruct_02014014 * unk_0C;
- UnkStruct_0207C690 * unk_10;
+ GenericPointerData * unk_10;
UnkStruct_ov17_0224A1EC unk_14;
UnkStruct_ov17_0224DF54_sub1 unk_A3C;
UnkStruct_ov17_0224DF54_sub2 unk_A6C;
diff --git a/include/overlay017/struct_ov17_0224FCA0.h b/include/overlay017/struct_ov17_0224FCA0.h
index d33f4ddb39..491ed4ad34 100644
--- a/include/overlay017/struct_ov17_0224FCA0.h
+++ b/include/overlay017/struct_ov17_0224FCA0.h
@@ -15,7 +15,7 @@ typedef struct {
UnkStruct_02095C48 * unk_00;
SysTask * unk_04;
SysTask * unk_08;
- UnkStruct_0207C690 * unk_0C;
+ GenericPointerData * unk_0C;
UnkStruct_ov17_022507C4 unk_10;
UnkStruct_ov17_0224FCA0_sub1 unk_39A;
UnkStruct_ov17_0224FCA0_sub2 unk_434;
diff --git a/include/overlay017/struct_ov17_022507C4.h b/include/overlay017/struct_ov17_022507C4.h
index 2c3f3b6eb0..2560add0ab 100644
--- a/include/overlay017/struct_ov17_022507C4.h
+++ b/include/overlay017/struct_ov17_022507C4.h
@@ -22,8 +22,8 @@ typedef struct {
UnkStruct_02095C48_sub1 * unk_00;
UnkStruct_02007768 * unk_04;
Sprite * unk_08[4];
- UnkStruct_0200C6E4 * unk_18;
- UnkStruct_0200C704 * unk_1C;
+ CellTransferStateData * unk_18;
+ AnimationResourceCollection * unk_1C;
BGL * unk_20;
Window unk_24[9];
MessageLoader * unk_B4;
diff --git a/include/overlay019/ov19_021D61B0.h b/include/overlay019/ov19_021D61B0.h
index 4e2576a449..c2bc2a7857 100644
--- a/include/overlay019/ov19_021D61B0.h
+++ b/include/overlay019/ov19_021D61B0.h
@@ -36,8 +36,8 @@ UnkStruct_ov19_021DBA9C * ov19_021D780C(UnkStruct_ov19_021D61B0 * param0);
UnkStruct_02007768 * ov19_021D7818(UnkStruct_ov19_021D61B0 * param0);
int ov19_021D7820(UnkStruct_ov19_021D61B0 * param0);
void ov19_021D783C(UnkStruct_ov19_021DA864 * param0, NNSG2dImageProxy * param1, NNSG2dImagePaletteProxy * param2, NNSG2dCellDataBank * param3, NNSG2dCellAnimBankData * param4, u32 param5);
-UnkStruct_02022550 * ov19_021D785C(UnkStruct_020218BC * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5);
-void ov19_021D78AC(UnkStruct_02022550 * param0, u32 param1);
+GraphicElementData * ov19_021D785C(GraphicElementManager * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5);
+void ov19_021D78AC(GraphicElementData * param0, u32 param1);
void ov19_021D78C8(const u16 * param0, u16 * param1, u32 param2, u16 param3, u32 param4);
const UnkStruct_ov19_021D5DF8 * ov19_021D7964(UnkStruct_ov19_021D61B0 * param0);
void ov19_021D79B8(void * param0, UnkFuncPtr_ov19_021D79B8 param1, void * param2);
diff --git a/include/overlay019/ov19_021D79F8.h b/include/overlay019/ov19_021D79F8.h
index 0d7fe484d6..4879a9251b 100644
--- a/include/overlay019/ov19_021D79F8.h
+++ b/include/overlay019/ov19_021D79F8.h
@@ -9,7 +9,7 @@
#include "overlay019/struct_ov19_021D8318.h"
#include "overlay019/struct_ov19_021DCD18.h"
-BOOL ov19_021D79F8(UnkStruct_ov19_021D8318 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4);
+BOOL ov19_021D79F8(UnkStruct_ov19_021D8318 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4);
void ov19_021D7A74(UnkStruct_ov19_021D8318 * param0);
void ov19_021D7A9C(UnkStruct_ov19_021D8318 * param0);
void ov19_021D7B4C(UnkStruct_ov19_021D8318 * param0, const UnkStruct_ov19_021D4F5C * param1, int param2, BOOL param3);
diff --git a/include/overlay019/ov19_021D8B54.h b/include/overlay019/ov19_021D8B54.h
index 19e3c89644..969770cde1 100644
--- a/include/overlay019/ov19_021D8B54.h
+++ b/include/overlay019/ov19_021D8B54.h
@@ -9,7 +9,7 @@
#include
-BOOL ov19_021D8B54(UnkStruct_ov19_021D8E00 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, UnkStruct_020218BC * param3, NARC * param4);
+BOOL ov19_021D8B54(UnkStruct_ov19_021D8E00 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, GraphicElementManager * param3, NARC * param4);
void ov19_021D8C1C(UnkStruct_ov19_021D8E00 * param0, NARC * param1);
void ov19_021D8E84(UnkStruct_ov19_021D8E00 * param0);
void ov19_021D8F60(UnkStruct_ov19_021D8E00 * param0);
diff --git a/include/overlay019/ov19_021DA270.h b/include/overlay019/ov19_021DA270.h
index e07a358916..a302100490 100644
--- a/include/overlay019/ov19_021DA270.h
+++ b/include/overlay019/ov19_021DA270.h
@@ -11,7 +11,7 @@
#include
-BOOL ov19_021DA270(UnkStruct_ov19_021DA384 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, UnkStruct_020218BC * param3, NARC * param4);
+BOOL ov19_021DA270(UnkStruct_ov19_021DA384 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, GraphicElementManager * param3, NARC * param4);
void ov19_021DA384(UnkStruct_ov19_021DA384 * param0);
void ov19_021DA3CC(UnkStruct_ov19_021DA384 * param0, UnkStruct_ov19_021DCD18 * param1, u32 param2);
void ov19_021DA3F0(UnkStruct_ov19_021DA384 * param0, UnkStruct_ov19_021DCD18 * param1, u32 param2);
diff --git a/include/overlay019/ov19_021DA814.h b/include/overlay019/ov19_021DA814.h
index 50aba087b1..9f69724964 100644
--- a/include/overlay019/ov19_021DA814.h
+++ b/include/overlay019/ov19_021DA814.h
@@ -7,7 +7,7 @@
#include "overlay019/struct_ov19_021D61B0_decl.h"
#include "overlay019/struct_ov19_021DA8D8.h"
-BOOL ov19_021DA814(UnkStruct_ov19_021DA8D8 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, UnkStruct_020218BC * param3, NARC * param4);
+BOOL ov19_021DA814(UnkStruct_ov19_021DA8D8 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, GraphicElementManager * param3, NARC * param4);
void ov19_021DA864(UnkStruct_ov19_021DA8D8 * param0, NARC * param1);
void ov19_021DA8D8(UnkStruct_ov19_021DA8D8 * param0);
void ov19_021DA8FC(UnkStruct_ov19_021DA8D8 * param0, int param1);
diff --git a/include/overlay019/ov19_021DA92C.h b/include/overlay019/ov19_021DA92C.h
index 53794ee798..ae7381a24a 100644
--- a/include/overlay019/ov19_021DA92C.h
+++ b/include/overlay019/ov19_021DA92C.h
@@ -9,7 +9,7 @@
#include "overlay019/struct_ov19_021D61B0_decl.h"
#include "overlay019/struct_ov19_021DA9E0.h"
-BOOL ov19_021DA92C(UnkStruct_ov19_021DA9E0 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, const MessageLoader * param5, NARC * param6);
+BOOL ov19_021DA92C(UnkStruct_ov19_021DA9E0 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, const MessageLoader * param5, NARC * param6);
void ov19_021DA9E0(UnkStruct_ov19_021DA9E0 * param0);
void ov19_021DAA80(UnkStruct_ov19_021DA9E0 * param0);
void ov19_021DAA90(UnkStruct_ov19_021DA9E0 * param0);
diff --git a/include/overlay019/ov19_021DB2FC.h b/include/overlay019/ov19_021DB2FC.h
index 2b35f7a517..e062aa48e4 100644
--- a/include/overlay019/ov19_021DB2FC.h
+++ b/include/overlay019/ov19_021DB2FC.h
@@ -11,7 +11,7 @@
#include "overlay019/struct_ov19_021DB6F0.h"
#include "overlay019/struct_ov19_021DF964.h"
-BOOL ov19_021DB2FC(UnkStruct_ov19_021DB6F0 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, MessageLoader * param5, const UnkStruct_0200B358 * param6, int param7, NARC * param8);
+BOOL ov19_021DB2FC(UnkStruct_ov19_021DB6F0 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, MessageLoader * param5, const UnkStruct_0200B358 * param6, int param7, NARC * param8);
void ov19_021DB370(UnkStruct_ov19_021DB6F0 * param0);
void ov19_021DB3C4(UnkStruct_ov19_021DB6F0 * param0);
void ov19_021DB448(UnkStruct_ov19_021DB6F0 * param0, u32 param1);
diff --git a/include/overlay019/ov19_021DB8E4.h b/include/overlay019/ov19_021DB8E4.h
index 33d775a0d9..54084319ae 100644
--- a/include/overlay019/ov19_021DB8E4.h
+++ b/include/overlay019/ov19_021DB8E4.h
@@ -10,7 +10,7 @@
#include
-BOOL ov19_021DB8E4(UnkStruct_ov19_021DBA9C * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, NARC * param5);
+BOOL ov19_021DB8E4(UnkStruct_ov19_021DBA9C * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, NARC * param5);
void ov19_021DBA9C(UnkStruct_ov19_021DBA9C * param0);
void ov19_021DBAD0(UnkStruct_ov19_021DBA9C * param0);
void ov19_021DBB48(UnkStruct_ov19_021DBA9C * param0);
diff --git a/include/overlay019/ov19_021DC5F0.h b/include/overlay019/ov19_021DC5F0.h
index f125e9b53b..53037e930e 100644
--- a/include/overlay019/ov19_021DC5F0.h
+++ b/include/overlay019/ov19_021DC5F0.h
@@ -9,7 +9,7 @@
#include "overlay019/struct_ov19_021DC680.h"
#include "overlay019/struct_ov19_021DCD18.h"
-BOOL ov19_021DC5F0(UnkStruct_ov19_021DC680 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, NARC * param5);
+BOOL ov19_021DC5F0(UnkStruct_ov19_021DC680 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, NARC * param5);
void ov19_021DC680(UnkStruct_ov19_021DC680 * param0);
void ov19_021DC6A0(UnkStruct_ov19_021DC680 * param0);
void ov19_021DC6C8(UnkStruct_ov19_021DC680 * param0);
diff --git a/include/overlay019/ov19_021DCF88.h b/include/overlay019/ov19_021DCF88.h
index 3e92154e7a..a006d23371 100644
--- a/include/overlay019/ov19_021DCF88.h
+++ b/include/overlay019/ov19_021DCF88.h
@@ -8,7 +8,7 @@
#include "overlay019/struct_ov19_021D61B0_decl.h"
#include "overlay019/struct_ov19_021DCF88_decl.h"
-BOOL ov19_021DCF88(UnkStruct_ov19_021DCF88 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4);
+BOOL ov19_021DCF88(UnkStruct_ov19_021DCF88 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4);
void ov19_021DD078(UnkStruct_ov19_021DCF88 * param0);
void ov19_021DD114(UnkStruct_ov19_021DCF88 * param0, NARC * param1);
void ov19_021DD378(UnkStruct_ov19_021DCF88 * param0);
diff --git a/include/overlay019/ov19_021DE3E8.h b/include/overlay019/ov19_021DE3E8.h
index 2aaead36d4..6f0a377760 100644
--- a/include/overlay019/ov19_021DE3E8.h
+++ b/include/overlay019/ov19_021DE3E8.h
@@ -9,7 +9,7 @@
#include
-BOOL ov19_021DE3E8(UnkStruct_ov19_021DE3E8 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4);
+BOOL ov19_021DE3E8(UnkStruct_ov19_021DE3E8 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4);
void ov19_021DE440(UnkStruct_ov19_021DE3E8 * param0);
void ov19_021DE584(UnkStruct_ov19_021DE3E8 * param0);
void ov19_021DE7A0(UnkStruct_ov19_021DE3E8 * param0);
diff --git a/include/overlay019/ov19_021DEC04.h b/include/overlay019/ov19_021DEC04.h
index 8d079b0b21..ff0bbe1b79 100644
--- a/include/overlay019/ov19_021DEC04.h
+++ b/include/overlay019/ov19_021DEC04.h
@@ -9,7 +9,7 @@
#include "overlay019/struct_ov19_021D61B0_decl.h"
#include "overlay019/struct_ov19_021DEC04_decl.h"
-BOOL ov19_021DEC04(UnkStruct_ov19_021DEC04 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, MessageLoader * param5, NARC * param6);
+BOOL ov19_021DEC04(UnkStruct_ov19_021DEC04 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, MessageLoader * param5, NARC * param6);
void ov19_021DECAC(UnkStruct_ov19_021DEC04 * param0);
void ov19_021DECE8(UnkStruct_ov19_021DEC04 * param0, NARC * param1);
void ov19_021DEDDC(UnkStruct_ov19_021DEC04 * param0, BOOL param1);
diff --git a/include/overlay019/struct_ov19_021D8E00.h b/include/overlay019/struct_ov19_021D8E00.h
index 7963073f6b..ccf269cf33 100644
--- a/include/overlay019/struct_ov19_021D8E00.h
+++ b/include/overlay019/struct_ov19_021D8E00.h
@@ -14,11 +14,11 @@
#include
typedef struct {
- UnkStruct_020218BC * unk_00;
- UnkStruct_02022550 * unk_04;
- UnkStruct_02022550 * unk_08;
- UnkStruct_02022550 * unk_0C;
- UnkStruct_02022550 * unk_10;
+ GraphicElementManager * unk_00;
+ GraphicElementData * unk_04;
+ GraphicElementData * unk_08;
+ GraphicElementData * unk_0C;
+ GraphicElementData * unk_10;
void * unk_14;
void * unk_18;
NNSG2dCellDataBank * unk_1C;
diff --git a/include/overlay019/struct_ov19_021DA384.h b/include/overlay019/struct_ov19_021DA384.h
index 320fdb6aa3..eecdeb7b3f 100644
--- a/include/overlay019/struct_ov19_021DA384.h
+++ b/include/overlay019/struct_ov19_021DA384.h
@@ -18,7 +18,7 @@ typedef struct {
void * unk_18;
NNSG2dCellDataBank * unk_1C;
NNSG2dAnimBankData * unk_20;
- UnkStruct_020218BC * unk_24;
+ GraphicElementManager * unk_24;
u8 padding_28[24];
const UnkStruct_ov19_021D4DF0 * unk_40;
UnkStruct_ov19_021D61B0 * unk_44;
diff --git a/include/overlay019/struct_ov19_021DA8D8.h b/include/overlay019/struct_ov19_021DA8D8.h
index d6f26069c3..3b331e9f1d 100644
--- a/include/overlay019/struct_ov19_021DA8D8.h
+++ b/include/overlay019/struct_ov19_021DA8D8.h
@@ -9,14 +9,14 @@
#include
typedef struct {
- UnkStruct_020218BC * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementManager * unk_00;
+ GraphicElementData * unk_04;
void * unk_08;
void * unk_0C;
NNSG2dCellDataBank * unk_10;
NNSG2dAnimBankData * unk_14;
NNSG2dImageProxy unk_18;
- UnkStruct_020218BC * unk_3C;
+ GraphicElementManager * unk_3C;
const UnkStruct_ov19_021D4DF0 * unk_40;
UnkStruct_ov19_021D61B0 * unk_44;
} UnkStruct_ov19_021DA8D8;
diff --git a/include/overlay019/struct_ov19_021DA9E0.h b/include/overlay019/struct_ov19_021DA9E0.h
index c434e67aa8..c25f38eaab 100644
--- a/include/overlay019/struct_ov19_021DA9E0.h
+++ b/include/overlay019/struct_ov19_021DA9E0.h
@@ -19,7 +19,7 @@ typedef struct {
BOOL unk_00;
Window * unk_04;
BGL * unk_08;
- UnkStruct_020218BC * unk_0C;
+ GraphicElementManager * unk_0C;
const UnkStruct_ov19_021D4DF0 * unk_10;
UnkStruct_ov19_021D61B0 * unk_14;
UnkStruct_0200C440 * unk_18;
@@ -28,10 +28,10 @@ typedef struct {
Sprite * unk_24;
void * unk_28;
NNSG2dCellDataBank * unk_2C;
- UnkStruct_02022550 * unk_30;
+ GraphicElementData * unk_30;
void * unk_34;
NNSG2dCellDataBank * unk_38;
- UnkStruct_02022550 * unk_3C[2];
+ GraphicElementData * unk_3C[2];
Strbuf* unk_44;
Strbuf* unk_48;
SysTask * unk_4C;
diff --git a/include/overlay019/struct_ov19_021DBA9C.h b/include/overlay019/struct_ov19_021DBA9C.h
index ead77cfe0e..959b7fffc7 100644
--- a/include/overlay019/struct_ov19_021DBA9C.h
+++ b/include/overlay019/struct_ov19_021DBA9C.h
@@ -18,7 +18,7 @@
typedef struct {
UnkStruct_ov19_021D61B0 * unk_00;
BGL * unk_04;
- UnkStruct_020218BC * unk_08;
+ GraphicElementManager * unk_08;
const UnkStruct_ov19_021D4DF0 * unk_0C;
Window * unk_10;
void * unk_14;
@@ -32,8 +32,8 @@ typedef struct {
NNSG2dScreenData * unk_38;
UnkStruct_0201AE08 unk_3C;
UnkStruct_0200C440 * unk_44;
- UnkStruct_02022550 * unk_48[18];
- UnkStruct_02022550 * unk_90;
+ GraphicElementData * unk_48[18];
+ GraphicElementData * unk_90;
u32 unk_94[18];
SysTask * unk_DC;
s32 unk_E0;
diff --git a/include/overlay019/struct_ov19_021DC680.h b/include/overlay019/struct_ov19_021DC680.h
index 3ffd989521..8ef8940911 100644
--- a/include/overlay019/struct_ov19_021DC680.h
+++ b/include/overlay019/struct_ov19_021DC680.h
@@ -14,7 +14,7 @@
typedef struct {
UnkStruct_ov19_021D61B0 * unk_00;
BGL * unk_04;
- UnkStruct_020218BC * unk_08;
+ GraphicElementManager * unk_08;
const UnkStruct_ov19_021D4DF0 * unk_0C;
UnkStruct_ov19_021D8318 * unk_10;
void * unk_14;
diff --git a/include/overlay019/struct_ov19_021DCD18.h b/include/overlay019/struct_ov19_021DCD18.h
index ce754ecfbf..e028b20df2 100644
--- a/include/overlay019/struct_ov19_021DCD18.h
+++ b/include/overlay019/struct_ov19_021DCD18.h
@@ -6,7 +6,7 @@
#include
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
NNSG2dImageProxy unk_04;
u32 unk_28;
u16 unk_2C;
diff --git a/include/overlay020/ov20_021D2098.h b/include/overlay020/ov20_021D2098.h
index 995dcce5bf..0671ce6f83 100644
--- a/include/overlay020/ov20_021D2098.h
+++ b/include/overlay020/ov20_021D2098.h
@@ -19,8 +19,8 @@ BOOL ov20_021D21F8(UnkStruct_ov20_021D2128 * param0);
BOOL ov20_021D2210(UnkStruct_ov20_021D2128 * param0, int param1);
u32 ov20_021D2DF4(UnkStruct_ov20_021D2128 * param0);
BGL * ov20_021D2E04(UnkStruct_ov20_021D2128 * param0);
-UnkStruct_020218BC * ov20_021D2E08(UnkStruct_ov20_021D2128 * param0);
+GraphicElementManager * ov20_021D2E08(UnkStruct_ov20_021D2128 * param0);
void ov20_021D2E0C(UnkStruct_ov20_021D2128 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3);
-UnkStruct_02022550 * ov20_021D2E50(UnkStruct_ov20_021D2128 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5);
+GraphicElementData * ov20_021D2E50(UnkStruct_ov20_021D2128 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5);
#endif // POKEPLATINUM_OV20_021D2098_H
diff --git a/include/overlay021/ov21_021D0D80.h b/include/overlay021/ov21_021D0D80.h
index a260e62b6c..e34c04b271 100644
--- a/include/overlay021/ov21_021D0D80.h
+++ b/include/overlay021/ov21_021D0D80.h
@@ -46,9 +46,9 @@ UnkStruct_ov21_021D3320 * ov21_021D13EC(UnkStruct_ov21_021D0F60 * param0);
UnkStruct_ov21_021D13FC * ov21_021D13FC(UnkStruct_ov21_021D0F60 * param0);
UnkStruct_ov21_021E68F4 * ov21_021D1410(UnkStruct_ov21_021D0F60 * param0, int param1);
UnkStruct_ov21_021E68F4 * ov21_021D1430(UnkStruct_ov21_021D0F60 * param0, int param1);
-void ov21_021D144C(UnkStruct_02022550 * param0, int param1);
-void ov21_021D1498(UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2);
-void ov21_021D1524(UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
+void ov21_021D144C(GraphicElementData * param0, int param1);
+void ov21_021D1498(GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2);
+void ov21_021D1524(GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
void ov21_021D154C(UnkUnion_020225E0 * param0, int param1, int param2, int param3, int param4);
void ov21_021D1558(UnkStruct_ov21_021D157C * param0, BGL * param1, int param2, NNSG2dScreenData * param3, int param4, int param5, int param6, int param7, int param8);
BOOL ov21_021D157C(UnkStruct_ov21_021D157C * param0);
diff --git a/include/overlay021/ov21_021D1FA4.h b/include/overlay021/ov21_021D1FA4.h
index 1fbaeb14a4..b6839ce363 100644
--- a/include/overlay021/ov21_021D1FA4.h
+++ b/include/overlay021/ov21_021D1FA4.h
@@ -31,8 +31,8 @@ void ov21_021D222C(UnkStruct_ov21_021D13FC * param0, int param1, int param2, int
void ov21_021D2250(UnkStruct_ov21_021D13FC * param0, int * param1, int * param2, int param3);
Sprite * ov21_021D2274(const UnkStruct_ov21_021D13FC * param0, int param1);
void ov21_021D2280(const UnkStruct_ov21_021D13FC * param0, BOOL param1, int param2);
-UnkStruct_02022550 * ov21_021D22A8(const UnkStruct_ov21_021D13FC * param0);
-UnkStruct_02022550 * ov21_021D22C4(const UnkStruct_ov21_021D13FC * param0);
+GraphicElementData * ov21_021D22A8(const UnkStruct_ov21_021D13FC * param0);
+GraphicElementData * ov21_021D22C4(const UnkStruct_ov21_021D13FC * param0);
void ov21_021D22E0(UnkStruct_ov21_021D13FC * param0, UnkStruct_ov21_021D4CB8 * param1, int param2, int param3, u32 param4);
void ov21_021D22F8(UnkStruct_ov21_021D22F8 * param0, UnkStruct_ov21_021D4CB8 * param1, int param2, int param3, u32 param4);
UnkStruct_02009DC8 * ov21_021D2344(const UnkStruct_ov21_021D13FC * param0, int param1);
@@ -64,7 +64,7 @@ void * ov21_021D27E0(UnkStruct_ov21_021D13FC * param0, u32 param1, NNSG2dPalette
void * ov21_021D2808(UnkStruct_ov21_021D13FC * param0, u32 param1, BOOL param2, NNSG2dCharacterData ** param3, u32 param4);
void ov21_021D2B88(UnkStruct_ov21_021D22F8 * param0, UnkStruct_02009714 ** param1, int param2, NARC * param3);
void ov21_021D2C58(UnkStruct_ov21_021D22F8 * param0, UnkStruct_02009714 ** param1);
-void ov21_021D2D88(UnkStruct_ov21_021D22F8 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, int param4);
+void ov21_021D2D88(UnkStruct_ov21_021D22F8 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, int param4);
void ov21_021D2E1C(UnkStruct_ov21_021D22F8 * param0);
void ov21_021D2E44(UnkStruct_ov21_021D22F8 * param0, BOOL param1);
diff --git a/include/overlay021/ov21_021D57B4.h b/include/overlay021/ov21_021D57B4.h
index 04fa614c86..e85d6f25e2 100644
--- a/include/overlay021/ov21_021D57B4.h
+++ b/include/overlay021/ov21_021D57B4.h
@@ -12,7 +12,7 @@ UnkStruct_ov21_021D5868 * ov21_021D5868(int param0, int * param1);
UnkStruct_ov21_021D5890 * ov21_021D5890(int param0, int * param1);
void ov21_021D58C0(u8 * param0, u8 param1, u8 param2, const UnkStruct_ov21_021D5890 * param3);
u32 ov21_021D5948(u8 * param0, int param1, int param2, const UnkStruct_ov21_021D5890 * param3, const UnkStruct_ov21_021D5844 * param4, const u8 * param5, u32 param6);
-void ov21_021D59D8(UnkStruct_02022550 * param0, int param1, int param2, int param3, int param4, const UnkStruct_ov21_021D5868 * param5, int param6, int param7);
-int ov21_021D5A20(UnkStruct_02022550 ** param0, int param1, int param2, int param3, int param4, int param5, int param6, const UnkStruct_ov21_021D5868 * param7, const UnkStruct_ov21_021D5844 * param8, int param9, int param10, const u8 * param11, u32 param12, u32 * param13);
+void ov21_021D59D8(GraphicElementData * param0, int param1, int param2, int param3, int param4, const UnkStruct_ov21_021D5868 * param5, int param6, int param7);
+int ov21_021D5A20(GraphicElementData ** param0, int param1, int param2, int param3, int param4, int param5, int param6, const UnkStruct_ov21_021D5868 * param7, const UnkStruct_ov21_021D5844 * param8, int param9, int param10, const u8 * param11, u32 param12, u32 * param13);
#endif // POKEPLATINUM_OV21_021D57B4_H
diff --git a/include/overlay021/struct_ov21_021D13FC.h b/include/overlay021/struct_ov21_021D13FC.h
index d1e26b8ea7..ad38d0058a 100644
--- a/include/overlay021/struct_ov21_021D13FC.h
+++ b/include/overlay021/struct_ov21_021D13FC.h
@@ -21,7 +21,7 @@ typedef struct {
BGL * unk_00;
Window unk_04;
UnkStruct_0200C738 unk_14;
- UnkStruct_020218BC * unk_138;
+ GraphicElementManager * unk_138;
UnkStruct_02009714 * unk_13C[4];
UnkStruct_ov21_021D4C0C * unk_14C;
UnkStruct_02007768 * unk_150;
diff --git a/include/overlay021/struct_ov21_021D1FA4.h b/include/overlay021/struct_ov21_021D1FA4.h
index aec67c6da8..7c74ac02e3 100644
--- a/include/overlay021/struct_ov21_021D1FA4.h
+++ b/include/overlay021/struct_ov21_021D1FA4.h
@@ -5,7 +5,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
BGL * unk_04;
int unk_08;
int unk_0C;
diff --git a/include/overlay021/struct_ov21_021D22F8.h b/include/overlay021/struct_ov21_021D22F8.h
index 6d06e243a6..3559048968 100644
--- a/include/overlay021/struct_ov21_021D22F8.h
+++ b/include/overlay021/struct_ov21_021D22F8.h
@@ -8,8 +8,8 @@
#include
typedef struct {
- UnkStruct_02022550 * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_00;
+ GraphicElementData * unk_04;
UnkStruct_ov21_021D4CA0 * unk_08;
UnkStruct_02009DC8 * unk_0C[4];
VecFx32 unk_1C;
diff --git a/include/overlay021/struct_ov21_021D2584.h b/include/overlay021/struct_ov21_021D2584.h
index 16ebd5d2cf..4bcc71dc3c 100644
--- a/include/overlay021/struct_ov21_021D2584.h
+++ b/include/overlay021/struct_ov21_021D2584.h
@@ -5,7 +5,7 @@
#include "struct_decls/struct_02022550_decl.h"
typedef struct {
- UnkStruct_02022550 * unk_00[4];
+ GraphicElementData * unk_00[4];
UnkStruct_02009DC8 * unk_10[4];
int unk_20;
int unk_24;
diff --git a/include/overlay021/struct_ov21_021D4CB8.h b/include/overlay021/struct_ov21_021D4CB8.h
index 5db562eafc..7e28f70125 100644
--- a/include/overlay021/struct_ov21_021D4CB8.h
+++ b/include/overlay021/struct_ov21_021D4CB8.h
@@ -11,7 +11,7 @@ typedef struct {
UnkStruct_ov21_021D4C0C * unk_00;
const Window * unk_04;
const NNSG2dImagePaletteProxy * unk_08;
- const UnkStruct_02022550 * unk_0C;
+ const GraphicElementData * unk_0C;
int unk_10;
int unk_14;
int unk_18;
diff --git a/include/overlay022/ov22_02255094.h b/include/overlay022/ov22_02255094.h
index c78dda5e54..479bffd416 100644
--- a/include/overlay022/ov22_02255094.h
+++ b/include/overlay022/ov22_02255094.h
@@ -18,7 +18,7 @@ void ov22_02255134(UnkStruct_ov22_0225A0E4 * param0);
void ov22_02255180(UnkStruct_ov22_0225A0E4 * param0);
void ov22_022551B4(UnkStruct_ov22_0225A0E4 * param0, UnkStruct_ov22_02255CB8 * param1);
void ov22_022551D0(UnkStruct_ov22_0225A0E4 * param0);
-UnkStruct_02022550 * ov22_022551E4(UnkStruct_ov22_0225A0E4 * param0, int param1, int param2, int param3, int param4, int param5);
+GraphicElementData * ov22_022551E4(UnkStruct_ov22_0225A0E4 * param0, int param1, int param2, int param3, int param4, int param5);
void ov22_02255248(UnkStruct_ov22_0225A0E4 * param0, NARC * param1, int param2, BOOL param3, int param4, int param5);
void ov22_02255268(UnkStruct_ov22_0225A0E4 * param0, NARC * param1, int param2, BOOL param3, int param4, int param5, int param6);
void ov22_0225528C(UnkStruct_ov22_0225A0E4 * param0, NARC * param1, int param2, BOOL param3, int param4);
diff --git a/include/overlay022/struct_ov22_02256BAC.h b/include/overlay022/struct_ov22_02256BAC.h
index 883d4f9239..a6fef661bc 100644
--- a/include/overlay022/struct_ov22_02256BAC.h
+++ b/include/overlay022/struct_ov22_02256BAC.h
@@ -10,9 +10,9 @@
typedef struct {
BGL * unk_00;
- UnkStruct_020218BC * unk_04;
+ GraphicElementManager * unk_04;
UnkStruct_02009714 ** unk_08;
- const UnkStruct_020279FC * unk_0C;
+ const AnimationControlFlags * unk_0C;
int unk_10;
int unk_14;
int unk_18;
diff --git a/include/overlay022/struct_ov22_02259C58.h b/include/overlay022/struct_ov22_02259C58.h
index f967865b54..dbb2e12bfc 100644
--- a/include/overlay022/struct_ov22_02259C58.h
+++ b/include/overlay022/struct_ov22_02259C58.h
@@ -4,7 +4,7 @@
#include "struct_decls/struct_02022550_decl.h"
typedef struct UnkStruct_ov22_02259C58_tag {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
int unk_04;
void * unk_08;
void (* unk_0C)(struct UnkStruct_ov22_02259C58_tag * param0, void * param1);
diff --git a/include/overlay022/struct_ov22_0225A0E4.h b/include/overlay022/struct_ov22_0225A0E4.h
index 640b212e30..6326b6f8c2 100644
--- a/include/overlay022/struct_ov22_0225A0E4.h
+++ b/include/overlay022/struct_ov22_0225A0E4.h
@@ -32,7 +32,7 @@ typedef struct {
NNSG2dCharacterData ** unk_38;
int unk_3C;
BGL * unk_40;
- UnkStruct_020218BC * unk_44;
+ GraphicElementManager * unk_44;
UnkStruct_02009714 * unk_48[4];
UnkStruct_0200C738 unk_58;
NARC * unk_5C;
diff --git a/include/overlay022/struct_ov22_0225A428.h b/include/overlay022/struct_ov22_0225A428.h
index e7794107b9..c8c1680898 100644
--- a/include/overlay022/struct_ov22_0225A428.h
+++ b/include/overlay022/struct_ov22_0225A428.h
@@ -12,7 +12,7 @@
typedef struct {
UnkStruct_ov22_022597BC unk_00;
Window * unk_2C;
- UnkStruct_020218BC * unk_30;
+ GraphicElementManager * unk_30;
UnkStruct_02009714 ** unk_34;
UnkStruct_ov22_0225A914 unk_38;
UnkStruct_ov22_0225AB54 unk_A0;
diff --git a/include/overlay022/struct_ov22_0225A914.h b/include/overlay022/struct_ov22_0225A914.h
index 3ff098d5f9..e8ae739c3e 100644
--- a/include/overlay022/struct_ov22_0225A914.h
+++ b/include/overlay022/struct_ov22_0225A914.h
@@ -6,7 +6,7 @@
typedef struct {
UnkStruct_02009DC8 * unk_00[4];
- UnkStruct_02022550 * unk_10[20];
+ GraphicElementData * unk_10[20];
int unk_60;
int unk_64;
} UnkStruct_ov22_0225A914;
diff --git a/include/overlay022/struct_ov22_0225AB54.h b/include/overlay022/struct_ov22_0225AB54.h
index 332e1683fc..cda6b1d519 100644
--- a/include/overlay022/struct_ov22_0225AB54.h
+++ b/include/overlay022/struct_ov22_0225AB54.h
@@ -10,7 +10,7 @@
typedef struct {
UnkStruct_02009DC8 * unk_00[4];
- UnkStruct_02022550 * unk_10[2];
+ GraphicElementData * unk_10[2];
Window * unk_18;
int unk_1C;
int unk_20;
diff --git a/include/overlay022/struct_ov22_0225AE9C.h b/include/overlay022/struct_ov22_0225AE9C.h
index 1cedc71968..0b1e0de398 100644
--- a/include/overlay022/struct_ov22_0225AE9C.h
+++ b/include/overlay022/struct_ov22_0225AE9C.h
@@ -8,7 +8,7 @@
typedef struct {
BOOL unk_00;
- UnkStruct_02022550 * unk_04[2];
+ GraphicElementData * unk_04[2];
VecFx32 unk_0C[2];
UnkStruct_ov22_0225AD68 unk_24;
UnkStruct_ov22_0225AD68 unk_38;
diff --git a/include/overlay023/struct_ov23_02248D20.h b/include/overlay023/struct_ov23_02248D20.h
index 92deefd43e..38752a354a 100644
--- a/include/overlay023/struct_ov23_02248D20.h
+++ b/include/overlay023/struct_ov23_02248D20.h
@@ -10,7 +10,7 @@
typedef struct {
UnkFuncPtr_ov23_02248D20 unk_00;
UnkStruct_020298B0 * unk_04;
- UnkStruct_02013A04 * unk_08;
+ ResourceMetadata * unk_08;
UnkStruct_0200112C * unk_0C;
UnkStruct_020149F0 * unk_10;
u16 unk_14;
diff --git a/include/overlay023/struct_ov23_02250CD4.h b/include/overlay023/struct_ov23_02250CD4.h
index 5eb7a3e648..396968cf9c 100644
--- a/include/overlay023/struct_ov23_02250CD4.h
+++ b/include/overlay023/struct_ov23_02250CD4.h
@@ -27,14 +27,14 @@ typedef struct {
Window unk_10;
Window unk_20;
Window unk_30;
- UnkStruct_02013A04 * unk_40;
- UnkStruct_02013A04 * unk_44;
+ ResourceMetadata * unk_40;
+ ResourceMetadata * unk_44;
UnkStruct_0200112C * unk_48;
UnkStruct_ov23_02248D20 * unk_4C;
UnkStruct_0200112C * unk_50;
- UnkStruct_02001AF4 * unk_54;
- UnkStruct_02013A04 * unk_58;
- UnkStruct_02001AF4 * unk_5C;
+ UIControlData * unk_54;
+ ResourceMetadata * unk_58;
+ UIControlData * unk_5C;
UnkFuncPtr_ov23_022515D8 unk_60;
UnkFuncPtr_ov23_022515D8 unk_64;
Strbuf* unk_68;
diff --git a/include/overlay062/ov62_02246B00.h b/include/overlay062/ov62_02246B00.h
index 24c4a73b27..8e572b1780 100644
--- a/include/overlay062/ov62_02246B00.h
+++ b/include/overlay062/ov62_02246B00.h
@@ -5,7 +5,7 @@
#include "overlay062/struct_ov62_02246B00.h"
#include "overlay062/struct_ov62_02246BF4.h"
-UnkStruct_ov62_02246B00 * ov62_02246B00(int param0, int param1, int param2[], UnkStruct_020279FC * param3);
+UnkStruct_ov62_02246B00 * ov62_02246B00(int param0, int param1, int param2[], AnimationControlFlags * param3);
void ov62_02246B4C(UnkStruct_ov62_02246B00 * param0);
void ov62_02246B70(UnkStruct_ov62_02246BF4 * param0, int param1);
void ov62_02246BF4(UnkStruct_ov62_02246BF4 * param0);
diff --git a/include/overlay062/struct_ov62_0223118C.h b/include/overlay062/struct_ov62_0223118C.h
index bdcc01bd4e..0ce21bc595 100644
--- a/include/overlay062/struct_ov62_0223118C.h
+++ b/include/overlay062/struct_ov62_0223118C.h
@@ -19,8 +19,8 @@
typedef struct {
NARC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
u8 padding_0C[4];
BGL * unk_10;
PaletteSys * unk_14;
@@ -34,7 +34,7 @@ typedef struct {
int unk_44;
u8 unk_48;
u8 padding_49[3];
- UnkStruct_0207C690 * unk_4C;
+ GenericPointerData * unk_4C;
UnkStruct_02007768 * unk_50;
UnkStruct_ov62_022349A8 unk_54;
UnkStruct_ov62_0223359C unk_46C;
diff --git a/include/overlay062/struct_ov62_02246B00.h b/include/overlay062/struct_ov62_02246B00.h
index deb008758d..583c633b28 100644
--- a/include/overlay062/struct_ov62_02246B00.h
+++ b/include/overlay062/struct_ov62_02246B00.h
@@ -9,7 +9,7 @@ typedef struct {
int unk_04[4];
u8 padding_14[4];
Strbuf* unk_18;
- UnkStruct_020279FC * unk_1C;
+ AnimationControlFlags * unk_1C;
} UnkStruct_ov62_02246B00;
#endif // POKEPLATINUM_STRUCT_OV62_02246B00_H
diff --git a/include/overlay062/struct_ov62_02246BF4_sub2.h b/include/overlay062/struct_ov62_02246BF4_sub2.h
index 78596775f2..b5fed27f48 100644
--- a/include/overlay062/struct_ov62_02246BF4_sub2.h
+++ b/include/overlay062/struct_ov62_02246BF4_sub2.h
@@ -11,8 +11,8 @@
typedef struct {
NARC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
BGL * unk_0C;
PaletteSys * unk_10;
UnkStruct_02023FCC * unk_14;
diff --git a/include/overlay063/ov63_0222AE60.h b/include/overlay063/ov63_0222AE60.h
index e47b43c46f..c5e0ed1a63 100644
--- a/include/overlay063/ov63_0222AE60.h
+++ b/include/overlay063/ov63_0222AE60.h
@@ -8,7 +8,7 @@
#include "overlay063/struct_ov63_0222BB38_decl.h"
#include "overlay064/struct_ov64_022302EC.h"
-UnkStruct_ov63_0222AE60 * ov63_0222AE60(UnkStruct_020218BC * param0, PaletteSys * param1, u32 param2, u32 param3);
+UnkStruct_ov63_0222AE60 * ov63_0222AE60(GraphicElementManager * param0, PaletteSys * param1, u32 param2, u32 param3);
void ov63_0222AF14(UnkStruct_ov63_0222AE60 * param0);
void ov63_0222AF94(UnkStruct_ov63_0222AE60 * param0, u32 param1, u32 param2, int param3, u32 param4);
void ov63_0222AFD0(UnkStruct_ov63_0222AE60 * param0, u32 param1);
@@ -20,7 +20,7 @@ void ov63_0222B0A0(UnkStruct_ov63_0222AE60 * param0, u32 param1, u32 param2, u32
void ov63_0222B0B8(UnkStruct_ov63_0222AE60 * param0);
UnkStruct_ov63_0222BB38 * ov63_0222B0C0(UnkStruct_ov63_0222AE60 * param0, const UnkStruct_ov64_022302EC * param1, u32 param2, u32 param3);
void ov63_0222B210(UnkStruct_ov63_0222BB38 * param0);
-const UnkStruct_02022550 * ov63_0222B234(const UnkStruct_ov63_0222BB38 * param0);
+const GraphicElementData * ov63_0222B234(const UnkStruct_ov63_0222BB38 * param0);
void ov63_0222B238(UnkStruct_ov63_0222BB38 * param0, s16 param1, s16 param2);
void ov63_0222B278(UnkStruct_ov63_0222BB38 * param0, u16 param1);
u16 ov63_0222B284(const UnkStruct_ov63_0222BB38 * param0);
diff --git a/include/overlay063/ov63_0222CCE4.h b/include/overlay063/ov63_0222CCE4.h
index 5935f05a23..3a5cdc703c 100644
--- a/include/overlay063/ov63_0222CCE4.h
+++ b/include/overlay063/ov63_0222CCE4.h
@@ -8,8 +8,8 @@
#include "overlay063/struct_ov63_0222CD2C.h"
#include "overlay063/struct_ov63_0222CE44.h"
-UnkStruct_ov63_0222CD2C * ov63_0222CCE4(UnkStruct_020218BC * param0, PaletteSys * param1, u32 param2, u32 param3, u32 param4);
-UnkStruct_ov63_0222CD2C * ov63_0222CD2C(UnkStruct_020218BC * param0, PaletteSys * param1, u32 param2, u32 param3, int param4, u32 param5, u32 param6);
+UnkStruct_ov63_0222CD2C * ov63_0222CCE4(GraphicElementManager * param0, PaletteSys * param1, u32 param2, u32 param3, u32 param4);
+UnkStruct_ov63_0222CD2C * ov63_0222CD2C(GraphicElementManager * param0, PaletteSys * param1, u32 param2, u32 param3, int param4, u32 param5, u32 param6);
void ov63_0222CD9C(UnkStruct_ov63_0222CD2C * param0);
void ov63_0222CDE8(UnkStruct_ov63_0222CD2C * param0, u32 param1, int param2, u32 param3);
void ov63_0222CE0C(UnkStruct_ov63_0222CD2C * param0, u32 param1);
diff --git a/include/overlay065/struct_ov65_0222EBE0_t.h b/include/overlay065/struct_ov65_0222EBE0_t.h
index bc3f4a45dc..640397c4f7 100644
--- a/include/overlay065/struct_ov65_0222EBE0_t.h
+++ b/include/overlay065/struct_ov65_0222EBE0_t.h
@@ -32,9 +32,9 @@ struct UnkStruct_ov65_0222EBE0_t {
u8 unk_2C[32];
int unk_4C[32];
int unk_CC[32];
- UnkStruct_02013A04 * unk_14C;
+ ResourceMetadata * unk_14C;
UnkStruct_0200112C * unk_150;
- UnkStruct_02013A04 * unk_154;
+ ResourceMetadata * unk_154;
UnkStruct_0200112C * unk_158;
BGL * unk_15C;
SaveData * unk_160;
@@ -46,9 +46,9 @@ struct UnkStruct_ov65_0222EBE0_t {
Strbuf* unk_178;
Strbuf* unk_17C;
int unk_180;
- UnkStruct_02001AF4 * unk_184;
+ UIControlData * unk_184;
void * unk_188;
- UnkStruct_020218BC * unk_18C;
+ GraphicElementManager * unk_18C;
UnkStruct_0200C738 unk_190;
UnkStruct_02009714 * unk_31C[4];
UnkStruct_02012744 * unk_32C;
diff --git a/include/overlay065/struct_ov65_02234E50.h b/include/overlay065/struct_ov65_02234E50.h
index 1a8bab13cf..e8c2a82272 100644
--- a/include/overlay065/struct_ov65_02234E50.h
+++ b/include/overlay065/struct_ov65_02234E50.h
@@ -34,7 +34,7 @@ typedef struct {
Window unk_FC[8][2];
Window unk_1FC;
UnkStruct_02009DC8 * unk_20C[4];
- UnkStruct_02022550 * unk_21C[3];
+ GraphicElementData * unk_21C[3];
SpriteManagerAllocation unk_228;
FontOAM * unk_234;
u32 unk_238;
diff --git a/include/overlay065/struct_ov65_022358CC.h b/include/overlay065/struct_ov65_022358CC.h
index 1d07588741..72691051e3 100644
--- a/include/overlay065/struct_ov65_022358CC.h
+++ b/include/overlay065/struct_ov65_022358CC.h
@@ -7,7 +7,7 @@
#include "overlay065/struct_ov65_022358CC_sub1.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_ov65_022358CC_sub1 unk_1A0;
diff --git a/include/overlay065/struct_ov65_022358CC_sub1.h b/include/overlay065/struct_ov65_022358CC_sub1.h
index da161b110c..cf0e7d9ebc 100644
--- a/include/overlay065/struct_ov65_022358CC_sub1.h
+++ b/include/overlay065/struct_ov65_022358CC_sub1.h
@@ -8,8 +8,8 @@
typedef struct {
UnkStruct_02009DC8 * unk_00[4];
UnkStruct_ov19_021DA864 unk_10;
- UnkStruct_02022550 * unk_34;
- UnkStruct_02022550 * unk_38;
+ GraphicElementData * unk_34;
+ GraphicElementData * unk_38;
} UnkStruct_ov65_022358CC_sub1;
#endif // POKEPLATINUM_STRUCT_OV65_022358CC_SUB1_H
diff --git a/include/overlay070/ov70_0225D9A4.h b/include/overlay070/ov70_0225D9A4.h
index 6f41e5c25d..6778d829c4 100644
--- a/include/overlay070/ov70_0225D9A4.h
+++ b/include/overlay070/ov70_0225D9A4.h
@@ -50,7 +50,7 @@ void ov70_0225E00C(UnkStruct_ov70_0225DEE8 * param0, u32 param1);
void ov70_0225E020(UnkStruct_ov70_0225DEE8 * param0, u32 param1, u32 param2);
void ov70_0225E034(UnkStruct_ov70_0225DEE8 * param0);
void ov70_0225E044(UnkStruct_ov70_0225DEE8 * param0, const Strbuf *param1, u32 param2);
-const UnkStruct_02013A04 * ov70_0225E054(const UnkStruct_ov70_0225DEE8 * param0);
+const ResourceMetadata * ov70_0225E054(const UnkStruct_ov70_0225DEE8 * param0);
BOOL ov70_0225E064(const UnkStruct_ov70_0225DEE8 * param0, u32 param1);
void ov70_0225E074(UnkStruct_ov70_0225DEE8 * param0, const UnkStruct_ov84_02240FA8 * param1, u16 param2, u16 param3);
void ov70_0225E0A4(UnkStruct_ov70_0225DEE8 * param0, const UnkStruct_ov84_02240FA8 * param1, u16 param2, u16 param3, u8 param4, u8 param5, u8 param6);
diff --git a/include/overlay071/struct_ov71_0223D238.h b/include/overlay071/struct_ov71_0223D238.h
index 6970af0462..d4f5dd4692 100644
--- a/include/overlay071/struct_ov71_0223D238.h
+++ b/include/overlay071/struct_ov71_0223D238.h
@@ -10,11 +10,11 @@
#include
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_02009DC8 * unk_1A0[2][4];
- UnkStruct_02022550 * unk_1C0[25];
+ GraphicElementData * unk_1C0[25];
void * unk_224[8];
NNSG2dPaletteData * unk_244[8];
} UnkStruct_ov71_0223D238;
diff --git a/include/overlay072/struct_ov72_0223DB98_t.h b/include/overlay072/struct_ov72_0223DB98_t.h
index a22a819de1..37e3f857e9 100644
--- a/include/overlay072/struct_ov72_0223DB98_t.h
+++ b/include/overlay072/struct_ov72_0223DB98_t.h
@@ -23,7 +23,7 @@ struct UnkStruct_ov72_0223DB98_t {
BGL * unk_00;
BOOL unk_04;
UnkStruct_0202CD88 * unk_08;
- UnkStruct_020279FC * unk_0C;
+ AnimationControlFlags * unk_0C;
UnkStruct_0200B358 * unk_10;
MessageLoader * unk_14;
Strbuf* unk_18[5];
@@ -31,15 +31,15 @@ struct UnkStruct_ov72_0223DB98_t {
Strbuf* unk_30;
Strbuf* unk_34;
int unk_38;
- UnkStruct_020218BC * unk_3C;
+ GraphicElementManager * unk_3C;
UnkStruct_0200C738 unk_40;
UnkStruct_02009714 * unk_1CC[4];
UnkStruct_02009DC8 * unk_1DC[2][4];
UnkStruct_ov19_021DA864 unk_1FC;
UnkStruct_ov19_021DA864 unk_220;
- UnkStruct_02022550 * unk_244[14];
- UnkStruct_02022550 * unk_27C[14];
- UnkStruct_02022550 * unk_2B4[9];
+ GraphicElementData * unk_244[14];
+ GraphicElementData * unk_27C[14];
+ GraphicElementData * unk_2B4[9];
Window unk_2D8[5];
Window unk_328;
Window unk_338;
diff --git a/include/overlay076/ov76_0223B870.h b/include/overlay076/ov76_0223B870.h
index e46d85bd45..92f209feb7 100644
--- a/include/overlay076/ov76_0223B870.h
+++ b/include/overlay076/ov76_0223B870.h
@@ -22,7 +22,7 @@ void ov76_0223BB04(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223BBAC(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223BC70(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223BD30(UnkStruct_ov76_0223DE00 * param0, s8 param1, int param2);
-UnkStruct_0207C690 * ov76_0223BE6C(void);
+GenericPointerData * ov76_0223BE6C(void);
void ov76_0223BE8C(void);
void ov76_0223BF10(void);
void ov76_0223BF50(void);
@@ -41,7 +41,7 @@ void ov76_0223C4AC(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223C544(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223C568(UnkStruct_ov76_0223DE00 * param0, int param1);
void ov76_0223C588(UnkStruct_ov76_0223DE00 * param0);
-void ov76_0223C5A4(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, NARC * param10);
+void ov76_0223C5A4(CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, NARC * param10);
void ov76_0223C61C(UnkStruct_ov76_0223DE00 * param0, NARC * param1);
void ov76_0223C7E0(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223C80C(UnkStruct_ov76_0223DE00 * param0, int param1, int param2);
diff --git a/include/overlay076/struct_ov76_0223C398.h b/include/overlay076/struct_ov76_0223C398.h
index 9ce5b2bc30..f23a5b7eeb 100644
--- a/include/overlay076/struct_ov76_0223C398.h
+++ b/include/overlay076/struct_ov76_0223C398.h
@@ -25,13 +25,13 @@
typedef struct {
int unk_00;
BOOL unk_04;
- UnkStruct_0200C6E4 * unk_08;
- UnkStruct_0200C704 * unk_0C;
+ CellTransferStateData * unk_08;
+ AnimationResourceCollection * unk_0C;
BGL * unk_10;
PaletteSys * unk_14;
Window unk_18[11];
- UnkStruct_02013A04 * unk_C8;
- UnkStruct_02001AF4 * unk_CC;
+ ResourceMetadata * unk_C8;
+ UIControlData * unk_CC;
UnkStruct_02007768 * unk_D0;
Sprite * unk_D4;
int unk_D8;
@@ -41,7 +41,7 @@ typedef struct {
UnkStruct_02015920 * unk_150;
UnkStruct_ov12_02235FE0 * unk_154;
BallRotation * unk_158;
- UnkStruct_0207C690 * unk_15C;
+ GenericPointerData * unk_15C;
UnkStruct_02012744 * unk_160;
FontOAM * unk_164[2];
SpriteManagerAllocation unk_16C[2];
diff --git a/include/overlay077/ov77_021D6670.h b/include/overlay077/ov77_021D6670.h
index 66c2df894a..e6b633ca0d 100644
--- a/include/overlay077/ov77_021D6670.h
+++ b/include/overlay077/ov77_021D6670.h
@@ -8,7 +8,7 @@
UnkStruct_ov77_021D670C * ov77_021D670C(void);
UnkStruct_ov77_021D6734 * ov77_021D6734(const int param0);
void ov77_021D6760(UnkStruct_ov77_021D6734 * param0);
-UnkStruct_02022550 ** ov77_021D6794(UnkStruct_ov77_021D6734 * param0, const int param1);
+GraphicElementData ** ov77_021D6794(UnkStruct_ov77_021D6734 * param0, const int param1);
void ov77_021D67B0(UnkStruct_ov77_021D670C * param0);
void ov77_021D69C0(UnkStruct_ov77_021D670C * param0, const int param1);
void ov77_021D6BA0(UnkStruct_ov77_021D6734 * param0, int param1);
diff --git a/include/overlay079/struct_ov79_021D0E1C.h b/include/overlay079/struct_ov79_021D0E1C.h
index 8ffc29aaa0..3897affd73 100644
--- a/include/overlay079/struct_ov79_021D0E1C.h
+++ b/include/overlay079/struct_ov79_021D0E1C.h
@@ -45,19 +45,19 @@ typedef struct UnkStruct_ov79_021D0E1C_t {
UnkStruct_ov84_02240FA8 unk_A4;
UnkStruct_0200112C * unk_C4;
UnkStruct_0200112C * unk_C8;
- UnkStruct_02013A04 * unk_CC;
- UnkStruct_02013A04 * unk_D0;
- UnkStruct_02001AF4 * unk_D4;
+ ResourceMetadata * unk_CC;
+ ResourceMetadata * unk_D0;
+ UIControlData * unk_D4;
void * unk_D8;
void * unk_DC;
NNSG2dScreenData * unk_E0;
NNSG2dScreenData * unk_E4;
Window unk_E8[13];
- UnkStruct_0200C6E4 * unk_1B8;
- UnkStruct_0200C704 * unk_1BC;
- UnkStruct_02022550 * unk_1C0[3];
- UnkStruct_02022550 * unk_1CC[5];
- UnkStruct_02022550 * unk_1E0[6];
+ CellTransferStateData * unk_1B8;
+ AnimationResourceCollection * unk_1BC;
+ GraphicElementData * unk_1C0[3];
+ GraphicElementData * unk_1CC[5];
+ GraphicElementData * unk_1E0[6];
UnkStruct_0209903C * unk_1F8;
UnkStruct_0209916C * unk_1FC;
} UnkStruct_ov79_021D0E1C;
diff --git a/include/overlay080/ov80_021D2AF4.h b/include/overlay080/ov80_021D2AF4.h
index 3e963ccf60..b148ed1eae 100644
--- a/include/overlay080/ov80_021D2AF4.h
+++ b/include/overlay080/ov80_021D2AF4.h
@@ -8,7 +8,7 @@
#include "overlay080/struct_ov80_021D2C5C.h"
#include "overlay080/struct_ov80_021D2E10.h"
-UnkStruct_ov80_021D2C1C * ov80_021D2AF4(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u8 * param2, short param3, int param4);
+UnkStruct_ov80_021D2C1C * ov80_021D2AF4(CellTransferStateData * param0, AnimationResourceCollection * param1, u8 * param2, short param3, int param4);
void ov80_021D2C1C(UnkStruct_ov80_021D2C1C * param0);
UnkStruct_ov80_021D2C5C * ov80_021D2C5C(UnkStruct_ov80_021D2C1C * param0, int param1, int param2, int param3);
int ov80_021D2CC0(UnkStruct_ov80_021D2C1C * param0, int param1, int param2, int param3);
diff --git a/include/overlay080/struct_ov80_021D2A08.h b/include/overlay080/struct_ov80_021D2A08.h
index 5f1e0c57fb..ff11f58e77 100644
--- a/include/overlay080/struct_ov80_021D2A08.h
+++ b/include/overlay080/struct_ov80_021D2A08.h
@@ -59,8 +59,8 @@ typedef struct UnkStruct_ov80_021D2A08_t {
NNSG2dScreenData * unk_CC;
NNSG2dScreenData * unk_D0;
NNSG2dScreenData * unk_D4;
- UnkStruct_0200C6E4 * unk_D8;
- UnkStruct_0200C704 * unk_DC;
+ CellTransferStateData * unk_D8;
+ AnimationResourceCollection * unk_DC;
CellActorData * unk_E0;
} UnkStruct_ov80_021D2A08;
diff --git a/include/overlay080/struct_ov80_021D2C5C.h b/include/overlay080/struct_ov80_021D2C5C.h
index 9cf456b51e..84ed4d5ea6 100644
--- a/include/overlay080/struct_ov80_021D2C5C.h
+++ b/include/overlay080/struct_ov80_021D2C5C.h
@@ -7,7 +7,7 @@
typedef struct {
UnkStruct_ov80_021D2C5C_sub1 unk_00;
int unk_14;
- UnkStruct_02022550 * unk_18;
+ GraphicElementData * unk_18;
} UnkStruct_ov80_021D2C5C;
#endif // POKEPLATINUM_STRUCT_OV80_021D2C5C_H
diff --git a/include/overlay082/struct_ov82_0223B164.h b/include/overlay082/struct_ov82_0223B164.h
index 82d7c4c434..7b63744375 100644
--- a/include/overlay082/struct_ov82_0223B164.h
+++ b/include/overlay082/struct_ov82_0223B164.h
@@ -15,7 +15,7 @@ typedef struct {
SaveData * unk_0C;
TrainerInfo * unk_10;
UnkStruct_0207D3C0 * unk_14;
- UnkStruct_020279FC * unk_18;
+ AnimationControlFlags * unk_18;
UnkStruct_0202B628 * unk_1C;
BOOL unk_20;
BOOL unk_24;
diff --git a/include/overlay083/ov83_0223D6A8.h b/include/overlay083/ov83_0223D6A8.h
index 6b9a588409..969f247f5e 100644
--- a/include/overlay083/ov83_0223D6A8.h
+++ b/include/overlay083/ov83_0223D6A8.h
@@ -33,7 +33,7 @@ void ov83_0223D784(UnkStruct_ov83_0223D784 * param0);
void ov83_0223D7A8(UnkStruct_ov83_0223D784 * param0, UnkStruct_ov83_0223D95C * param1, NARC * param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8, u32 param9);
void ov83_0223D894(UnkStruct_ov83_0223D784 * param0, UnkStruct_ov83_0223D95C * param1, NARC * param2, UnkStruct_02009DC8 * param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
void ov83_0223D95C(UnkStruct_ov83_0223D784 * param0, UnkStruct_ov83_0223D95C * param1);
-UnkStruct_02022550 * ov83_0223D9A8(UnkStruct_ov83_0223D784 * param0, UnkStruct_ov83_0223D95C * param1, fx32 param2, fx32 param3, fx32 param4, int param5, int param6);
+GraphicElementData * ov83_0223D9A8(UnkStruct_ov83_0223D784 * param0, UnkStruct_ov83_0223D95C * param1, fx32 param2, fx32 param3, fx32 param4, int param5, int param6);
void ov83_0223D9DC(UnkStruct_ov83_0223D9EC * param0, fx32 param1, fx32 param2, int param3);
BOOL ov83_0223D9EC(UnkStruct_ov83_0223D9EC * param0);
void ov83_0223DA34(UnkStruct_ov83_0223DA94 * param0, fx32 param1, fx32 param2, fx32 param3, int param4);
diff --git a/include/overlay083/struct_ov83_0223D784.h b/include/overlay083/struct_ov83_0223D784.h
index d8e28ad7c3..c77ae774ec 100644
--- a/include/overlay083/struct_ov83_0223D784.h
+++ b/include/overlay083/struct_ov83_0223D784.h
@@ -6,7 +6,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
} UnkStruct_ov83_0223D784;
diff --git a/include/overlay083/struct_ov83_0223D9A8.h b/include/overlay083/struct_ov83_0223D9A8.h
index 88f853db96..6c109eaaa5 100644
--- a/include/overlay083/struct_ov83_0223D9A8.h
+++ b/include/overlay083/struct_ov83_0223D9A8.h
@@ -7,7 +7,7 @@
#include
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
const UnkStruct_ov19_021DA864 * unk_04;
VecFx32 unk_08;
u32 unk_14;
diff --git a/include/overlay083/struct_ov83_0223DB30.h b/include/overlay083/struct_ov83_0223DB30.h
index 9e792d652c..354de6073c 100644
--- a/include/overlay083/struct_ov83_0223DB30.h
+++ b/include/overlay083/struct_ov83_0223DB30.h
@@ -8,8 +8,8 @@
typedef struct {
BOOL unk_00;
BOOL unk_04;
- UnkStruct_02022550 * unk_08[4];
- UnkStruct_02022550 * unk_18[4];
+ GraphicElementData * unk_08[4];
+ GraphicElementData * unk_18[4];
UnkStruct_ov83_0223D95C unk_28[4];
int unk_108;
UnkStruct_ov83_0223DA94 unk_10C[4];
diff --git a/include/overlay083/struct_ov83_0223E244.h b/include/overlay083/struct_ov83_0223E244.h
index e5825dd2da..00ec229faa 100644
--- a/include/overlay083/struct_ov83_0223E244.h
+++ b/include/overlay083/struct_ov83_0223E244.h
@@ -6,7 +6,7 @@
typedef struct {
BOOL unk_00;
BOOL unk_04;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
} UnkStruct_ov83_0223E244;
#endif // POKEPLATINUM_STRUCT_OV83_0223E244_H
diff --git a/include/overlay083/struct_ov83_0223E5C0.h b/include/overlay083/struct_ov83_0223E5C0.h
index c8343236fd..96822f7270 100644
--- a/include/overlay083/struct_ov83_0223E5C0.h
+++ b/include/overlay083/struct_ov83_0223E5C0.h
@@ -7,7 +7,7 @@
typedef struct {
BOOL unk_00;
- UnkStruct_02022550 * unk_04[4];
+ GraphicElementData * unk_04[4];
const UnkStruct_ov83_0223FE50 * unk_14;
u32 unk_18;
UnkStruct_ov83_0223D4CC * unk_1C;
diff --git a/include/overlay083/struct_ov83_0223F054.h b/include/overlay083/struct_ov83_0223F054.h
index 3cbc019bbd..082422efb6 100644
--- a/include/overlay083/struct_ov83_0223F054.h
+++ b/include/overlay083/struct_ov83_0223F054.h
@@ -18,7 +18,7 @@ typedef struct {
UnkStruct_ov83_0223DA94 unk_30;
UnkStruct_ov83_0223DA94 unk_48;
UnkStruct_ov83_0223DA94 unk_60;
- UnkStruct_02022550 * unk_78;
+ GraphicElementData * unk_78;
int unk_7C;
} UnkStruct_ov83_0223F054;
diff --git a/include/overlay083/struct_ov83_0223F410.h b/include/overlay083/struct_ov83_0223F410.h
index 2622216a1b..3f23e28a19 100644
--- a/include/overlay083/struct_ov83_0223F410.h
+++ b/include/overlay083/struct_ov83_0223F410.h
@@ -4,7 +4,7 @@
#include "struct_decls/struct_02022550_decl.h"
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
int unk_04;
int unk_08;
BOOL unk_0C;
diff --git a/include/overlay083/struct_ov83_0223F670.h b/include/overlay083/struct_ov83_0223F670.h
index ae04a98f18..0914a44b03 100644
--- a/include/overlay083/struct_ov83_0223F670.h
+++ b/include/overlay083/struct_ov83_0223F670.h
@@ -12,7 +12,7 @@ typedef struct {
VecFx32 unk_08;
UnkStruct_ov83_0223DA94 unk_14;
UnkStruct_ov83_0223DA94 unk_2C;
- UnkStruct_02022550 * unk_44;
+ GraphicElementData * unk_44;
} UnkStruct_ov83_0223F670;
#endif // POKEPLATINUM_STRUCT_OV83_0223F670_H
diff --git a/include/overlay084/struct_ov84_0223B5A0.h b/include/overlay084/struct_ov84_0223B5A0.h
index 0142b08f1d..56733ff40c 100644
--- a/include/overlay084/struct_ov84_0223B5A0.h
+++ b/include/overlay084/struct_ov84_0223B5A0.h
@@ -28,10 +28,10 @@ typedef struct {
UnkStruct_0207CB08 * unk_C4;
UnkStruct_0207D3C0 * unk_C8;
TrainerInfo * unk_CC;
- UnkStruct_020279FC * unk_D0;
+ AnimationControlFlags * unk_D0;
NARC * unk_D4;
- UnkStruct_0200C6E4 * unk_D8;
- UnkStruct_0200C704 * unk_DC;
+ CellTransferStateData * unk_D8;
+ AnimationResourceCollection * unk_DC;
CellActorData * unk_E0[12];
UnkStruct_0200C440 * unk_110;
MessageLoader * unk_114;
@@ -39,10 +39,10 @@ typedef struct {
MessageLoader * unk_11C;
MessageLoader * unk_120;
Strbuf* unk_124[12];
- UnkStruct_02013A04 * unk_154;
- UnkStruct_02001AF4 * unk_158;
+ ResourceMetadata * unk_154;
+ UIControlData * unk_158;
UnkStruct_0200112C * unk_15C;
- UnkStruct_02013A04 * unk_160;
+ ResourceMetadata * unk_160;
Strbuf* unk_164[165];
Strbuf* unk_3F8;
Strbuf* unk_3FC;
diff --git a/include/overlay084/struct_ov84_02240FA8.h b/include/overlay084/struct_ov84_02240FA8.h
index 4d1a10e625..77b7ee8605 100644
--- a/include/overlay084/struct_ov84_02240FA8.h
+++ b/include/overlay084/struct_ov84_02240FA8.h
@@ -6,7 +6,7 @@
#include "struct_defs/struct_0205AA50.h"
typedef struct {
- const UnkStruct_02013A04 * unk_00;
+ const ResourceMetadata * unk_00;
void (* unk_04)(UnkStruct_0200112C *, u32, u8);
void (* unk_08)(UnkStruct_0200112C *, u32, u8);
Window * unk_0C;
diff --git a/include/overlay088/ov88_0223E9C4.h b/include/overlay088/ov88_0223E9C4.h
index 95d1ab11c5..137f2b3aad 100644
--- a/include/overlay088/ov88_0223E9C4.h
+++ b/include/overlay088/ov88_0223E9C4.h
@@ -11,12 +11,12 @@
#include "struct_defs/struct_020279FC.h"
#include "struct_defs/struct_0205AA50.h"
-void ov88_0223E9C4(BGL * param0, Window * param1, UnkStruct_020279FC * param2);
+void ov88_0223E9C4(BGL * param0, Window * param1, AnimationControlFlags * param2);
void ov88_0223EC04(Window * param0);
void ov88_0223EC78(Window * param0, Strbuf *param1, int param2, u32 param3, int param4, int param5);
int ov88_0223ECBC(Window * param0, int param1, int param2, MessageLoader * param3, UnkStruct_0200B358 * param4);
-u32 ov88_0223ED2C(BGL * param0, UnkStruct_02001AF4 ** param1, int * param2);
+u32 ov88_0223ED2C(BGL * param0, UIControlData ** param1, int * param2);
void ov88_0223ED80(Window * param0);
-UnkStruct_0200112C * ov88_0223ED94(UnkStruct_02013A04 * param0, int param1, Window * param2, BGL * param3);
+UnkStruct_0200112C * ov88_0223ED94(ResourceMetadata * param0, int param1, Window * param2, BGL * param3);
#endif // POKEPLATINUM_OV88_0223E9C4_H
diff --git a/include/overlay088/struct_ov88_0223C370.h b/include/overlay088/struct_ov88_0223C370.h
index 4186dafb67..647a58dc31 100644
--- a/include/overlay088/struct_ov88_0223C370.h
+++ b/include/overlay088/struct_ov88_0223C370.h
@@ -20,7 +20,7 @@ typedef struct {
UnkStruct_02027F8C * unk_0C;
SaveData * unk_10;
UnkStruct_0202C878 * unk_14;
- UnkStruct_020279FC * unk_18;
+ AnimationControlFlags * unk_18;
UnkStruct_0202B628 * unk_1C;
UnkStruct_0202CD88 * unk_20;
UnkStruct_02026324 * unk_24;
diff --git a/include/overlay094/ov94_0223BCB0.h b/include/overlay094/ov94_0223BCB0.h
index e0292a942e..df29a9118c 100644
--- a/include/overlay094/ov94_0223BCB0.h
+++ b/include/overlay094/ov94_0223BCB0.h
@@ -13,9 +13,9 @@ int ov94_0223BCB0(UnkStruct_020067E8 * param0, int * param1);
int ov94_0223BE2C(UnkStruct_020067E8 * param0, int * param1);
int ov94_0223BF54(UnkStruct_020067E8 * param0, int * param1);
void ov94_0223C300(UnkStruct_ov115_02261520 * param0, UnkStruct_ov94_0223FD4C * param1, UnkStruct_ov19_021DA864 * param2, int param3);
-UnkStruct_02001AF4 * ov94_0223C3C0(BGL * param0, int param1, int param2);
+UIControlData * ov94_0223C3C0(BGL * param0, int param1, int param2);
void ov94_0223C3F4(UnkStruct_ov94_0223FD4C * param0, int param1, int param2);
-void ov94_0223C3FC(UnkStruct_02022550 * param0, int param1, int param2);
+void ov94_0223C3FC(GraphicElementData * param0, int param1, int param2);
int ov94_0223C4B4(void);
void ov94_0223C4C0(UnkStruct_ov94_0223FD4C * param0, int param1, int param2);
void ov94_0223C4C8(UnkStruct_ov94_0223FD4C * param0);
diff --git a/include/overlay094/ov94_022414B8.h b/include/overlay094/ov94_022414B8.h
index 2f9be06c65..113bb97b24 100644
--- a/include/overlay094/ov94_022414B8.h
+++ b/include/overlay094/ov94_022414B8.h
@@ -27,13 +27,13 @@ void ov94_02242368(MessageLoader * param0, MessageLoader * param1, UnkStruct_020
u16 * ov94_02242524(int param0, int param1, int * param2);
u8 * ov94_02242548(int param0);
void ov94_022425A8(UnkStruct_ov94_0223BA88 * param0, UnkStruct_ov94_0223FD4C * param1);
-UnkStruct_0200112C * ov94_022426A8(UnkStruct_ov94_0223FD4C * param0, UnkStruct_02013A04 ** param1, Window * param2, MessageLoader * param3);
-UnkStruct_0200112C * ov94_022427C0(UnkStruct_ov94_0223FD4C * param0, UnkStruct_02013A04 ** param1, Window * param2, MessageLoader * param3, MessageLoader * param4, UnkStruct_ov94_0223FD4C_sub3 * param5, UnkStruct_02026324 * param6);
-UnkStruct_0200112C * ov94_02242840(UnkStruct_02013A04 ** param0, Window * param1, MessageLoader * param2);
-UnkStruct_0200112C * ov94_022428B0(UnkStruct_02013A04 ** param0, Window * param1, MessageLoader * param2, int param3);
+UnkStruct_0200112C * ov94_022426A8(UnkStruct_ov94_0223FD4C * param0, ResourceMetadata ** param1, Window * param2, MessageLoader * param3);
+UnkStruct_0200112C * ov94_022427C0(UnkStruct_ov94_0223FD4C * param0, ResourceMetadata ** param1, Window * param2, MessageLoader * param3, MessageLoader * param4, UnkStruct_ov94_0223FD4C_sub3 * param5, UnkStruct_02026324 * param6);
+UnkStruct_0200112C * ov94_02242840(ResourceMetadata ** param0, Window * param1, MessageLoader * param2);
+UnkStruct_0200112C * ov94_022428B0(ResourceMetadata ** param0, Window * param1, MessageLoader * param2, int param3);
void ov94_02242934(UnkStruct_ov94_0223BA88_sub3 * param0, int param1, int param2);
int ov94_02242970(int param0, int param1, int param2);
-UnkStruct_0200112C * ov94_022429B4(UnkStruct_02013A04 ** param0, Window * param1, MessageLoader * param2, MessageLoader * param3);
+UnkStruct_0200112C * ov94_022429B4(ResourceMetadata ** param0, Window * param1, MessageLoader * param2, MessageLoader * param3);
void ov94_02242A44(UnkStruct_ov94_0223FD4C * param0, int param1);
u32 ov94_02242A6C(UnkStruct_0200112C * param0, u16 * param1);
void ov94_02242AAC(UnkStruct_ov94_02242AAC * param0);
diff --git a/include/overlay094/struct_ov94_0223FD4C.h b/include/overlay094/struct_ov94_0223FD4C.h
index 983df8efe5..e9bac0f55c 100644
--- a/include/overlay094/struct_ov94_0223FD4C.h
+++ b/include/overlay094/struct_ov94_0223FD4C.h
@@ -100,21 +100,21 @@ typedef struct UnkStruct_ov94_0223FD4C_t {
Strbuf* unk_BB4[10];
Strbuf* unk_BDC;
int unk_BE0;
- UnkStruct_020218BC * unk_BE4;
+ GraphicElementManager * unk_BE4;
UnkStruct_0200C738 unk_BE8;
UnkStruct_02009714 * unk_D74[4];
UnkStruct_02009DC8 * unk_D84[3][4];
UnkStruct_ov19_021DA864 unk_DB4;
UnkStruct_ov19_021DA864 unk_DD8;
UnkStruct_ov19_021DA864 unk_DFC;
- UnkStruct_02022550 * unk_E20;
- UnkStruct_02022550 * unk_E24;
- UnkStruct_02022550 * unk_E28[30];
- UnkStruct_02022550 * unk_EA0[30];
- UnkStruct_02022550 * unk_F18[6];
- UnkStruct_02022550 * unk_F30;
- UnkStruct_02022550 * unk_F34[8];
- UnkStruct_02022550 * unk_F54[2];
+ GraphicElementData * unk_E20;
+ GraphicElementData * unk_E24;
+ GraphicElementData * unk_E28[30];
+ GraphicElementData * unk_EA0[30];
+ GraphicElementData * unk_F18[6];
+ GraphicElementData * unk_F30;
+ GraphicElementData * unk_F34[8];
+ GraphicElementData * unk_F54[2];
Window unk_F5C;
Window unk_F6C;
Window unk_F7C;
@@ -123,9 +123,9 @@ typedef struct UnkStruct_ov94_0223FD4C_t {
Window unk_FCC[13];
Window unk_109C;
Window unk_10AC[2];
- UnkStruct_02013A04 * unk_10CC;
- UnkStruct_02001AF4 * unk_10D0;
- UnkStruct_02001AF4 * unk_10D4;
+ ResourceMetadata * unk_10CC;
+ UIControlData * unk_10D0;
+ UIControlData * unk_10D4;
UnkStruct_0200112C * unk_10D8;
void * unk_10DC;
int unk_10E0;
diff --git a/include/overlay095/ov95_02246C20.h b/include/overlay095/ov95_02246C20.h
index 9f6cc7c4b2..955073e289 100644
--- a/include/overlay095/ov95_02246C20.h
+++ b/include/overlay095/ov95_02246C20.h
@@ -27,7 +27,7 @@ void ov95_022474D4(UnkStruct_ov95_02247628 * param0, int param1, u32 param2, u32
void ov95_02247568(UnkStruct_ov95_02247568 * param0, u32 param1, u32 param2, u32 param3);
void ov95_022475A0(UnkStruct_ov95_02247568 * param0);
void ov95_022475C4(UnkStruct_ov19_021DA864 * param0, UnkStruct_ov95_02247568 * param1, NNSG2dImageProxy * param2, NNSG2dImagePaletteProxy * param3, u32 param4);
-UnkStruct_02022550 * ov95_022475E4(UnkStruct_ov95_02247628 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5);
+GraphicElementData * ov95_022475E4(UnkStruct_ov95_02247628 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5);
BGL * ov95_02247628(UnkStruct_ov95_02247628 * param0);
UnkStruct_0200B358 * ov95_0224762C(UnkStruct_ov95_02247628 * param0);
MessageLoader * ov95_02247630(UnkStruct_ov95_02247628 * param0);
diff --git a/include/overlay096/ov96_0223B6A0.h b/include/overlay096/ov96_0223B6A0.h
index b5eae0f0af..3ad5725bad 100644
--- a/include/overlay096/ov96_0223B6A0.h
+++ b/include/overlay096/ov96_0223B6A0.h
@@ -12,7 +12,7 @@ int ov96_0223B6A0(UnkStruct_020067E8 * param0, int * param1);
int ov96_0223B7F8(UnkStruct_020067E8 * param0, int * param1);
int ov96_0223B8CC(UnkStruct_020067E8 * param0, int * param1);
void ov96_0223BAE0(UnkStruct_ov115_02261520 * param0, UnkStruct_ov96_0223BF40 * param1, UnkStruct_ov19_021DA864 * param2, int param3);
-UnkStruct_02001AF4 * ov96_0223BBC8(BGL * param0, int param1, int param2);
+UIControlData * ov96_0223BBC8(BGL * param0, int param1, int param2);
void ov96_0223BBFC(UnkStruct_ov96_0223BF40 * param0, int param1, int param2);
int ov96_0223BC50(void);
void ov96_0223BC5C(UnkStruct_ov96_0223BF40 * param0, int param1, int param2);
diff --git a/include/overlay096/struct_ov96_0223BF40_t.h b/include/overlay096/struct_ov96_0223BF40_t.h
index d26e509a15..76144ba11b 100644
--- a/include/overlay096/struct_ov96_0223BF40_t.h
+++ b/include/overlay096/struct_ov96_0223BF40_t.h
@@ -60,14 +60,14 @@ struct UnkStruct_ov96_0223BF40_t {
Strbuf* unk_BE8;
Strbuf* unk_BEC;
int unk_BF0;
- UnkStruct_020218BC * unk_BF4;
+ GraphicElementManager * unk_BF4;
UnkStruct_0200C738 unk_BF8;
UnkStruct_02009714 * unk_D84[4];
UnkStruct_02009DC8 * unk_D94[3][4];
UnkStruct_ov19_021DA864 unk_DC4;
UnkStruct_ov19_021DA864 unk_DE8;
UnkStruct_ov19_021DA864 unk_E0C;
- UnkStruct_02022550 * unk_E30[2];
+ GraphicElementData * unk_E30[2];
Window unk_E38;
Window unk_E48;
Window unk_E58;
@@ -75,7 +75,7 @@ struct UnkStruct_ov96_0223BF40_t {
Window unk_E78;
Window unk_E88[3];
Window unk_EB8[11];
- UnkStruct_02001AF4 * unk_F68;
+ UIControlData * unk_F68;
void * unk_F6C;
int unk_F70;
int unk_F74;
diff --git a/include/overlay097/ov97_02237694.h b/include/overlay097/ov97_02237694.h
index dca82ab1c8..88475fa008 100644
--- a/include/overlay097/ov97_02237694.h
+++ b/include/overlay097/ov97_02237694.h
@@ -33,7 +33,7 @@ void ov97_02237B0C(int param0, int param1, int param2, int param3, int param4, i
void ov97_02237C80(fx32 param0, fx32 param1);
void ov97_02237CA0(void);
void ov97_02237CAC(int param0);
-UnkStruct_02022550 * ov97_02237D14(int param0, UnkStruct_02022550 * param1, int param2, int param3, int param4);
+GraphicElementData * ov97_02237D14(int param0, GraphicElementData * param1, int param2, int param3, int param4);
void ov97_02237DA0(void);
u32 ov97_02237E4C(int param0);
void ov97_02238194(BGL * param0, UnkStruct_0202DF40 * param1);
diff --git a/include/overlay097/struct_ov97_0222D04C.h b/include/overlay097/struct_ov97_0222D04C.h
index 95b6af94a7..f6bceb543c 100644
--- a/include/overlay097/struct_ov97_0222D04C.h
+++ b/include/overlay097/struct_ov97_0222D04C.h
@@ -24,7 +24,7 @@
typedef struct {
BGL * unk_00;
SaveData * unk_04;
- UnkStruct_020279FC * unk_08;
+ AnimationControlFlags * unk_08;
UnkStruct_0200B358 * unk_0C;
MessageLoader * unk_10;
Strbuf* unk_14;
@@ -36,7 +36,7 @@ typedef struct {
int unk_70;
int unk_74;
UnkStruct_0200112C * unk_78;
- UnkStruct_02013A04 * unk_7C;
+ ResourceMetadata * unk_7C;
int unk_80;
int unk_84;
int unk_88;
@@ -45,12 +45,12 @@ typedef struct {
int unk_438;
int unk_43C;
int unk_440;
- UnkStruct_020218BC * unk_444;
+ GraphicElementManager * unk_444;
UnkStruct_0200C738 unk_448;
UnkStruct_02009714 * unk_5D4[6];
UnkStruct_02009DC8 * unk_5EC[6];
UnkStruct_ov19_021DA864 unk_604;
- UnkStruct_02022550 * unk_628;
+ GraphicElementData * unk_628;
int unk_62C;
int unk_630;
int unk_634;
diff --git a/include/overlay097/struct_ov97_02237AEC.h b/include/overlay097/struct_ov97_02237AEC.h
index de70f69eae..fe58459429 100644
--- a/include/overlay097/struct_ov97_02237AEC.h
+++ b/include/overlay097/struct_ov97_02237AEC.h
@@ -8,7 +8,7 @@
#include "overlay019/struct_ov19_021DA864.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[6];
UnkStruct_02009DC8 * unk_1A8[2][6];
diff --git a/include/overlay098/struct_ov98_02246E88.h b/include/overlay098/struct_ov98_02246E88.h
index a14f4a55bf..890a892afd 100644
--- a/include/overlay098/struct_ov98_02246E88.h
+++ b/include/overlay098/struct_ov98_02246E88.h
@@ -14,7 +14,7 @@
typedef struct {
UnkStruct_020067E8 * unk_00;
SaveData * unk_04;
- UnkStruct_020279FC * unk_08;
+ AnimationControlFlags * unk_08;
void * unk_0C;
NNSFndHeapHandle unk_10;
DWCInetControl unk_14;
diff --git a/include/overlay099/struct_ov99_021D2CB0.h b/include/overlay099/struct_ov99_021D2CB0.h
index 34912044a4..0aabdf7cb7 100644
--- a/include/overlay099/struct_ov99_021D2CB0.h
+++ b/include/overlay099/struct_ov99_021D2CB0.h
@@ -25,10 +25,10 @@ typedef struct {
BOOL unk_04;
BGL * unk_08;
PaletteSys * unk_0C;
- UnkStruct_0207C690 * unk_10;
+ GenericPointerData * unk_10;
SysTask * unk_14;
- UnkStruct_0200C6E4 * unk_18;
- UnkStruct_0200C704 * unk_1C;
+ CellTransferStateData * unk_18;
+ AnimationResourceCollection * unk_1C;
MessageLoader * unk_20;
Window * unk_24;
UnkStruct_020203AC * unk_28;
diff --git a/include/overlay100/struct_ov100_021D46C8.h b/include/overlay100/struct_ov100_021D46C8.h
index 6c84128fe1..a63c36d079 100644
--- a/include/overlay100/struct_ov100_021D46C8.h
+++ b/include/overlay100/struct_ov100_021D46C8.h
@@ -20,11 +20,11 @@
typedef struct {
NARC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
BGL * unk_0C;
PaletteSys * unk_10;
- UnkStruct_0207C690 * unk_14;
+ GenericPointerData * unk_14;
UnkStruct_020203AC * unk_18;
NNSFndAllocator unk_1C;
MessageLoader * unk_2C;
diff --git a/include/overlay101/ov101_021D7E48.h b/include/overlay101/ov101_021D7E48.h
index 92da416124..3a95211363 100644
--- a/include/overlay101/ov101_021D7E48.h
+++ b/include/overlay101/ov101_021D7E48.h
@@ -22,7 +22,7 @@ void ov101_021D82F0(UnkStruct_ov101_021D7E48 * param0, NARC * param1, u32 param2
void ov101_021D8358(UnkStruct_ov101_021D7E48 * param0, u32 param1, u32 param2, u32 param3, u32 param4);
void ov101_021D84A4(UnkStruct_ov101_021D7E48 * param0, UnkStruct_ov101_021D8544 * param1, const VecFx32 * param2, u32 param3, int param4, u32 param5, u32 param6, u32 param7, u32 param8, int param9, int param10);
void ov101_021D8544(UnkStruct_ov101_021D8544 * param0);
-void ov101_021D8560(UnkStruct_02022550 * param0, VecFx32 * param1);
-void ov101_021D8574(UnkStruct_02022550 * param0, VecFx32 * param1);
+void ov101_021D8560(GraphicElementData * param0, VecFx32 * param1);
+void ov101_021D8574(GraphicElementData * param0, VecFx32 * param1);
#endif // POKEPLATINUM_OV101_021D7E48_H
diff --git a/include/overlay101/struct_ov101_021D8544.h b/include/overlay101/struct_ov101_021D8544.h
index ae63989da8..e65b043b0f 100644
--- a/include/overlay101/struct_ov101_021D8544.h
+++ b/include/overlay101/struct_ov101_021D8544.h
@@ -7,7 +7,7 @@
typedef struct {
int unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
const NNSG2dImageProxy * unk_08;
} UnkStruct_ov101_021D8544;
diff --git a/include/overlay104/ov104_0222DCE0.h b/include/overlay104/ov104_0222DCE0.h
index 586ad0bf09..ead5ebcb12 100644
--- a/include/overlay104/ov104_0222DCE0.h
+++ b/include/overlay104/ov104_0222DCE0.h
@@ -22,8 +22,8 @@ void ov104_0222DF40(const UnkStruct_ov104_0223A348_sub2 * param0, Pokemon * para
u16 ov104_0222E10C(u8 param0);
void ov104_0222E134(SaveData * param0, Pokemon * param1);
void ov104_0222E1C0(SaveData * param0, Party * param1, Pokemon * param2);
-void ov104_0222E1D8(UnkStruct_02022550 * param0, u8 param1);
-void ov104_0222E204(UnkStruct_02022550 * param0, s16 param1, s16 param2, u8 param3);
+void ov104_0222E1D8(GraphicElementData * param0, u8 param1);
+void ov104_0222E204(GraphicElementData * param0, s16 param1, s16 param2, u8 param3);
u8 ov104_0222E240(u16 param0, u16 param1);
void ov104_0222E278(UnkStruct_ov104_0223A348 * param0, u16 param1, int param2, int param3);
void ov104_0222E284(BattleParams * param0, UnkStruct_ov104_0223A348_sub1 * param1, int param2, int param3, int param4);
diff --git a/include/overlay104/ov104_0223D768.h b/include/overlay104/ov104_0223D768.h
index 8c28090f01..82c725798c 100644
--- a/include/overlay104/ov104_0223D768.h
+++ b/include/overlay104/ov104_0223D768.h
@@ -7,9 +7,9 @@
#include "struct_decls/struct_0200C704_decl.h"
#include "struct_decls/cell_actor_data.h"
-void ov104_0223D768(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, PaletteSys * param3, u16 param4);
-void ov104_0223D7EC(UnkStruct_0200C704 * param0, u16 param1);
-CellActorData * ov104_0223D828(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u16 param2);
+void ov104_0223D768(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, PaletteSys * param3, u16 param4);
+void ov104_0223D7EC(AnimationResourceCollection * param0, u16 param1);
+CellActorData * ov104_0223D828(CellTransferStateData * param0, AnimationResourceCollection * param1, u16 param2);
void ov104_0223D858(CellActorData * param0);
#endif // POKEPLATINUM_OV104_0223D768_H
diff --git a/include/overlay104/struct_ov104_02230BE4.h b/include/overlay104/struct_ov104_02230BE4.h
index a43b79c604..3af3deaa29 100644
--- a/include/overlay104/struct_ov104_02230BE4.h
+++ b/include/overlay104/struct_ov104_02230BE4.h
@@ -10,7 +10,7 @@
typedef struct {
void * unk_00;
- const UnkStruct_020279FC * unk_04;
+ const AnimationControlFlags * unk_04;
SaveData * unk_08;
UnkStruct_0202B628 * unk_0C;
UnkStruct_0207D99C * unk_10;
diff --git a/include/overlay104/struct_ov104_022320B4_t.h b/include/overlay104/struct_ov104_022320B4_t.h
index 2c086d0c12..64a1ef1594 100644
--- a/include/overlay104/struct_ov104_022320B4_t.h
+++ b/include/overlay104/struct_ov104_022320B4_t.h
@@ -32,7 +32,7 @@ struct UnkStruct_ov104_022320B4_t {
BOOL unk_5C;
UnkStruct_ov104_02232B5C * unk_60;
Window unk_64;
- UnkStruct_02001AF4 * unk_74;
+ UIControlData * unk_74;
u16 * unk_78;
void * unk_7C;
void * unk_80;
diff --git a/include/overlay104/struct_ov104_0223C4CC.h b/include/overlay104/struct_ov104_0223C4CC.h
index e9064bb09c..3ff103ff8b 100644
--- a/include/overlay104/struct_ov104_0223C4CC.h
+++ b/include/overlay104/struct_ov104_0223C4CC.h
@@ -25,7 +25,7 @@ typedef struct UnkStruct_ov104_0223C4CC_t {
BGL * unk_00;
PaletteSys * unk_04;
UnkStruct_0209B75C * unk_08;
- UnkStruct_0207C690 * unk_0C;
+ GenericPointerData * unk_0C;
UnkStruct_ov104_0223D5F0 * unk_10;
UnkStruct_ov63_0222BE18 * unk_14;
UnkStruct_ov63_0222BCE8 * unk_18;
@@ -36,8 +36,8 @@ typedef struct UnkStruct_ov104_0223C4CC_t {
UnkStruct_ov63_0222D848 * unk_2C;
UnkStruct_ov63_0222D77C * unk_30;
struct {
- UnkStruct_0200C6E4 * unk_00;
- UnkStruct_0200C704 * unk_04;
+ CellTransferStateData * unk_00;
+ AnimationResourceCollection * unk_04;
} unk_34;
UnkStruct_ov104_0223D3B0_1 unk_3C;
CellActorData * unk_80[4];
diff --git a/include/overlay105/ov105_02245AAC.h b/include/overlay105/ov105_02245AAC.h
index a288ad5c3c..4feb596677 100644
--- a/include/overlay105/ov105_02245AAC.h
+++ b/include/overlay105/ov105_02245AAC.h
@@ -5,7 +5,7 @@
#include "overlay105/struct_ov105_02245AAC.h"
void ov105_02245AAC(UnkStruct_ov105_02245AAC * param0);
-UnkStruct_02022550 * ov105_02245BA4(UnkStruct_ov105_02245AAC * param0, u32 param1, u32 param2, u32 param3, int param4, u8 param5);
+GraphicElementData * ov105_02245BA4(UnkStruct_ov105_02245AAC * param0, u32 param1, u32 param2, u32 param3, int param4, u8 param5);
void ov105_02245C50(UnkStruct_ov105_02245AAC * param0);
#endif // POKEPLATINUM_OV105_02245AAC_H
diff --git a/include/overlay105/struct_ov105_02245AAC.h b/include/overlay105/struct_ov105_02245AAC.h
index 814cecff54..edc6310d77 100644
--- a/include/overlay105/struct_ov105_02245AAC.h
+++ b/include/overlay105/struct_ov105_02245AAC.h
@@ -7,7 +7,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_02009DC8 * unk_1A0[1][4];
diff --git a/include/overlay106/ov106_02243310.h b/include/overlay106/ov106_02243310.h
index ca4ed60edf..481601b434 100644
--- a/include/overlay106/ov106_02243310.h
+++ b/include/overlay106/ov106_02243310.h
@@ -6,7 +6,7 @@
#include "overlay106/struct_ov106_02243310.h"
void ov106_02243310(UnkStruct_ov106_02243310 * param0, Pokemon * param1);
-UnkStruct_02022550 * ov106_022434BC(UnkStruct_ov106_02243310 * param0, u32 param1, u32 param2, u32 param3, u8 param4);
+GraphicElementData * ov106_022434BC(UnkStruct_ov106_02243310 * param0, u32 param1, u32 param2, u32 param3, u8 param4);
void ov106_02243570(UnkStruct_ov106_02243310 * param0);
#endif // POKEPLATINUM_OV106_02243310_H
diff --git a/include/overlay106/struct_ov106_02243310.h b/include/overlay106/struct_ov106_02243310.h
index d830ce6085..f90f0f6260 100644
--- a/include/overlay106/struct_ov106_02243310.h
+++ b/include/overlay106/struct_ov106_02243310.h
@@ -7,7 +7,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_02009DC8 * unk_1A0[2][4];
diff --git a/include/overlay107/ov107_02249604.h b/include/overlay107/ov107_02249604.h
index 6254a80d3b..0691a06a81 100644
--- a/include/overlay107/ov107_02249604.h
+++ b/include/overlay107/ov107_02249604.h
@@ -6,7 +6,7 @@
#include "overlay107/struct_ov107_02249954.h"
void ov107_02249604(UnkStruct_ov107_02249954 * param0, Party * param1, u8 param2);
-UnkStruct_02022550 * ov107_022498A4(UnkStruct_ov107_02249954 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7);
+GraphicElementData * ov107_022498A4(UnkStruct_ov107_02249954 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7);
void ov107_02249954(UnkStruct_ov107_02249954 * param0);
void ov107_022499BC(UnkStruct_ov107_02249954 * param0, u16 param1);
void ov107_022499FC(UnkStruct_ov107_02249954 * param0, u16 param1);
diff --git a/include/overlay107/struct_ov107_02249954.h b/include/overlay107/struct_ov107_02249954.h
index 3f3923209b..2d9b7ccf70 100644
--- a/include/overlay107/struct_ov107_02249954.h
+++ b/include/overlay107/struct_ov107_02249954.h
@@ -7,7 +7,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_02009DC8 * unk_1A0[7][4];
diff --git a/include/overlay108/ov108_02243030.h b/include/overlay108/ov108_02243030.h
index a039fd1a1b..39569bb153 100644
--- a/include/overlay108/ov108_02243030.h
+++ b/include/overlay108/ov108_02243030.h
@@ -6,7 +6,7 @@
#include "overlay108/struct_ov108_02243030.h"
void ov108_02243030(UnkStruct_ov108_02243030 * param0, Party * param1, Party * param2, u8 param3);
-UnkStruct_02022550 * ov108_022430F0(UnkStruct_ov108_02243030 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7);
+GraphicElementData * ov108_022430F0(UnkStruct_ov108_02243030 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7);
void ov108_02243194(UnkStruct_ov108_02243030 * param0);
#endif // POKEPLATINUM_OV108_02243030_H
diff --git a/include/overlay108/struct_ov108_02243030.h b/include/overlay108/struct_ov108_02243030.h
index dd871ee03f..66f67c1444 100644
--- a/include/overlay108/struct_ov108_02243030.h
+++ b/include/overlay108/struct_ov108_02243030.h
@@ -7,7 +7,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_02009DC8 * unk_1A0[11][4];
diff --git a/include/overlay109/struct_ov109_021D5140.h b/include/overlay109/struct_ov109_021D5140.h
index 251e6dd5aa..1b93d0db78 100644
--- a/include/overlay109/struct_ov109_021D5140.h
+++ b/include/overlay109/struct_ov109_021D5140.h
@@ -40,21 +40,21 @@ typedef struct UnkStruct_ov109_021D5140_t {
Strbuf* unk_54;
Strbuf* unk_58;
int unk_5C;
- UnkStruct_020218BC * unk_60;
+ GraphicElementManager * unk_60;
UnkStruct_0200C738 unk_64;
UnkStruct_02009714 * unk_1F0[4];
UnkStruct_02009DC8 * unk_200[3][4];
UnkStruct_ov19_021DA864 unk_230;
UnkStruct_ov19_021DA864 unk_254;
UnkStruct_ov19_021DA864 unk_278;
- UnkStruct_02022550 * unk_29C[14];
- UnkStruct_02022550 * unk_2D4[14];
+ GraphicElementData * unk_29C[14];
+ GraphicElementData * unk_2D4[14];
Window unk_30C[5];
Window unk_35C;
Window unk_36C;
Window unk_37C;
Window * unk_38C[2];
- UnkStruct_02001AF4 * unk_394;
+ UIControlData * unk_394;
void * unk_398[2];
NNSG2dCharacterData * unk_3A0[2];
void * unk_3A8[2];
diff --git a/include/overlay111/ov111_021D2F80.h b/include/overlay111/ov111_021D2F80.h
index 6ba2ed7bd2..51b3dfcda5 100644
--- a/include/overlay111/ov111_021D2F80.h
+++ b/include/overlay111/ov111_021D2F80.h
@@ -5,7 +5,7 @@
#include "overlay111/struct_ov111_021D2F80.h"
void ov111_021D2F80(UnkStruct_ov111_021D2F80 * param0);
-UnkStruct_02022550 * ov111_021D3280(UnkStruct_ov111_021D2F80 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u8 param5);
+GraphicElementData * ov111_021D3280(UnkStruct_ov111_021D2F80 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u8 param5);
void ov111_021D3320(UnkStruct_ov111_021D2F80 * param0);
void ov111_021D33B0(UnkStruct_ov111_021D2F80 * param0, int param1);
diff --git a/include/overlay111/struct_ov111_021D2F80.h b/include/overlay111/struct_ov111_021D2F80.h
index c1d8251bbf..9f62e8ee55 100644
--- a/include/overlay111/struct_ov111_021D2F80.h
+++ b/include/overlay111/struct_ov111_021D2F80.h
@@ -7,7 +7,7 @@
#include "struct_decls/struct_020218BC_decl.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_02009DC8 * unk_1A0[5][4];
diff --git a/include/overlay114/ov114_0225C700.h b/include/overlay114/ov114_0225C700.h
index 951802fa39..719f931622 100644
--- a/include/overlay114/ov114_0225C700.h
+++ b/include/overlay114/ov114_0225C700.h
@@ -34,7 +34,7 @@ void ov114_0225CA2C(UnkStruct_ov114_0225E854 * param0, u32 param1, BOOL param2);
void ov114_0225CA44(UnkStruct_ov114_0225E854 * param0, BOOL param1);
BOOL ov114_0225CA54(UnkStruct_ov114_0225C76C * param0);
BOOL ov114_0225CA98(const UnkStruct_ov114_0225C76C * param0);
-UnkStruct_ov114_0225CAD4 * ov114_0225CAD4(UnkStruct_020218BC * param0, u32 param1);
+UnkStruct_ov114_0225CAD4 * ov114_0225CAD4(GraphicElementManager * param0, u32 param1);
void ov114_0225CB38(UnkStruct_ov114_0225CAD4 * param0);
int ov114_0225CB74(UnkStruct_ov114_0225CAD4 * param0);
void ov114_0225CB8C(UnkStruct_ov114_0225CAD4 * param0);
diff --git a/include/overlay115/struct_ov115_02261520.h b/include/overlay115/struct_ov115_02261520.h
index 81cf58120e..acc469df2b 100644
--- a/include/overlay115/struct_ov115_02261520.h
+++ b/include/overlay115/struct_ov115_02261520.h
@@ -7,7 +7,7 @@
#include
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
const UnkStruct_ov19_021DA864 * unk_04;
VecFx32 unk_08;
VecFx32 unk_14;
diff --git a/include/overlay116/struct_ov116_022649E4.h b/include/overlay116/struct_ov116_022649E4.h
index e14e76ede4..2b2ddac0bb 100644
--- a/include/overlay116/struct_ov116_022649E4.h
+++ b/include/overlay116/struct_ov116_022649E4.h
@@ -15,11 +15,11 @@
typedef struct {
NARC * unk_00;
NARC * unk_04;
- UnkStruct_0200C6E4 * unk_08;
- UnkStruct_0200C704 * unk_0C;
+ CellTransferStateData * unk_08;
+ AnimationResourceCollection * unk_0C;
BGL * unk_10;
PaletteSys * unk_14;
- UnkStruct_0207C690 * unk_18;
+ GenericPointerData * unk_18;
UnkStruct_020203AC * unk_1C;
u8 padding_20[4];
NNSFndAllocator unk_24;
diff --git a/include/overlay117/ov117_02263AF0.h b/include/overlay117/ov117_02263AF0.h
index 1b90138192..9e2503e8b2 100644
--- a/include/overlay117/ov117_02263AF0.h
+++ b/include/overlay117/ov117_02263AF0.h
@@ -46,7 +46,7 @@ void ov117_02265ABC(UnkStruct_ov117_02261280 * param0, UnkStruct_ov117_02265C3C
void ov117_02265B3C(UnkStruct_ov117_02261280 * param0, UnkStruct_ov117_02265C3C * param1);
void ov117_02265B58(UnkStruct_ov117_02261280 * param0, UnkStruct_ov117_02265C3C * param1, int param2, int param3, int param4);
void ov117_02265C1C(UnkStruct_ov117_02261280 * param0, UnkStruct_ov117_02265C3C * param1);
-void ov117_02265DB8(BGL * param0, UnkStruct_0200C704 * param1, UnkStruct_02012744 * param2, UnkStruct_ov117_02265EB0 * param3, const Strbuf *param4, int param5, u32 param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14);
+void ov117_02265DB8(BGL * param0, AnimationResourceCollection * param1, UnkStruct_02012744 * param2, UnkStruct_ov117_02265EB0 * param3, const Strbuf *param4, int param5, u32 param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14);
void ov117_02265EB0(UnkStruct_ov117_02265EB0 * param0);
void ov117_02265EC8(UnkStruct_ov117_02265EC8 * param0);
void ov117_02265F34(UnkStruct_ov117_02261280 * param0, UnkStruct_ov117_02265EC8 * param1);
diff --git a/include/overlay117/struct_ov117_02261280.h b/include/overlay117/struct_ov117_02261280.h
index 996a7e850c..cb4c2d236a 100644
--- a/include/overlay117/struct_ov117_02261280.h
+++ b/include/overlay117/struct_ov117_02261280.h
@@ -42,8 +42,8 @@ typedef struct UnkStruct_ov117_02261280_t {
u32 unk_0C[4];
UnkStruct_ov114_0225CAD4 * unk_1C;
int unk_20;
- UnkStruct_0200C6E4 * unk_24;
- UnkStruct_0200C704 * unk_28;
+ CellTransferStateData * unk_24;
+ AnimationResourceCollection * unk_28;
BGL * unk_2C;
Window unk_30[5];
MessageLoader * unk_80;
@@ -52,7 +52,7 @@ typedef struct UnkStruct_ov117_02261280_t {
PaletteSys * unk_8C;
UnkStruct_02012744 * unk_90;
SysTask * unk_94;
- UnkStruct_0207C690 * unk_98;
+ GenericPointerData * unk_98;
UnkStruct_020203AC * unk_9C;
UnkStruct_020203AC * unk_A0;
UnkStruct_02014014 * unk_A4;
diff --git a/include/overlay118/ov118_021D0D80.h b/include/overlay118/ov118_021D0D80.h
index 40cad4fefa..20e21274e0 100644
--- a/include/overlay118/ov118_021D0D80.h
+++ b/include/overlay118/ov118_021D0D80.h
@@ -3,7 +3,7 @@
#include "struct_defs/struct_0207F248.h"
-void ov118_021D0D80(UnkStruct_0207F248 * param0);
-int ov118_021D0DBC(UnkStruct_0207F248 * param0);
+void ov118_021D0D80(GameWindowLayout * param0);
+int ov118_021D0DBC(GameWindowLayout * param0);
#endif // POKEPLATINUM_OV118_021D0D80_H
diff --git a/include/overlay118/struct_ov118_021D0FDC_decl.h b/include/overlay118/struct_ov118_021D0FDC_decl.h
index 601c4eda18..f592a903f2 100644
--- a/include/overlay118/struct_ov118_021D0FDC_decl.h
+++ b/include/overlay118/struct_ov118_021D0FDC_decl.h
@@ -1,6 +1,6 @@
#ifndef POKEPLATINUM_STRUCT_OV118_021D0FDC_DECL_H
#define POKEPLATINUM_STRUCT_OV118_021D0FDC_DECL_H
-typedef struct UnkStruct_ov118_021D0FDC_t UnkStruct_ov118_021D0FDC;
+typedef struct OverlayMetadata_t OverlayMetadata;
#endif // POKEPLATINUM_STRUCT_OV118_021D0FDC_DECL_H
diff --git a/include/overlay119/ov119_021D0D80.h b/include/overlay119/ov119_021D0D80.h
index c1d57c8c96..4ffd9fd58f 100644
--- a/include/overlay119/ov119_021D0D80.h
+++ b/include/overlay119/ov119_021D0D80.h
@@ -14,7 +14,7 @@
void ov119_021D0D80(void);
void ov119_021D0DA8(void);
-UnkStruct_0207C690 * ov119_021D0DD4(void);
+GenericPointerData * ov119_021D0DD4(void);
void ov119_021D0DF4(void);
void ov119_021D0E78(void);
void ov119_021D0EB8(BGL * param0);
diff --git a/include/overlay119/struct_ov119_021D17B8.h b/include/overlay119/struct_ov119_021D17B8.h
index 11e2dfc515..ec69503e66 100644
--- a/include/overlay119/struct_ov119_021D17B8.h
+++ b/include/overlay119/struct_ov119_021D17B8.h
@@ -21,14 +21,14 @@ typedef struct {
int unk_0C;
int unk_10;
Window unk_14[2];
- UnkStruct_0207C690 * unk_34;
+ GenericPointerData * unk_34;
UnkStruct_02007768 * unk_38;
NARC * unk_3C;
UnkStruct_ov119_021D14DC * unk_40;
- UnkStruct_02013A04 * unk_44;
- UnkStruct_02001AF4 * unk_48;
- UnkStruct_0200C704 * unk_4C;
- UnkStruct_0200C6E4 * unk_50;
+ ResourceMetadata * unk_44;
+ UIControlData * unk_48;
+ AnimationResourceCollection * unk_4C;
+ CellTransferStateData * unk_50;
PokemonAnimationSys * unk_54;
} UnkStruct_ov119_021D17B8;
diff --git a/include/pokemon.h b/include/pokemon.h
index bb9e6026df..e986719b4b 100644
--- a/include/pokemon.h
+++ b/include/pokemon.h
@@ -1,6 +1,8 @@
#ifndef POKEPLATINUM_POKEMON_H
#define POKEPLATINUM_POKEMON_H
+#include "constants/sound.h"
+
#include "struct_decls/struct_02002F38_decl.h"
#include "struct_decls/struct_02006C24_decl.h"
#include "struct_defs/sprite_animation_frame.h"
@@ -11,7 +13,7 @@
#include "struct_decls/cell_actor_data.h"
#include "struct_decls/pokemon_animation_sys_decl.h"
#include "trainer_info.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_02078B40_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "overlay005/struct_ov5_021DE5D0.h"
@@ -176,18 +178,20 @@ typedef struct BoxPokemon {
/**
* @brief Party Pokemon data structure
+ * This is used to store stats for a pokemon while it is in the players party.
+ * Rather than recalculating stats after each battle, they're stored here.
*/
typedef struct PartyPokemon {
- u32 unk_00;
- u8 level; //!< The pokemons level
- u8 unk_05;
- u16 unk_06;
- u16 unk_08;
- u16 unk_0A;
- u16 unk_0C;
- u16 unk_0E;
- u16 unk_10;
- u16 unk_12;
+ u32 status; //!< The pokemons status
+ u8 level; //!< The pokemons level
+ u8 mail; //!< The ID of the mail the pokemon is holding
+ u16 hp; //!< The pokemons current HP
+ u16 maxHP; //!< The pokemons maximum HP
+ u16 attack; //!< The pokemons Attack stat
+ u16 defense; //!< The pokemons Defense stat
+ u16 speed; //!< The pokemons Speed stat
+ u16 spAtk; //!< The pokemons Special Attack stat
+ u16 spDef; //!< The pokemons Special Defense stat
UnkStruct_0202818C unk_14;
UnkStruct_0202CA28 unk_4C;
} PartyPokemon;
@@ -642,7 +646,7 @@ u8 BoxPokemon_SpriteYOffset(BoxPokemon *boxMon, u8 face, BOOL preferDP);
*/
u8 LoadPokemonSpriteYOffset(u16 species, u8 gender, u8 face, u8 form, u32 personality);
void sub_0207697C(ArchivedSprite *param0, u16 param1);
-CellActorData *sub_02076994(UnkStruct_0200C6E4 *param0, UnkStruct_0200C704 *param1, PaletteSys *param2, int param3, int param4, int param5, int param6, int param7, int heapID);
+CellActorData *sub_02076994(CellTransferStateData *param0, AnimationResourceCollection *param1, PaletteSys *param2, int param3, int param4, int param5, int param6, int param7, int heapID);
void sub_02076AAC(int param0, int param1, UnkStruct_ov5_021DE5D0 *param2);
/**
@@ -797,10 +801,10 @@ int Pokemon_LoadLevelUpMoveIdsOf(int monSpecies, int monForm, u16 *monLevelUpMov
void Pokemon_ApplyPokerus(Party *party);
u8 Pokemon_HasPokerus(Party *party, u8 param1);
-void sub_020777B4(Party *party, s32 param1);
+void Party_UpdatePokerusStatus(Party *party, s32 param1);
void Pokemon_ValidatePokerus(Party *party);
-BOOL sub_020778D8(Pokemon *mon);
-BOOL sub_020778F8(Pokemon *mon);
+BOOL Pokemon_InfectedWithPokerus(Pokemon *mon);
+BOOL Pokemon_CanSpreadPokerus(Pokemon *mon);
/**
* @brief Sets Arceus' form based on its held item. Has no effect if the given Pokemon is not an Arceus
@@ -919,14 +923,42 @@ BOOL Pokemon_SetRotomForm(Pokemon *mon, int monForm, int moveSlot);
*/
void Pokemon_LoadLevelUpMovesOf(int monSpecies, int monForm, u16 *monLevelUpMoves);
-void sub_02077D3C(UnkStruct_0202CC84 *param0, int param1, u16 monSpecies, int param3, int param4, int param5, int param6, int param7);
-void sub_02077DB4(UnkStruct_0202CC84 *param0, int param1, u16 monSpecies, int param3, int param4, int param5, int param6, int param7, u8 param8);
-BOOL sub_02077E3C(Pokemon *mon);
+/**
+ * @brief Play a Pokemon's cry, according to the given species and form number.
+ *
+ * @param chatotCry Chatot cry data from the save block. Only used
+ * if the Pokemon itself is Chatot.
+ * @param crymod Modification to apply to the Pokemon's cry.
+ * @param species
+ * @param form
+ * @param pan
+ * @param volume
+ * @param forceDefaultChatot If TRUE, force usage of Chatot's default cry.
+ * @param heapID
+ */
+void Pokemon_PlayCry(ChatotCry *chatotCry, enum PokemonCryMod crymod, u16 species, int form, int pan, int volume, int forceDefaultChatot, int heapID);
+
+/**
+ * @brief Play a Pokemon's cry, according to the given species and form number.
+ *
+ * @param chatotCry Chatot cry data from the save block. Only used
+ * if the Pokemon itself is Chatot.
+ * @param crymod Modification to apply to the Pokemon's cry.
+ * @param species
+ * @param form
+ * @param pan
+ * @param volume
+ * @param forceDefaultChatot If TRUE, force usage of Chatot's default cry.
+ * @param heapID
+ * @param delay Number of frames until playback will begin.
+ */
+void Pokemon_PlayDelayedCry(ChatotCry *chatotCry, enum PokemonCryMod crymod, u16 species, int form, int pan, int volume, int forceDefaultChatot, int heapID, u8 delay);
+BOOL Pokemon_IsEligibleForAction(Pokemon *mon);
void Pokemon_SetCatchData(Pokemon *mon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5);
-void sub_02077EE4(Pokemon *mon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5);
-void sub_02077F0C(Pokemon *mon, u32 param1, int param2);
+void Pokemon_UpdateAfterCatch(Pokemon *mon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5);
+void Pokemon_GiveHeldItem(Pokemon *mon, u32 param1, int param2);
BOOL Pokemon_CanLearnTM(Pokemon *mon, u8 tmID);
-BOOL Pokemon_CanFormLearnTM(u16 monSpecies, int monForm, u8 tmID);
+BOOL CanPokemonFormLearnTM(u16 monSpecies, int monForm, u8 tmID);
/**
* @brief Sets the ability of a Pokemon based on its species, form and peronsality value
diff --git a/include/rtc.h b/include/rtc.h
new file mode 100644
index 0000000000..fcc1a38ea2
--- /dev/null
+++ b/include/rtc.h
@@ -0,0 +1,28 @@
+#ifndef POKEPLATINUM_RTC_H
+#define POKEPLATINUM_RTC_H
+
+
+#include
+
+enum TimeOfDay {
+ TOD_MORNING = 0,
+ TOD_DAY = 1,
+ TOD_TWILIGHT = 2,
+ TOD_NIGHT = 3,
+ TOD_LATE_NIGHT = 4,
+};
+
+void InitRTC(void);
+void UpdateRTC(void);
+void GetCurrentDateTime(RTCDate * date, RTCTime * time);
+void GetCurrentTime(RTCTime * time);
+void GetCurrentDate(RTCDate * date);
+int GetSecondsSinceMidnight(void);
+s64 GetTimestamp(void);
+int DayNumberForDate(const RTCDate * date);
+BOOL IsNight(void);
+enum TimeOfDay GetTimeOfDay(void);
+enum TimeOfDay TimeOfDayForHour(int hour);
+s64 TimeElapsed(s64 since, s64 until);
+
+#endif // POKEPLATINUM_RTC_H
diff --git a/include/struct_decls/struct_02001AF4_decl.h b/include/struct_decls/struct_02001AF4_decl.h
index ba9cb73606..aed2194813 100644
--- a/include/struct_decls/struct_02001AF4_decl.h
+++ b/include/struct_decls/struct_02001AF4_decl.h
@@ -1,6 +1,6 @@
#ifndef POKEPLATINUM_STRUCT_02001AF4_DECL_H
#define POKEPLATINUM_STRUCT_02001AF4_DECL_H
-typedef struct UnkStruct_02001AF4_t UnkStruct_02001AF4;
+typedef struct UIControlData_t UIControlData;
#endif // POKEPLATINUM_STRUCT_02001AF4_DECL_H
diff --git a/include/struct_decls/struct_0200C6E4_decl.h b/include/struct_decls/struct_0200C6E4_decl.h
index 1816e45d50..ab90f306fc 100644
--- a/include/struct_decls/struct_0200C6E4_decl.h
+++ b/include/struct_decls/struct_0200C6E4_decl.h
@@ -1,6 +1,6 @@
#ifndef POKEPLATINUM_STRUCT_0200C6E4_DECL_H
#define POKEPLATINUM_STRUCT_0200C6E4_DECL_H
-typedef struct UnkStruct_0200C6E4_t UnkStruct_0200C6E4;
+typedef struct CellTransferStateData_t CellTransferStateData;
#endif // POKEPLATINUM_STRUCT_0200C6E4_DECL_H
diff --git a/include/struct_decls/struct_0200C704_decl.h b/include/struct_decls/struct_0200C704_decl.h
index dfb3b7c231..540f026d6d 100644
--- a/include/struct_decls/struct_0200C704_decl.h
+++ b/include/struct_decls/struct_0200C704_decl.h
@@ -1,6 +1,6 @@
#ifndef POKEPLATINUM_STRUCT_0200C704_DECL_H
#define POKEPLATINUM_STRUCT_0200C704_DECL_H
-typedef struct UnkStruct_0200C704_t UnkStruct_0200C704;
+typedef struct AnimationResourceCollection_t AnimationResourceCollection;
#endif // POKEPLATINUM_STRUCT_0200C704_DECL_H
diff --git a/include/struct_decls/struct_02013A04_decl.h b/include/struct_decls/struct_02013A04_decl.h
index 1629fba7ca..90fa4c17f0 100644
--- a/include/struct_decls/struct_02013A04_decl.h
+++ b/include/struct_decls/struct_02013A04_decl.h
@@ -2,6 +2,6 @@
#define POKEPLATINUM_STRUCT_02013A04_DECL_H
#include "struct_defs/struct_02013A04_t.h"
-typedef struct UnkStruct_02013A04_t UnkStruct_02013A04;
+typedef struct ResourceMetadata_t ResourceMetadata;
#endif // POKEPLATINUM_STRUCT_02013A04_DECL_H
diff --git a/include/struct_decls/struct_020218BC_decl.h b/include/struct_decls/struct_020218BC_decl.h
index 71a2ded4c2..4e8e5c9d3b 100644
--- a/include/struct_decls/struct_020218BC_decl.h
+++ b/include/struct_decls/struct_020218BC_decl.h
@@ -1,6 +1,6 @@
#ifndef POKEPLATINUM_STRUCT_020218BC_DECL_H
#define POKEPLATINUM_STRUCT_020218BC_DECL_H
-typedef struct UnkStruct_020218BC_t UnkStruct_020218BC;
+typedef struct GraphicElementManager_t GraphicElementManager;
#endif // POKEPLATINUM_STRUCT_020218BC_DECL_H
diff --git a/include/struct_decls/struct_02022550_decl.h b/include/struct_decls/struct_02022550_decl.h
index 6065636cf7..b097e21fe6 100644
--- a/include/struct_decls/struct_02022550_decl.h
+++ b/include/struct_decls/struct_02022550_decl.h
@@ -1,6 +1,6 @@
#ifndef POKEPLATINUM_STRUCT_02022550_DECL_H
#define POKEPLATINUM_STRUCT_02022550_DECL_H
-typedef struct UnkStruct_02022550_t UnkStruct_02022550;
+typedef struct GraphicElementData_t GraphicElementData;
#endif // POKEPLATINUM_STRUCT_02022550_DECL_H
diff --git a/include/struct_decls/struct_0202CC84_decl.h b/include/struct_decls/struct_0202CC84_decl.h
deleted file mode 100644
index 9bd363927f..0000000000
--- a/include/struct_decls/struct_0202CC84_decl.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef POKEPLATINUM_STRUCT_0202CC84_DECL_H
-#define POKEPLATINUM_STRUCT_0202CC84_DECL_H
-
-typedef struct UnkStruct_0202CC84_t UnkStruct_0202CC84;
-
-#endif // POKEPLATINUM_STRUCT_0202CC84_DECL_H
diff --git a/include/struct_defs/battle_system.h b/include/struct_defs/battle_system.h
index 2c008cf9f4..76f1dfbdc6 100644
--- a/include/struct_defs/battle_system.h
+++ b/include/struct_defs/battle_system.h
@@ -19,7 +19,7 @@
#include "struct_decls/struct_02026324_decl.h"
#include "struct_defs/struct_020279FC.h"
#include "struct_decls/struct_02027F8C_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_0202CD88_decl.h"
#include "struct_decls/struct_02056B24_decl.h"
#include "struct_defs/struct_0205AA50.h"
@@ -44,7 +44,7 @@
#include
struct BattleSystem {
- UnkStruct_0207C690 * unk_00;
+ GenericPointerData * unk_00;
BGL * unk_04;
Window * unk_08;
MessageLoader * unk_0C;
@@ -65,11 +65,11 @@ struct BattleSystem {
UnkStruct_02026324 *pokedex;
PCBoxes *pcBoxes;
Party *parties[4];
- UnkStruct_0202CC84 * unk_78[4];
+ ChatotCry * unk_78[4];
UnkStruct_02007768 * unk_88;
UnkStruct_ov12_0221FCDC * unk_8C;
- UnkStruct_0200C6E4 * unk_90;
- UnkStruct_0200C704 * unk_94;
+ CellTransferStateData * unk_90;
+ AnimationResourceCollection * unk_94;
UnkStruct_02056B24 * unk_98;
UnkStruct_0206D140 * unk_9C;
u16 trainerIDs[4];
@@ -81,7 +81,7 @@ struct BattleSystem {
UnkStruct_0200C440 * unk_1A4;
UnkStruct_0200C440 * unk_1A8;
void * unk_1AC;
- UnkStruct_020279FC * unk_1B0;
+ AnimationControlFlags * unk_1B0;
UnkStruct_02027F8C * unk_1B4;
void * unk_1B8;
UnkStruct_0209C370 * unk_1BC;
diff --git a/include/struct_defs/chatot_cry.h b/include/struct_defs/chatot_cry.h
new file mode 100644
index 0000000000..37ec9ea703
--- /dev/null
+++ b/include/struct_defs/chatot_cry.h
@@ -0,0 +1,11 @@
+#ifndef POKEPLATINUM_STRUCT_DEF_CHATOT_CRY_H
+#define POKEPLATINUM_STRUCT_DEF_CHATOT_CRY_H
+
+#define CHATOT_CRY_SIZE 1000
+
+typedef struct ChatotCry {
+ BOOL exists;
+ s8 data[CHATOT_CRY_SIZE];
+} ChatotCry;
+
+#endif // POKEPLATINUM_STRUCT_DEF_CHATOT_CRY_H
diff --git a/include/struct_defs/funcptr_0207F248_sub1.h b/include/struct_defs/funcptr_0207F248_sub1.h
index 2f14c23ecd..18ba70c41b 100644
--- a/include/struct_defs/funcptr_0207F248_sub1.h
+++ b/include/struct_defs/funcptr_0207F248_sub1.h
@@ -4,8 +4,8 @@
#include "functypes/struct_0207F248_1.h"
typedef struct {
- UnkStruct_0207F248_1 unk_00;
- UnkStruct_0207F248_1 unk_04;
-} UnkFuncPtr_0207F248_sub1;
+ GameWindowLayout_1 unk_00;
+ GameWindowLayout_1 unk_04;
+} FunctionPtrPair;
#endif // POKEPLATINUM_FUNCPTR_0207F248_SUB1_H
diff --git a/include/struct_defs/struct_0200D0F4.h b/include/struct_defs/struct_0200D0F4.h
index 298cb4e8cd..070d8aead3 100644
--- a/include/struct_defs/struct_0200D0F4.h
+++ b/include/struct_defs/struct_0200D0F4.h
@@ -6,7 +6,7 @@
#include "overlay019/struct_ov19_021DA864.h"
typedef struct CellActorData {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
UnkStruct_ov19_021DA864 * unk_04;
UnkStruct_02009508 * unk_08;
int unk_0C;
diff --git a/include/struct_defs/struct_020127E8.h b/include/struct_defs/struct_020127E8.h
index 2a58d93c87..6ec5ea096a 100644
--- a/include/struct_defs/struct_020127E8.h
+++ b/include/struct_defs/struct_020127E8.h
@@ -11,9 +11,9 @@
typedef struct {
const UnkStruct_02012744 * unk_00;
const Window * unk_04;
- UnkStruct_020218BC * unk_08;
+ GraphicElementManager * unk_08;
const NNSG2dImagePaletteProxy * unk_0C;
- const UnkStruct_02022550 * unk_10;
+ const GraphicElementData * unk_10;
int unk_14;
int unk_18;
int unk_1C;
diff --git a/include/struct_defs/struct_02013A04_t.h b/include/struct_defs/struct_02013A04_t.h
index b48458eca6..a84c49eb8b 100644
--- a/include/struct_defs/struct_02013A04_t.h
+++ b/include/struct_defs/struct_02013A04_t.h
@@ -1,7 +1,7 @@
#ifndef POKEPLATINUM_STRUCT_02013A04_T_H
#define POKEPLATINUM_STRUCT_02013A04_T_H
-struct UnkStruct_02013A04_t {
+struct ResourceMetadata_t {
const void * unk_00;
u32 unk_04;
};
diff --git a/include/struct_defs/struct_020279FC.h b/include/struct_defs/struct_020279FC.h
index eaa07db8b1..04da98e9b9 100644
--- a/include/struct_defs/struct_020279FC.h
+++ b/include/struct_defs/struct_020279FC.h
@@ -9,6 +9,6 @@ typedef struct {
u16 unk_02_0 : 2;
u16 unk_02_2 : 5;
u16 : 1;
-} UnkStruct_020279FC;
+} AnimationControlFlags;
#endif // POKEPLATINUM_STRUCT_020279FC_H
diff --git a/include/struct_defs/struct_0202F298.h b/include/struct_defs/struct_0202F298.h
index 49145b584e..a3d65ae26d 100644
--- a/include/struct_defs/struct_0202F298.h
+++ b/include/struct_defs/struct_0202F298.h
@@ -14,7 +14,7 @@ typedef struct UnkStruct_0202F298_t {
UnkStruct_0202FAA8_sub1 unk_150;
UnkStruct_0202FD30 unk_1150[4];
TrainerInfo unk_1B68[4];
- UnkStruct_020279FC unk_1BE8;
+ AnimationControlFlags unk_1BE8;
u16 unk_1BEA;
UnkStruct_0202F298_sub1 unk_1BEC;
} UnkStruct_0202F298;
diff --git a/include/struct_defs/struct_0203D9B8.h b/include/struct_defs/struct_0203D9B8.h
index 3219d9e39c..b047956947 100644
--- a/include/struct_defs/struct_0203D9B8.h
+++ b/include/struct_defs/struct_0203D9B8.h
@@ -19,7 +19,7 @@ typedef struct {
TrainerInfo * unk_0C;
Party * unk_10;
UnkStruct_0207D3C0 * unk_14;
- UnkStruct_020279FC * unk_18;
+ AnimationControlFlags * unk_18;
UnkStruct_020989DC unk_1C[100];
} UnkStruct_0203D9B8;
diff --git a/include/struct_defs/struct_0203DA00.h b/include/struct_defs/struct_0203DA00.h
index d93d775429..6b6c88f6e6 100644
--- a/include/struct_defs/struct_0203DA00.h
+++ b/include/struct_defs/struct_0203DA00.h
@@ -12,7 +12,7 @@ typedef struct {
Pokemon * unk_00;
UnkStruct_02029C68 * unk_04;
const UnkStruct_02029D04 * unk_08;
- const UnkStruct_020279FC * unk_0C;
+ const AnimationControlFlags * unk_0C;
UnkStruct_0202CD88 * unk_10;
const TrainerInfo * unk_14;
BOOL * unk_18;
diff --git a/include/struct_defs/struct_0203DDFC.h b/include/struct_defs/struct_0203DDFC.h
index 841cb44d78..ffeb960d3a 100644
--- a/include/struct_defs/struct_0203DDFC.h
+++ b/include/struct_defs/struct_0203DDFC.h
@@ -8,7 +8,7 @@
typedef struct {
UnkStruct_0205C22C * unk_00;
UnkStruct_0202B628 * unk_04;
- UnkStruct_020279FC * unk_08;
+ AnimationControlFlags * unk_08;
} UnkStruct_0203DDFC;
#endif // POKEPLATINUM_STRUCT_0203DDFC_H
diff --git a/include/struct_defs/struct_0203DE34.h b/include/struct_defs/struct_0203DE34.h
index eca39929fc..ceecc6ddcc 100644
--- a/include/struct_defs/struct_0203DE34.h
+++ b/include/struct_defs/struct_0203DE34.h
@@ -10,7 +10,7 @@
typedef struct {
SaveData * unk_00;
UnkStruct_0205C22C * unk_04;
- UnkStruct_020279FC * unk_08;
+ AnimationControlFlags * unk_08;
UnkStruct_0202CD88 * unk_0C;
UnkStruct_0202B628 * unk_10;
} UnkStruct_0203DE34;
diff --git a/include/struct_defs/struct_0203E0FC.h b/include/struct_defs/struct_0203E0FC.h
index fdb392356e..c72076bec0 100644
--- a/include/struct_defs/struct_0203E0FC.h
+++ b/include/struct_defs/struct_0203E0FC.h
@@ -25,7 +25,7 @@ typedef struct {
UnkStruct_0202C878 * unk_18;
TrainerInfo * unk_1C;
SaveData * unk_20;
- UnkStruct_020279FC * unk_24;
+ AnimationControlFlags * unk_24;
UnkStruct_0202CD88 * unk_28;
UnkStruct_0202B628 * unk_2C;
UnkStruct_0207D3C0 * unk_30;
diff --git a/include/struct_defs/struct_0203E2FC.h b/include/struct_defs/struct_0203E2FC.h
index 6b10c62ce2..12465889fd 100644
--- a/include/struct_defs/struct_0203E2FC.h
+++ b/include/struct_defs/struct_0203E2FC.h
@@ -7,7 +7,7 @@
typedef struct {
Pokemon * unk_00;
- UnkStruct_020279FC * unk_04;
+ AnimationControlFlags * unk_04;
TrainerInfo * unk_08;
u16 unk_0C;
} UnkStruct_0203E2FC;
diff --git a/include/struct_defs/struct_020425E0.h b/include/struct_defs/struct_020425E0.h
index d298a3966e..f66bc7462a 100644
--- a/include/struct_defs/struct_020425E0.h
+++ b/include/struct_defs/struct_020425E0.h
@@ -5,7 +5,7 @@
typedef struct {
int unk_00;
- const UnkStruct_020279FC * unk_04;
+ const AnimationControlFlags * unk_04;
} UnkStruct_020425E0;
#endif // POKEPLATINUM_STRUCT_020425E0_H
diff --git a/include/struct_defs/struct_0206BC70.h b/include/struct_defs/struct_0206BC70.h
index b425bae48a..cad022789d 100644
--- a/include/struct_defs/struct_0206BC70.h
+++ b/include/struct_defs/struct_0206BC70.h
@@ -14,7 +14,7 @@ typedef struct {
UnkStruct_0202D764 * unk_04;
UnkStruct_02025CCC * unk_08;
SaveData * unk_0C;
- UnkStruct_020279FC * unk_10;
+ AnimationControlFlags * unk_10;
DWCUserData * unk_14;
int unk_18;
int unk_1C;
diff --git a/include/struct_defs/struct_020708E0.h b/include/struct_defs/struct_020708E0.h
index c2dac964c9..57bfe1f845 100644
--- a/include/struct_defs/struct_020708E0.h
+++ b/include/struct_defs/struct_020708E0.h
@@ -13,8 +13,8 @@
typedef struct {
Window unk_00;
Window unk_10;
- UnkStruct_02001AF4 * unk_20;
- UnkStruct_02013A04 * unk_24;
+ UIControlData * unk_20;
+ ResourceMetadata * unk_24;
u16 unk_28;
u16 unk_2A;
u32 unk_2C;
diff --git a/include/struct_defs/struct_0207AE68_t.h b/include/struct_defs/struct_0207AE68_t.h
index 3b07fa3fe9..9cd0d3a24d 100644
--- a/include/struct_defs/struct_0207AE68_t.h
+++ b/include/struct_defs/struct_0207AE68_t.h
@@ -34,9 +34,9 @@ struct UnkStruct_0207AE68_t {
Sprite * unk_1C[2];
Party * unk_24;
Pokemon * unk_28;
- UnkStruct_020279FC * unk_2C;
+ AnimationControlFlags * unk_2C;
UnkStruct_0207C8C4 * unk_30;
- UnkStruct_0207C690 * unk_34;
+ GenericPointerData * unk_34;
UnkStruct_020067E8 * unk_38;
UnkStruct_02098D38 * unk_3C;
void * unk_40;
diff --git a/include/struct_defs/struct_0207C690.h b/include/struct_defs/struct_0207C690.h
index 2d0b3822dc..952966c2e7 100644
--- a/include/struct_defs/struct_0207C690.h
+++ b/include/struct_defs/struct_0207C690.h
@@ -5,6 +5,6 @@ typedef struct {
int unk_00;
void * unk_04;
void * unk_08;
-} UnkStruct_0207C690;
+} GenericPointerData;
#endif // POKEPLATINUM_STRUCT_0207C690_H
diff --git a/include/struct_defs/struct_0207F248.h b/include/struct_defs/struct_0207F248.h
index bf355c262f..50f2c996c2 100644
--- a/include/struct_defs/struct_0207F248.h
+++ b/include/struct_defs/struct_0207F248.h
@@ -31,10 +31,10 @@ typedef struct {
u16 unk_324[96];
u16 unk_3E4[96];
u16 unk_4A4[128];
- UnkStruct_02098C44 * unk_5A4;
- UnkStruct_0200C6E4 * unk_5A8;
- UnkStruct_0200C704 * unk_5AC;
- UnkStruct_02022550 * unk_5B0[29];
+ PartyManagementData * unk_5A4;
+ CellTransferStateData * unk_5A8;
+ AnimationResourceCollection * unk_5AC;
+ GraphicElementData * unk_5B0[29];
CellActorData * unk_624[29];
UnkStruct_0200C440 * unk_698;
MessageLoader * unk_69C;
@@ -42,13 +42,13 @@ typedef struct {
Strbuf* unk_6A4;
Strbuf* unk_6A8;
Strbuf* unk_6AC[20];
- UnkStruct_02013A04 * unk_6FC;
- UnkStruct_02001AF4 * unk_700;
- UnkStruct_020831B4 unk_704[6];
- const UnkStruct_020F1DB8 * unk_7F4;
- UnkStruct_02083D1C unk_7F8;
- UnkFuncPtr_0207F248 unk_B00;
- UnkFuncPtr_0207F248_sub1 unk_B04;
+ ResourceMetadata * unk_6FC;
+ UIControlData * unk_700;
+ StrBufWrapper unk_704[6];
+ const ByteFlagSet * unk_7F4;
+ DualArrayShortData unk_7F8;
+ GenericFunctionPtr unk_B00;
+ FunctionPtrPair unk_B04;
u8 unk_B0C;
u8 unk_B0D;
u8 unk_B0E;
@@ -61,8 +61,8 @@ typedef struct {
u8 unk_B13;
u16 unk_B14[6];
HeightWeightData * unk_B20;
- UnkStruct_ov118_021D0FDC * unk_B24;
- UnkStruct_0207C690 * unk_B28;
-} UnkStruct_0207F248;
+ OverlayMetadata * unk_B24;
+ GenericPointerData * unk_B28;
+} GameWindowLayout;
#endif // POKEPLATINUM_STRUCT_0207F248_H
diff --git a/include/struct_defs/struct_02081CF4.h b/include/struct_defs/struct_02081CF4.h
index 6d789c39ff..74a54dbc45 100644
--- a/include/struct_defs/struct_02081CF4.h
+++ b/include/struct_defs/struct_02081CF4.h
@@ -5,7 +5,7 @@
#include "struct_defs/struct_0205AA50.h"
typedef struct {
- const UnkStruct_02013A04 * unk_00;
+ const ResourceMetadata * unk_00;
Window * unk_04;
u8 unk_08;
u8 unk_09;
diff --git a/include/struct_defs/struct_020831B4.h b/include/struct_defs/struct_020831B4.h
index 6e23ead896..ceeecfcf48 100644
--- a/include/struct_defs/struct_020831B4.h
+++ b/include/struct_defs/struct_020831B4.h
@@ -26,9 +26,9 @@ typedef struct {
s16 unk_1C;
s16 unk_1E;
s16 unk_20;
- UnkStruct_02022550 * unk_24;
+ GraphicElementData * unk_24;
u8 unk_28;
u8 unk_29;
-} UnkStruct_020831B4;
+} StrBufWrapper;
#endif // POKEPLATINUM_STRUCT_020831B4_H
diff --git a/include/struct_defs/struct_02083D1C.h b/include/struct_defs/struct_02083D1C.h
index f58daf44b3..3e9eb48d6c 100644
--- a/include/struct_defs/struct_02083D1C.h
+++ b/include/struct_defs/struct_02083D1C.h
@@ -9,6 +9,6 @@ typedef struct {
u8 unk_304;
u8 unk_305;
u8 unk_306;
-} UnkStruct_02083D1C;
+} DualArrayShortData;
#endif // POKEPLATINUM_STRUCT_02083D1C_H
diff --git a/include/struct_defs/struct_0208737C.h b/include/struct_defs/struct_0208737C.h
index c7ce458848..4cec1ce7ae 100644
--- a/include/struct_defs/struct_0208737C.h
+++ b/include/struct_defs/struct_0208737C.h
@@ -16,7 +16,7 @@ typedef struct {
u16 unk_1C[20];
int unk_44;
PCBoxes * unk_48;
- UnkStruct_020279FC * unk_4C;
+ AnimationControlFlags * unk_4C;
} UnkStruct_0208737C;
#endif // POKEPLATINUM_STRUCT_0208737C_H
diff --git a/include/struct_defs/struct_02089438.h b/include/struct_defs/struct_02089438.h
index f5f5518315..da99f57bcb 100644
--- a/include/struct_defs/struct_02089438.h
+++ b/include/struct_defs/struct_02089438.h
@@ -9,7 +9,7 @@ typedef struct {
int unk_04[5];
int unk_18;
Strbuf* unk_1C;
- UnkStruct_020279FC * unk_20;
+ AnimationControlFlags * unk_20;
int unk_24;
u32 unk_28;
u32 unk_2C;
diff --git a/include/struct_defs/struct_02089688_sub1.h b/include/struct_defs/struct_02089688_sub1.h
index 8f23359d6f..84eace5b2e 100644
--- a/include/struct_defs/struct_02089688_sub1.h
+++ b/include/struct_defs/struct_02089688_sub1.h
@@ -15,8 +15,8 @@
typedef struct {
NARC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
BGL * unk_0C;
PaletteSys * unk_10;
UnkStruct_02023FCC * unk_14;
diff --git a/include/struct_defs/struct_0208B878_sub1.h b/include/struct_defs/struct_0208B878_sub1.h
index 4534d56962..dab3d2cee0 100644
--- a/include/struct_defs/struct_0208B878_sub1.h
+++ b/include/struct_defs/struct_0208B878_sub1.h
@@ -8,8 +8,8 @@
typedef struct {
NARC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
PaletteSys * unk_0C;
} UnkStruct_0208B878_sub1;
diff --git a/include/struct_defs/struct_0208D7BC.h b/include/struct_defs/struct_0208D7BC.h
index 53a4badd1e..95b789828a 100644
--- a/include/struct_defs/struct_0208D7BC.h
+++ b/include/struct_defs/struct_0208D7BC.h
@@ -29,9 +29,9 @@ typedef struct {
UnkStruct_02091850 unk_350[4];
UnkStruct_02091850 unk_3B0[4];
u32 unk_410;
- UnkStruct_0200C6E4 * unk_414;
- UnkStruct_0200C704 * unk_418;
- UnkStruct_02022550 * unk_41C[77];
+ CellTransferStateData * unk_414;
+ AnimationResourceCollection * unk_418;
+ GraphicElementData * unk_41C[77];
CellActorData * unk_550[77];
UnkStruct_0200C440 * unk_684;
MessageLoader * unk_688;
diff --git a/include/struct_defs/struct_02090800.h b/include/struct_defs/struct_02090800.h
index e3317b8381..67d43abc98 100644
--- a/include/struct_defs/struct_02090800.h
+++ b/include/struct_defs/struct_02090800.h
@@ -12,11 +12,11 @@ typedef struct {
UnkStruct_0200B358 * unk_08;
Pokemon * unk_0C;
BOOL unk_10;
- UnkStruct_02090800_sub1 unk_14;
- UnkStruct_02090800_sub1 unk_1C;
- UnkStruct_02090800_sub1 unk_24;
- UnkStruct_02090800_sub1 unk_2C;
- UnkStruct_02090800_sub1 unk_34;
-} UnkStruct_02090800;
+ PokemonInfoDisplayStruct_sub1 unk_14;
+ PokemonInfoDisplayStruct_sub1 unk_1C;
+ PokemonInfoDisplayStruct_sub1 unk_24;
+ PokemonInfoDisplayStruct_sub1 unk_2C;
+ PokemonInfoDisplayStruct_sub1 unk_34;
+} PokemonInfoDisplayStruct;
#endif // POKEPLATINUM_STRUCT_02090800_H
diff --git a/include/struct_defs/struct_02090800_sub1.h b/include/struct_defs/struct_02090800_sub1.h
index 74baf68cdc..a0b7ddc81e 100644
--- a/include/struct_defs/struct_02090800_sub1.h
+++ b/include/struct_defs/struct_02090800_sub1.h
@@ -6,6 +6,6 @@
typedef struct {
int unk_00;
Strbuf* unk_04;
-} UnkStruct_02090800_sub1;
+} PokemonInfoDisplayStruct_sub1;
#endif // POKEPLATINUM_STRUCT_02090800_SUB1_H
diff --git a/include/struct_defs/struct_02093800.h b/include/struct_defs/struct_02093800.h
index 4c83f7bbf9..14cd236247 100644
--- a/include/struct_defs/struct_02093800.h
+++ b/include/struct_defs/struct_02093800.h
@@ -20,7 +20,7 @@ typedef struct {
const Strbuf* unk_0C;
const TrainerInfo * unk_10;
UnkStruct_0202A750 * unk_14;
- const UnkStruct_020279FC * unk_18;
+ const AnimationControlFlags * unk_18;
SaveData * unk_1C;
void * unk_20;
} UnkStruct_02093800;
diff --git a/include/struct_defs/struct_02093BBC.h b/include/struct_defs/struct_02093BBC.h
index 49361dcec1..a7a976b122 100644
--- a/include/struct_defs/struct_02093BBC.h
+++ b/include/struct_defs/struct_02093BBC.h
@@ -17,7 +17,7 @@ typedef struct {
int unk_14;
const UnkStruct_02029D04 * unk_18;
UnkStruct_02095C60 * unk_1C;
- const UnkStruct_020279FC * unk_20;
+ const AnimationControlFlags * unk_20;
const TrainerInfo * unk_24;
} UnkStruct_02093BBC;
diff --git a/include/struct_defs/struct_02095C48.h b/include/struct_defs/struct_02095C48.h
index 0e05888020..b067121631 100644
--- a/include/struct_defs/struct_02095C48.h
+++ b/include/struct_defs/struct_02095C48.h
@@ -30,7 +30,7 @@ typedef struct {
u8 unk_569[1024];
u8 unk_969[4][1024];
u8 padding_1969[3];
- const UnkStruct_020279FC * unk_196C;
+ const AnimationControlFlags * unk_196C;
SaveData * unk_1970;
Pokemon * unk_1974;
const TrainerInfo * unk_1978;
diff --git a/include/struct_defs/struct_02095E80_t.h b/include/struct_defs/struct_02095E80_t.h
index 0784c2fc17..d186acd68c 100644
--- a/include/struct_defs/struct_02095E80_t.h
+++ b/include/struct_defs/struct_02095E80_t.h
@@ -19,7 +19,7 @@
#include "struct_defs/struct_02027F8C.h"
#include "struct_decls/struct_02027F8C_decl.h"
#include "struct_decls/struct_0202B370_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_0203CDB0_decl.h"
#include "struct_defs/struct_0205AA50.h"
#include "struct_decls/struct_party_decl.h"
@@ -71,23 +71,23 @@ struct UnkStruct_02095E80_t {
Strbuf* unk_188;
Strbuf* unk_18C;
Strbuf* unk_190;
- UnkStruct_020218BC * unk_194;
+ GraphicElementManager * unk_194;
UnkStruct_0200C738 unk_198;
UnkStruct_02009714 * unk_324[4];
UnkStruct_02009DC8 * unk_334[2][4];
UnkStruct_ov19_021DA864 unk_354;
UnkStruct_ov19_021DA864 unk_378;
- UnkStruct_02022550 * unk_39C[14];
- UnkStruct_02022550 * unk_3D4[12];
- UnkStruct_02022550 * unk_404[12];
- UnkStruct_02022550 * unk_434[12];
- UnkStruct_02022550 * unk_464[6];
- UnkStruct_02022550 * unk_47C;
+ GraphicElementData * unk_39C[14];
+ GraphicElementData * unk_3D4[12];
+ GraphicElementData * unk_404[12];
+ GraphicElementData * unk_434[12];
+ GraphicElementData * unk_464[6];
+ GraphicElementData * unk_47C;
SysTask * unk_480[7];
Window unk_49C[34];
- UnkStruct_02001AF4 * unk_6BC;
- UnkStruct_02013A04 * unk_6C0;
- UnkStruct_02001AF4 * unk_6C4;
+ UIControlData * unk_6BC;
+ ResourceMetadata * unk_6C0;
+ UIControlData * unk_6C4;
int unk_6C8;
int unk_6CC;
int unk_6D0;
@@ -110,7 +110,7 @@ struct UnkStruct_02095E80_t {
int (* unk_226C)(UnkStruct_02095E80 *);
Party * unk_2270;
Party * unk_2274;
- UnkStruct_0202CC84 * unk_2278;
+ ChatotCry * unk_2278;
UnkStruct_02027F8C * unk_227C;
UnkStruct_02027F8C unk_2280;
int unk_2308;
@@ -127,7 +127,7 @@ struct UnkStruct_02095E80_t {
int unk_36C8;
UnkStruct_0200B358 * unk_36CC;
MessageLoader * unk_36D0;
- UnkStruct_02013A04 * unk_36D4;
+ ResourceMetadata * unk_36D4;
UnkStruct_0200112C * unk_36D8;
Window unk_36DC;
UnkStruct_0202B370 * unk_36EC;
diff --git a/include/struct_defs/struct_02095EAC_t.h b/include/struct_defs/struct_02095EAC_t.h
index 44959a8640..9a3106d0d5 100644
--- a/include/struct_defs/struct_02095EAC_t.h
+++ b/include/struct_defs/struct_02095EAC_t.h
@@ -29,15 +29,15 @@ struct UnkStruct_02095EAC_t {
Strbuf* unk_28;
Strbuf* unk_2C;
int unk_30;
- UnkStruct_020218BC * unk_34;
+ GraphicElementManager * unk_34;
UnkStruct_0200C738 unk_38;
UnkStruct_02009714 * unk_1C4[4];
UnkStruct_02009DC8 * unk_1D4[2][4];
UnkStruct_ov19_021DA864 unk_1F4;
UnkStruct_ov19_021DA864 unk_218;
- UnkStruct_02022550 * unk_23C[14];
- UnkStruct_02022550 * unk_274[14];
- UnkStruct_02022550 * unk_2AC[12];
+ GraphicElementData * unk_23C[14];
+ GraphicElementData * unk_274[14];
+ GraphicElementData * unk_2AC[12];
Window unk_2DC[5];
Window unk_32C;
Window unk_33C;
diff --git a/include/struct_defs/struct_020961E8_t.h b/include/struct_defs/struct_020961E8_t.h
index 510d16f5fd..b123b2c5fe 100644
--- a/include/struct_defs/struct_020961E8_t.h
+++ b/include/struct_defs/struct_020961E8_t.h
@@ -36,21 +36,21 @@ struct UnkStruct_020961E8_t {
Strbuf* unk_44;
Strbuf* unk_48;
int unk_4C;
- UnkStruct_020218BC * unk_50;
+ GraphicElementManager * unk_50;
UnkStruct_0200C738 unk_54;
UnkStruct_02009714 * unk_1E0[4];
UnkStruct_02009DC8 * unk_1F0[3][4];
UnkStruct_ov19_021DA864 unk_220;
UnkStruct_ov19_021DA864 unk_244;
UnkStruct_ov19_021DA864 unk_268;
- UnkStruct_02022550 * unk_28C[14];
- UnkStruct_02022550 * unk_2C4[14];
+ GraphicElementData * unk_28C[14];
+ GraphicElementData * unk_2C4[14];
Window unk_2FC[5];
Window unk_34C;
Window unk_35C;
Window unk_36C;
Window * unk_37C[2];
- UnkStruct_02001AF4 * unk_384;
+ UIControlData * unk_384;
void * unk_388[2];
NNSG2dCharacterData * unk_390[2];
void * unk_398[2];
diff --git a/include/struct_defs/struct_020978D8.h b/include/struct_defs/struct_020978D8.h
index 412b963dcd..e1cc2075cb 100644
--- a/include/struct_defs/struct_020978D8.h
+++ b/include/struct_defs/struct_020978D8.h
@@ -10,7 +10,7 @@ typedef struct {
u16 unk_00;
u8 unk_02;
u8 unk_03;
- UnkStruct_020279FC * unk_04;
+ AnimationControlFlags * unk_04;
u32 unk_08;
u8 unk_0C;
u8 unk_0D;
diff --git a/include/struct_defs/struct_02097F18.h b/include/struct_defs/struct_02097F18.h
index 9442cfa757..a7661dd22d 100644
--- a/include/struct_defs/struct_02097F18.h
+++ b/include/struct_defs/struct_02097F18.h
@@ -12,7 +12,7 @@ typedef struct {
Pokemon * unk_04[6];
Party * unk_1C;
UnkStruct_0202CA1C * unk_20;
- UnkStruct_020279FC * unk_24;
+ AnimationControlFlags * unk_24;
SaveData * unk_28;
u8 unk_2C;
u8 unk_2D;
diff --git a/include/struct_defs/struct_020985E4.h b/include/struct_defs/struct_020985E4.h
index 12bb2536d6..eeba60e837 100644
--- a/include/struct_defs/struct_020985E4.h
+++ b/include/struct_defs/struct_020985E4.h
@@ -6,7 +6,7 @@
typedef struct {
int unk_00;
- UnkStruct_020279FC * unk_04;
+ AnimationControlFlags * unk_04;
const TrainerInfo * unk_08;
} UnkStruct_020985E4;
diff --git a/include/struct_defs/struct_02098C44.h b/include/struct_defs/struct_02098C44.h
index cbe1880d36..2430254beb 100644
--- a/include/struct_defs/struct_02098C44.h
+++ b/include/struct_defs/struct_02098C44.h
@@ -8,7 +8,7 @@ typedef struct {
Party * unk_00;
void * unk_04;
void * unk_08;
- UnkStruct_020279FC * unk_0C;
+ AnimationControlFlags * unk_0C;
void * unk_10;
void * unk_14;
void * unk_18;
@@ -31,6 +31,6 @@ typedef struct {
u16 unk_38;
u8 padding_3A[2];
int unk_3C;
-} UnkStruct_02098C44;
+} PartyManagementData;
#endif // POKEPLATINUM_STRUCT_02098C44_H
diff --git a/include/struct_defs/struct_02098D38.h b/include/struct_defs/struct_02098D38.h
index d70881c43c..8360ca5130 100644
--- a/include/struct_defs/struct_02098D38.h
+++ b/include/struct_defs/struct_02098D38.h
@@ -2,11 +2,11 @@
#define POKEPLATINUM_STRUCT_02098D38_H
#include "struct_defs/struct_020279FC.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
typedef struct {
void * unk_00;
- UnkStruct_020279FC * unk_04;
+ AnimationControlFlags * unk_04;
const u16 * unk_08;
u32 unk_0C;
u8 unk_10;
@@ -22,7 +22,7 @@ typedef struct {
u32 unk_1C;
void * unk_20;
void * unk_24;
- UnkStruct_0202CC84 * unk_28;
+ ChatotCry * unk_28;
BOOL unk_2C;
} UnkStruct_02098D38;
diff --git a/include/struct_defs/struct_0209903C.h b/include/struct_defs/struct_0209903C.h
index 4d6434265f..b6596f3587 100644
--- a/include/struct_defs/struct_0209903C.h
+++ b/include/struct_defs/struct_0209903C.h
@@ -15,7 +15,7 @@ typedef struct {
u16 unk_0A;
u16 unk_0C;
u16 unk_0E;
- UnkStruct_020218BC * unk_10;
+ GraphicElementManager * unk_10;
UnkStruct_0200C738 unk_14;
UnkStruct_02009508 * unk_1A0;
UnkStruct_02009714 * unk_1A4[4];
diff --git a/include/struct_defs/struct_020997B8.h b/include/struct_defs/struct_020997B8.h
index 889a186087..226d1595ec 100644
--- a/include/struct_defs/struct_020997B8.h
+++ b/include/struct_defs/struct_020997B8.h
@@ -8,7 +8,7 @@
typedef struct {
Pokemon * unk_00;
TrainerInfo * unk_04;
- UnkStruct_020279FC * unk_08;
+ AnimationControlFlags * unk_08;
u16 * unk_0C;
u16 unk_10;
u16 unk_12;
diff --git a/include/struct_defs/struct_0209BBA4.h b/include/struct_defs/struct_0209BBA4.h
index d765b0d955..12890184ad 100644
--- a/include/struct_defs/struct_0209BBA4.h
+++ b/include/struct_defs/struct_0209BBA4.h
@@ -31,7 +31,7 @@ typedef struct {
u8 unk_9F;
u8 unk_A0;
u8 unk_A1[4];
- UnkStruct_02098C44 * unk_A8;
+ PartyManagementData * unk_A8;
UnkStruct_02098D38 * unk_AC;
u16 * unk_B0;
} UnkStruct_0209BBA4;
diff --git a/include/struct_defs/struct_0209C194_1.h b/include/struct_defs/struct_0209C194_1.h
index 002f6a6da5..200b273086 100644
--- a/include/struct_defs/struct_0209C194_1.h
+++ b/include/struct_defs/struct_0209C194_1.h
@@ -13,7 +13,7 @@ typedef struct {
int unk_04;
SaveData * unk_08;
UnkStruct_0205C22C * unk_0C;
- UnkStruct_020279FC * unk_10;
+ AnimationControlFlags * unk_10;
UnkStruct_0202CD88 * unk_14;
UnkStruct_0202B628 * unk_18;
UnkStruct_0203CDB0 * unk_1C;
diff --git a/include/struct_defs/struct_020F1DB8.h b/include/struct_defs/struct_020F1DB8.h
index 3e72289d6d..10f82ab7bc 100644
--- a/include/struct_defs/struct_020F1DB8.h
+++ b/include/struct_defs/struct_020F1DB8.h
@@ -10,6 +10,6 @@ typedef struct {
u8 unk_05;
u8 unk_06;
u8 unk_07;
-} UnkStruct_020F1DB8;
+} ByteFlagSet;
#endif // POKEPLATINUM_STRUCT_020F1DB8_H
diff --git a/include/unk_02000C88.h b/include/unk_02000C88.h
index 2349c5ab1e..485a2524de 100644
--- a/include/unk_02000C88.h
+++ b/include/unk_02000C88.h
@@ -6,7 +6,7 @@
#include
void sub_02000EC4(FSOverlayID param0, const UnkStruct_0208BE5C * param1);
-void sub_02001028(void);
-void sub_0200106C(void);
+void InitRNG(void);
+void HandleConsoleFold(void);
#endif // POKEPLATINUM_UNK_02000C88_H
diff --git a/include/unk_0200112C.h b/include/unk_0200112C.h
index 8bb25effbd..884949ccee 100644
--- a/include/unk_0200112C.h
+++ b/include/unk_0200112C.h
@@ -17,6 +17,6 @@ void sub_020014DC(UnkStruct_0200112C * param0, u16 * param1, u16 * param2);
u8 sub_020014F0(UnkStruct_0200112C * param0);
u32 sub_020014F8(UnkStruct_0200112C * param0, u16 param1);
u32 sub_02001504(UnkStruct_0200112C * param0, u8 param1);
-void sub_020015CC(UnkStruct_0200112C * param0, UnkStruct_02013A04 * param1);
+void sub_020015CC(UnkStruct_0200112C * param0, ResourceMetadata * param1);
#endif // POKEPLATINUM_UNK_0200112C_H
diff --git a/include/unk_02001AF4.h b/include/unk_02001AF4.h
index caa859e62a..84a2dbdf5a 100644
--- a/include/unk_02001AF4.h
+++ b/include/unk_02001AF4.h
@@ -7,20 +7,20 @@
#include "struct_defs/struct_02081CF4.h"
#include "overlay061/struct_ov61_0222C884.h"
-UnkStruct_02001AF4 * sub_02001AF4(const UnkStruct_02081CF4 * param0, u8 param1, u8 param2, u8 param3, u8 param4, u32 param5);
-UnkStruct_02001AF4 * sub_02001B7C(const UnkStruct_02081CF4 * param0, u8 param1, u8 param2, u8 param3, u8 param4, u32 param5);
-UnkStruct_02001AF4 * sub_02001B9C(const UnkStruct_02081CF4 * param0, u8 param1, u8 param2);
-void sub_02001BC4(UnkStruct_02001AF4 * param0, u8 * param1);
-u32 sub_02001BE0(UnkStruct_02001AF4 * param0);
-u32 sub_02001C94(UnkStruct_02001AF4 * param0, u16 param1);
-u32 sub_02001D44(UnkStruct_02001AF4 * param0, u8 param1);
-u8 sub_02001DC4(UnkStruct_02001AF4 * param0);
-u8 sub_02001DC8(UnkStruct_02001AF4 * param0);
-UnkStruct_02001AF4 * sub_02002054(BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u8 param4, u32 param5);
-UnkStruct_02001AF4 * sub_02002100(BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u32 param4);
-u32 sub_02002114(UnkStruct_02001AF4 * param0, u32 param1);
-u32 sub_02002134(UnkStruct_02001AF4 * param0, u8 param1, u32 param2);
-void sub_02002154(UnkStruct_02001AF4 * param0, u32 param1);
+UIControlData * sub_02001AF4(const UnkStruct_02081CF4 * param0, u8 param1, u8 param2, u8 param3, u8 param4, u32 param5);
+UIControlData * sub_02001B7C(const UnkStruct_02081CF4 * param0, u8 param1, u8 param2, u8 param3, u8 param4, u32 param5);
+UIControlData * sub_02001B9C(const UnkStruct_02081CF4 * param0, u8 param1, u8 param2);
+void sub_02001BC4(UIControlData * param0, u8 * param1);
+u32 sub_02001BE0(UIControlData * param0);
+u32 sub_02001C94(UIControlData * param0, u16 param1);
+u32 sub_02001D44(UIControlData * param0, u8 param1);
+u8 sub_02001DC4(UIControlData * param0);
+u8 sub_02001DC8(UIControlData * param0);
+UIControlData * sub_02002054(BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u8 param4, u32 param5);
+UIControlData * sub_02002100(BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u32 param4);
+u32 sub_02002114(UIControlData * param0, u32 param1);
+u32 sub_02002134(UIControlData * param0, u8 param1, u32 param2);
+void sub_02002154(UIControlData * param0, u32 param1);
void sub_02002180(Window * param0, u32 param1, u32 param2);
#endif // POKEPLATINUM_UNK_02001AF4_H
diff --git a/include/unk_02003B60.h b/include/unk_02003B60.h
index 3c02baf761..bbd8f82a8d 100644
--- a/include/unk_02003B60.h
+++ b/include/unk_02003B60.h
@@ -3,12 +3,12 @@
#include "struct_decls/struct_02003D54_decl.h"
#include "struct_defs/struct_020279FC.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include
-void sub_02003B60(UnkStruct_0202CC84 * param0, UnkStruct_020279FC * param1);
-void sub_02003BD8(void);
+void sub_02003B60(ChatotCry * param0, AnimationControlFlags * param1);
+void UpdateSound(void);
void sub_02003D0C(int param0);
UnkStruct_02003D54 * sub_02003D54(void);
void * sub_02003D5C(int param0);
diff --git a/include/unk_02005474.h b/include/unk_02005474.h
index f8edb8d720..c90ed9ca28 100644
--- a/include/unk_02005474.h
+++ b/include/unk_02005474.h
@@ -25,8 +25,8 @@ BOOL sub_02005844(u16 param0, u8 param1);
BOOL sub_0200590C(u16 param0, u8 param1, u8 param2);
void sub_0200592C(int param0);
int sub_0200598C(void);
-BOOL sub_020059D0(int param0, u16 param1, int param2, int param3, int param4, u8 param5);
-void sub_02005F4C(int param0, u16 param1, int param2, int param3, int param4, u8 param5, u8 param6);
+BOOL Sound_PlayPokemonCry(int param0, u16 param1, int param2, int param3, int param4, u8 param5);
+void Sound_PlayDelayedPokemonCry(int param0, u16 param1, int param2, int param3, int param4, u8 param5, u8 param6);
void sub_0200605C(void);
BOOL sub_02006150(u16 param0);
int sub_0200619C(void);
diff --git a/include/unk_02006224.h b/include/unk_02006224.h
index e59d2b18d6..0d71317125 100644
--- a/include/unk_02006224.h
+++ b/include/unk_02006224.h
@@ -1,21 +1,21 @@
#ifndef POKEPLATINUM_UNK_02006224_H
#define POKEPLATINUM_UNK_02006224_H
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include
-BOOL sub_02006224(void);
-BOOL sub_02006260(const UnkStruct_0202CC84 * param0);
-BOOL sub_0200629C(const UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3);
-void sub_02006350(void);
-MICResult sub_0200637C(void);
-MICResult sub_020063B8(void);
-void sub_020063C0(UnkStruct_0202CC84 * param0);
-void sub_020063D4(u8 param0);
-BOOL sub_020063E4(UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3);
-BOOL sub_02006438(UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3, u8 param4);
-int Sound_Chatter(UnkStruct_0202CC84 * param0);
-BOOL sub_020064C8(int param0);
+BOOL CheckMicRecordingStatus(void);
+BOOL IsChatotCryStructReadyForProcessing(const ChatotCry * param0);
+BOOL ProcessAudioInput(const ChatotCry * param0, u32 param1, int param2, int param3);
+void ResetMicStatusFlags(void);
+MICResult StartMicSampling(void);
+MICResult StopMicSampling(void);
+void StoreMicDataInChatotCryStruct(ChatotCry * param0);
+void Sound_FlagDefaultChatotCry(u8 param0);
+BOOL Sound_PlayChatotCry(ChatotCry * param0, u32 param1, int param2, int param3);
+BOOL Sound_PlayDelayedChatotCry(ChatotCry * param0, u32 param1, int param2, int param3, u8 param4);
+int Sound_Chatter(ChatotCry * param0);
+BOOL Sound_CanPlayChatotCry(int param0);
#endif // POKEPLATINUM_UNK_02006224_H
diff --git a/include/unk_020093B4.h b/include/unk_020093B4.h
index 292788f295..83a60a0b86 100644
--- a/include/unk_020093B4.h
+++ b/include/unk_020093B4.h
@@ -14,7 +14,7 @@ void sub_020093B4(UnkStruct_ov19_021DA864 * param0, int param1, int param2, int
void sub_020094F0(UnkStruct_ov19_021DA864 * param0);
UnkStruct_02009508 * sub_02009508(const UnkStruct_02009508_1 * param0, int param1, UnkStruct_02009714 * param2, UnkStruct_02009714 * param3, UnkStruct_02009714 * param4, UnkStruct_02009714 * param5, UnkStruct_02009714 * param6, UnkStruct_02009714 * param7);
void sub_020095A8(UnkStruct_02009508 * param0);
-UnkStruct_020218BC * sub_020095C4(int param0, UnkStruct_0200C738 * param1, int param2);
+GraphicElementManager * sub_020095C4(int param0, UnkStruct_0200C738 * param1, int param2);
void sub_0200962C(UnkStruct_0200C738 * param0, fx32 param1, fx32 param2);
void sub_0200964C(UnkStruct_0200C738 * param0, fx32 param1, fx32 param2);
void sub_0200966C(u32 param0, GXOBJVRamModeChar param1);
diff --git a/include/unk_0200C6E4.h b/include/unk_0200C6E4.h
index 3fec191424..bde8127e93 100644
--- a/include/unk_0200C6E4.h
+++ b/include/unk_0200C6E4.h
@@ -19,46 +19,46 @@
#include
#include
-UnkStruct_0200C6E4 * sub_0200C6E4(int param0);
-UnkStruct_0200C704 * sub_0200C704(UnkStruct_0200C6E4 * param0);
-UnkStruct_0200C738 * sub_0200C738(UnkStruct_0200C6E4 * param0);
-BOOL sub_0200C73C(UnkStruct_0200C6E4 * param0, const UnkStruct_ov104_0224133C * param1, const UnkStruct_ov104_022412F4 * param2, int param3);
-BOOL sub_0200C7C0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2);
-void sub_0200C7E4(UnkStruct_02022550 * param0);
-void sub_0200C7EC(UnkStruct_0200C704 * param0);
+CellTransferStateData * sub_0200C6E4(int param0);
+AnimationResourceCollection * sub_0200C704(CellTransferStateData * param0);
+UnkStruct_0200C738 * sub_0200C738(CellTransferStateData * param0);
+BOOL sub_0200C73C(CellTransferStateData * param0, const UnkStruct_ov104_0224133C * param1, const UnkStruct_ov104_022412F4 * param2, int param3);
+BOOL sub_0200C7C0(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2);
+void sub_0200C7E4(GraphicElementData * param0);
+void sub_0200C7EC(AnimationResourceCollection * param0);
void sub_0200C800(void);
void sub_0200C808(void);
-void sub_0200C810(UnkStruct_0200C704 * param0);
-void sub_0200C81C(UnkStruct_0200C704 * param0);
-void sub_0200C82C(UnkStruct_0200C704 * param0);
-void sub_0200C880(UnkStruct_0200C6E4 * param0);
-void sub_0200C8A0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1);
-void sub_0200C8B0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1);
-void sub_0200C8D4(UnkStruct_0200C6E4 * param0);
-BOOL sub_0200C8F0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, const UnkStruct_ov7_0224F2EC * param2);
-UnkStruct_02022550 * sub_0200CA08(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, const UnkStruct_ov7_0224F358 * param2);
-UnkStruct_02022550 * sub_0200CA44(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, s16 param3, s16 param4, s16 param5, u16 param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13);
-BOOL sub_0200CB30(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, const UnkStruct_ov104_02241308 * param2);
-BOOL sub_0200CBDC(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5, int param6);
-BOOL sub_0200CC3C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5, int param6);
-s8 sub_0200CC9C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5, int param6, int param7);
-s8 sub_0200CD0C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5, int param6, int param7);
-u8 sub_0200CD7C(PaletteSys * param0, int param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, int param4, int param5, int param6, int param7, int param8, int param9);
-u8 sub_0200CDC4(PaletteSys * param0, int param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, NARC * param4, int param5, int param6, int param7, int param8, int param9);
-BOOL sub_0200CE0C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5);
-BOOL sub_0200CE24(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5);
-BOOL sub_0200CE3C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5);
-BOOL sub_0200CE54(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5);
-CellActorData * sub_0200CE6C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, const UnkStruct_ov104_0223F9E0 * param2);
-const NNSG2dImagePaletteProxy * sub_0200D04C(UnkStruct_0200C704 * param0, int param1);
-u32 sub_0200D05C(UnkStruct_0200C704 * param0, int param1, NNS_G2D_VRAM_TYPE param2);
-BOOL sub_0200D070(UnkStruct_0200C704 * param0, int param1);
-BOOL sub_0200D080(UnkStruct_0200C704 * param0, int param1);
-BOOL sub_0200D090(UnkStruct_0200C704 * param0, int param1);
-BOOL sub_0200D0A0(UnkStruct_0200C704 * param0, int param1);
-void sub_0200D0B0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1);
+void sub_0200C810(AnimationResourceCollection * param0);
+void sub_0200C81C(AnimationResourceCollection * param0);
+void sub_0200C82C(AnimationResourceCollection * param0);
+void sub_0200C880(CellTransferStateData * param0);
+void sub_0200C8A0(CellTransferStateData * param0, AnimationResourceCollection * param1);
+void sub_0200C8B0(CellTransferStateData * param0, AnimationResourceCollection * param1);
+void sub_0200C8D4(CellTransferStateData * param0);
+BOOL sub_0200C8F0(CellTransferStateData * param0, AnimationResourceCollection * param1, const UnkStruct_ov7_0224F2EC * param2);
+GraphicElementData * sub_0200CA08(CellTransferStateData * param0, AnimationResourceCollection * param1, const UnkStruct_ov7_0224F358 * param2);
+GraphicElementData * sub_0200CA44(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, s16 param3, s16 param4, s16 param5, u16 param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13);
+BOOL sub_0200CB30(CellTransferStateData * param0, AnimationResourceCollection * param1, const UnkStruct_ov104_02241308 * param2);
+BOOL sub_0200CBDC(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5, int param6);
+BOOL sub_0200CC3C(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5, int param6);
+s8 sub_0200CC9C(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5, int param6, int param7);
+s8 sub_0200CD0C(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5, int param6, int param7);
+u8 sub_0200CD7C(PaletteSys * param0, int param1, CellTransferStateData * param2, AnimationResourceCollection * param3, int param4, int param5, int param6, int param7, int param8, int param9);
+u8 sub_0200CDC4(PaletteSys * param0, int param1, CellTransferStateData * param2, AnimationResourceCollection * param3, NARC * param4, int param5, int param6, int param7, int param8, int param9);
+BOOL sub_0200CE0C(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5);
+BOOL sub_0200CE24(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5);
+BOOL sub_0200CE3C(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5);
+BOOL sub_0200CE54(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5);
+CellActorData * sub_0200CE6C(CellTransferStateData * param0, AnimationResourceCollection * param1, const UnkStruct_ov104_0223F9E0 * param2);
+const NNSG2dImagePaletteProxy * sub_0200D04C(AnimationResourceCollection * param0, int param1);
+u32 sub_0200D05C(AnimationResourceCollection * param0, int param1, NNS_G2D_VRAM_TYPE param2);
+BOOL sub_0200D070(AnimationResourceCollection * param0, int param1);
+BOOL sub_0200D080(AnimationResourceCollection * param0, int param1);
+BOOL sub_0200D090(AnimationResourceCollection * param0, int param1);
+BOOL sub_0200D0A0(AnimationResourceCollection * param0, int param1);
+void sub_0200D0B0(CellTransferStateData * param0, AnimationResourceCollection * param1);
void sub_0200D0F4(CellActorData * param0);
-void sub_0200D324(UnkStruct_02022550 * param0);
+void sub_0200D324(GraphicElementData * param0);
void sub_0200D330(CellActorData * param0);
void sub_0200D33C(CellActorData * param0);
void sub_0200D34C(CellActorData * param0, fx32 param1);
@@ -66,72 +66,72 @@ u32 sub_0200D358(CellActorData * param0);
void sub_0200D364(CellActorData * param0, u32 param1);
void sub_0200D370(CellActorData * param0, u32 param1);
u32 sub_0200D37C(CellActorData * param0);
-void sub_0200D388(UnkStruct_02022550 * param0, int param1);
+void sub_0200D388(GraphicElementData * param0, int param1);
void sub_0200D390(CellActorData * param0, int param1);
-void sub_0200D39C(UnkStruct_02022550 * param0, fx32 param1);
+void sub_0200D39C(GraphicElementData * param0, fx32 param1);
void sub_0200D3A4(CellActorData * param0, fx32 param1);
-BOOL sub_0200D3B0(UnkStruct_02022550 * param0);
+BOOL sub_0200D3B0(GraphicElementData * param0);
BOOL sub_0200D3B8(CellActorData * param0);
-void sub_0200D3C4(UnkStruct_02022550 * param0, u16 param1);
+void sub_0200D3C4(GraphicElementData * param0, u16 param1);
void sub_0200D3CC(CellActorData * param0, u16 param1);
-u16 sub_0200D3D8(UnkStruct_02022550 * param0);
+u16 sub_0200D3D8(GraphicElementData * param0);
u16 sub_0200D3E0(CellActorData * param0);
-void sub_0200D3EC(UnkStruct_02022550 * param0, int param1);
+void sub_0200D3EC(GraphicElementData * param0, int param1);
void sub_0200D3F4(CellActorData * param0, int param1);
-int sub_0200D400(UnkStruct_02022550 * param0);
+int sub_0200D400(GraphicElementData * param0);
int sub_0200D408(CellActorData * param0);
-void sub_0200D414(UnkStruct_02022550 * param0, int param1);
+void sub_0200D414(GraphicElementData * param0, int param1);
void sub_0200D41C(CellActorData * param0, int param1);
-void sub_0200D428(UnkStruct_02022550 * param0, int param1);
+void sub_0200D428(GraphicElementData * param0, int param1);
void sub_0200D430(CellActorData * param0, int param1);
int sub_0200D43C(CellActorData * param0);
-void sub_0200D448(UnkStruct_02022550 * param0, int param1);
+void sub_0200D448(GraphicElementData * param0, int param1);
int sub_0200D454(CellActorData * param0);
void sub_0200D460(CellActorData * param0, int param1);
-void sub_0200D46C(UnkStruct_02022550 * param0, int param1);
+void sub_0200D46C(GraphicElementData * param0, int param1);
void sub_0200D474(CellActorData * param0, int param1);
-u32 sub_0200D480(UnkStruct_02022550 * param0);
+u32 sub_0200D480(GraphicElementData * param0);
u32 sub_0200D488(CellActorData * param0);
-void sub_0200D494(UnkStruct_02022550 * param0, s16 param1, s16 param2);
+void sub_0200D494(GraphicElementData * param0, s16 param1, s16 param2);
void sub_0200D4C4(CellActorData * param0, s16 param1, s16 param2);
-void sub_0200D4D0(UnkStruct_02022550 * param0, s16 param1, s16 param2, fx32 param3);
+void sub_0200D4D0(GraphicElementData * param0, s16 param1, s16 param2, fx32 param3);
void sub_0200D500(CellActorData * param0, s16 param1, s16 param2, fx32 param3);
-void sub_0200D50C(UnkStruct_02022550 * param0, s16 * param1, s16 * param2);
+void sub_0200D50C(GraphicElementData * param0, s16 * param1, s16 * param2);
void sub_0200D550(CellActorData * param0, s16 * param1, s16 * param2);
-void sub_0200D55C(UnkStruct_02022550 * param0, s16 * param1, s16 * param2, fx32 param3);
+void sub_0200D55C(GraphicElementData * param0, s16 * param1, s16 * param2, fx32 param3);
void sub_0200D5A0(CellActorData * param0, s16 * param1, s16 * param2, fx32 param3);
-void sub_0200D5AC(UnkStruct_02022550 * param0, s16 param1, s16 param2);
+void sub_0200D5AC(GraphicElementData * param0, s16 param1, s16 param2);
void sub_0200D5DC(CellActorData * param0, s16 param1, s16 param2);
void sub_0200D5E8(CellActorData * param0, fx32 param1, fx32 param2);
void sub_0200D614(CellActorData * param0, fx32 param1, fx32 param2);
void sub_0200D638(CellActorData * param0, fx32 * param1, fx32 * param2);
void sub_0200D650(CellActorData * param0, fx32 param1, fx32 param2, fx32 param3);
void sub_0200D67C(CellActorData * param0, fx32 * param1, fx32 * param2, fx32 param3);
-void sub_0200D69C(UnkStruct_02022550 * param0, int param1);
+void sub_0200D69C(GraphicElementData * param0, int param1);
void sub_0200D6A4(CellActorData * param0, int param1);
-void sub_0200D6B0(UnkStruct_02022550 * param0, f32 param1, f32 param2);
+void sub_0200D6B0(GraphicElementData * param0, f32 param1, f32 param2);
void sub_0200D6E8(CellActorData * param0, f32 param1, f32 param2);
-void sub_0200D6F4(UnkStruct_02022550 * param0, f32 param1, f32 param2);
+void sub_0200D6F4(GraphicElementData * param0, f32 param1, f32 param2);
void sub_0200D74C(CellActorData * param0, f32 param1, f32 param2);
-void sub_0200D758(UnkStruct_02022550 * param0, f32 * param1, f32 * param2);
+void sub_0200D758(GraphicElementData * param0, f32 * param1, f32 * param2);
void sub_0200D788(CellActorData * param0, f32 * param1, f32 * param2);
-void sub_0200D794(UnkStruct_02022550 * param0, u16 param1);
+void sub_0200D794(GraphicElementData * param0, u16 param1);
void sub_0200D79C(CellActorData * param0, u16 param1);
-void sub_0200D7A8(UnkStruct_02022550 * param0, s32 param1);
+void sub_0200D7A8(GraphicElementData * param0, s32 param1);
void sub_0200D7C0(CellActorData * param0, s32 param1);
-void sub_0200D7CC(UnkStruct_02022550 * param0, int param1);
+void sub_0200D7CC(GraphicElementData * param0, int param1);
void sub_0200D7D4(CellActorData * param0, int param1);
void sub_0200D7E0(CellActorData * param0, s16 param1, s16 param2);
void sub_0200D7FC(CellActorData * param0, BOOL param1);
-void sub_0200D808(UnkStruct_02022550 * param0, GXOamMode param1);
+void sub_0200D808(GraphicElementData * param0, GXOamMode param1);
void sub_0200D810(CellActorData * param0, GXOamMode param1);
u32 sub_0200D81C(CellActorData * param0);
-BOOL sub_0200D828(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5, int param6);
-BOOL sub_0200D888(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5, int param6);
-BOOL sub_0200D8E8(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, BOOL param4, int param5, int param6);
-void sub_0200D948(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5);
-void sub_0200D97C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5);
-UnkStruct_020218BC * sub_0200D9B0(UnkStruct_0200C704 * param0);
-void sub_0200D9B4(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, BOOL param4, int param5);
+BOOL sub_0200D828(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5, int param6);
+BOOL sub_0200D888(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5, int param6);
+BOOL sub_0200D8E8(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, BOOL param4, int param5, int param6);
+void sub_0200D948(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5);
+void sub_0200D97C(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5);
+GraphicElementManager * sub_0200D9B0(AnimationResourceCollection * param0);
+void sub_0200D9B4(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, BOOL param4, int param5);
#endif // POKEPLATINUM_UNK_0200C6E4_H
diff --git a/include/unk_02012744.h b/include/unk_02012744.h
index 8508a25e3c..9a174e94eb 100644
--- a/include/unk_02012744.h
+++ b/include/unk_02012744.h
@@ -32,6 +32,6 @@ FontOAM * sub_02012B60(const UnkStruct_020127E8 * param0, const UnkStruct_02012B
void sub_02012BD8(FontOAM * param0);
void sub_02012BE0(FontOAM * param0, const UnkStruct_02012B20 * param1, const Window * param2, int param3);
void sub_02012C60(const Window * param0, int param1, int param2, int param3, int param4, char * param5);
-void sub_020131E0(FontOAM * param0, const UnkStruct_02022550 * param1);
+void sub_020131E0(FontOAM * param0, const GraphicElementData * param1);
#endif // POKEPLATINUM_UNK_02012744_H
diff --git a/include/unk_0201378C.h b/include/unk_0201378C.h
deleted file mode 100644
index 8e0b9d5070..0000000000
--- a/include/unk_0201378C.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef POKEPLATINUM_UNK_0201378C_H
-#define POKEPLATINUM_UNK_0201378C_H
-
-
-#include
-
-void sub_0201378C(void);
-void sub_020137C4(void);
-void sub_0201384C(RTCDate * param0, RTCTime * param1);
-void sub_02013880(RTCTime * param0);
-void sub_020138A4(RTCDate * param0);
-int sub_020138C8(void);
-s64 sub_020138EC(void);
-int sub_02013900(const RTCDate * param0);
-BOOL sub_02013948(void);
-int sub_02013960(void);
-int sub_02013974(int param0);
-s64 sub_0201398C(s64 param0, s64 param1);
-
-#endif // POKEPLATINUM_UNK_0201378C_H
diff --git a/include/unk_02013A04.h b/include/unk_02013A04.h
index 5bcd020511..9a8387e498 100644
--- a/include/unk_02013A04.h
+++ b/include/unk_02013A04.h
@@ -5,11 +5,11 @@
#include "struct_decls/struct_02013A04_decl.h"
#include "strbuf.h"
-UnkStruct_02013A04 * sub_02013A04(u32 param0, u32 param1);
-void sub_02013A3C(UnkStruct_02013A04 * param0);
-void sub_02013A4C(UnkStruct_02013A04 * param0, const MessageLoader * param1, u32 param2, u32 param3);
-void sub_02013A6C(UnkStruct_02013A04 * param0, const Strbuf *param1, u32 param2);
-void sub_02013A90(UnkStruct_02013A04 * param0, const UnkStruct_02013A04 * param1);
-void sub_02013AE8(UnkStruct_02013A04 * param0);
+ResourceMetadata * sub_02013A04(u32 param0, u32 param1);
+void sub_02013A3C(ResourceMetadata * param0);
+void sub_02013A4C(ResourceMetadata * param0, const MessageLoader * param1, u32 param2, u32 param3);
+void sub_02013A6C(ResourceMetadata * param0, const Strbuf *param1, u32 param2);
+void sub_02013A90(ResourceMetadata * param0, const ResourceMetadata * param1);
+void sub_02013AE8(ResourceMetadata * param0);
#endif // POKEPLATINUM_UNK_02013A04_H
diff --git a/include/unk_02017728.h b/include/unk_02017728.h
index 9b55946f1c..c33ae273cd 100644
--- a/include/unk_02017728.h
+++ b/include/unk_02017728.h
@@ -1,27 +1,27 @@
#ifndef POKEPLATINUM_UNK_02017728_H
#define POKEPLATINUM_UNK_02017728_H
-#include "functypes/funcptr_02017798.h"
+#include "core_sys.h"
void sub_02017728(void);
-void sub_02017798(UnkFuncPtr_02017798 param0, void * param1);
-void sub_020177A4(void);
-BOOL sub_020177BC(UnkFuncPtr_02017798 param0, void * param1);
+void SetMainCallback(Callback cb, void *data);
+void DisableHBlank(void);
+BOOL SetHBlankCallback(Callback cb, void *data);
void sub_0201789C(void);
-void sub_020179E4(void);
-void * ReadFileToHeap(int heapID, const char * filename);
-void ReadFileToBuffer(const char * filename, void ** buf);
+void InitGraphics(void);
+void * ReadFileToHeap(int heapID, const char *filename);
+void ReadFileToBuffer(const char *filename, void **buf);
void sub_02017ACC(void);
void InitKeypadAndTouchpad(void);
void sub_02017B70(int param0);
-void sub_02017B7C(u8 param0);
-void sub_02017B8C(u8 param0);
+void SleepLock(u8 param0);
+void SleepUnlock(u8 param0);
void ReadKeypadAndTouchpad(void);
void SetAutorepeat(int rate, int delay);
-void sub_02017DE0(u8 param0);
-void sub_02017DF0(u8 param0);
-void sub_02017E00(int param0);
-void sub_02017E2C(void);
-BOOL sub_02017E54(void);
+void ResetLock(u8 param0);
+void ResetUnlock(u8 param0);
+void InitHeapCanary(int param0);
+void FreeHeapCanary(void);
+BOOL HeapCanaryOK(void);
#endif // POKEPLATINUM_UNK_02017728_H
diff --git a/include/unk_0201E010.h b/include/unk_0201E010.h
index 1b4c777262..02010247d2 100644
--- a/include/unk_0201E010.h
+++ b/include/unk_0201E010.h
@@ -3,8 +3,8 @@
#include "struct_defs/struct_020F1DB8.h"
-void sub_0201E010(const UnkStruct_020F1DB8 * param0, u8 * param1, u8 * param2);
-void sub_0201E01C(const UnkStruct_020F1DB8 * param0, u8 * param1, u8 * param2);
-u8 sub_0201E028(const UnkStruct_020F1DB8 * param0, u8 * param1, u8 * param2, u8 * param3, u8 * param4, u8 param5, u8 param6);
+void sub_0201E010(const ByteFlagSet * param0, u8 * param1, u8 * param2);
+void sub_0201E01C(const ByteFlagSet * param0, u8 * param1, u8 * param2);
+u8 sub_0201E028(const ByteFlagSet * param0, u8 * param1, u8 * param2, u8 * param3, u8 * param4, u8 param5, u8 param6);
#endif // POKEPLATINUM_UNK_0201E010_H
diff --git a/include/unk_0201E3D8.h b/include/unk_0201E3D8.h
index 3269eef29a..9371f09234 100644
--- a/include/unk_0201E3D8.h
+++ b/include/unk_0201E3D8.h
@@ -11,7 +11,7 @@ u32 sub_0201E450(u32 param0);
u32 sub_0201E530(void);
u32 sub_0201E564(UnkStruct_ov72_0223E2A8 * param0, u32 param1, u32 param2);
void sub_0201E5C0(TPData * param0, u32 param1);
-void sub_0201E5FC(void);
-void sub_0201E630(void);
+void AfterSleep(void);
+void BeforeSleep(void);
#endif // POKEPLATINUM_UNK_0201E3D8_H
diff --git a/include/unk_020218BC.h b/include/unk_020218BC.h
index 2b9a8cab11..5d537f9027 100644
--- a/include/unk_020218BC.h
+++ b/include/unk_020218BC.h
@@ -11,59 +11,59 @@
#include
#include
-UnkStruct_020218BC * sub_020218BC(const UnkStruct_020095C4 * param0);
-BOOL sub_02021964(UnkStruct_020218BC * param0);
-BOOL sub_020219A4(UnkStruct_020218BC * param0, u8 param1);
-BOOL sub_020219C0(UnkStruct_020218BC * param0);
-void sub_020219F8(const UnkStruct_020218BC * param0);
-void sub_02021A78(UnkStruct_02022550 * param0);
-UnkStruct_02022550 * sub_02021AA0(const UnkStruct_ov115_02261520 * param0);
-UnkStruct_02022550 * sub_02021B90(const UnkStruct_ov83_0223D9A8 * param0);
-void sub_02021BD4(UnkStruct_02022550 * param0);
-void sub_02021C50(UnkStruct_02022550 * param0, const VecFx32 * param1);
-void sub_02021C60(UnkStruct_02022550 * param0, const VecFx32 * param1);
-void sub_02021C70(UnkStruct_02022550 * param0, const VecFx32 * param1);
-void sub_02021C80(UnkStruct_02022550 * param0, const VecFx32 * param1, int param2);
-void sub_02021C94(UnkStruct_02022550 * param0, u16 param1);
-void sub_02021C98(UnkStruct_02022550 * param0, u16 param1, int param2);
-void sub_02021CAC(UnkStruct_02022550 * param0, int param1);
-void sub_02021CC8(UnkStruct_02022550 * param0, int param1);
-void sub_02021CE4(UnkStruct_02022550 * param0, fx32 param1);
-void sub_02021CF8(UnkStruct_02022550 * param0, int param1);
-void sub_02021D0C(UnkStruct_02022550 * param0, int param1);
-const VecFx32 * sub_02021D28(const UnkStruct_02022550 * param0);
-const VecFx32 * sub_02021D2C(const UnkStruct_02022550 * param0);
-u16 sub_02021D30(const UnkStruct_02022550 * param0);
-int sub_02021D34(const UnkStruct_02022550 * param0);
-int sub_02021D3C(const UnkStruct_02022550 * param0);
-u32 sub_02021D44(const UnkStruct_02022550 * param0);
-void sub_02021D6C(UnkStruct_02022550 * param0, u32 param1);
-void sub_02021DCC(UnkStruct_02022550 * param0, u32 param1);
-void sub_02021DE0(UnkStruct_02022550 * param0);
-u32 sub_02021E24(const UnkStruct_02022550 * param0);
-void sub_02021E2C(UnkStruct_02022550 * param0, fx32 param1);
-void sub_02021E50(UnkStruct_02022550 * param0, u16 param1);
-u16 sub_02021E74(const UnkStruct_02022550 * param0);
-void sub_02021E80(UnkStruct_02022550 * param0, u8 param1);
-u8 sub_02021E88(const UnkStruct_02022550 * param0);
-void sub_02021E90(UnkStruct_02022550 * param0, u32 param1);
-void sub_02021EC4(UnkStruct_02022550 * param0, u32 param1);
-u32 sub_02021EE8(const UnkStruct_02022550 * param0);
-void sub_02021EF0(UnkStruct_02022550 * param0, u32 param1);
-void sub_02021F24(UnkStruct_02022550 * param0, u32 param1);
-u32 sub_02021F48(const UnkStruct_02022550 * param0);
-void sub_02021F58(UnkStruct_02022550 * param0, u32 param1);
-u32 sub_02021F74(const UnkStruct_02022550 * param0);
-void sub_02021F7C(UnkStruct_02022550 * param0, const NNSG2dImageProxy * param1);
-NNSG2dImageProxy * sub_02021F98(UnkStruct_02022550 * param0);
-NNSG2dImagePaletteProxy * sub_02021F9C(UnkStruct_02022550 * param0);
-void sub_02021FA0(UnkStruct_02022550 * param0, BOOL param1);
-NNS_G2D_VRAM_TYPE sub_02021FC8(const UnkStruct_02022550 * param0);
-BOOL sub_02021FD0(UnkStruct_02022550 * param0);
-void sub_02021FE0(UnkStruct_02022550 * param0, GXOamMode param1);
+GraphicElementManager * sub_020218BC(const UnkStruct_020095C4 * param0);
+BOOL sub_02021964(GraphicElementManager * param0);
+BOOL sub_020219A4(GraphicElementManager * param0, u8 param1);
+BOOL sub_020219C0(GraphicElementManager * param0);
+void sub_020219F8(const GraphicElementManager * param0);
+void sub_02021A78(GraphicElementData * param0);
+GraphicElementData * sub_02021AA0(const UnkStruct_ov115_02261520 * param0);
+GraphicElementData * sub_02021B90(const UnkStruct_ov83_0223D9A8 * param0);
+void sub_02021BD4(GraphicElementData * param0);
+void sub_02021C50(GraphicElementData * param0, const VecFx32 * param1);
+void sub_02021C60(GraphicElementData * param0, const VecFx32 * param1);
+void sub_02021C70(GraphicElementData * param0, const VecFx32 * param1);
+void sub_02021C80(GraphicElementData * param0, const VecFx32 * param1, int param2);
+void sub_02021C94(GraphicElementData * param0, u16 param1);
+void sub_02021C98(GraphicElementData * param0, u16 param1, int param2);
+void sub_02021CAC(GraphicElementData * param0, int param1);
+void sub_02021CC8(GraphicElementData * param0, int param1);
+void sub_02021CE4(GraphicElementData * param0, fx32 param1);
+void sub_02021CF8(GraphicElementData * param0, int param1);
+void sub_02021D0C(GraphicElementData * param0, int param1);
+const VecFx32 * sub_02021D28(const GraphicElementData * param0);
+const VecFx32 * sub_02021D2C(const GraphicElementData * param0);
+u16 sub_02021D30(const GraphicElementData * param0);
+int sub_02021D34(const GraphicElementData * param0);
+int sub_02021D3C(const GraphicElementData * param0);
+u32 sub_02021D44(const GraphicElementData * param0);
+void sub_02021D6C(GraphicElementData * param0, u32 param1);
+void sub_02021DCC(GraphicElementData * param0, u32 param1);
+void sub_02021DE0(GraphicElementData * param0);
+u32 sub_02021E24(const GraphicElementData * param0);
+void sub_02021E2C(GraphicElementData * param0, fx32 param1);
+void sub_02021E50(GraphicElementData * param0, u16 param1);
+u16 sub_02021E74(const GraphicElementData * param0);
+void sub_02021E80(GraphicElementData * param0, u8 param1);
+u8 sub_02021E88(const GraphicElementData * param0);
+void sub_02021E90(GraphicElementData * param0, u32 param1);
+void sub_02021EC4(GraphicElementData * param0, u32 param1);
+u32 sub_02021EE8(const GraphicElementData * param0);
+void sub_02021EF0(GraphicElementData * param0, u32 param1);
+void sub_02021F24(GraphicElementData * param0, u32 param1);
+u32 sub_02021F48(const GraphicElementData * param0);
+void sub_02021F58(GraphicElementData * param0, u32 param1);
+u32 sub_02021F74(const GraphicElementData * param0);
+void sub_02021F7C(GraphicElementData * param0, const NNSG2dImageProxy * param1);
+NNSG2dImageProxy * sub_02021F98(GraphicElementData * param0);
+NNSG2dImagePaletteProxy * sub_02021F9C(GraphicElementData * param0);
+void sub_02021FA0(GraphicElementData * param0, BOOL param1);
+NNS_G2D_VRAM_TYPE sub_02021FC8(const GraphicElementData * param0);
+BOOL sub_02021FD0(GraphicElementData * param0);
+void sub_02021FE0(GraphicElementData * param0, GXOamMode param1);
void sub_02022014(int param0);
void sub_0202204C(int param0);
-u32 sub_0202207C(const UnkStruct_02022550 * param0, u32 param1, u32 param2);
-u32 sub_020220F4(const UnkStruct_02022550 * param0);
+u32 sub_0202207C(const GraphicElementData * param0, u32 param1, u32 param2);
+u32 sub_020220F4(const GraphicElementData * param0);
#endif // POKEPLATINUM_UNK_020218BC_H
diff --git a/include/unk_02024220.h b/include/unk_02024220.h
index 906a6842ba..eb9de9ac14 100644
--- a/include/unk_02024220.h
+++ b/include/unk_02024220.h
@@ -4,7 +4,7 @@
#include "functypes/funcptr_02024220.h"
#include "struct_defs/struct_0207C690.h"
-UnkStruct_0207C690 * sub_02024220(u32 param0, int param1, int param2, int param3, int param4, UnkFuncPtr_02024220 param5);
-void sub_020242C4(UnkStruct_0207C690 * param0);
+GenericPointerData * sub_02024220(u32 param0, int param1, int param2, int param3, int param4, UnkFuncPtr_02024220 param5);
+void sub_020242C4(GenericPointerData * param0);
#endif // POKEPLATINUM_UNK_02024220_H
diff --git a/include/unk_02025E08.h b/include/unk_02025E08.h
index 8cb49ca08d..ede0f5e41d 100644
--- a/include/unk_02025E08.h
+++ b/include/unk_02025E08.h
@@ -10,7 +10,7 @@
int Player_SaveSize(void);
void Player_Init(UnkStruct_02025E0C * param0);
TrainerInfo * sub_02025E38(SaveData * param0);
-UnkStruct_020279FC * sub_02025E44(SaveData * param0);
+AnimationControlFlags * sub_02025E44(SaveData * param0);
u16 * sub_02025E50(SaveData * param0);
UnkStruct_02025E5C * sub_02025E5C(SaveData * param0);
diff --git a/include/unk_020279FC.h b/include/unk_020279FC.h
index f7a9f8f55a..450e0c1c8c 100644
--- a/include/unk_020279FC.h
+++ b/include/unk_020279FC.h
@@ -4,22 +4,22 @@
#include "struct_defs/struct_020279FC.h"
#include "struct_decls/struct_021C0794_decl.h"
-UnkStruct_020279FC * sub_020279FC(u32 param0);
-void sub_02027A10(const UnkStruct_020279FC * param0, UnkStruct_020279FC * param1);
-void sub_02027A1C(UnkStruct_020279FC * param0);
+AnimationControlFlags * sub_020279FC(u32 param0);
+void sub_02027A10(const AnimationControlFlags * param0, AnimationControlFlags * param1);
+void sub_02027A1C(AnimationControlFlags * param0);
void sub_02027A68(SaveData * param0, int param1);
-int sub_02027AA4(const UnkStruct_020279FC * param0);
-void sub_02027AAC(UnkStruct_020279FC * param0, int param1);
-u8 sub_02027AC0(const UnkStruct_020279FC * param0);
-int sub_02027ADC(const UnkStruct_020279FC * param0);
-void sub_02027AE4(UnkStruct_020279FC * param0, int param1);
-int GameConfig_BattleAnimations(const UnkStruct_020279FC * param0);
-void sub_02027B00(UnkStruct_020279FC * param0, int param1);
-int sub_02027B14(const UnkStruct_020279FC * param0);
-void sub_02027B1C(UnkStruct_020279FC * param0, int param1);
-int sub_02027B30(const UnkStruct_020279FC * param0);
-void sub_02027B38(UnkStruct_020279FC * param0, int param1);
-int sub_02027B50(const UnkStruct_020279FC * param0);
-void sub_02027B58(UnkStruct_020279FC * param0, int param1);
+int sub_02027AA4(const AnimationControlFlags * param0);
+void sub_02027AAC(AnimationControlFlags * param0, int param1);
+u8 sub_02027AC0(const AnimationControlFlags * param0);
+int sub_02027ADC(const AnimationControlFlags * param0);
+void sub_02027AE4(AnimationControlFlags * param0, int param1);
+int GameConfig_BattleAnimations(const AnimationControlFlags * param0);
+void sub_02027B00(AnimationControlFlags * param0, int param1);
+int sub_02027B14(const AnimationControlFlags * param0);
+void sub_02027B1C(AnimationControlFlags * param0, int param1);
+int sub_02027B30(const AnimationControlFlags * param0);
+void sub_02027B38(AnimationControlFlags * param0, int param1);
+int sub_02027B50(const AnimationControlFlags * param0);
+void sub_02027B58(AnimationControlFlags * param0, int param1);
#endif // POKEPLATINUM_UNK_020279FC_H
diff --git a/include/unk_0202CC64.h b/include/unk_0202CC64.h
index 091097227d..876c753443 100644
--- a/include/unk_0202CC64.h
+++ b/include/unk_0202CC64.h
@@ -1,18 +1,18 @@
#ifndef POKEPLATINUM_UNK_0202CC64_H
#define POKEPLATINUM_UNK_0202CC64_H
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_021C0794_decl.h"
int ChatotCry_SaveSize(void);
-void ChatotCry_Init(UnkStruct_0202CC84 * param0);
-UnkStruct_0202CC84 * sub_0202CC84(int param0);
-UnkStruct_0202CC84 * sub_0202CC98(SaveData * param0);
-BOOL sub_0202CCA4(const UnkStruct_0202CC84 * param0);
-void sub_0202CCA8(UnkStruct_0202CC84 * param0);
-const void * sub_0202CCB0(const UnkStruct_0202CC84 * param0);
-void sub_0202CCB4(s8 * param0, const s8 * param1);
-void sub_0202CCEC(UnkStruct_0202CC84 * param0, const s8 * param1);
-void sub_0202CD3C(UnkStruct_0202CC84 * param0, const UnkStruct_0202CC84 * param1);
+void ChatotCry_Init(ChatotCry * param0);
+ChatotCry * AllocateAndInitializeChatotCryData(int param0);
+ChatotCry * GetChatotCryDataFromSave(SaveData * param0);
+BOOL IsChatotCryDataValid(const ChatotCry * param0);
+void ResetChatotCryDataStatus(ChatotCry * param0);
+const void * GetChatotCryAudioBuffer(const ChatotCry * param0);
+void ProcessChatotCryAudioData(s8 * param0, const s8 * param1);
+void StoreProcessedAudioInChatotCryData(ChatotCry * param0, const s8 * param1);
+void CopyChatotCryData(ChatotCry * param0, const ChatotCry * param1);
#endif // POKEPLATINUM_UNK_0202CC64_H
diff --git a/include/unk_0203D1B8.h b/include/unk_0203D1B8.h
index 34251e043b..ab390823a7 100644
--- a/include/unk_0203D1B8.h
+++ b/include/unk_0203D1B8.h
@@ -85,7 +85,7 @@ void sub_0203E414(UnkStruct_020508D4 * param0, int param1);
void sub_0203E518(UnkStruct_020508D4 * param0);
void * sub_0203E53C(UnkStruct_0203CDB0 * param0, int param1, int param2);
void * sub_0203E564(UnkStruct_0203CDB0 * param0, u8 param1, u8 param2, u16 param3, int param4);
-UnkStruct_02098C44 * sub_0203E598(UnkStruct_0203CDB0 * param0, int param1, int param2);
+PartyManagementData * sub_0203E598(UnkStruct_0203CDB0 * param0, int param1, int param2);
void * sub_0203E608(UnkStruct_0203CDB0 * param0, int param1);
void * sub_0203E63C(int param0, UnkStruct_0203CDB0 * param1, u16 param2, u16 param3);
void sub_0203E6C0(UnkStruct_0203CDB0 * param0, int param1, int param2);
diff --git a/include/unk_02051D8C.h b/include/unk_02051D8C.h
index 28b5082912..4114c8c26c 100644
--- a/include/unk_02051D8C.h
+++ b/include/unk_02051D8C.h
@@ -3,7 +3,7 @@
#include "trainer_info.h"
#include "struct_decls/struct_0202B628_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_0203CDB0_decl.h"
#include "pokemon.h"
#include "struct_decls/struct_party_decl.h"
@@ -20,7 +20,7 @@ void sub_020520A4(BattleParams * param0);
void sub_0205213C(BattleParams * param0, Pokemon * param1, int param2);
void sub_02052164(BattleParams * param0, const Party * param1, int param2);
void sub_02052184(BattleParams * param0, const TrainerInfo * param1, int param2);
-void sub_020521A4(BattleParams * param0, const UnkStruct_0202CC84 * param1, int param2);
+void sub_020521A4(BattleParams * param0, const ChatotCry * param1, int param2);
void sub_020521B8(BattleParams * param0, const UnkStruct_0203CDB0 * param1, SaveData * param2, int param3, UnkStruct_0202B628 * param4, UnkStruct_0207D99C * param5, UnkStruct_0209C370 * param6);
void sub_02052314(BattleParams * param0, const UnkStruct_0203CDB0 * param1);
void sub_02052348(BattleParams * param0, const UnkStruct_0203CDB0 * param1, int param2);
diff --git a/include/unk_0205D8CC.h b/include/unk_0205D8CC.h
index 2abe746826..75775c8983 100644
--- a/include/unk_0205D8CC.h
+++ b/include/unk_0205D8CC.h
@@ -8,9 +8,9 @@
void sub_0205D8CC(u32 param0, u32 param1);
void sub_0205D8F4(BGL * param0, Window * param1, u32 param2);
-void sub_0205D944(Window * param0, const UnkStruct_020279FC * param1);
+void sub_0205D944(Window * param0, const AnimationControlFlags * param1);
void sub_0205D988(Window * param0);
-u8 sub_0205D994(Window * param0, Strbuf *param1, const UnkStruct_020279FC * param2, u8 param3);
+u8 sub_0205D994(Window * param0, Strbuf *param1, const AnimationControlFlags * param2, u8 param3);
u8 sub_0205D9CC(Window * param0, Strbuf *param1, int param2, int param3, u8 param4, int param5);
u8 sub_0205DA04(u8 param0);
void sub_0205DA1C(BGL * param0, Window * param1, u16 param2, u16 param3);
diff --git a/include/unk_0207AE68.h b/include/unk_0207AE68.h
index fea8803d55..efa3ef7e42 100644
--- a/include/unk_0207AE68.h
+++ b/include/unk_0207AE68.h
@@ -10,7 +10,7 @@
#include "struct_decls/struct_0207AE68_decl.h"
#include "struct_decls/struct_0207D3C0_decl.h"
-UnkStruct_0207AE68 * sub_0207AE68(Party * param0, Pokemon * param1, int param2, UnkStruct_020279FC * param3, int param4, UnkStruct_02026324 * param5, UnkStruct_0207D3C0 * param6, UnkStruct_0202CD88 * param7, UnkStruct_02056B24 * param8, int param9, int param10, int param11);
+UnkStruct_0207AE68 * sub_0207AE68(Party * param0, Pokemon * param1, int param2, AnimationControlFlags * param3, int param4, UnkStruct_02026324 * param5, UnkStruct_0207D3C0 * param6, UnkStruct_0202CD88 * param7, UnkStruct_02056B24 * param8, int param9, int param10, int param11);
BOOL sub_0207B0D0(UnkStruct_0207AE68 * param0);
void sub_0207B0E0(UnkStruct_0207AE68 * param0);
diff --git a/include/unk_0207C63C.h b/include/unk_0207C63C.h
index 4629d6bd91..da90e4e098 100644
--- a/include/unk_0207C63C.h
+++ b/include/unk_0207C63C.h
@@ -7,7 +7,7 @@
void sub_0207C63C(void);
void sub_0207C664(void);
-UnkStruct_0207C690 * sub_0207C690(int param0);
+GenericPointerData * sub_0207C690(int param0);
void sub_0207C6AC(void);
void sub_0207C730(void);
void sub_0207C770(void);
diff --git a/include/unk_0207C908.h b/include/unk_0207C908.h
index d3cf3b1854..476aedf023 100644
--- a/include/unk_0207C908.h
+++ b/include/unk_0207C908.h
@@ -15,20 +15,20 @@ u32 sub_0207C924(void);
u32 sub_0207C928(void);
u8 sub_0207C92C(int param0);
u32 sub_0207C944(void);
-void sub_0207C948(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4);
-void sub_0207C97C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NNS_G2D_VRAM_TYPE param2, u32 param3);
-void sub_0207C9B0(PaletteSys * param0, int param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, NNS_G2D_VRAM_TYPE param4, u32 param5);
-void sub_0207C9EC(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u32 param2, u32 param3);
-void sub_0207CA34(UnkStruct_0200C704 * param0, u32 param1);
-void sub_0207CA3C(UnkStruct_0200C704 * param0, u32 param1);
-void sub_0207CA44(UnkStruct_0200C704 * param0, u32 param1, u32 param2);
-CellActorData * sub_0207CA58(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, const UnkStruct_ov104_0223F9E0 * param3);
+void sub_0207C948(CellTransferStateData * param0, AnimationResourceCollection * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4);
+void sub_0207C97C(CellTransferStateData * param0, AnimationResourceCollection * param1, NNS_G2D_VRAM_TYPE param2, u32 param3);
+void sub_0207C9B0(PaletteSys * param0, int param1, CellTransferStateData * param2, AnimationResourceCollection * param3, NNS_G2D_VRAM_TYPE param4, u32 param5);
+void sub_0207C9EC(CellTransferStateData * param0, AnimationResourceCollection * param1, u32 param2, u32 param3);
+void sub_0207CA34(AnimationResourceCollection * param0, u32 param1);
+void sub_0207CA3C(AnimationResourceCollection * param0, u32 param1);
+void sub_0207CA44(AnimationResourceCollection * param0, u32 param1, u32 param2);
+CellActorData * sub_0207CA58(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, const UnkStruct_ov104_0223F9E0 * param3);
void sub_0207CA88(CellActorData * param0);
u32 sub_0207CA90(int param0);
u8 sub_0207CAA8(int param0);
u32 sub_0207CAC0(void);
-void sub_0207CAC4(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4);
-void sub_0207CAF8(UnkStruct_0200C704 * param0, u32 param1);
+void sub_0207CAC4(CellTransferStateData * param0, AnimationResourceCollection * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4);
+void sub_0207CAF8(AnimationResourceCollection * param0, u32 param1);
void sub_0207CB00(CellActorData * param0);
#endif // POKEPLATINUM_UNK_0207C908_H
diff --git a/include/unk_0207E0B8.h b/include/unk_0207E0B8.h
index 3450bdaf18..8fe21eb467 100644
--- a/include/unk_0207E0B8.h
+++ b/include/unk_0207E0B8.h
@@ -3,23 +3,23 @@
#include "struct_defs/struct_0207F248.h"
-void sub_0207EA74(UnkStruct_0207F248 * param0, int param1);
-u8 sub_0207EF04(UnkStruct_0207F248 * param0, u8 param1);
-u8 sub_0207EF14(UnkStruct_0207F248 * param0, u8 param1);
-const u16 * sub_0207F248(UnkStruct_0207F248 * param0);
-void sub_0207F8F8(UnkStruct_0207F248 * param0, u8 param1);
-void sub_0207FD68(UnkStruct_0207F248 * param0, u8 param1);
-u8 sub_02080354(UnkStruct_0207F248 * param0, u8 param1);
-u8 sub_02080404(UnkStruct_0207F248 * param0, u8 param1);
-u8 sub_02080488(UnkStruct_0207F248 * param0, u8 param1);
+void sub_0207EA74(GameWindowLayout * param0, int param1);
+u8 sub_0207EF04(GameWindowLayout * param0, u8 param1);
+u8 sub_0207EF14(GameWindowLayout * param0, u8 param1);
+const u16 * sub_0207F248(GameWindowLayout * param0);
+void sub_0207F8F8(GameWindowLayout * param0, u8 param1);
+void sub_0207FD68(GameWindowLayout * param0, u8 param1);
+u8 sub_02080354(GameWindowLayout * param0, u8 param1);
+u8 sub_02080404(GameWindowLayout * param0, u8 param1);
+u8 sub_02080488(GameWindowLayout * param0, u8 param1);
u8 sub_020805D0(u8 param0, u8 param1);
-u8 sub_02080BCC(u16 param0);
+u8 GetElementIndex(u16 param0);
u32 sub_02081930(void);
u32 sub_02081934(void);
u32 sub_02081938(void);
u32 sub_0208193C(void);
-void sub_02081940(u32 param0, u16 * param1, u16 * param2, u16 * param3);
-void sub_020819B4(UnkStruct_0207F248 * param0);
-void sub_020819CC(UnkStruct_0207F248 * param0);
+void LoadScreenDataFromNARC(u32 param0, u16 * param1, u16 * param2, u16 * param3);
+void LoadOverlay118(GameWindowLayout * param0);
+void UnloadOverlay118(GameWindowLayout * param0);
#endif // POKEPLATINUM_UNK_0207E0B8_H
diff --git a/include/unk_020819DC.h b/include/unk_020819DC.h
index d11864531d..289790be29 100644
--- a/include/unk_020819DC.h
+++ b/include/unk_020819DC.h
@@ -4,34 +4,34 @@
#include "pokemon.h"
#include "struct_defs/struct_0207F248.h"
-void sub_02081A24(UnkStruct_0207F248 * param0);
-void sub_02081B90(UnkStruct_0207F248 * param0);
-void sub_02081BC0(UnkStruct_0207F248 * param0);
-void sub_02081CAC(UnkStruct_0207F248 * param0, u16 param1, u8 param2);
-void sub_02081CF4(UnkStruct_0207F248 * param0, const u8 * param1, u8 param2);
-void sub_02081E08(UnkStruct_0207F248 * param0);
-void sub_02081ED8(UnkStruct_0207F248 * param0, Pokemon * param1, u32 param2);
-void sub_02081F2C(UnkStruct_0207F248 * param0, u8 param1);
-void sub_02081FFC(UnkStruct_0207F248 * param0, u8 param1);
-void sub_02082058(UnkStruct_0207F248 * param0, u8 param1);
-void sub_02082098(UnkStruct_0207F248 * param0, u8 param1);
-void sub_02082104(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020821F8(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020822BC(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020822F4(UnkStruct_0207F248 * param0, u8 param1);
-void sub_0208232C(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020823C4(UnkStruct_0207F248 * param0, u8 param1);
-void sub_0208245C(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020824C0(UnkStruct_0207F248 * param0, u8 param1);
-void sub_02082508(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020825B4(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020826E0(UnkStruct_0207F248 * param0, u32 param1, u8 param2);
-void sub_020826F4(UnkStruct_0207F248 * param0, u32 param1, u8 param2);
-void sub_02082708(UnkStruct_0207F248 * param0, u32 param1, u8 param2);
-void sub_0208274C(UnkStruct_0207F248 * param0);
-void sub_020827EC(UnkStruct_0207F248 * param0);
-void sub_020829DC(UnkStruct_0207F248 * param0);
-void sub_02082B58(UnkStruct_0207F248 * param0);
-void sub_02082C10(UnkStruct_0207F248 * param0);
+void sub_02081A24(GameWindowLayout * param0);
+void sub_02081B90(GameWindowLayout * param0);
+void sub_02081BC0(GameWindowLayout * param0);
+void sub_02081CAC(GameWindowLayout * param0, u16 param1, u8 param2);
+void sub_02081CF4(GameWindowLayout * param0, const u8 * param1, u8 param2);
+void sub_02081E08(GameWindowLayout * param0);
+void sub_02081ED8(GameWindowLayout * param0, Pokemon * param1, u32 param2);
+void sub_02081F2C(GameWindowLayout * param0, u8 param1);
+void sub_02081FFC(GameWindowLayout * param0, u8 param1);
+void sub_02082058(GameWindowLayout * param0, u8 param1);
+void sub_02082098(GameWindowLayout * param0, u8 param1);
+void sub_02082104(GameWindowLayout * param0, u8 param1);
+void sub_020821F8(GameWindowLayout * param0, u8 param1);
+void sub_020822BC(GameWindowLayout * param0, u8 param1);
+void sub_020822F4(GameWindowLayout * param0, u8 param1);
+void sub_0208232C(GameWindowLayout * param0, u8 param1);
+void sub_020823C4(GameWindowLayout * param0, u8 param1);
+void sub_0208245C(GameWindowLayout * param0, u8 param1);
+void sub_020824C0(GameWindowLayout * param0, u8 param1);
+void sub_02082508(GameWindowLayout * param0, u8 param1);
+void sub_020825B4(GameWindowLayout * param0, u8 param1);
+void sub_020826E0(GameWindowLayout * param0, u32 param1, u8 param2);
+void sub_020826F4(GameWindowLayout * param0, u32 param1, u8 param2);
+void sub_02082708(GameWindowLayout * param0, u32 param1, u8 param2);
+void sub_0208274C(GameWindowLayout * param0);
+void sub_020827EC(GameWindowLayout * param0);
+void sub_020829DC(GameWindowLayout * param0);
+void sub_02082B58(GameWindowLayout * param0);
+void sub_02082C10(GameWindowLayout * param0);
#endif // POKEPLATINUM_UNK_020819DC_H
diff --git a/include/unk_02082C2C.h b/include/unk_02082C2C.h
index a0f79d133d..51a2903775 100644
--- a/include/unk_02082C2C.h
+++ b/include/unk_02082C2C.h
@@ -4,21 +4,21 @@
#include "struct_decls/struct_02006C24_decl.h"
#include "struct_defs/struct_0207F248.h"
-void sub_02082C2C(UnkStruct_0207F248 * param0);
-void sub_02082CEC(UnkStruct_0207F248 * param0, u8 param1, u16 param2, u16 param3, NARC * param4);
-void sub_02082DA8(UnkStruct_0207F248 * param0, u8 param1);
-void sub_02082E58(UnkStruct_0207F248 * param0);
-void sub_02082FAC(UnkStruct_0207F248 * param0, u8 param1, u16 param2, u16 param3);
-void sub_02082FF4(UnkStruct_0207F248 * param0);
-void sub_02083014(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
-void sub_02083040(UnkStruct_0207F248 * param0, u8 param1, u16 param2);
-void sub_02083080(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020830A0(UnkStruct_0207F248 * param0, u8 param1, s16 param2, s16 param3);
-void sub_020830D4(UnkStruct_0207F248 * param0, u8 param1);
-void sub_02083104(UnkStruct_0207F248 * param0, u8 param1);
-void sub_020831B4(UnkStruct_0207F248 * param0);
-void sub_0208327C(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
-void sub_020832E4(UnkStruct_0207F248 * param0, s16 param1, s16 param2);
-void sub_02083334(UnkStruct_0207F248 * param0);
+void sub_02082C2C(GameWindowLayout * param0);
+void sub_02082CEC(GameWindowLayout * param0, u8 param1, u16 param2, u16 param3, NARC * param4);
+void sub_02082DA8(GameWindowLayout * param0, u8 param1);
+void sub_02082E58(GameWindowLayout * param0);
+void sub_02082FAC(GameWindowLayout * param0, u8 param1, u16 param2, u16 param3);
+void sub_02082FF4(GameWindowLayout * param0);
+void sub_02083014(GameWindowLayout * param0, u8 param1, u8 param2);
+void sub_02083040(GameWindowLayout * param0, u8 param1, u16 param2);
+void sub_02083080(GameWindowLayout * param0, u8 param1);
+void sub_020830A0(GameWindowLayout * param0, u8 param1, s16 param2, s16 param3);
+void sub_020830D4(GameWindowLayout * param0, u8 param1);
+void sub_02083104(GameWindowLayout * param0, u8 param1);
+void sub_020831B4(GameWindowLayout * param0);
+void sub_0208327C(GameWindowLayout * param0, u8 param1, u8 param2);
+void sub_020832E4(GameWindowLayout * param0, s16 param1, s16 param2);
+void sub_02083334(GameWindowLayout * param0);
#endif // POKEPLATINUM_UNK_02082C2C_H
diff --git a/include/unk_02083370.h b/include/unk_02083370.h
index bbb1c392ef..4a8fe840d2 100644
--- a/include/unk_02083370.h
+++ b/include/unk_02083370.h
@@ -4,18 +4,18 @@
#include "struct_defs/struct_0207F248.h"
u32 sub_02083370(u8 param0);
-void sub_0208337C(UnkStruct_0207F248 * param0);
-int sub_02083658(UnkStruct_0207F248 * param0);
-int sub_020836A8(UnkStruct_0207F248 * param0);
-int sub_020836E4(UnkStruct_0207F248 * param0);
-int sub_020839BC(UnkStruct_0207F248 * param0);
+void sub_0208337C(GameWindowLayout * param0);
+int sub_02083658(GameWindowLayout * param0);
+int sub_020836A8(GameWindowLayout * param0);
+int sub_020836E4(GameWindowLayout * param0);
+int sub_020839BC(GameWindowLayout * param0);
int sub_02083A78(void * param0);
int sub_02083AA4(void * param0);
-void sub_02083B88(UnkStruct_0207F248 * param0);
-void sub_02083BD4(UnkStruct_0207F248 * param0);
-BOOL sub_02083D1C(UnkStruct_0207F248 * param0);
-int sub_020845A8(UnkStruct_0207F248 * param0);
-int sub_02084780(UnkStruct_0207F248 * param0);
-int sub_02084B34(UnkStruct_0207F248 * param0);
+void sub_02083B88(GameWindowLayout * param0);
+void sub_02083BD4(GameWindowLayout * param0);
+BOOL sub_02083D1C(GameWindowLayout * param0);
+int sub_020845A8(GameWindowLayout * param0);
+int sub_02084780(GameWindowLayout * param0);
+int sub_02084B34(GameWindowLayout * param0);
#endif // POKEPLATINUM_UNK_02083370_H
diff --git a/include/unk_02084B70.h b/include/unk_02084B70.h
index 75e5d05f9e..b3fb1b0ead 100644
--- a/include/unk_02084B70.h
+++ b/include/unk_02084B70.h
@@ -4,17 +4,17 @@
#include "pokemon.h"
#include "struct_defs/struct_0207F248.h"
-void sub_020852B8(UnkStruct_0207F248 * param0);
+void sub_020852B8(GameWindowLayout * param0);
int sub_02085348(void * param0);
BOOL sub_020857A8(u16 param0);
-int sub_02085804(UnkStruct_0207F248 * param0);
-int sub_02085EF4(UnkStruct_0207F248 * param0);
-u8 sub_02086104(UnkStruct_0207F248 * param0, Pokemon * param1);
-int sub_0208615C(UnkStruct_0207F248 * param0);
-int sub_020862F8(UnkStruct_0207F248 * param0);
-int sub_020863A0(UnkStruct_0207F248 * param0);
-void sub_020866A0(UnkStruct_0207F248 * param0, u8 param1);
-int sub_02086774(UnkStruct_0207F248 * param0);
-void sub_020868B0(UnkStruct_0207F248 * param0);
+int sub_02085804(GameWindowLayout * param0);
+int sub_02085EF4(GameWindowLayout * param0);
+u8 sub_02086104(GameWindowLayout * param0, Pokemon * param1);
+int sub_0208615C(GameWindowLayout * param0);
+int sub_020862F8(GameWindowLayout * param0);
+int sub_020863A0(GameWindowLayout * param0);
+void sub_020866A0(GameWindowLayout * param0, u8 param1);
+int sub_02086774(GameWindowLayout * param0);
+void sub_020868B0(GameWindowLayout * param0);
#endif // POKEPLATINUM_UNK_02084B70_H
diff --git a/include/unk_0208694C.h b/include/unk_0208694C.h
index 0fea018d76..a3451f30db 100644
--- a/include/unk_0208694C.h
+++ b/include/unk_0208694C.h
@@ -4,7 +4,7 @@
#include "struct_defs/struct_020279FC.h"
#include "struct_defs/struct_0208737C.h"
-UnkStruct_0208737C * sub_0208712C(int param0, int param1, int param2, int param3, UnkStruct_020279FC * param4);
+UnkStruct_0208737C * sub_0208712C(int param0, int param1, int param2, int param3, AnimationControlFlags * param4);
void sub_0208716C(UnkStruct_0208737C * param0);
#endif // POKEPLATINUM_UNK_0208694C_H
diff --git a/include/unk_020890F4.h b/include/unk_020890F4.h
index f52b8227ff..74f8b0ba01 100644
--- a/include/unk_020890F4.h
+++ b/include/unk_020890F4.h
@@ -4,9 +4,9 @@
#include "struct_defs/struct_020279FC.h"
#include "struct_defs/struct_02089438.h"
-UnkStruct_02089438 * sub_020893B4(int param0, int param1, int param2[], UnkStruct_020279FC * param3, u32 param4, u32 param5);
-UnkStruct_02089438 * sub_02089400(int param0, int param1, int param2[], UnkStruct_020279FC * param3, u32 param4, u32 param5);
-UnkStruct_02089438 * sub_0208941C(int param0, int param1, int param2[], UnkStruct_020279FC * param3, u32 param4, u32 param5, u32 param6, u32 param7);
+UnkStruct_02089438 * sub_020893B4(int param0, int param1, int param2[], AnimationControlFlags * param3, u32 param4, u32 param5);
+UnkStruct_02089438 * sub_02089400(int param0, int param1, int param2[], AnimationControlFlags * param3, u32 param4, u32 param5);
+UnkStruct_02089438 * sub_0208941C(int param0, int param1, int param2[], AnimationControlFlags * param3, u32 param4, u32 param5, u32 param6, u32 param7);
void sub_02089438(UnkStruct_02089438 * param0);
#endif // POKEPLATINUM_UNK_020890F4_H
diff --git a/include/unk_0208B284.h b/include/unk_0208B284.h
index f91ed423db..0457a7496b 100644
--- a/include/unk_0208B284.h
+++ b/include/unk_0208B284.h
@@ -7,7 +7,7 @@
#include "struct_defs/struct_0208B284.h"
#include "struct_defs/struct_0208B878.h"
-UnkStruct_0208B878 * sub_0208B284(UnkStruct_0208B284 param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, PaletteSys * param3);
+UnkStruct_0208B878 * sub_0208B284(UnkStruct_0208B284 param0, CellTransferStateData * param1, AnimationResourceCollection * param2, PaletteSys * param3);
void sub_0208B63C(UnkStruct_0208B878 * param0, int param1);
BOOL sub_0208B878(UnkStruct_0208B878 * param0, int param1);
BOOL sub_0208B8B0(UnkStruct_0208B878 * param0, BOOL param1);
diff --git a/include/unk_02092494.h b/include/unk_02092494.h
index 5c031db7d0..9c2625f2ec 100644
--- a/include/unk_02092494.h
+++ b/include/unk_02092494.h
@@ -5,9 +5,9 @@
#include "pokemon.h"
#include "struct_defs/struct_02090800.h"
-UnkStruct_02090800 * sub_02092494(Pokemon * param0, BOOL param1, int param2);
-void sub_0209282C(UnkStruct_02090800 * param0);
+PokemonInfoDisplayStruct * sub_02092494(Pokemon * param0, BOOL param1, int param2);
+void sub_0209282C(PokemonInfoDisplayStruct * param0);
void sub_0209304C(Pokemon * param0, TrainerInfo * param1, int param2, int param3, int param4);
-void sub_0209305C(BoxPokemon * param0, TrainerInfo * param1, int param2, int param3, int param4);
+void UpdateBoxMonStatusAndTrainerInfo(BoxPokemon * boxMon, TrainerInfo * trainerInfo, int sel, int metLocation, int heapID);
#endif // POKEPLATINUM_UNK_02092494_H
diff --git a/include/unk_02096420.h b/include/unk_02096420.h
index 509e9c43e1..1941437afa 100644
--- a/include/unk_02096420.h
+++ b/include/unk_02096420.h
@@ -4,10 +4,10 @@
#include "pokemon.h"
#include "struct_decls/struct_party_decl.h"
-u8 sub_02096420(Pokemon * param0, u16 param1, u16 param2, u32 param3);
-u8 sub_0209693C(Party * param0, u16 param1, u8 param2, u8 param3, u32 param4);
-u8 sub_02096954(Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param4);
+u8 CheckItemEffectsOnPokemon(Pokemon * param0, u16 param1, u16 param2, u32 param3);
+u8 CheckItemEffectsOnPartyMember(Party * param0, u16 param1, u8 param2, u8 param3, u32 param4);
+u8 ApplyItemEffectsToPokemon(Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param4);
u8 sub_02096F14(Party * param0, u16 param1, u8 param2, u8 param3, u16 param4, u32 param5);
-void sub_02097284(Party * param0);
+void HealAllPokemonInParty(Party * party);
#endif // POKEPLATINUM_UNK_02096420_H
diff --git a/platinum.us/main.lsf b/platinum.us/main.lsf
index 05f9d00674..a0fe074569 100644
--- a/platinum.us/main.lsf
+++ b/platinum.us/main.lsf
@@ -50,7 +50,7 @@ Static main
Object main.nef.p/src_unk_02012480.c.o
Object main.nef.p/src_unk_02012744.c.o
Object main.nef.p/src_unk_020131EC.c.o
- Object main.nef.p/src_unk_0201378C.c.o
+ Object main.nef.p/src_rtc.c.o
Object main.nef.p/src_unk_02013A04.c.o
Object main.nef.p/src_unk_02013B10.c.o
Object main.nef.p/src_unk_02014000.c.o
diff --git a/res/pokemon/.shared/icon_palette.NCLR b/res/pokemon/.shared/icon_palette.NCLR
deleted file mode 100644
index 7a085a4bd4..0000000000
Binary files a/res/pokemon/.shared/icon_palette.NCLR and /dev/null differ
diff --git a/res/pokemon/.shared/pl_poke_icon.pal b/res/pokemon/.shared/pl_poke_icon.pal
new file mode 100644
index 0000000000..184104edc3
--- /dev/null
+++ b/res/pokemon/.shared/pl_poke_icon.pal
@@ -0,0 +1,259 @@
+JASC-PAL
+0100
+256
+74 156 57
+131 131 115
+189 189 189
+255 255 255
+189 164 65
+246 246 41
+213 98 65
+246 148 41
+139 123 255
+98 74 205
+238 115 156
+255 180 164
+164 197 255
+106 172 156
+98 98 90
+65 65 65
+90 139 205
+115 115 115
+189 189 189
+255 255 255
+123 156 74
+156 205 74
+148 246 74
+238 115 156
+246 148 246
+189 164 90
+246 230 41
+246 246 172
+213 213 106
+230 74 41
+98 98 90
+65 65 65
+98 156 131
+123 123 123
+189 189 180
+255 255 255
+115 115 205
+164 172 246
+180 131 90
+238 197 139
+197 172 41
+246 246 41
+246 98 82
+148 123 205
+197 164 205
+189 41 156
+98 98 90
+65 65 65
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
+0 0 0
diff --git a/res/pokemon/meson.build b/res/pokemon/meson.build
index a930de7c76..32155ee4e5 100644
--- a/res/pokemon/meson.build
+++ b/res/pokemon/meson.build
@@ -9,7 +9,7 @@ otherpoke_index = {} # otherpoke uses a unique, non-uniform structure
# pl_poke_icon has some shared files that are listed at the beginning
# of the NARC.
poke_icon_shared = files(
- '.shared/icon_palette.NCLR',
+ '.shared/pl_poke_icon.pal',
'.shared/pl_poke_icon_anim_01.json',
'.shared/pl_poke_icon_cell_01.json',
'.shared/pl_poke_icon_anim_02.json',
diff --git a/src/error_message_reset.c b/src/error_message_reset.c
index 6519c73c00..c0c4b96c8e 100644
--- a/src/error_message_reset.c
+++ b/src/error_message_reset.c
@@ -118,8 +118,8 @@ void ErrorMessageReset_PrintErrorAndReset (void)
OS_SetIrqFunction(OS_IE_V_BLANK, VBlankIntr);
OS_EnableIrqMask(OS_IE_V_BLANK);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -167,7 +167,7 @@ void ErrorMessageReset_PrintErrorAndReset (void)
sub_02037DB0();
while (TRUE) {
- sub_0200106C();
+ HandleConsoleFold();
sub_020349EC();
if (sub_02038AB8()) {
@@ -178,7 +178,7 @@ void ErrorMessageReset_PrintErrorAndReset (void)
}
while (TRUE) {
- sub_0200106C();
+ HandleConsoleFold();
if (PAD_Read() & PAD_BUTTON_A) {
break;
diff --git a/src/main.c b/src/main.c
index a0c10ba558..86abd36f65 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,7 +20,7 @@
#include "unk_020067E8.h"
#include "unk_0200A9DC.h"
#include "unk_0200F174.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02017428.h"
#include "unk_02017728.h"
#include "unk_0201CCF0.h"
@@ -53,27 +53,29 @@ typedef struct {
static void sub_02000E3C(void);
static void sub_02000E54(void);
-static void sub_02000EE4(void);
+static void WaitFrame(void);
static void sub_02000F10(int param0);
-static void sub_02000F60(int param0);
-static void sub_02000F94(int param0, int param1);
-static void sub_02000F30(void);
+static void SoftReset(int param0);
+static void HeapCanaryFailed(int param0, int param1);
+static void CheckHeapCanary(void);
static UnkStruct_02101D28 Unk_02101D28;
-static PMBackLightSwitch Unk_02101D20;
-BOOL Unk_02101D24;
+// This variable doesn't really makes sense. If it's set to off, the game will
+// repeatedly try to restore the backlight to its saved state.
+static PMBackLightSwitch sSavedBacklightState;
+BOOL gIgnoreCartridgeForWake;
extern const UnkStruct_0208BE5C Unk_ov77_021D788C;
void NitroMain (void)
{
sub_0201789C();
- sub_020179E4();
+ InitGraphics();
InitKeypadAndTouchpad();
sub_02017B70(0);
- PM_GetBackLight(&Unk_02101D20, NULL);
+ PM_GetBackLight(&sSavedBacklightState, NULL);
sub_0202419C();
- sub_0201378C();
+ InitRTC();
sub_02000E3C();
sub_02002B7C();
@@ -84,7 +86,7 @@ void NitroMain (void)
Unk_02101D28.unk_10.unk_00 = -1;
Unk_02101D28.unk_10.unk_08 = sub_020244AC();
- sub_02003B60(sub_0202CC98(Unk_02101D28.unk_10.unk_08), sub_02025E44(Unk_02101D28.unk_10.unk_08));
+ sub_02003B60(GetChatotCryDataFromSave(Unk_02101D28.unk_10.unk_08), sub_02025E44(Unk_02101D28.unk_10.unk_08));
sub_02022844();
if (sub_02038FFC(3) == DWC_INIT_RESULT_DESTROY_OTHER_SETTING) {
@@ -113,53 +115,53 @@ void NitroMain (void)
gCoreSys.unk_6C = 1;
gCoreSys.unk_30 = 0;
- sub_02001028();
+ InitRNG();
sub_0200AB84();
sub_02017428();
- Unk_02101D24 = FALSE;
+ gIgnoreCartridgeForWake = FALSE;
while (TRUE) {
- sub_02000F30();
- sub_0200106C();
+ CheckHeapCanary();
+ HandleConsoleFold();
ReadKeypadAndTouchpad();
if ((gCoreSys.heldKeysRaw & RESET_COMBO) == RESET_COMBO) {
- if (gCoreSys.unk_68 == 0) {
- sub_02000F60(0);
+ if (gCoreSys.inhibitReset == 0) {
+ SoftReset(0);
}
}
if (sub_020349EC()) {
- sub_02000F30();
+ CheckHeapCanary();
sub_02000E54();
sub_0201CDD4(gCoreSys.unk_18);
sub_0201CDD4(gCoreSys.unk_24);
if (!gCoreSys.unk_30) {
OS_WaitIrq(1, OS_IE_V_BLANK);
- gCoreSys.unk_2C++;
+ gCoreSys.frameCounter++;
}
}
- sub_020137C4();
+ UpdateRTC();
sub_02017458();
sub_020241CC();
sub_0201CDD4(gCoreSys.unk_24);
OS_WaitIrq(1, OS_IE_V_BLANK);
- gCoreSys.unk_2C++;
+ gCoreSys.frameCounter++;
gCoreSys.unk_30 = 0;
sub_0200ABF0();
sub_0200F27C();
- if (gCoreSys.unk_00 != NULL) {
- gCoreSys.unk_00(gCoreSys.unk_04);
+ if (gCoreSys.mainCallback != NULL) {
+ gCoreSys.mainCallback(gCoreSys.mainCallbackData);
}
- sub_02003BD8();
+ UpdateSound();
sub_0201CDD4(gCoreSys.unk_20);
}
}
@@ -211,17 +213,17 @@ void sub_02000EC4 (FSOverlayID param0, const UnkStruct_0208BE5C * param1)
Unk_02101D28.unk_0C = param1;
}
-static void sub_02000EE4 (void)
+static void WaitFrame (void)
{
sub_020349EC();
OS_WaitIrq(1, OS_IE_V_BLANK);
- gCoreSys.unk_2C++;
+ gCoreSys.frameCounter++;
gCoreSys.unk_30 = 0;
- if (gCoreSys.unk_00 != NULL) {
- gCoreSys.unk_00(gCoreSys.unk_04);
+ if (gCoreSys.mainCallback != NULL) {
+ gCoreSys.mainCallback(gCoreSys.mainCallbackData);
}
}
@@ -233,27 +235,27 @@ static void sub_02000F10 (int param0)
}
}
- sub_02000EE4();
+ WaitFrame();
}
-static void sub_02000F30 (void)
+static void CheckHeapCanary (void)
{
int v0 = sub_020389D8();
switch (v0) {
case 1:
- sub_02000F94(1, v0);
+ HeapCanaryFailed(1, v0);
break;
case 2:
- sub_02000F94(0, v0);
+ HeapCanaryFailed(0, v0);
break;
case 3:
- sub_02000F94(1, v0);
+ HeapCanaryFailed(1, v0);
break;
}
}
-static void sub_02000F60 (int param0)
+static void SoftReset (int param0)
{
sub_0200F344(0, 0x7fff);
sub_0200F344(1, 0x7fff);
@@ -263,14 +265,14 @@ static void sub_02000F60 (int param0)
}
while (TRUE) {
- sub_0200106C();
+ HandleConsoleFold();
sub_02000F10(param0);
}
}
-static void sub_02000F94 (int param0, int param1)
+static void HeapCanaryFailed (int param0, int param1)
{
- int v0;
+ int elapsed;
BOOL v1;
if (param1 == 3) {
@@ -290,89 +292,88 @@ static void sub_02000F94 (int param0, int param1)
}
sub_02037DB0();
- sub_02000EE4();
- sub_02003BD8();
+ WaitFrame();
+ UpdateSound();
- v0 = 0;
+ elapsed = 0;
while (TRUE) {
- sub_0200106C();
+ HandleConsoleFold();
ReadKeypadAndTouchpad();
- if (v0 >= 30) {
+ if (elapsed >= 30) {
if (gCoreSys.pressedKeys & PAD_BUTTON_A) {
break;
}
}
- sub_02000EE4();
+ WaitFrame();
- if (v0 < 30) {
- v0++;
+ if (elapsed < 30) {
+ elapsed++;
}
}
- sub_02000F60(param0);
+ SoftReset(param0);
}
-void sub_02001028 (void)
+void InitRNG (void)
{
RTCDate v0;
RTCTime v1;
u32 v2;
- sub_0201384C(&v0, &v1);
+ GetCurrentDateTime(&v0, &v1);
- v2 = v0.year + v0.month * 0x100 * v0.day * 0x10000 + v1.hour * 0x10000 + (v1.minute + v1.second) * 0x1000000 + gCoreSys.unk_2C;
+ v2 = v0.year + v0.month * 0x100 * v0.day * 0x10000 + v1.hour * 0x10000 + (v1.minute + v1.second) * 0x1000000 + gCoreSys.frameCounter;
MTRNG_SetSeed(v2);
LCRNG_SetSeed(v2);
}
-void sub_0200106C (void)
+void HandleConsoleFold (void)
{
- PMBackLightSwitch v0, v1;
- PMWakeUpTrigger v2;
+ PMBackLightSwitch top, bottom;
+ PMWakeUpTrigger trigger;
if (PAD_DetectFold()) {
- if (gCoreSys.unk_67 == 0) {
- sub_0201E630();
+ if (gCoreSys.inhibitSleep == 0) {
+ BeforeSleep();
if (CTRDG_IsPulledOut() == TRUE) {
- Unk_02101D24 = TRUE;
+ gIgnoreCartridgeForWake = TRUE;
}
-GOTOLABEL:
- v2 = PM_TRIGGER_COVER_OPEN | PM_TRIGGER_CARD;
+sleep_again:
+ trigger = PM_TRIGGER_COVER_OPEN | PM_TRIGGER_CARD;
- if (gCoreSys.unk_66 && (Unk_02101D24 == FALSE)) {
- v2 |= PM_TRIGGER_CARTRIDGE;
+ if (gCoreSys.unk_66 && !gIgnoreCartridgeForWake) {
+ trigger |= PM_TRIGGER_CARTRIDGE;
}
- PM_GoSleepMode(v2, 0, 0);
+ PM_GoSleepMode(trigger, 0, 0);
if (CARD_IsPulledOut()) {
PM_ForceToPowerOff();
- } else {
- if (PAD_DetectFold()) {
- Unk_02101D24 = TRUE;
- goto GOTOLABEL;
- }
+ } else if (PAD_DetectFold()) {
+ // Woke up because the cartridge got pulled out
+ gIgnoreCartridgeForWake = TRUE;
+ goto sleep_again;
}
- sub_0201E5FC();
+ AfterSleep();
} else {
- PM_GetBackLight(&v0, &v1);
+ PM_GetBackLight(&top, &bottom);
- if (v0 == PM_BACKLIGHT_ON) {
+ if (top == PM_BACKLIGHT_ON) {
PM_SetBackLight(PM_LCD_ALL, PM_BACKLIGHT_OFF);
}
}
} else {
- PM_GetBackLight(&v0, &v1);
+ PM_GetBackLight(&top, &bottom);
- if (v0 == PM_BACKLIGHT_OFF) {
- PM_SetBackLight(PM_LCD_ALL, Unk_02101D20);
+ if (top == PM_BACKLIGHT_OFF) {
+ PM_SetBackLight(PM_LCD_ALL, sSavedBacklightState);
}
}
}
diff --git a/src/meson.build b/src/meson.build
index b4454a3f06..b4f930f02b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -46,7 +46,7 @@ pokeplatinum_c = files(
'unk_02012480.c',
'unk_02012744.c',
'unk_020131EC.c',
- 'unk_0201378C.c',
+ 'rtc.c',
'unk_02013A04.c',
'unk_02013B10.c',
'unk_02014000.c',
diff --git a/src/narc.c b/src/narc.c
index 5cca1ab8ee..b9347f1e46 100644
--- a/src/narc.c
+++ b/src/narc.c
@@ -4,203 +4,203 @@
#include "narc.h"
#include "heap.h"
-// NARC path table, make sure index enum in constants/narc.h matches
-static const char * NarcPaths[] = {
- { "battle/skill/waza_seq.narc" },
- { "battle/skill/sub_seq.narc" },
- { "poketool/personal/pl_personal.narc" },
- { "poketool/personal/pl_growtbl.narc" },
- { "poketool/pokegra/pl_pokegra.narc" },
- { "poketool/pokegra/height.narc" },
- { "poketool/trgra/trbgra.narc" },
- { "battle/graphic/pl_batt_bg.narc" },
- { "wazaeffect/we.arc" },
- { "poketool/waza/pl_waza_tbl.narc" },
- { "fielddata/script/scr_seq.narc" },
- { "msgdata/scenario/scr_msg.narc" },
- { "graphic/poketch.narc" },
- { "graphic/pl_bag_gra.narc" },
- { "graphic/pl_font.narc" },
- { "itemtool/itemdata/pl_item_data.narc" },
- { "itemtool/itemdata/item_icon.narc" },
- { "graphic/tmap_gra.narc" },
- { "graphic/box.narc" },
- { "poketool/icongra/pl_poke_icon.narc" },
- { "graphic/pl_plist_gra.narc" },
- { "wazaeffect/effectclact/wechar.narc" },
- { "wazaeffect/effectclact/wepltt.narc" },
- { "wazaeffect/effectclact/wecell.narc" },
- { "wazaeffect/effectclact/wecellanm.narc" },
- { "graphic/imageclip.narc" },
- { "msgdata/pl_msg.narc" },
- { "battle/graphic/pl_batt_obj.narc" },
- { "data/underg_radar.narc" },
- { "wazaeffect/effectdata/waza_particle.narc" },
- { "battle/skill/be_seq.narc" },
- { "data/namein.narc" },
- { "fielddata/eventdata/zone_event.narc" },
- { "poketool/personal/wotbl.narc" },
- { "poketool/personal/evo.narc" },
- { "graphic/fontoam.narc" },
- { "graphic/field_board.narc" },
- { "fielddata/encountdata/d_enc_data.narc" },
- { "graphic/pl_winframe.narc" },
- { "graphic/pl_pst_gra.narc" },
- { "fielddata/build_model/build_model.narc" },
- { "fielddata/mapmatrix/map_matrix.narc" },
- { "fielddata/areadata/area_data.narc" },
- { "fielddata/areadata/area_build_model/area_build.narc" },
- { "fielddata/areadata/area_map_tex/map_tex_set.narc" },
- { "contest/graphic/contest_bg.narc" },
- { "contest/graphic/contest_obj.narc" },
- { "data/ugeffect_obj_graphic.narc" },
- { "demo/title/titledemo.narc" },
- { "fielddata/areadata/area_move_model/move_model_list.narc" },
- { "data/ug_trap.narc" },
- { "graphic/trainer_case.narc" },
- { "data/ug_fossil.narc" },
- { "graphic/ntag_gra.narc" },
- { "data/tradelist.narc" },
- { "data/ug_parts.narc" },
- { "graphic/opening.narc" },
- { "poketool/trainer/trdata.narc" },
- { "poketool/trainer/trpoke.narc" },
- { "poketool/trmsg/trtbl.narc" },
- { "poketool/trgra/trfgra.narc" },
- { "particledata/particledata.narc" },
- { "graphic/shop_gra.narc" },
- { "wazaeffect/we_sub.narc" },
- { "data/ug_anim.narc" },
- { "data/weather_sys.narc" },
- { "graphic/menu_gra.narc" },
- { "fielddata/land_data/land_data.narc" },
- { "itemtool/itemdata/nuts_data.narc" },
- { "resource/eng/zukan/zukan.narc" },
- { "poketool/pokefoot/pokefoot.narc" },
- { "fielddata/areadata/area_build_model/areabm_texset.narc" },
- { "battle/graphic/pl_b_plist_gra.narc" },
- { "graphic/config_gra.narc" },
- { "graphic/unionroom.narc" },
- { "application/zukanlist/zkn_data/zukan_data.narc" },
- { "graphic/pmsi.narc" },
- { "battle/graphic/b_bag_gra.narc" },
- { "graphic/oekaki.narc" },
- { "graphic/mail_gra.narc" },
- { "graphic/f_note_gra.narc" },
- { "data/mmodel/mmodel.narc" },
- { "graphic/ev_pokeselect.narc" },
- { "graphic/poru_gra.narc" },
- { "graphic/touch_subwindow.narc" },
- { "graphic/fld_comact.narc" },
- { "graphic/record.narc" },
- { "graphic/porudemo.narc" },
- { "graphic/poruact.narc" },
- { "graphic/pl_wifinote.narc" },
- { "contest/data/contest_data.narc" },
- { "application/custom_ball/data/cb_data.narc" },
- { "data/wifip2pmatch.narc" },
- { "graphic/demo_trade.narc" },
- { "pokeanime/pl_poke_anm.narc" },
- { "graphic/mysign.narc" },
- { "fielddata/mm_list/move_model_list.narc" },
- { "data/field_cutin.narc" },
- { "data/demo_climax.narc" },
- { "wazaeffect/effectdata/ball_particle.narc" },
- { "wazaeffect/pt_debug/debug_particle.narc" },
- { "graphic/dendou_pc.narc" },
- { "application/wifi_earth/wifi_earth_place.narc" },
- { "battle/tr_ai/tr_ai_seq.narc" },
- { "graphic/worldtrade.narc" },
- { "graphic/dendou_demo.narc" },
- { "arc/encdata_ex.narc" },
- { "data/mmodel/fldeff.narc" },
- { "battle/graphic/vs_demo_gra.narc" },
- { "poketool/pl_pokezukan.narc" },
- { "arc/bm_anime.narc" },
- { "arc/bm_anime_list.narc" },
- { "graphic/field_encounteffect.narc" },
- { "graphic/waza_oshie_gra.narc" },
- { "poketool/pokeanm/pl_pokeanm.narc" },
- { "fielddata/pokemon_trade/fld_trade.narc" },
- { "graphic/mystery.narc" },
- { "poketool/pokegra/pl_otherpoke.narc" },
- { "demo/egg/data/egg_data.narc" },
- { "demo/egg/data/particle/egg_demo_particle.narc" },
- { "arc/ship_demo.narc" },
- { "poketool/pokegra/height_o.narc" },
- { "graphic/nutmixer.narc" },
- { "graphic/btower.narc" },
- { "demo/shinka/data/particle/shinka_demo_particle.narc" },
- { "demo/intro/intro.narc" },
- { "arc/tv.narc" },
- { "graphic/ending.narc" },
- { "demo/title/op_demo.narc" },
- { "application/wifi_earth/wifi_earth.narc" },
- { "graphic/ranking.narc" },
- { "arc/ppark.narc" },
- { "demo/syoujyou/syoujyou.narc" },
- { "data/slot.narc" },
- { "battle/b_tower/btdtr.narc" },
- { "battle/b_tower/btdpm.narc" },
- { "demo/intro/intro_tv.narc" },
- { "poketool/trmsg/trtblofs.narc" },
- { "poketool/pokegra/poke_yofs.narc" },
- { "application/zukanlist/zkn_data/zukan_enc_diamond.narc" },
- { "application/zukanlist/zkn_data/zukan_enc_pearl.narc" },
- { "graphic/hiden_effect.narc" },
- { "poketool/pokegra/poke_shadow.narc" },
- { "fielddata/encountdata/p_enc_data.narc" },
- { "poketool/pokegra/poke_shadow_ofx.narc" },
- { "poketool/shinzukan.narc" },
- { "graphic/wifi2dchar.narc" },
- { "poketool/poke_edit/pl_poke_data.narc" },
- { "debug/cb_edit/d_test.narc" },
- { "frontier/script/fr_script.narc" },
- { "resource/eng/frontier_graphic/frontier_bg.narc" },
- { "resource/eng/frontier_graphic/frontier_obj.narc" },
- { "application/custom_ball/edit/pl_cb_data.narc" },
- { "graphic/wifi_unionobj.narc" },
- { "data/guru2.narc" },
- { "data/fldtanime.narc" },
- { "arc/ship_demo_pl.narc" },
- { "particledata/pl_frontier/frontier_particle.narc" },
- { "graphic/bucket.narc" },
- { "arc/codein_gra.narc" },
- { "arc/area_win_gra.narc" },
- { "fielddata/encountdata/pl_enc_data.narc" },
- { "resource/eng/batt_rec/batt_rec_gra.narc" },
- { "graphic/worldtimer.narc" },
- { "arc/manene.narc" },
- { "poketool/pokegra/pokegra.narc" },
- { "poketool/pokegra/otherpoke.narc" },
- { "poketool/pokegra/dp_height.narc" },
- { "poketool/pokegra/dp_height_o.narc" },
- { "graphic/lobby_news.narc" },
- { "arc/email_gra.narc" },
- { "resource/eng/wifi_lobby_minigame/wlmngm_tool.narc" },
- { "arc/demo_tengan_gra.narc" },
- { "application/balloon/graphic/balloon_gra.narc" },
- { "application/wifi_lobby/map_conv/wflby_map.narc" },
- { "graphic/wifi_lobby.narc" },
- { "data/arealight.narc" },
- { "data/ugroundeffect.narc" },
- { "battle/b_pl_tower/pl_btdtr.narc" },
- { "battle/b_pl_tower/pl_btdpm.narc" },
- { "battle/b_pl_stage/pl_bsdpm.narc" },
- { "fielddata/tornworld/tw_arc.narc" },
- { "fielddata/tornworld/tw_arc_attr.narc" },
- { "data/tw_arc_etc.narc" },
- { "resource/eng/scratch/scratch.narc" },
- { "particledata/pl_pokelist/pokelist_particle.narc" },
- { "graphic/wifi_lobby_other.narc" },
- { "graphic/footprint_board.narc" },
- { "application/zukanlist/zkn_data/zukan_enc_platinum.narc" },
- { "application/bucket/ballslow_data.narc" },
- { "particledata/pl_etc/pl_etc_particle.narc" },
- { "resource/eng/pms_aikotoba/pms_aikotoba.narc" },
- { "graphic/unionobj2d_onlyfront.narc" },
- { "graphic/library_tv.narc" },
- { "application/zukanlist/zkn_data/zukan_data_gira.narc" }
+// Mapping of NARC indices to filesystem paths.
+static const char* sNarcPaths[] = {
+ [NARC_INDEX_BATTLE__SKILL__WAZA_SEQ] = { "battle/skill/waza_seq.narc" },
+ [NARC_INDEX_BATTLE__SKILL__SUB_SEQ] = { "battle/skill/sub_seq.narc" },
+ [NARC_INDEX_POKETOOL__PERSONAL__PL_PERSONAL] = { "poketool/personal/pl_personal.narc" },
+ [NARC_INDEX_POKETOOL__PERSONAL__PL_GROWTBL] = { "poketool/personal/pl_growtbl.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__PL_POKEGRA] = { "poketool/pokegra/pl_pokegra.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__HEIGHT] = { "poketool/pokegra/height.narc" },
+ [NARC_INDEX_POKETOOL__TRGRA__TRBGRA] = { "poketool/trgra/trbgra.narc" },
+ [NARC_INDEX_BATTLE__GRAPHIC__PL_BATT_BG] = { "battle/graphic/pl_batt_bg.narc" },
+ [NARC_INDEX_WAZAEFFECT__WE] = { "wazaeffect/we.arc" },
+ [NARC_INDEX_POKETOOL__WAZA__PL_WAZA_TBL] = { "poketool/waza/pl_waza_tbl.narc" },
+ [NARC_INDEX_FIELDDATA__SCRIPT__SCR_SEQ] = { "fielddata/script/scr_seq.narc" },
+ [NARC_INDEX_MSGDATA__SCENARIO__SCR_MSG] = { "msgdata/scenario/scr_msg.narc" },
+ [NARC_INDEX_GRAPHIC__POKETCH] = { "graphic/poketch.narc" },
+ [NARC_INDEX_GRAPHIC__PL_BAG_GRA] = { "graphic/pl_bag_gra.narc" },
+ [NARC_INDEX_GRAPHIC__PL_FONT] = { "graphic/pl_font.narc" },
+ [NARC_INDEX_ITEMTOOL__ITEMDATA__PL_ITEM_DATA] = { "itemtool/itemdata/pl_item_data.narc" },
+ [NARC_INDEX_ITEMTOOL__ITEMDATA__ITEM_ICON] = { "itemtool/itemdata/item_icon.narc" },
+ [NARC_INDEX_GRAPHIC__TMAP_GRA] = { "graphic/tmap_gra.narc" },
+ [NARC_INDEX_GRAPHIC__BOX] = { "graphic/box.narc" },
+ [NARC_INDEX_POKETOOL__ICONGRA__PL_POKE_ICON] = { "poketool/icongra/pl_poke_icon.narc" },
+ [NARC_INDEX_GRAPHIC__PL_PLIST_GRA] = { "graphic/pl_plist_gra.narc" },
+ [NARC_INDEX_WAZAEFFECT__EFFECTCLACT__WECHAR] = { "wazaeffect/effectclact/wechar.narc" },
+ [NARC_INDEX_WAZAEFFECT__EFFECTCLACT__WEPLTT] = { "wazaeffect/effectclact/wepltt.narc" },
+ [NARC_INDEX_WAZAEFFECT__EFFECTCLACT__WECELL] = { "wazaeffect/effectclact/wecell.narc" },
+ [NARC_INDEX_WAZAEFFECT__EFFECTCLACT__WECELLANM] = { "wazaeffect/effectclact/wecellanm.narc" },
+ [NARC_INDEX_GRAPHIC__IMAGECLIP] = { "graphic/imageclip.narc" },
+ [NARC_INDEX_MSGDATA__PL_MSG] = { "msgdata/pl_msg.narc" },
+ [NARC_INDEX_BATTLE__GRAPHIC__PL_BATT_OBJ] = { "battle/graphic/pl_batt_obj.narc" },
+ [NARC_INDEX_DATA__UNDERG_RADAR] = { "data/underg_radar.narc" },
+ [NARC_INDEX_WAZAEFFECT__EFFECTDATA__WAZA_PARTICLE] = { "wazaeffect/effectdata/waza_particle.narc" },
+ [NARC_INDEX_BATTLE__SKILL__BE_SEQ] = { "battle/skill/be_seq.narc" },
+ [NARC_INDEX_DATA__NAMEIN] = { "data/namein.narc" },
+ [NARC_INDEX_FIELDDATA__EVENTDATA__ZONE_EVENT] = { "fielddata/eventdata/zone_event.narc" },
+ [NARC_INDEX_POKETOOL__PERSONAL__WOTBL] = { "poketool/personal/wotbl.narc" },
+ [NARC_INDEX_POKETOOL__PERSONAL__EVO] = { "poketool/personal/evo.narc" },
+ [NARC_INDEX_GRAPHIC__FONTOAM] = { "graphic/fontoam.narc" },
+ [NARC_INDEX_GRAPHIC__FIELD_BOARD] = { "graphic/field_board.narc" },
+ [NARC_INDEX_FIELDDATA__ENCOUNTDATA__D_ENC_DATA] = { "fielddata/encountdata/d_enc_data.narc" },
+ [NARC_INDEX_GRAPHIC__PL_WINFRAME] = { "graphic/pl_winframe.narc" },
+ [NARC_INDEX_GRAPHIC__PL_PST_GRA] = { "graphic/pl_pst_gra.narc" },
+ [NARC_INDEX_FIELDDATA__BUILD_MODEL__BUILD_MODEL] = { "fielddata/build_model/build_model.narc" },
+ [NARC_INDEX_FIELDDATA__MAPMATRIX__MAP_MATRIX] = { "fielddata/mapmatrix/map_matrix.narc" },
+ [NARC_INDEX_FIELDDATA__AREADATA__AREA_DATA] = { "fielddata/areadata/area_data.narc" },
+ [NARC_INDEX_FIELDDATA__AREADATA__AREA_BUILD_MODEL__AREA_BUILD] = { "fielddata/areadata/area_build_model/area_build.narc" },
+ [NARC_INDEX_FIELDDATA__AREADATA__AREA_MAP_TEX__MAP_TEX_SET] = { "fielddata/areadata/area_map_tex/map_tex_set.narc" },
+ [NARC_INDEX_CONTEST__GRAPHIC__CONTEST_BG] = { "contest/graphic/contest_bg.narc" },
+ [NARC_INDEX_CONTEST__GRAPHIC__CONTEST_OBJ] = { "contest/graphic/contest_obj.narc" },
+ [NARC_INDEX_DATA__UGEFFECT_OBJ_GRAPHIC] = { "data/ugeffect_obj_graphic.narc" },
+ [NARC_INDEX_DEMO__TITLE__TITLEDEMO] = { "demo/title/titledemo.narc" },
+ [NARC_INDEX_FIELDDATA__AREADATA__AREA_MOVE_MODEL__MOVE_MODEL_LIST] = { "fielddata/areadata/area_move_model/move_model_list.narc" },
+ [NARC_INDEX_DATA__UG_TRAP] = { "data/ug_trap.narc" },
+ [NARC_INDEX_GRAPHIC__TRAINER_CASE] = { "graphic/trainer_case.narc" },
+ [NARC_INDEX_DATA__UG_FOSSIL] = { "data/ug_fossil.narc" },
+ [NARC_INDEX_GRAPHIC__NTAG_GRA] = { "graphic/ntag_gra.narc" },
+ [NARC_INDEX_DATA__TRADELIST] = { "data/tradelist.narc" },
+ [NARC_INDEX_DATA__UG_PARTS] = { "data/ug_parts.narc" },
+ [NARC_INDEX_GRAPHIC__OPENING] = { "graphic/opening.narc" },
+ [NARC_INDEX_POKETOOL__TRAINER__TRDATA] = { "poketool/trainer/trdata.narc" },
+ [NARC_INDEX_POKETOOL__TRAINER__TRPOKE] = { "poketool/trainer/trpoke.narc" },
+ [NARC_INDEX_POKETOOL__TRMSG__TRTBL] = { "poketool/trmsg/trtbl.narc" },
+ [NARC_INDEX_POKETOOL__TRGRA__TRFGRA] = { "poketool/trgra/trfgra.narc" },
+ [NARC_INDEX_PARTICLEDATA__PARTICLEDATA] = { "particledata/particledata.narc" },
+ [NARC_INDEX_GRAPHIC__SHOP_GRA] = { "graphic/shop_gra.narc" },
+ [NARC_INDEX_WAZAEFFECT__WE_SUB] = { "wazaeffect/we_sub.narc" },
+ [NARC_INDEX_DATA__UG_ANIM] = { "data/ug_anim.narc" },
+ [NARC_INDEX_DATA__WEATHER_SYS] = { "data/weather_sys.narc" },
+ [NARC_INDEX_GRAPHIC__MENU_GRA] = { "graphic/menu_gra.narc" },
+ [NARC_INDEX_FIELDDATA__LAND_DATA__LAND_DATA] = { "fielddata/land_data/land_data.narc" },
+ [NARC_INDEX_ITEMTOOL__ITEMDATA__NUTS_DATA] = { "itemtool/itemdata/nuts_data.narc" },
+ [NARC_INDEX_RESOURCE__ENG__ZUKAN__ZUKAN] = { "resource/eng/zukan/zukan.narc" },
+ [NARC_INDEX_POKETOOL__POKEFOOT__POKEFOOT] = { "poketool/pokefoot/pokefoot.narc" },
+ [NARC_INDEX_FIELDDATA__AREADATA__AREA_BUILD_MODEL__AREABM_TEXSET] = { "fielddata/areadata/area_build_model/areabm_texset.narc" },
+ [NARC_INDEX_BATTLE__GRAPHIC__PL_B_PLIST_GRA] = { "battle/graphic/pl_b_plist_gra.narc" },
+ [NARC_INDEX_GRAPHIC__CONFIG_GRA] = { "graphic/config_gra.narc" },
+ [NARC_INDEX_GRAPHIC__UNIONROOM] = { "graphic/unionroom.narc" },
+ [NARC_INDEX_APPLICATION__ZUKANLIST__ZKN_DATA__ZUKAN_DATA] = { "application/zukanlist/zkn_data/zukan_data.narc" },
+ [NARC_INDEX_GRAPHIC__PMSI] = { "graphic/pmsi.narc" },
+ [NARC_INDEX_BATTLE__GRAPHIC__B_BAG_GRA] = { "battle/graphic/b_bag_gra.narc" },
+ [NARC_INDEX_GRAPHIC__OEKAKI] = { "graphic/oekaki.narc" },
+ [NARC_INDEX_GRAPHIC__MAIL_GRA] = { "graphic/mail_gra.narc" },
+ [NARC_INDEX_GRAPHIC__F_NOTE_GRA] = { "graphic/f_note_gra.narc" },
+ [NARC_INDEX_DATA__MMODEL__MMODEL] = { "data/mmodel/mmodel.narc" },
+ [NARC_INDEX_GRAPHIC__EV_POKESELECT] = { "graphic/ev_pokeselect.narc" },
+ [NARC_INDEX_GRAPHIC__PORU_GRA] = { "graphic/poru_gra.narc" },
+ [NARC_INDEX_GRAPHIC__TOUCH_SUBWINDOW] = { "graphic/touch_subwindow.narc" },
+ [NARC_INDEX_GRAPHIC__FLD_COMACT] = { "graphic/fld_comact.narc" },
+ [NARC_INDEX_GRAPHIC__RECORD] = { "graphic/record.narc" },
+ [NARC_INDEX_GRAPHIC__PORUDEMO] = { "graphic/porudemo.narc" },
+ [NARC_INDEX_GRAPHIC__PORUACT] = { "graphic/poruact.narc" },
+ [NARC_INDEX_GRAPHIC__PL_WIFINOTE] = { "graphic/pl_wifinote.narc" },
+ [NARC_INDEX_CONTEST__DATA__CONTEST_DATA] = { "contest/data/contest_data.narc" },
+ [NARC_INDEX_APPLICATION__CUSTOM_BALL__DATA__CB_DATA] = { "application/custom_ball/data/cb_data.narc" },
+ [NARC_INDEX_DATA__WIFIP2PMATCH] = { "data/wifip2pmatch.narc" },
+ [NARC_INDEX_GRAPHIC__DEMO_TRADE] = { "graphic/demo_trade.narc" },
+ [NARC_INDEX_POKEANIME__PL_POKE_ANM] = { "pokeanime/pl_poke_anm.narc" },
+ [NARC_INDEX_GRAPHIC__MYSIGN] = { "graphic/mysign.narc" },
+ [NARC_INDEX_FIELDDATA__MM_LIST__MOVE_MODEL_LIST] = { "fielddata/mm_list/move_model_list.narc" },
+ [NARC_INDEX_DATA__FIELD_CUTIN] = { "data/field_cutin.narc" },
+ [NARC_INDEX_DATA__DEMO_CLIMAX] = { "data/demo_climax.narc" },
+ [NARC_INDEX_WAZAEFFECT__EFFECTDATA__BALL_PARTICLE] = { "wazaeffect/effectdata/ball_particle.narc" },
+ [NARC_INDEX_WAZAEFFECT__PT_DEBUG__DEBUG_PARTICLE] = { "wazaeffect/pt_debug/debug_particle.narc" },
+ [NARC_INDEX_GRAPHIC__DENDOU_PC] = { "graphic/dendou_pc.narc" },
+ [NARC_INDEX_APPLICATION__WIFI_EARTH__WIFI_EARTH_PLACE] = { "application/wifi_earth/wifi_earth_place.narc" },
+ [NARC_INDEX_BATTLE__TR_AI__TR_AI_SEQ] = { "battle/tr_ai/tr_ai_seq.narc" },
+ [NARC_INDEX_GRAPHIC__WORLDTRADE] = { "graphic/worldtrade.narc" },
+ [NARC_INDEX_GRAPHIC__DENDOU_DEMO] = { "graphic/dendou_demo.narc" },
+ [NARC_INDEX_ARC__ENCDATA_EX] = { "arc/encdata_ex.narc" },
+ [NARC_INDEX_DATA__MMODEL__FLDEFF] = { "data/mmodel/fldeff.narc" },
+ [NARC_INDEX_BATTLE__GRAPHIC__VS_DEMO_GRA] = { "battle/graphic/vs_demo_gra.narc" },
+ [NARC_INDEX_POKETOOL__PL_POKEZUKAN] = { "poketool/pl_pokezukan.narc" },
+ [NARC_INDEX_ARC__BM_ANIME] = { "arc/bm_anime.narc" },
+ [NARC_INDEX_ARC__BM_ANIME_LIST] = { "arc/bm_anime_list.narc" },
+ [NARC_INDEX_GRAPHIC__FIELD_ENCOUNTEFFECT] = { "graphic/field_encounteffect.narc" },
+ [NARC_INDEX_GRAPHIC__WAZA_OSHIE_GRA] = { "graphic/waza_oshie_gra.narc" },
+ [NARC_INDEX_POKETOOL__POKEANM__PL_POKEANM] = { "poketool/pokeanm/pl_pokeanm.narc" },
+ [NARC_INDEX_FIELDDATA__POKEMON_TRADE__FLD_TRADE] = { "fielddata/pokemon_trade/fld_trade.narc" },
+ [NARC_INDEX_GRAPHIC__MYSTERY] = { "graphic/mystery.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__PL_OTHERPOKE] = { "poketool/pokegra/pl_otherpoke.narc" },
+ [NARC_INDEX_DEMO__EGG__DATA__EGG_DATA] = { "demo/egg/data/egg_data.narc" },
+ [NARC_INDEX_DEMO__EGG__DATA__PARTICLE__EGG_DEMO_PARTICLE] = { "demo/egg/data/particle/egg_demo_particle.narc" },
+ [NARC_INDEX_ARC__SHIP_DEMO] = { "arc/ship_demo.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__HEIGHT_O] = { "poketool/pokegra/height_o.narc" },
+ [NARC_INDEX_GRAPHIC__NUTMIXER] = { "graphic/nutmixer.narc" },
+ [NARC_INDEX_GRAPHIC__BTOWER] = { "graphic/btower.narc" },
+ [NARC_INDEX_DEMO__SHINKA__DATA__PARTICLE__SHINKA_DEMO_PARTICLE] = { "demo/shinka/data/particle/shinka_demo_particle.narc" },
+ [NARC_INDEX_DEMO__INTRO__INTRO] = { "demo/intro/intro.narc" },
+ [NARC_INDEX_ARC__TV] = { "arc/tv.narc" },
+ [NARC_INDEX_GRAPHIC__ENDING] = { "graphic/ending.narc" },
+ [NARC_INDEX_DEMO__TITLE__OP_DEMO] = { "demo/title/op_demo.narc" },
+ [NARC_INDEX_APPLICATION__WIFI_EARTH__WIFI_EARTH] = { "application/wifi_earth/wifi_earth.narc" },
+ [NARC_INDEX_GRAPHIC__RANKING] = { "graphic/ranking.narc" },
+ [NARC_INDEX_ARC__PPARK] = { "arc/ppark.narc" },
+ [NARC_INDEX_DEMO__SYOUJYOU__SYOUJYOU] = { "demo/syoujyou/syoujyou.narc" },
+ [NARC_INDEX_DATA__SLOT] = { "data/slot.narc" },
+ [NARC_INDEX_BATTLE__B_TOWER__BTDTR] = { "battle/b_tower/btdtr.narc" },
+ [NARC_INDEX_BATTLE__B_TOWER__BTDPM] = { "battle/b_tower/btdpm.narc" },
+ [NARC_INDEX_DEMO__INTRO__INTRO_TV] = { "demo/intro/intro_tv.narc" },
+ [NARC_INDEX_POKETOOL__TRMSG__TRTBLOFS] = { "poketool/trmsg/trtblofs.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__POKE_YOFS] = { "poketool/pokegra/poke_yofs.narc" },
+ [NARC_INDEX_APPLICATION__ZUKANLIST__ZKN_DATA__ZUKAN_ENC_DIAMOND] = { "application/zukanlist/zkn_data/zukan_enc_diamond.narc" },
+ [NARC_INDEX_APPLICATION__ZUKANLIST__ZKN_DATA__ZUKAN_ENC_PEARL] = { "application/zukanlist/zkn_data/zukan_enc_pearl.narc" },
+ [NARC_INDEX_GRAPHIC__HIDEN_EFFECT] = { "graphic/hiden_effect.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__POKE_SHADOW] = { "poketool/pokegra/poke_shadow.narc" },
+ [NARC_INDEX_FIELDDATA__ENCOUNTDATA__P_ENC_DATA] = { "fielddata/encountdata/p_enc_data.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__POKE_SHADOW_OFX] = { "poketool/pokegra/poke_shadow_ofx.narc" },
+ [NARC_INDEX_POKETOOL__SHINZUKAN] = { "poketool/shinzukan.narc" },
+ [NARC_INDEX_GRAPHIC__WIFI2DCHAR] = { "graphic/wifi2dchar.narc" },
+ [NARC_INDEX_POKETOOL__POKE_EDIT__PL_POKE_DATA] = { "poketool/poke_edit/pl_poke_data.narc" },
+ [NARC_INDEX_DEBUG__CB_EDIT__D_TEST] = { "debug/cb_edit/d_test.narc" },
+ [NARC_INDEX_FRONTIER__SCRIPT__FR_SCRIPT] = { "frontier/script/fr_script.narc" },
+ [NARC_INDEX_RESOURCE__ENG__FRONTIER_GRAPHIC__FRONTIER_BG] = { "resource/eng/frontier_graphic/frontier_bg.narc" },
+ [NARC_INDEX_RESOURCE__ENG__FRONTIER_GRAPHIC__FRONTIER_OBJ] = { "resource/eng/frontier_graphic/frontier_obj.narc" },
+ [NARC_INDEX_APPLICATION__CUSTOM_BALL__EDIT__PL_CB_DATA] = { "application/custom_ball/edit/pl_cb_data.narc" },
+ [NARC_INDEX_GRAPHIC__WIFI_UNIONOBJ] = { "graphic/wifi_unionobj.narc" },
+ [NARC_INDEX_DATA__GURU2] = { "data/guru2.narc" },
+ [NARC_INDEX_DATA__FLDTANIME] = { "data/fldtanime.narc" },
+ [NARC_INDEX_ARC__SHIP_DEMO_PL] = { "arc/ship_demo_pl.narc" },
+ [NARC_INDEX_PARTICLEDATA__PL_FRONTIER__FRONTIER_PARTICLE] = { "particledata/pl_frontier/frontier_particle.narc" },
+ [NARC_INDEX_GRAPHIC__BUCKET] = { "graphic/bucket.narc" },
+ [NARC_INDEX_ARC__CODEIN_GRA] = { "arc/codein_gra.narc" },
+ [NARC_INDEX_ARC__AREA_WIN_GRA] = { "arc/area_win_gra.narc" },
+ [NARC_INDEX_FIELDDATA__ENCOUNTDATA__PL_ENC_DATA] = { "fielddata/encountdata/pl_enc_data.narc" },
+ [NARC_INDEX_RESOURCE__ENG__BATT_REC__BATT_REC_GRA] = { "resource/eng/batt_rec/batt_rec_gra.narc" },
+ [NARC_INDEX_GRAPHIC__WORLDTIMER] = { "graphic/worldtimer.narc" },
+ [NARC_INDEX_ARC__MANENE] = { "arc/manene.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__POKEGRA] = { "poketool/pokegra/pokegra.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__OTHERPOKE] = { "poketool/pokegra/otherpoke.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__DP_HEIGHT] = { "poketool/pokegra/dp_height.narc" },
+ [NARC_INDEX_POKETOOL__POKEGRA__DP_HEIGHT_O] = { "poketool/pokegra/dp_height_o.narc" },
+ [NARC_INDEX_GRAPHIC__LOBBY_NEWS] = { "graphic/lobby_news.narc" },
+ [NARC_INDEX_ARC__EMAIL_GRA] = { "arc/email_gra.narc" },
+ [NARC_INDEX_RESOURCE__ENG__WIFI_LOBBY_MINIGAME__WLMNGM_TOOL] = { "resource/eng/wifi_lobby_minigame/wlmngm_tool.narc" },
+ [NARC_INDEX_ARC__DEMO_TENGAN_GRA] = { "arc/demo_tengan_gra.narc" },
+ [NARC_INDEX_APPLICATION__BALLOON__GRAPHIC__BALLOON_GRA] = { "application/balloon/graphic/balloon_gra.narc" },
+ [NARC_INDEX_APPLICATION__WIFI_LOBBY__MAP_CONV__WFLBY_MAP] = { "application/wifi_lobby/map_conv/wflby_map.narc" },
+ [NARC_INDEX_GRAPHIC__WIFI_LOBBY] = { "graphic/wifi_lobby.narc" },
+ [NARC_INDEX_DATA__AREALIGHT] = { "data/arealight.narc" },
+ [NARC_INDEX_DATA__UGROUNDEFFECT] = { "data/ugroundeffect.narc" },
+ [NARC_INDEX_BATTLE__B_PL_TOWER__PL_BTDTR] = { "battle/b_pl_tower/pl_btdtr.narc" },
+ [NARC_INDEX_BATTLE__B_PL_TOWER__PL_BTDPM] = { "battle/b_pl_tower/pl_btdpm.narc" },
+ [NARC_INDEX_BATTLE__B_PL_STAGE__PL_BSDPM] = { "battle/b_pl_stage/pl_bsdpm.narc" },
+ [NARC_INDEX_FIELDDATA__TORNWORLD__TW_ARC] = { "fielddata/tornworld/tw_arc.narc" },
+ [NARC_INDEX_FIELDDATA__TORNWORLD__TW_ARC_ATTR] = { "fielddata/tornworld/tw_arc_attr.narc" },
+ [NARC_INDEX_DATA__TW_ARC_ETC] = { "data/tw_arc_etc.narc" },
+ [NARC_INDEX_RESOURCE__ENG__SCRATCH__SCRATCH] = { "resource/eng/scratch/scratch.narc" },
+ [NARC_INDEX_PARTICLEDATA__PL_POKELIST__POKELIST_PARTICLE] = { "particledata/pl_pokelist/pokelist_particle.narc" },
+ [NARC_INDEX_GRAPHIC__WIFI_LOBBY_OTHER] = { "graphic/wifi_lobby_other.narc" },
+ [NARC_INDEX_GRAPHIC__FOOTPRINT_BOARD] = { "graphic/footprint_board.narc" },
+ [NARC_INDEX_APPLICATION__ZUKANLIST__ZKN_DATA__ZUKAN_ENC_PLATINUM] = { "application/zukanlist/zkn_data/zukan_enc_platinum.narc" },
+ [NARC_INDEX_APPLICATION__BUCKET__BALLSLOW_DATA] = { "application/bucket/ballslow_data.narc" },
+ [NARC_INDEX_PARTICLEDATA__PL_ETC__PL_ETC_PARTICLE] = { "particledata/pl_etc/pl_etc_particle.narc" },
+ [NARC_INDEX_RESOURCE__ENG__PMS_AIKOTOBA__PMS_AIKOTOBA] = { "resource/eng/pms_aikotoba/pms_aikotoba.narc" },
+ [NARC_INDEX_GRAPHIC__UNIONOBJ2D_ONLYFRONT] = { "graphic/unionobj2d_onlyfront.narc" },
+ [NARC_INDEX_GRAPHIC__LIBRARY_TV] = { "graphic/library_tv.narc" },
+ [NARC_INDEX_APPLICATION__ZUKANLIST__ZKN_DATA__ZUKAN_DATA_GIRA] = { "application/zukanlist/zkn_data/zukan_data_gira.narc" },
};
static void ReadFromNarcMemberByPathAndIndex(void * dest, const char * path, int memberIndex, int offset, int bytesToRead);
@@ -313,32 +313,32 @@ static void * AllocAndReadFromNarcMemberByPathAndIndex (const char * path, int m
void NARC_ReadWholeMemberByIndexPair (void * dest, int narcIndex, int memberIndex)
{
- ReadFromNarcMemberByPathAndIndex(dest, NarcPaths[narcIndex], memberIndex, 0, 0);
+ ReadFromNarcMemberByPathAndIndex(dest, sNarcPaths[narcIndex], memberIndex, 0, 0);
}
void * NARC_AllocAndReadWholeMemberByIndexPair (int narcIndex, int memberIndex, int heapID)
{
- return AllocAndReadFromNarcMemberByPathAndIndex(NarcPaths[narcIndex], memberIndex, heapID, 0, 0, FALSE);
+ return AllocAndReadFromNarcMemberByPathAndIndex(sNarcPaths[narcIndex], memberIndex, heapID, 0, 0, FALSE);
}
void * NARC_AllocAtEndAndReadWholeMemberByIndexPair (int narcIndex, int memberIndex, int heapID)
{
- return AllocAndReadFromNarcMemberByPathAndIndex(NarcPaths[narcIndex], memberIndex, heapID, 0, 0, TRUE);
+ return AllocAndReadFromNarcMemberByPathAndIndex(sNarcPaths[narcIndex], memberIndex, heapID, 0, 0, TRUE);
}
void NARC_ReadFromMemberByIndexPair (void * dest, int narcIndex, int memberIndex, int offset, int bytesToRead)
{
- ReadFromNarcMemberByPathAndIndex(dest, NarcPaths[narcIndex], memberIndex, offset, bytesToRead);
+ ReadFromNarcMemberByPathAndIndex(dest, sNarcPaths[narcIndex], memberIndex, offset, bytesToRead);
}
void * NARC_AllocAndReadFromMemberByIndexPair (int narcIndex, int memberIndex, int heapID, int offset, int bytesToRead)
{
- return AllocAndReadFromNarcMemberByPathAndIndex(NarcPaths[narcIndex], memberIndex, heapID, offset, bytesToRead, FALSE);
+ return AllocAndReadFromNarcMemberByPathAndIndex(sNarcPaths[narcIndex], memberIndex, heapID, offset, bytesToRead, FALSE);
}
void * NARC_AllocAtEndAndReadFromMemberByIndexPair (int narcIndex, int memberIndex, int heapID, int offset, int bytesToRead)
{
- return AllocAndReadFromNarcMemberByPathAndIndex(NarcPaths[narcIndex], memberIndex, heapID, offset, bytesToRead, TRUE);
+ return AllocAndReadFromNarcMemberByPathAndIndex(sNarcPaths[narcIndex], memberIndex, heapID, offset, bytesToRead, TRUE);
}
u32 NARC_GetMemberSizeByIndexPair (int narcIndex, int memberIndex)
@@ -353,7 +353,7 @@ u32 NARC_GetMemberSizeByIndexPair (int narcIndex, int memberIndex)
u16 fileCount = 0;
FS_InitFile(&file);
- FS_OpenFile(&file, NarcPaths[narcIndex]);
+ FS_OpenFile(&file, sNarcPaths[narcIndex]);
FS_SeekFile(&file, 12, FS_SEEK_SET);
FS_ReadFile(&file, &chunkSize, 2);
@@ -396,7 +396,7 @@ NARC * NARC_ctor (u32 narcIndex, u32 heapID)
narc->unk_AC = 0;
FS_InitFile(&(narc->unk_00));
- FS_OpenFile(&(narc->unk_00), NarcPaths[narcIndex]);
+ FS_OpenFile(&(narc->unk_00), sNarcPaths[narcIndex]);
FS_SeekFile(&(narc->unk_00), 12, FS_SEEK_SET);
FS_ReadFile(&(narc->unk_00), &(narc->unk_AC), 2);
FS_SeekFile(&(narc->unk_00), narc->unk_AC + 4, FS_SEEK_SET);
diff --git a/src/overlay005/ov5_021D0D80.c b/src/overlay005/ov5_021D0D80.c
index bf723f47ad..41348183ca 100644
--- a/src/overlay005/ov5_021D0D80.c
+++ b/src/overlay005/ov5_021D0D80.c
@@ -163,8 +163,8 @@ static int ov5_021D0DA4 (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
G2_BlendNone();
G2S_BlendNone();
@@ -350,7 +350,7 @@ static int ov5_021D0FB4 (UnkStruct_020067E8 * param0, int * param1)
sub_0201DC3C();
sub_0201CBA0();
ov5_021D1AE4(v0->unk_04->unk_04);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_FreeToHeap(v0->unk_08);
Heap_FreeToHeap(v0->unk_04);
@@ -948,7 +948,7 @@ static void ov5_021D1968 (UnkStruct_0203CDB0 * param0)
ov5_021D5CE4(param0->unk_04->unk_10, ov5_021EFA8C(param0->unk_30));
sub_02068344(param0);
ov5_021EE7C0(param0);
- sub_02017798(ov5_021D0D80, param0);
+ SetMainCallback(ov5_021D0D80, param0);
}
static UnkStruct_ov5_021D1A68 * ov5_021D1A14 (int param0, int param1)
diff --git a/src/overlay005/ov5_021D2F14.c b/src/overlay005/ov5_021D2F14.c
index 7c71374653..ae76a46ef7 100644
--- a/src/overlay005/ov5_021D2F14.c
+++ b/src/overlay005/ov5_021D2F14.c
@@ -99,10 +99,10 @@ void ov5_021D30A8 (UnkStruct_ov5_021D30A8 * param0)
}
}
-UnkStruct_02022550 * ov5_021D3104 (UnkStruct_ov5_021D30A8 * param0, const UnkStruct_ov7_0224F358 * param1)
+GraphicElementData * ov5_021D3104 (UnkStruct_ov5_021D30A8 * param0, const UnkStruct_ov7_0224F358 * param1)
{
UnkStruct_ov115_02261520 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
VecFx32 v2 = {FX32_ONE, FX32_ONE, FX32_ONE};
VecFx32 v3;
diff --git a/src/overlay005/ov5_021D521C.c b/src/overlay005/ov5_021D521C.c
index f8d82d5761..c110bf8e80 100644
--- a/src/overlay005/ov5_021D521C.c
+++ b/src/overlay005/ov5_021D521C.c
@@ -5,7 +5,7 @@
#include "overlay005/struct_ov5_021D5894.h"
#include "unk_02006E3C.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_0201E0A4.h"
#include "overlay005/ov5_021D521C.h"
@@ -39,7 +39,7 @@ UnkStruct_ov5_021D538C * ov5_021D521C (UnkStruct_ov5_021D5894 * param0, const u8
v1->unk_00 = ov5_021D53D4(param1, &v1->unk_04);
v1->unk_08 = 0;
- v2 = sub_020138C8() / 2;
+ v2 = GetSecondsSinceMidnight() / 2;
for (v0 = 0; v0 < v1->unk_00; v0++) {
if (v1->unk_04[v0].unk_00 > v2) {
@@ -74,7 +74,7 @@ void ov5_021D5298 (UnkStruct_ov5_021D538C * param0)
GF_ASSERT(param0);
- v4 = sub_020138C8() / 2;
+ v4 = GetSecondsSinceMidnight() / 2;
if (param0->unk_00 > 1) {
if ((param0->unk_08 - 1) >= 0) {
diff --git a/src/overlay005/ov5_021D5EB8.c b/src/overlay005/ov5_021D5EB8.c
index eb098fc3c7..06e745a418 100644
--- a/src/overlay005/ov5_021D5EB8.c
+++ b/src/overlay005/ov5_021D5EB8.c
@@ -74,7 +74,7 @@ typedef struct {
typedef struct UnkStruct_ov5_021D6FA8_tag {
UnkStruct_ov5_021D6594 * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
void * unk_08;
s32 unk_0C[10];
struct UnkStruct_ov5_021D6FA8_tag * unk_34;
@@ -118,7 +118,7 @@ typedef struct {
UnkStruct_02009F38 * unk_10;
NNSG2dRendererInstance unk_14;
NNSG2dRenderSurface unk_C0;
- UnkStruct_020218BC * unk_130;
+ GraphicElementManager * unk_130;
SysTask * unk_134;
} UnkStruct_ov5_021D61D0;
@@ -258,7 +258,7 @@ static void ov5_021D61D0(UnkStruct_ov5_021D61D0 * param0);
static void ov5_021D6290(UnkStruct_02009F38 * param0, int param1, int param2);
static void ov5_021D62BC(UnkStruct_ov5_021D61D0 * param0);
static void ov5_021D6284(SysTask * param0, void * param1);
-static void ov5_021D630C(UnkStruct_02022550 * param0, VecFx32 * param1);
+static void ov5_021D630C(GraphicElementData * param0, VecFx32 * param1);
static void ov5_021D6FA8(UnkStruct_ov5_021D6FA8 * param0);
static void ov5_021D6FD8(UnkStruct_ov5_021D6FA8 * param0);
static UnkStruct_ov5_021D6FA8 * ov5_021D6F00(UnkStruct_ov5_021DB4B8 * param0, int param1);
@@ -854,7 +854,7 @@ static void ov5_021D62BC (UnkStruct_ov5_021D61D0 * param0)
param0->unk_134 = NULL;
}
-static void ov5_021D630C (UnkStruct_02022550 * param0, VecFx32 * param1)
+static void ov5_021D630C (GraphicElementData * param0, VecFx32 * param1)
{
if (param1->x > ((255 << FX32_SHIFT) + 64 * FX32_ONE)) {
param1->x %= ((255 << FX32_SHIFT) + 64 * FX32_ONE);
@@ -1611,7 +1611,7 @@ static void ov5_021D6F4C (UnkStruct_ov19_021DA864 * param0, UnkStruct_ov5_021D65
static void ov5_021D6FA8 (UnkStruct_ov5_021D6FA8 * param0)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
param0->unk_38->unk_34 = param0->unk_34;
param0->unk_34->unk_38 = param0->unk_38;
diff --git a/src/overlay005/ov5_021DC018.c b/src/overlay005/ov5_021DC018.c
index f0ac40f2e8..4e90c0c3bd 100644
--- a/src/overlay005/ov5_021DC018.c
+++ b/src/overlay005/ov5_021DC018.c
@@ -62,13 +62,13 @@ struct UnkStruct_ov5_021DC1A4_t {
u16 * unk_A4;
u16 * unk_A8;
UnkStruct_02081CF4 unk_AC;
- UnkStruct_02001AF4 * unk_B8;
- UnkStruct_02013A04 unk_BC[28];
+ UIControlData * unk_B8;
+ ResourceMetadata unk_BC[28];
UnkStruct_ov84_02240FA8 unk_19C;
UnkStruct_0200112C * unk_1BC;
u16 unk_1C0;
u16 unk_1C2;
- UnkStruct_02013A04 unk_1C4[28];
+ ResourceMetadata unk_1C4[28];
u16 unk_2A4[28];
u16 unk_2DC;
};
diff --git a/src/overlay005/ov5_021DDBE8.c b/src/overlay005/ov5_021DDBE8.c
index 49086491af..f75b5ad7fb 100644
--- a/src/overlay005/ov5_021DDBE8.c
+++ b/src/overlay005/ov5_021DDBE8.c
@@ -177,7 +177,7 @@ static void ov5_021DEDE8(SysTask * param0, void * param1);
static void ov5_021DEE24(SysTask * param0, void * param1);
static void ov5_021DEE50(UnkStruct_ov5_021EF43C * param0, void * param1);
static void ov5_021DEE84(UnkStruct_ov5_021DED04 * param0);
-static void ov5_021DE67C(UnkStruct_02022550 * param0, void * param1, u32 param2);
+static void ov5_021DE67C(GraphicElementData * param0, void * param1, u32 param2);
static void ov5_021DF258(SysTask * param0, void * param1);
static void ov5_021DF28C(SysTask * param0, void * param1);
static void ov5_021DF30C(UnkStruct_0203CDB0 * param0);
@@ -865,7 +865,7 @@ void ov5_021DE5A4 (UnkStruct_ov5_021DE47C * param0, UnkStruct_ov5_021DE5A4 * par
}
}
-void ov5_021DE5D0 (UnkStruct_02022550 * param0, u32 param1, u32 param2, u8 param3, u16 param4)
+void ov5_021DE5D0 (GraphicElementData * param0, u32 param1, u32 param2, u8 param3, u16 param4)
{
UnkStruct_ov5_021DE5D0 v0;
NNSG2dPaletteData * v1;
@@ -883,10 +883,10 @@ void ov5_021DE5D0 (UnkStruct_02022550 * param0, u32 param1, u32 param2, u8 param
Heap_FreeToHeap(v2);
}
-UnkStruct_02022550 * ov5_021DE62C (UnkStruct_ov5_021DE47C * param0, UnkStruct_ov5_021DE5A4 * param1, fx32 param2, fx32 param3, fx32 param4, int param5)
+GraphicElementData * ov5_021DE62C (UnkStruct_ov5_021DE47C * param0, UnkStruct_ov5_021DE5A4 * param1, fx32 param2, fx32 param3, fx32 param4, int param5)
{
UnkStruct_ov83_0223D9A8 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
v0.unk_00 = param0->unk_00;
v0.unk_04 = ¶m1->unk_10;
@@ -913,7 +913,7 @@ VecFx32 ov5_021DE660 (fx32 param0, fx32 param1, fx32 param2)
return v0;
}
-static void ov5_021DE67C (UnkStruct_02022550 * param0, void * param1, u32 param2)
+static void ov5_021DE67C (GraphicElementData * param0, void * param1, u32 param2)
{
NNSG2dImagePaletteProxy * v0;
diff --git a/src/overlay005/ov5_021E2338.c b/src/overlay005/ov5_021E2338.c
index 81847724f3..41f9199e5c 100644
--- a/src/overlay005/ov5_021E2338.c
+++ b/src/overlay005/ov5_021E2338.c
@@ -520,7 +520,7 @@ typedef struct {
UnkStruct_ov5_021DDF74 * unk_44;
UnkStruct_ov5_021DE47C unk_48;
UnkStruct_ov5_021DE5A4 unk_1E8;
- UnkStruct_02022550 * unk_21C[2];
+ GraphicElementData * unk_21C[2];
UnkStruct_020203AC * unk_224;
UnkStruct_ov5_021DDE14 unk_228;
s32 unk_240;
@@ -532,7 +532,7 @@ typedef struct {
UnkStruct_ov5_021DE374 * unk_28;
UnkStruct_ov5_021DE47C unk_2C;
UnkStruct_ov5_021DE5A4 unk_1CC;
- UnkStruct_02022550 * unk_200[2];
+ GraphicElementData * unk_200[2];
UnkStruct_020203AC * unk_208;
UnkStruct_ov5_021DDE14 unk_20C;
s32 unk_224;
@@ -546,7 +546,7 @@ typedef struct {
BOOL unk_4C;
UnkStruct_ov5_021DE47C unk_50;
UnkStruct_ov5_021DE5A4 unk_1F0;
- UnkStruct_02022550 * unk_224[2];
+ GraphicElementData * unk_224[2];
UnkStruct_020203AC * unk_22C;
UnkStruct_ov5_021DDE14 unk_230;
s32 unk_248;
@@ -555,7 +555,7 @@ typedef struct {
typedef struct {
UnkStruct_ov5_021DE47C unk_00;
UnkStruct_ov5_021DE5A4 unk_1A0;
- UnkStruct_02022550 * unk_1D4[3];
+ GraphicElementData * unk_1D4[3];
UnkStruct_ov5_021DDD80 unk_1E0[3];
UnkStruct_ov5_021DDD80 unk_21C[3];
UnkStruct_ov5_021DE6BC * unk_258[3];
@@ -575,7 +575,7 @@ typedef struct {
UnkStruct_ov5_021DDD80 unk_48;
UnkStruct_ov5_021DE47C unk_5C;
UnkStruct_ov5_021DE5A4 unk_1FC;
- UnkStruct_02022550 * unk_230;
+ GraphicElementData * unk_230;
UnkStruct_020203AC * unk_234;
UnkStruct_ov5_021DDE14 unk_238;
s32 unk_250;
@@ -584,7 +584,7 @@ typedef struct {
typedef struct {
UnkStruct_ov5_021DE47C unk_00;
UnkStruct_ov5_021DE5A4 unk_1A0;
- UnkStruct_02022550 * unk_1D4[3];
+ GraphicElementData * unk_1D4[3];
UnkStruct_ov5_021DDD80 unk_1E0[3];
UnkStruct_ov5_021DDD80 unk_21C[3];
BOOL unk_258[3];
@@ -1630,14 +1630,14 @@ typedef struct {
UnkStruct_ov5_021DDE14 unk_14;
UnkStruct_ov5_021DE47C unk_2C;
UnkStruct_ov5_021DE5A4 unk_1CC;
- UnkStruct_02022550 * unk_200;
+ GraphicElementData * unk_200;
s32 unk_204;
} UnkStruct_ov5_021E4260;
typedef struct {
UnkStruct_ov5_021DE47C unk_00;
UnkStruct_ov5_021DE5A4 unk_1A0;
- UnkStruct_02022550 * unk_1D4[4];
+ GraphicElementData * unk_1D4[4];
UnkStruct_ov5_021DDE14 unk_1E4[2];
} UnkStruct_ov5_021E44C0;
@@ -1892,7 +1892,7 @@ static const s32 Unk_ov5_021F9E94[6][8] = {
typedef struct {
UnkStruct_ov5_021DE47C unk_00;
UnkStruct_ov5_021DE5A4 unk_1A0;
- UnkStruct_02022550 * unk_1D4[6];
+ GraphicElementData * unk_1D4[6];
UnkStruct_ov5_021DDE14 unk_1EC[6];
UnkStruct_ov5_021DDE14 unk_27C[6];
UnkStruct_ov5_021DDE14 unk_30C[6];
@@ -1907,7 +1907,7 @@ typedef struct {
UnkStruct_ov5_021DEC18 * unk_04;
UnkStruct_ov5_021DE47C unk_08;
UnkStruct_ov5_021DE5A4 unk_1A8;
- UnkStruct_02022550 * unk_1DC;
+ GraphicElementData * unk_1DC;
UnkStruct_ov5_021DDD80 unk_1E0;
UnkStruct_ov5_021DDD80 unk_1F4;
UnkStruct_ov5_021DDD80 unk_208;
@@ -2515,7 +2515,7 @@ static const UnkStruct_ov5_021F9D0C Unk_ov5_021F9D0C[5] = {
typedef struct {
s16 unk_00;
s16 unk_02;
- UnkStruct_02022550 * unk_04[4];
+ GraphicElementData * unk_04[4];
UnkStruct_ov5_021DDDBC unk_14[4];
} UnkStruct_ov5_021E5128;
@@ -2526,7 +2526,7 @@ typedef struct {
UnkStruct_ov5_021DED04 * unk_40;
UnkStruct_ov5_021DE47C unk_44;
UnkStruct_ov5_021DE5A4 unk_1E4[2];
- UnkStruct_02022550 * unk_24C;
+ GraphicElementData * unk_24C;
UnkStruct_ov5_021E5128 unk_250;
UnkStruct_ov5_021E52A8_sub1 unk_2B4;
UnkStruct_ov5_021E52A8_sub2 unk_2BC;
@@ -2543,7 +2543,7 @@ typedef struct {
UnkStruct_ov5_021DDD80 unk_48;
UnkStruct_ov5_021DE47C unk_5C;
UnkStruct_ov5_021DE5A4 unk_1FC[4];
- UnkStruct_02022550 * unk_2CC[4];
+ GraphicElementData * unk_2CC[4];
VecFx32 unk_2DC;
VecFx32 unk_2E8;
UnkStruct_ov5_021E5128 unk_2F4;
diff --git a/src/overlay005/ov5_021E622C.c b/src/overlay005/ov5_021E622C.c
index d26a0dd3b4..5906779fd7 100644
--- a/src/overlay005/ov5_021E622C.c
+++ b/src/overlay005/ov5_021E622C.c
@@ -7,7 +7,7 @@
#include "struct_decls/struct_02026218_decl.h"
#include "struct_decls/struct_02026224_decl.h"
#include "struct_decls/struct_02026310_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_0202CD88_decl.h"
#include "pokemon.h"
#include "struct_decls/struct_party_decl.h"
@@ -2041,8 +2041,8 @@ static void ov5_021E62C4 (Party * param0, int param1, UnkStruct_02026218 * param
Party_RemovePokemonBySlotIndex(param0, param1);
if (Party_HasSpecies(param0, 441) == 0) {
- UnkStruct_0202CC84 * v7 = sub_0202CC98(param3);
- sub_0202CCA8(v7);
+ ChatotCry * v7 = GetChatotCryDataFromSave(param3);
+ ResetChatotCryDataStatus(v7);
}
}
@@ -2441,7 +2441,7 @@ static void ov5_021E6948 (Pokemon * param0, BoxPokemon * param1, BoxPokemon * pa
if (v7->unk_00[v0] != 0) {
for (v1 = 0; v1 < 100; v1++) {
if (v7->unk_00[v0] == Item_MoveForTMHM(328 + v1)) {
- if (Pokemon_CanFormLearnTM(v3, v6, v1)) {
+ if (CanPokemonFormLearnTM(v3, v6, v1)) {
if (Pokemon_AddMove(param0, v7->unk_00[v0]) == 0xffff) {
Pokemon_ReplaceMove(param0, v7->unk_00[v0]);
}
diff --git a/src/overlay005/ov5_021EA874.c b/src/overlay005/ov5_021EA874.c
index 043ae1d748..396186c0c4 100644
--- a/src/overlay005/ov5_021EA874.c
+++ b/src/overlay005/ov5_021EA874.c
@@ -44,7 +44,7 @@
#include "overlay005/ov5_021EA874.h"
typedef struct {
- UnkStruct_02013A04 * unk_00;
+ ResourceMetadata * unk_00;
UnkStruct_0200112C * unk_04;
Strbuf* unk_08;
Strbuf* unk_0C;
@@ -55,7 +55,7 @@ typedef struct {
UnkStruct_0200B358 * unk_38;
MessageLoader * unk_3C;
int unk_40;
- UnkStruct_02001AF4 * unk_44;
+ UIControlData * unk_44;
int unk_48;
int unk_4C[8];
int unk_6C[8];
diff --git a/src/overlay005/ov5_021EF3A8.c b/src/overlay005/ov5_021EF3A8.c
index 8b0cbdf5e2..b1dda70103 100644
--- a/src/overlay005/ov5_021EF3A8.c
+++ b/src/overlay005/ov5_021EF3A8.c
@@ -55,7 +55,7 @@ void ov5_021EF3DC (UnkStruct_ov5_021EF3BC * param0)
{
BOOL v0;
- v0 = sub_020177BC(ov5_021EF47C, param0);
+ v0 = SetHBlankCallback(ov5_021EF47C, param0);
GF_ASSERT(v0 == 1);
param0->unk_00 = 1;
@@ -65,7 +65,7 @@ void ov5_021EF3FC (UnkStruct_ov5_021EF3BC * param0)
{
BOOL v0;
- v0 = sub_020177BC(NULL, NULL);
+ v0 = SetHBlankCallback(NULL, NULL);
GF_ASSERT(v0 == 1);
param0->unk_00 = 0;
diff --git a/src/overlay005/ov5_021F134C.c b/src/overlay005/ov5_021F134C.c
index 7422454526..9042dff90f 100644
--- a/src/overlay005/ov5_021F134C.c
+++ b/src/overlay005/ov5_021F134C.c
@@ -12,7 +12,7 @@
#include "overlay101/struct_ov101_021D86B0.h"
#include "unk_0200D9E8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02061804.h"
#include "unk_020711EC.h"
#include "unk_02073838.h"
@@ -138,7 +138,7 @@ static void ov5_021F1424 (SysTask * param0, void * param1)
int v0;
UnkStruct_ov5_021F1388 * v1 = param1;
- v0 = sub_02013960();
+ v0 = GetTimeOfDay();
switch (v1->unk_00) {
case 0:
diff --git a/src/overlay005/ov5_021F6454.c b/src/overlay005/ov5_021F6454.c
index b32c2a6ae8..6a40cb2ae0 100644
--- a/src/overlay005/ov5_021F6454.c
+++ b/src/overlay005/ov5_021F6454.c
@@ -94,7 +94,7 @@ struct UnkStruct_ov5_021F6704_t {
UnkStruct_0200112C * unk_23C;
u16 unk_240;
u16 unk_242;
- UnkStruct_02013A04 unk_244[120];
+ ResourceMetadata unk_244[120];
u16 unk_604[120];
u16 unk_6F4;
};
diff --git a/src/overlay005/ov5_021F77A8.c b/src/overlay005/ov5_021F77A8.c
index d3b9d71d6b..2fc3066237 100644
--- a/src/overlay005/ov5_021F77A8.c
+++ b/src/overlay005/ov5_021F77A8.c
@@ -586,7 +586,7 @@ struct UnkStruct_ov5_021F7ED8_t {
UnkStruct_0200112C * unk_F0;
u16 unk_F4;
u16 unk_F6;
- UnkStruct_02013A04 unk_F8[39];
+ ResourceMetadata unk_F8[39];
u16 unk_230[39];
u16 unk_27E;
};
diff --git a/src/overlay006/ov6_0223E140.c b/src/overlay006/ov6_0223E140.c
index b3663b3e4c..58eb4eab19 100644
--- a/src/overlay006/ov6_0223E140.c
+++ b/src/overlay006/ov6_0223E140.c
@@ -1136,7 +1136,7 @@ static BOOL ov6_0223EBDC (UnkStruct_ov6_0223EA98 * param0)
sub_02017350(¶m0->unk_24, param0->unk_E4.unk_00, v2, param0->unk_F4.unk_00);
if (v0[0] && v0[1]) {
- sub_020059D0(0, 480, 0, 100, 4, 0);
+ Sound_PlayPokemonCry(0, 480, 0, 100, 4, 0);
param0->unk_18++;
}
break;
@@ -1359,7 +1359,7 @@ static BOOL ov6_0223EE5C (UnkStruct_ov6_0223EA98 * param0)
}
param0->unk_D0 = 0;
- sub_020059D0(0, 481, 0, 100, 4, 0);
+ Sound_PlayPokemonCry(0, 481, 0, 100, 4, 0);
param0->unk_18++;
break;
case 16:
@@ -1500,7 +1500,7 @@ static BOOL ov6_0223F744 (UnkStruct_ov6_0223EA98 * param0)
sub_02017350(¶m0->unk_24, param0->unk_E4.unk_00, v2, param0->unk_F4.unk_00);
if (v0[0] && v0[1]) {
- sub_020059D0(0, 482, 0, 100, 4, 0);
+ Sound_PlayPokemonCry(0, 482, 0, 100, 4, 0);
param0->unk_18++;
}
diff --git a/src/overlay006/ov6_02240C9C.c b/src/overlay006/ov6_02240C9C.c
index 6adc5bc335..4a40011f04 100644
--- a/src/overlay006/ov6_02240C9C.c
+++ b/src/overlay006/ov6_02240C9C.c
@@ -17,7 +17,7 @@
#include "overlay006/struct_ov6_02242634_sub2.h"
#include "narc.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_0201D15C.h"
#include "unk_02025E08.h"
@@ -175,7 +175,7 @@ void ov6_02240C9C (const UnkStruct_ov6_02242634 * param0, int * param1, int * pa
{
int v0;
- v0 = sub_02013960();
+ v0 = GetTimeOfDay();
if ((v0 == 1) || (v0 == 2)) {
(*param1) = param0->unk_48[0];
@@ -1686,7 +1686,7 @@ static BOOL ov6_02242514 (const int param0, const UnkStruct_ov6_022422D0 * param
}
}
- sub_02077F0C(param2, param3->battleType, v0);
+ Pokemon_GiveHeldItem(param2, param3->battleType, v0);
{
u8 v1;
diff --git a/src/overlay006/ov6_022426AC.c b/src/overlay006/ov6_022426AC.c
index b8d0c9efda..4d2a5435de 100644
--- a/src/overlay006/ov6_022426AC.c
+++ b/src/overlay006/ov6_022426AC.c
@@ -31,9 +31,9 @@ typedef struct UnkStruct_ov6_022426B8_t {
void * unk_20;
void * unk_24;
ArchivedSprite unk_28;
- UnkStruct_020218BC * unk_38;
+ GraphicElementManager * unk_38;
UnkStruct_0200C738 unk_3C;
- UnkStruct_02022550 * unk_1C8;
+ GraphicElementData * unk_1C8;
BOOL unk_1CC;
BOOL unk_1D0;
} UnkStruct_ov6_022426B8;
diff --git a/src/overlay006/ov6_02243258.c b/src/overlay006/ov6_02243258.c
index 17cd1c2379..928c0ed0f1 100644
--- a/src/overlay006/ov6_02243258.c
+++ b/src/overlay006/ov6_02243258.c
@@ -72,7 +72,7 @@ typedef struct {
NNSG2dScreenData * unk_64;
NNSG2dCharacterData * unk_68;
NNSG2dPaletteData * unk_6C;
- UnkStruct_020218BC * unk_70;
+ GraphicElementManager * unk_70;
UnkStruct_0200C738 unk_74;
UnkStruct_02009714 * unk_200;
UnkStruct_02009714 * unk_204;
@@ -83,8 +83,8 @@ typedef struct {
UnkStruct_02009DC8 * unk_22C[4];
UnkStruct_02009DC8 * unk_23C[2];
UnkStruct_020711EC * unk_244;
- UnkStruct_02022550 * unk_248;
- UnkStruct_02022550 * unk_24C;
+ GraphicElementData * unk_248;
+ GraphicElementData * unk_24C;
UnkStruct_ov101_021D5D90 * unk_250;
UnkStruct_ov101_021D5D90 * unk_254;
ArchivedSprite unk_258;
@@ -123,7 +123,7 @@ typedef struct {
fx32 unk_4C;
fx32 unk_50;
fx32 unk_54;
- UnkStruct_02022550 * unk_58;
+ GraphicElementData * unk_58;
UnkStruct_ov6_0224543C unk_5C;
UnkStruct_ov101_021D5D90 * unk_60;
SysTask * unk_64;
@@ -131,7 +131,7 @@ typedef struct {
typedef struct {
UnkStruct_ov6_02243FFC * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
} UnkStruct_ov6_02245B4C;
typedef struct {
@@ -141,7 +141,7 @@ typedef struct {
int unk_0C;
VecFx32 unk_10;
UnkStruct_ov6_02243FFC * unk_1C;
- UnkStruct_02022550 * unk_20;
+ GraphicElementData * unk_20;
} UnkStruct_ov6_02245B74;
typedef struct {
@@ -159,7 +159,7 @@ typedef struct {
s8 unk_05;
s8 unk_06;
s8 unk_07;
- UnkStruct_020218BC * unk_08;
+ GraphicElementManager * unk_08;
UnkStruct_0200C738 unk_0C;
UnkStruct_02009714 * unk_198;
UnkStruct_02009714 * unk_19C;
@@ -179,7 +179,7 @@ typedef struct {
int unk_10;
UnkStruct_0203CDB0 * unk_14;
UnkStruct_ov6_02243258 unk_18;
- UnkStruct_02022550 * unk_1D0;
+ GraphicElementData * unk_1D0;
UnkStruct_020711EC * unk_1D4;
UnkStruct_ov101_021D5D90 * unk_1D8;
SysTask * unk_1DC;
@@ -188,7 +188,7 @@ typedef struct {
typedef struct {
UnkStruct_020711EC * unk_00;
UnkStruct_0203CDB0 * unk_04;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
UnkStruct_ov6_02243258 * unk_0C;
} UnkStruct_ov6_02243888;
@@ -211,7 +211,7 @@ typedef struct {
fx32 unk_50;
fx32 unk_54;
UnkStruct_ov6_02243888 unk_58;
- UnkStruct_02022550 * unk_68;
+ GraphicElementData * unk_68;
UnkStruct_ov101_021D5D90 * unk_6C;
SysTask * unk_70;
} UnkStruct_ov6_02249110;
@@ -226,7 +226,7 @@ typedef struct {
typedef struct {
int unk_00;
int unk_04;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
UnkStruct_ov6_02245328 unk_0C;
} UnkStruct_ov6_02245364;
@@ -251,7 +251,7 @@ typedef struct {
} UnkStruct_ov100_021D4890;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
UnkStruct_ov6_02243FFC * unk_04;
} UnkStruct_ov6_02245F80;
@@ -272,11 +272,11 @@ static NARC * ov6_0224491C(void);
static void ov6_02244928(UnkStruct_ov6_02243FFC * param0, NARC * param1);
static void ov6_02244B6C(UnkStruct_ov6_02243FFC * param0);
static void ov6_02244C10(UnkStruct_ov6_02243FFC * param0);
-static UnkStruct_02022550 * ov6_02244C20(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7);
-static UnkStruct_02022550 * ov6_02244CD4(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, int param2, int param3);
-static UnkStruct_02022550 * ov6_02244CFC(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1);
-static void ov6_02244D34(UnkStruct_02022550 * param0);
-static UnkStruct_02022550 * ov6_02244D4C(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, int param2, int param3);
+static GraphicElementData * ov6_02244C20(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7);
+static GraphicElementData * ov6_02244CD4(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, int param2, int param3);
+static GraphicElementData * ov6_02244CFC(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1);
+static void ov6_02244D34(GraphicElementData * param0);
+static GraphicElementData * ov6_02244D4C(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, int param2, int param3);
static void ov6_02244DB4(UnkStruct_ov6_02243FFC * param0);
static void ov6_02244E54(NARC * param0, u32 param1, NNSG2dPaletteData ** param2);
static void ov6_02244E7C(BGL * param0, NARC * param1, u32 param2, NNSG2dCharacterData ** param3);
@@ -299,7 +299,7 @@ static void ov6_02245118(UnkStruct_ov6_02243FFC * param0, void * param1);
static UnkStruct_02009DC8 * ov6_0224514C(UnkStruct_ov6_02243FFC * param0, NARC * param1);
static void ov6_02245170(UnkStruct_ov6_02243FFC * param0, void * param1);
static void ov6_022451B8(UnkStruct_ov6_02243FFC * param0);
-static UnkStruct_02022550 * ov6_0224529C(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1);
+static GraphicElementData * ov6_0224529C(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1);
static void ov6_022452BC(UnkStruct_ov6_02243FFC * param0, int param1);
static void ov6_02245328(UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, const VecFx32 * param2, int param3, int param4, int param5);
static void ov6_0224543C(UnkStruct_ov6_02243FFC * param0);
@@ -308,7 +308,7 @@ static int ov6_02245470(UnkStruct_ov6_02243FFC * param0);
static void ov6_02245480(UnkStruct_ov6_02243FFC * param0);
static void ov6_0224551C(UnkStruct_ov6_02243FFC * param0);
static void ov6_022456D4(UnkStruct_ov6_02243FFC * param0);
-static UnkStruct_ov101_021D5D90 * ov6_02245B4C(UnkStruct_020711EC * param0, UnkStruct_02022550 * param1);
+static UnkStruct_ov101_021D5D90 * ov6_02245B4C(UnkStruct_020711EC * param0, GraphicElementData * param1);
static void ov6_02245B74(UnkStruct_ov101_021D5D90 * param0);
static void ov6_02245B80(UnkStruct_ov101_021D5D90 * param0);
static void ov6_02245BC8(UnkStruct_ov101_021D5D90 * param0);
@@ -539,11 +539,11 @@ static void ov6_022436D0 (UnkStruct_ov6_02243258 * param0, NARC * param1, int pa
GF_ASSERT(FALSE);
}
-static UnkStruct_02022550 * ov6_02243740 (UnkStruct_ov6_02243258 * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7)
+static GraphicElementData * ov6_02243740 (UnkStruct_ov6_02243258 * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7)
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
if (param5 == param0->unk_07) {
param5 = 0xffffffff;
@@ -564,15 +564,15 @@ static UnkStruct_02022550 * ov6_02243740 (UnkStruct_ov6_02243258 * param0, const
return v2;
}
-static void ov6_022437C8 (UnkStruct_02022550 * param0, VecFx32 * param1)
+static void ov6_022437C8 (GraphicElementData * param0, VecFx32 * param1)
{
const VecFx32 * v0 = sub_02021D28(param0);
*param1 = *v0;
}
-static UnkStruct_02022550 * ov6_022437DC (UnkStruct_ov6_02243258 * param0)
+static GraphicElementData * ov6_022437DC (UnkStruct_ov6_02243258 * param0)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
VecFx32 v1 = {0, 0, 0};
VecFx32 v2 = {0, 0, 0};
VecFx32 v3 = {0x1000, 0x1000, 0};
@@ -587,10 +587,10 @@ static UnkStruct_02022550 * ov6_022437DC (UnkStruct_ov6_02243258 * param0)
return v0;
}
-static UnkStruct_02022550 * ov6_02243848 (UnkStruct_ov6_02243258 * param0, int param1)
+static GraphicElementData * ov6_02243848 (UnkStruct_ov6_02243258 * param0, int param1)
{
VecFx32 v0 = {0, 0, 0};
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
u32 v2 = 0;
if (param1 == 1) {
@@ -608,7 +608,7 @@ static UnkStruct_02022550 * ov6_02243848 (UnkStruct_ov6_02243258 * param0, int p
static const UnkStruct_ov101_021D86B0 Unk_ov6_0224925C;
int(*const * const Unk_ov6_02249110[])(UnkStruct_ov6_02249110 *);
-static UnkStruct_ov101_021D5D90 * ov6_02243888 (UnkStruct_0203CDB0 * param0, UnkStruct_020711EC * param1, UnkStruct_ov6_02243258 * param2, UnkStruct_02022550 * param3)
+static UnkStruct_ov101_021D5D90 * ov6_02243888 (UnkStruct_0203CDB0 * param0, UnkStruct_020711EC * param1, UnkStruct_ov6_02243258 * param2, GraphicElementData * param3)
{
UnkStruct_ov101_021D5D90 * v0;
VecFx32 v1 = {0, 0, 0};
@@ -729,7 +729,7 @@ static void ov6_02243950 (UnkStruct_ov101_021D5D90 * param0)
ov5_021F0F10(v2->unk_70, 1, -((FX32_ONE * 120)), 12);
{
- UnkStruct_02022550 * v3;
+ GraphicElementData * v3;
VecFx32 v4 = {0, 0, 0};
VecFx32 v5 = {0x2000, 0x2000, 0};
@@ -748,8 +748,8 @@ static void ov6_02243950 (UnkStruct_ov101_021D5D90 * param0)
static int ov6_02243AB8 (UnkStruct_ov6_02249110 * param0)
{
VecFx32 v0;
- UnkStruct_02022550 * v1 = param0->unk_68;
- UnkStruct_02022550 * v2 = param0->unk_58.unk_08;
+ GraphicElementData * v1 = param0->unk_68;
+ GraphicElementData * v2 = param0->unk_58.unk_08;
param0->unk_48 -= param0->unk_4C;
@@ -821,7 +821,7 @@ static int ov6_02243BB8 (UnkStruct_ov6_02249110 * param0)
static int ov6_02243BEC (UnkStruct_ov6_02249110 * param0)
{
VecFx32 v0;
- UnkStruct_02022550 * v1 = param0->unk_68;
+ GraphicElementData * v1 = param0->unk_68;
param0->unk_48 += param0->unk_4C;
param0->unk_4C += 0x1000;
@@ -913,7 +913,7 @@ static int ov6_02243CFC (UnkStruct_ov6_02249110 * param0)
static int ov6_02243DC0 (UnkStruct_ov6_02249110 * param0)
{
VecFx32 v0;
- UnkStruct_02022550 * v1 = param0->unk_68;
+ GraphicElementData * v1 = param0->unk_68;
param0->unk_48 -= param0->unk_4C;
@@ -1233,7 +1233,7 @@ static int ov6_02244228 (UnkStruct_ov6_02243FFC * param0)
param0->unk_00++;
{
- sub_02077E3C(param0->unk_5C);
+ Pokemon_IsEligibleForAction(param0->unk_5C);
}
}
@@ -1840,11 +1840,11 @@ static void ov6_02244C10 (UnkStruct_ov6_02243FFC * param0)
}
}
-static UnkStruct_02022550 * ov6_02244C20 (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7)
+static GraphicElementData * ov6_02244C20 (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7)
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
if (param5 == 4) {
sub_020093B4(
@@ -1867,9 +1867,9 @@ static UnkStruct_02022550 * ov6_02244C20 (UnkStruct_ov6_02243FFC * param0, const
return v2;
}
-static UnkStruct_02022550 * ov6_02244CD4 (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, int param2, int param3)
+static GraphicElementData * ov6_02244CD4 (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, int param2, int param3)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
v0 = ov6_02244C20(param0, param1, 1, 0, 1, 0, 0, param2);
sub_02021D6C(v0, param3);
@@ -1877,9 +1877,9 @@ static UnkStruct_02022550 * ov6_02244CD4 (UnkStruct_ov6_02243FFC * param0, const
return v0;
}
-static UnkStruct_02022550 * ov6_02244CFC (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1)
+static GraphicElementData * ov6_02244CFC (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
u32 v1 = 0;
if (param0->unk_0C == 1) {
@@ -1894,15 +1894,15 @@ static UnkStruct_02022550 * ov6_02244CFC (UnkStruct_ov6_02243FFC * param0, const
return v0;
}
-static void ov6_02244D34 (UnkStruct_02022550 * param0)
+static void ov6_02244D34 (GraphicElementData * param0)
{
sub_02021CC8(param0, 1);
sub_02021CE4(param0, FX32_ONE);
}
-static UnkStruct_02022550 * ov6_02244D4C (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, int param2, int param3)
+static GraphicElementData * ov6_02244D4C (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1, int param2, int param3)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
VecFx32 v1 = {0, 0, 0};
VecFx32 v2 = {0x1000, 0x1000, 0};
@@ -2174,9 +2174,9 @@ static void ov6_022451B8 (UnkStruct_ov6_02243FFC * param0)
GF_ASSERT(v0 < 4);
}
-static UnkStruct_02022550 * ov6_0224529C (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1)
+static GraphicElementData * ov6_0224529C (UnkStruct_ov6_02243FFC * param0, const VecFx32 * param1)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
v0 = ov6_02244C20(param0, param1, 3, 2, 3, 0xffffffff, 0, 129);
return v0;
@@ -2419,7 +2419,7 @@ static void ov6_0224551C (UnkStruct_ov6_02243FFC * param0)
static int ov6_022455C4 (UnkStruct_ov6_02249198 * param0)
{
VecFx32 v0;
- UnkStruct_02022550 * v1 = param0->unk_58;
+ GraphicElementData * v1 = param0->unk_58;
param0->unk_48 += param0->unk_4C;
@@ -2515,7 +2515,7 @@ static void ov6_022456D4 (UnkStruct_ov6_02243FFC * param0)
ov5_021F0F10(v2->unk_64, 1, -((FX32_ONE * 120)), 12);
{
- UnkStruct_02022550 * v3;
+ GraphicElementData * v3;
VecFx32 v4 = {0, 0, 0};
VecFx32 v5 = {0x1000, 0x1000, 0};
@@ -2531,7 +2531,7 @@ static void ov6_022456D4 (UnkStruct_ov6_02243FFC * param0)
static int ov6_02245840 (UnkStruct_ov6_02249198 * param0)
{
VecFx32 v0;
- UnkStruct_02022550 * v1 = param0->unk_58;
+ GraphicElementData * v1 = param0->unk_58;
param0->unk_48 -= param0->unk_4C;
@@ -2592,7 +2592,7 @@ static int ov6_02245840 (UnkStruct_ov6_02249198 * param0)
}
{
- UnkStruct_02022550 * v2 = param0->unk_5C.unk_00->unk_248;
+ GraphicElementData * v2 = param0->unk_5C.unk_00->unk_248;
const VecFx32 * v3 = sub_02021D2C(v2);
VecFx32 v4 = *v3;
@@ -2616,7 +2616,7 @@ static int ov6_02245840 (UnkStruct_ov6_02249198 * param0)
static int ov6_022459B0 (UnkStruct_ov6_02249198 * param0)
{
- UnkStruct_02022550 * v0 = param0->unk_5C.unk_00->unk_248;
+ GraphicElementData * v0 = param0->unk_5C.unk_00->unk_248;
sub_02021D6C(v0, 3);
@@ -2647,7 +2647,7 @@ static int ov6_022459B0 (UnkStruct_ov6_02249198 * param0)
static int ov6_02245A0C (UnkStruct_ov6_02249198 * param0)
{
VecFx32 v0;
- UnkStruct_02022550 * v1 = param0->unk_58;
+ GraphicElementData * v1 = param0->unk_58;
param0->unk_48 += param0->unk_4C;
param0->unk_4C += 0x1000;
@@ -2683,7 +2683,7 @@ static int ov6_02245A0C (UnkStruct_ov6_02249198 * param0)
sub_02021C50(v1, &v0);
{
- UnkStruct_02022550 * v2 = param0->unk_5C.unk_00->unk_248;
+ GraphicElementData * v2 = param0->unk_5C.unk_00->unk_248;
const VecFx32 * v3 = sub_02021D2C(v2);
VecFx32 v4 = v0;
VecFx32 v5 = *v3;
@@ -2727,7 +2727,7 @@ static int(*const Unk_ov6_022491EC[])(UnkStruct_ov6_02249198 *) = {
ov6_02245B48
};
-static UnkStruct_ov101_021D5D90 * ov6_02245B4C (UnkStruct_020711EC * param0, UnkStruct_02022550 * param1)
+static UnkStruct_ov101_021D5D90 * ov6_02245B4C (UnkStruct_020711EC * param0, GraphicElementData * param1)
{
UnkStruct_ov101_021D5D90 * v0;
UnkStruct_ov6_02245B4C v1;
diff --git a/src/overlay006/ov6_022465FC.c b/src/overlay006/ov6_022465FC.c
index aa9537bb68..89609432e8 100644
--- a/src/overlay006/ov6_022465FC.c
+++ b/src/overlay006/ov6_022465FC.c
@@ -8,7 +8,7 @@
#include "struct_defs/struct_0203CDB0.h"
#include "narc.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_0201D15C.h"
#include "savedata/save_table.h"
#include "unk_0202E2CC.h"
@@ -301,7 +301,7 @@ int ov6_02246978 (UnkStruct_0203CDB0 * param0, int param1)
default:
GF_ASSERT(0);
case 0:
- switch (sub_02013960()) {
+ switch (GetTimeOfDay()) {
case 0:
return v1->unk_00;
case 1:
diff --git a/src/overlay006/ov6_02246B74.c b/src/overlay006/ov6_02246B74.c
index d063732933..3334ce3da2 100644
--- a/src/overlay006/ov6_02246B74.c
+++ b/src/overlay006/ov6_02246B74.c
@@ -1,7 +1,7 @@
#include
#include
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "overlay006/ov6_02246B74.h"
typedef struct {
@@ -126,7 +126,7 @@ int ov6_02246B74 (const int param0, const BOOL param1)
return 0;
}
- sub_020138A4(&v2);
+ GetCurrentDate(&v2);
GF_ASSERT(v2.month > 0);
GF_ASSERT(v2.month <= 12);
diff --git a/src/overlay007/ov7_02249960.c b/src/overlay007/ov7_02249960.c
index 3390557e18..ee64f411cb 100644
--- a/src/overlay007/ov7_02249960.c
+++ b/src/overlay007/ov7_02249960.c
@@ -56,8 +56,8 @@ typedef struct UnkStruct_ov7_02249C2C_t {
UnkStruct_0200B358 * unk_54;
UnkStruct_0200B358 * unk_58;
UnkStruct_0200112C * unk_5C;
- UnkStruct_02001AF4 * unk_60;
- UnkStruct_02013A04 * unk_64;
+ UIControlData * unk_60;
+ ResourceMetadata * unk_64;
UnkStruct_0203CDB0 * unk_68;
UnkFuncPtr_ov7_02249C2C unk_6C;
UnkFuncPtr_ov7_02249C2C_1 unk_70;
diff --git a/src/overlay007/ov7_0224B4E8.c b/src/overlay007/ov7_0224B4E8.c
index bc821c32d6..8d92efb405 100644
--- a/src/overlay007/ov7_0224B4E8.c
+++ b/src/overlay007/ov7_0224B4E8.c
@@ -41,8 +41,8 @@
typedef struct {
UnkStruct_0200112C * unk_00;
UnkStruct_0200112C * unk_04;
- UnkStruct_02013A04 * unk_08;
- UnkStruct_02013A04 * unk_0C;
+ ResourceMetadata * unk_08;
+ ResourceMetadata * unk_0C;
UnkStruct_0203CDB0 * unk_10;
Strbuf* unk_14;
Strbuf* unk_18;
diff --git a/src/overlay007/ov7_0224BE9C.c b/src/overlay007/ov7_0224BE9C.c
index 73c68f8164..b56ea09038 100644
--- a/src/overlay007/ov7_0224BE9C.c
+++ b/src/overlay007/ov7_0224BE9C.c
@@ -104,7 +104,7 @@ typedef struct {
u32 unk_00;
Window * unk_04;
UnkStruct_0200112C * unk_08;
- UnkStruct_02013A04 unk_0C[23];
+ ResourceMetadata unk_0C[23];
Strbuf* unk_C4[23];
s32 unk_120;
UnkStruct_0200B358 * unk_124;
@@ -115,14 +115,14 @@ typedef struct {
void (* unk_134)(void *, u32);
UnkStruct_02009714 * unk_138[4];
UnkStruct_02009DC8 * unk_148[4];
- UnkStruct_02022550 * unk_158[2];
+ GraphicElementData * unk_158[2];
} UnkStruct_ov7_0224C768;
typedef void (* UnkFuncPtr_ov7_0224C768)(void *, u32);
typedef struct {
u32 unk_00;
- UnkStruct_02001AF4 * unk_04;
+ UIControlData * unk_04;
u32 unk_08;
} UnkStruct_ov7_0224CC44;
@@ -142,7 +142,7 @@ typedef struct UnkStruct_ov7_0224BEFC_t {
UnkStruct_0207D3C0 * unk_10;
BGL * unk_14;
u32 unk_18;
- UnkStruct_020218BC * unk_1C;
+ GraphicElementManager * unk_1C;
UnkStruct_0200C738 unk_20;
MessageLoader * unk_1AC;
u32 unk_1B0;
@@ -168,7 +168,7 @@ static void ov7_0224C580(UnkStruct_ov7_0224C3EC * param0, MessageLoader * param1
static void ov7_0224C620(UnkStruct_ov7_0224C620 * param0, BGL * param1, MessageLoader * param2, u32 param3);
static void ov7_0224C698(UnkStruct_ov7_0224C620 * param0);
static void ov7_0224C6DC(UnkStruct_ov7_0224C620 * param0, u32 param1, u32 param2, u32 param3);
-static void ov7_0224C768(UnkStruct_ov7_0224C768 * param0, BGL * param1, u32 param2, const UnkStruct_ov7_0224F1B4 * param3, u32 param4, MessageLoader * param5, void * param6, UnkFuncPtr_ov7_0224C768 param7, UnkStruct_020218BC * param8);
+static void ov7_0224C768(UnkStruct_ov7_0224C768 * param0, BGL * param1, u32 param2, const UnkStruct_ov7_0224F1B4 * param3, u32 param4, MessageLoader * param5, void * param6, UnkFuncPtr_ov7_0224C768 param7, GraphicElementManager * param8);
static void ov7_0224C934(UnkStruct_ov7_0224C768 * param0);
static u32 ov7_0224C9A4(UnkStruct_ov7_0224C768 * param0);
static void ov7_0224CA0C(UnkStruct_ov7_0224C768 * param0);
@@ -372,7 +372,7 @@ BOOL ov7_0224BF2C (UnkStruct_ov7_0224BEFC * param0)
static void ov7_0224C338 (UnkStruct_ov7_0224BEFC * param0)
{
- UnkStruct_020279FC * v0 = sub_02025E44(param0->unk_08);
+ AnimationControlFlags * v0 = sub_02025E44(param0->unk_08);
param0->unk_1B0 = sub_02027B50(v0);
param0->unk_1B4 = sub_02027AC0(v0);
@@ -571,7 +571,7 @@ static void ov7_0224C6DC (UnkStruct_ov7_0224C620 * param0, u32 param1, u32 param
Window_Show(param0->unk_04, 0, (1 + (18 + 12)), 11);
}
-static void ov7_0224C768 (UnkStruct_ov7_0224C768 * param0, BGL * param1, u32 param2, const UnkStruct_ov7_0224F1B4 * param3, u32 param4, MessageLoader * param5, void * param6, UnkFuncPtr_ov7_0224C768 param7, UnkStruct_020218BC * param8)
+static void ov7_0224C768 (UnkStruct_ov7_0224C768 * param0, BGL * param1, u32 param2, const UnkStruct_ov7_0224F1B4 * param3, u32 param4, MessageLoader * param5, void * param6, UnkFuncPtr_ov7_0224C768 param7, GraphicElementManager * param8)
{
int v0;
Strbuf* v1;
diff --git a/src/overlay009/ov9_02249960.c b/src/overlay009/ov9_02249960.c
index 81392f61a6..fb2a52db89 100644
--- a/src/overlay009/ov9_02249960.c
+++ b/src/overlay009/ov9_02249960.c
@@ -104,7 +104,7 @@ typedef struct {
} UnkStruct_ov9_02251EC8;
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190;
UnkStruct_02009714 * unk_194;
@@ -156,7 +156,7 @@ typedef struct {
fx32 unk_00;
fx32 unk_04;
UnkStruct_ov9_0224B1B4 unk_08;
- UnkStruct_02022550 * unk_40;
+ GraphicElementData * unk_40;
} UnkStruct_ov9_0224B2C0;
typedef struct {
@@ -934,7 +934,7 @@ static void ov9_0224AED8(UnkStruct_ov9_02249B04 * param0);
static void ov9_0224AEE4(UnkStruct_ov9_02249B04 * param0, UnkStruct_ov9_0224B064 * param1, NARC * param2);
static void ov9_0224B064(UnkStruct_ov9_0224B064 * param0);
static void ov9_0224B124(SysTask * param0, void * param1);
-static UnkStruct_02022550 * ov9_0224B130(UnkStruct_ov9_0224B064 * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7);
+static GraphicElementData * ov9_0224B130(UnkStruct_ov9_0224B064 * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7);
static void ov9_0224B1B4(UnkStruct_ov9_02249B04 * param0, UnkStruct_ov5_021DF47C * param1, UnkStruct_ov9_0224B064 * param2);
static void ov9_0224B3A8(UnkStruct_ov9_02249B04 * param0);
static void ov9_0224B3F4(UnkStruct_ov9_02249B04 * param0);
@@ -2758,11 +2758,11 @@ static void ov9_0224B124 (SysTask * param0, void * param1)
sub_020219F8(v0->unk_00);
}
-static UnkStruct_02022550 * ov9_0224B130 (UnkStruct_ov9_0224B064 * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7)
+static GraphicElementData * ov9_0224B130 (UnkStruct_ov9_0224B064 * param0, const VecFx32 * param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, int param7)
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
sub_020093B4(&v0, ((param2) + 0xff), ((param3) + 0xff), ((param4) + 0xff), ((param5) + 0xff), 0xffffffff, 0xffffffff, 0, param6, param0->unk_190, param0->unk_194, param0->unk_198, param0->unk_19C, NULL, NULL);
diff --git a/src/overlay010/ov10_0221F800.c b/src/overlay010/ov10_0221F800.c
index 619f70d744..26ca6bb1aa 100644
--- a/src/overlay010/ov10_0221F800.c
+++ b/src/overlay010/ov10_0221F800.c
@@ -105,8 +105,8 @@ typedef struct UnkStruct_ov10_0221FB28_t {
PaletteSys * unk_08;
BGL * unk_0C;
Window unk_10[24];
- UnkStruct_0200C6E4 * unk_190;
- UnkStruct_0200C704 * unk_194;
+ CellTransferStateData * unk_190;
+ AnimationResourceCollection * unk_194;
CellActorData * unk_198[30];
u32 unk_210;
UnkStruct_ov10_0221FB28_sub1 unk_214[6];
@@ -117,7 +117,7 @@ typedef struct UnkStruct_ov10_0221FB28_t {
u16 unk_538[2][384];
UnkStruct_02012744 * unk_B38;
FontOAM * unk_B3C[4];
- UnkStruct_0207C690 * unk_B4C;
+ GenericPointerData * unk_B4C;
UnkStruct_02014014 * unk_B50;
void * unk_B54;
u8 unk_B58[4];
@@ -144,7 +144,7 @@ typedef struct UnkStruct_ov10_0221FB28_t {
Strbuf* unk_BA8;
int unk_BAC;
int unk_BB0;
- UnkStruct_02001AF4 * unk_BB4;
+ UIControlData * unk_BB4;
void * unk_BB8;
int unk_BBC;
int unk_BC0;
@@ -557,8 +557,8 @@ static u8 ov10_0221FB28 (UnkStruct_ov10_0221FB28 * param0)
{
G2_BlendNone();
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -620,7 +620,7 @@ static u8 ov10_0221FBFC (UnkStruct_ov10_0221FB28 * param0)
ov10_02221C14(param0);
sub_02039734();
sub_0208C120(0, param0->unk_00->unk_24);
- sub_02017798(ov10_02220C64, param0);
+ SetMainCallback(ov10_02220C64, param0);
return 1;
}
@@ -644,7 +644,7 @@ static u8 ov10_0221FC78 (UnkStruct_ov10_0221FB28 * param0)
break;
case 2:
sub_0208C120(0, param0->unk_00->unk_24);
- sub_02017798(ov10_02220C64, param0);
+ SetMainCallback(ov10_02220C64, param0);
param0->unk_B76 = 0;
param0->unk_B70 = 8;
param0->unk_B71 = 4;
@@ -696,7 +696,7 @@ static u8 ov10_0221FD00 (UnkStruct_ov10_0221FB28 * param0)
break;
case 2:
sub_0208C120(0, param0->unk_00->unk_24);
- sub_02017798(ov10_02220C64, param0);
+ SetMainCallback(ov10_02220C64, param0);
param0->unk_B76 = 0;
param0->unk_B70 = 4;
param0->unk_B71 = 2;
@@ -1161,7 +1161,7 @@ static u8 ov10_02220A50 (SysTask * param0, UnkStruct_ov10_0221FB28 * param1)
return 0;
}
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov10_02222A48(param1);
if (param1->unk_00->unk_28 != 0) {
@@ -1944,7 +1944,7 @@ static void ov10_02221A3C (UnkStruct_ov10_0221FB28 * param0)
Heap_FreeToHeap(v2);
}
- sub_02081940(param0->unk_00->unk_24, param0->unk_298, param0->unk_358, param0->unk_418);
+ LoadScreenDataFromNARC(param0->unk_00->unk_24, param0->unk_298, param0->unk_358, param0->unk_418);
NARC_dtor(v0);
}
diff --git a/src/overlay012/ov12_0221FC20.c b/src/overlay012/ov12_0221FC20.c
index b21aafe84e..aa848bf57a 100644
--- a/src/overlay012/ov12_0221FC20.c
+++ b/src/overlay012/ov12_0221FC20.c
@@ -12,7 +12,7 @@
#include "struct_decls/struct_02014014_decl.h"
#include "struct_decls/struct_02018340_decl.h"
#include "struct_decls/sys_task.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/battle_system.h"
#include "overlay012/struct_ov12_0222118C_decl.h"
#include "overlay012/struct_ov12_022211D8_decl.h"
@@ -74,7 +74,7 @@ typedef struct UnkStruct_ov12_02223178_t {
int unk_18;
UnkStruct_02014014 * unk_1C[16];
UnkSPLStruct6 * unk_5C[20];
- UnkStruct_0200C6E4 * unk_AC;
+ CellTransferStateData * unk_AC;
UnkStruct_ov16_0223E0C8 * unk_B0[4];
u8 unk_C0[4];
Sprite * unk_C4[4];
@@ -85,7 +85,7 @@ typedef struct UnkStruct_ov12_02223178_t {
u8 unk_E8[4];
u32 unk_EC[4];
u32 unk_FC[4];
- UnkStruct_0202CC84 * unk_10C;
+ ChatotCry * unk_10C;
u8 * unk_110;
u16 * unk_114;
int unk_118;
@@ -100,7 +100,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
CellActorData * unk_08;
BOOL unk_0C;
} UnkStruct_ov12_02221810;
@@ -127,10 +127,10 @@ typedef struct UnkStruct_ov12_0221FCDC_t {
UnkStruct_ov12_02223178 * unk_BC;
BGL * unk_C0;
PaletteSys * unk_C4;
- UnkStruct_0200C704 * unk_C8[4];
+ AnimationResourceCollection * unk_C8[4];
CellActorData * unk_D8[10];
UnkStruct_ov104_0223F9E0 unk_100;
- UnkStruct_0200C704 * unk_134;
+ AnimationResourceCollection * unk_134;
CellActorData * unk_138[5];
BOOL unk_14C[5];
UnkStruct_ov12_0222118C * unk_160[5];
@@ -768,18 +768,18 @@ CellActorData * ov12_022202C0 (UnkStruct_ov12_0221FCDC * param0, int param1)
return param0->unk_138[param1];
}
-UnkStruct_0200C704 * ov12_022202EC (UnkStruct_ov12_0221FCDC * param0)
+AnimationResourceCollection * ov12_022202EC (UnkStruct_ov12_0221FCDC * param0)
{
GF_ASSERT(param0 != NULL);
return param0->unk_134;
}
-UnkStruct_0200C704 * ov12_02220300 (UnkStruct_ov12_0221FCDC * param0)
+AnimationResourceCollection * ov12_02220300 (UnkStruct_ov12_0221FCDC * param0)
{
return param0->unk_C8[0];
}
-UnkStruct_0200C6E4 * ov12_02220308 (UnkStruct_ov12_0221FCDC * param0)
+CellTransferStateData * ov12_02220308 (UnkStruct_ov12_0221FCDC * param0)
{
return param0->unk_BC->unk_AC;
}
@@ -3836,7 +3836,7 @@ static void ov12_022230D4 (UnkStruct_ov12_0221FCDC * param0)
v3 = param0->unk_BC->unk_D8[param0->unk_BC->unk_14];
v4 = param0->unk_BC->unk_E8[param0->unk_BC->unk_14];
- sub_02077D3C(param0->unk_BC->unk_10C, v0, v3, v4, v1, v2, param0->unk_BC->unk_118, param0->unk_00);
+ Pokemon_PlayCry(param0->unk_BC->unk_10C, v0, v3, v4, v1, v2, param0->unk_BC->unk_118, param0->unk_00);
}
static void ov12_02223134 (UnkStruct_ov12_0221FCDC * param0)
diff --git a/src/overlay012/ov12_022269C0.c b/src/overlay012/ov12_022269C0.c
index 66a98118d9..c0f90f482b 100644
--- a/src/overlay012/ov12_022269C0.c
+++ b/src/overlay012/ov12_022269C0.c
@@ -34,11 +34,11 @@ typedef struct {
typedef struct {
u8 unk_00;
UnkStruct_ov12_0221FCDC * unk_04;
- UnkStruct_0200C6E4 * unk_08;
- UnkStruct_0200C704 * unk_0C;
+ CellTransferStateData * unk_08;
+ AnimationResourceCollection * unk_0C;
CellActorData * unk_10;
CellActorData * unk_14[100];
- UnkStruct_02022550 * unk_1A4[10];
+ GraphicElementData * unk_1A4[10];
} UnkStruct_ov12_02226AAC;
void ov12_022269C0 (UnkStruct_ov12_0221FCDC * param0)
@@ -155,7 +155,7 @@ static void ov12_02226AAC (SysTask * param0, void * param1)
}
}
-void ov12_02226B1C (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02226B1C (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02226AAC * v0;
UnkStruct_ov104_0223F9E0 v1;
diff --git a/src/overlay012/ov12_02226B84.c b/src/overlay012/ov12_02226B84.c
index 9fb17665bb..568b54176f 100644
--- a/src/overlay012/ov12_02226B84.c
+++ b/src/overlay012/ov12_02226B84.c
@@ -87,8 +87,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
int unk_10;
CellActorData * unk_14;
@@ -119,7 +119,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
int unk_08;
s16 unk_0C;
s16 unk_0E;
@@ -153,7 +153,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
UnkStruct_ov12_02226454 unk_08;
} UnkStruct_ov12_0222813C;
@@ -321,7 +321,7 @@ typedef struct {
int unk_24;
BGL * unk_28;
UnkStruct_ov12_0221FCDC * unk_2C;
- UnkStruct_0200C704 * unk_30;
+ AnimationResourceCollection * unk_30;
UnkStruct_ov12_02235998 unk_34[4];
UnkStruct_ov12_02235998 unk_84[4];
UnkStruct_ov12_02225F6C unk_D4;
@@ -1038,7 +1038,7 @@ static void ov12_02227738 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_0222777C (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222777C (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02227620 * v0;
Sprite * v1;
@@ -3219,7 +3219,7 @@ static void ov12_0222A178 (SysTask * param0, void * param1)
sub_0200C7EC(v1->unk_00.unk_10);
}
-void ov12_0222A1AC (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222A1AC (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0222A178 * v0 = NULL;
@@ -3366,7 +3366,7 @@ static void ov12_0222A1F4 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_00.unk_10);
}
-void ov12_0222A34C (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222A34C (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0222A1F478 * v0 = NULL;
@@ -3415,7 +3415,7 @@ static void ov12_0222A3DC (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_00.unk_10);
}
-void ov12_0222A410 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222A410 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0222A3DC * v0;
@@ -3505,7 +3505,7 @@ static void ov12_0222A4A0 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_00.unk_10);
}
-void ov12_0222A5C0 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222A5C0 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0222A4A0 * v0;
diff --git a/src/overlay012/ov12_0222AC70.c b/src/overlay012/ov12_0222AC70.c
index 1373f0761c..62484fd2ff 100644
--- a/src/overlay012/ov12_0222AC70.c
+++ b/src/overlay012/ov12_0222AC70.c
@@ -39,8 +39,8 @@ typedef struct {
u8 unk_05;
u8 unk_06;
UnkStruct_ov12_0221FCDC * unk_08;
- UnkStruct_0200C6E4 * unk_0C;
- UnkStruct_0200C704 * unk_10;
+ CellTransferStateData * unk_0C;
+ AnimationResourceCollection * unk_10;
CellActorData * unk_14[3];
UnkStruct_ov12_02225F6C unk_20;
} UnkStruct_ov12_0222AC70;
@@ -79,7 +79,7 @@ typedef struct {
s16 unk_0A;
UnkStruct_ov12_0221FCDC * unk_0C;
Sprite * unk_10;
- UnkStruct_0200C704 * unk_14;
+ AnimationResourceCollection * unk_14;
CellActorData * unk_18[4];
UnkStruct_ov12_02225F6C unk_28[4];
} UnkStruct_ov12_0222B4C8;
@@ -139,7 +139,7 @@ typedef struct {
u8 unk_00;
u8 unk_01;
UnkStruct_ov12_0221FCDC * unk_04;
- UnkStruct_0200C704 * unk_08;
+ AnimationResourceCollection * unk_08;
CellActorData * unk_0C;
CellActorData * unk_10;
} UnkStruct_ov12_0222BFF4;
@@ -159,7 +159,7 @@ typedef struct {
s8 unk_08;
Sprite * unk_0C;
UnkStruct_ov12_0221FCDC * unk_10;
- UnkStruct_0200C704 * unk_14;
+ AnimationResourceCollection * unk_14;
UnkStruct_ov12_0222C1A4_sub1 unk_18[3];
} UnkStruct_ov12_0222C1A4;
@@ -171,7 +171,7 @@ typedef struct {
int unk_04;
BGL * unk_08;
UnkStruct_ov12_0221FCDC * unk_0C;
- UnkStruct_0200C704 * unk_10;
+ AnimationResourceCollection * unk_10;
UnkStruct_ov12_02235998 unk_14[4];
UnkStruct_ov12_02235998 unk_64[4];
UnkStruct_ov12_02225F6C unk_B4;
@@ -185,7 +185,7 @@ typedef struct {
UnkStruct_ov12_02235350 unk_04;
BGL * unk_08;
UnkStruct_ov12_0221FCDC * unk_0C;
- UnkStruct_0200C704 * unk_10;
+ AnimationResourceCollection * unk_10;
Sprite * unk_14;
CellActorData * unk_18;
UnkStruct_ov12_02225F6C unk_1C;
@@ -269,8 +269,8 @@ typedef struct {
int unk_08;
u8 unk_0C;
UnkStruct_ov12_0221FCDC * unk_10;
- UnkStruct_0200C6E4 * unk_14;
- UnkStruct_0200C704 * unk_18;
+ CellTransferStateData * unk_14;
+ AnimationResourceCollection * unk_18;
Sprite * unk_1C;
s16 unk_20;
int unk_24;
@@ -379,7 +379,7 @@ static void ov12_0222AC70 (SysTask * param0, void * param1)
sub_0200C7EC(v1->unk_10);
}
-void ov12_0222AE68 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222AE68 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
int v0;
UnkStruct_ov12_0222AC70 * v1;
@@ -1738,7 +1738,7 @@ static void ov12_0222CBFC (SysTask * param0, void * param1)
sub_0200C7EC(v1->unk_10.unk_10);
}
-void ov12_0222CC54 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222CC54 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
int v0;
int v1;
@@ -2138,7 +2138,7 @@ static void ov12_0222D128 (SysTask * param0, void * param1)
sub_0200C7EC(v1->unk_18);
}
-void ov12_0222D56C (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222D56C (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
int v0;
UnkStruct_ov12_0222D128 * v1;
diff --git a/src/overlay012/ov12_0222D6B0.c b/src/overlay012/ov12_0222D6B0.c
index d9fc27512b..6d3f070a93 100644
--- a/src/overlay012/ov12_0222D6B0.c
+++ b/src/overlay012/ov12_0222D6B0.c
@@ -34,8 +34,8 @@ typedef struct {
u8 unk_06;
u8 unk_07;
UnkStruct_ov12_0221FCDC * unk_08;
- UnkStruct_0200C6E4 * unk_0C;
- UnkStruct_0200C704 * unk_10;
+ CellTransferStateData * unk_0C;
+ AnimationResourceCollection * unk_10;
CellActorData * unk_14[3];
UnkStruct_ov12_02225F6C unk_20;
} UnkStruct_ov12_0222D6B0;
@@ -48,8 +48,8 @@ typedef struct {
u8 unk_09;
u8 unk_0A;
UnkStruct_ov12_0221FCDC * unk_0C;
- UnkStruct_0200C6E4 * unk_10;
- UnkStruct_0200C704 * unk_14;
+ CellTransferStateData * unk_10;
+ AnimationResourceCollection * unk_14;
CellActorData * unk_18[6];
int unk_30;
CellActorData * unk_34;
@@ -60,8 +60,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
u8 unk_0C;
u8 unk_0D;
u8 unk_0E;
@@ -79,8 +79,8 @@ typedef struct {
u8 unk_03;
u8 unk_04;
UnkStruct_ov12_0221FCDC * unk_08;
- UnkStruct_0200C6E4 * unk_0C;
- UnkStruct_0200C704 * unk_10;
+ CellTransferStateData * unk_0C;
+ AnimationResourceCollection * unk_10;
UnkStruct_ov12_0222DC98 unk_14[20];
int unk_514[20];
} UnkStruct_ov12_0222DE24;
@@ -188,7 +188,7 @@ static void ov12_0222D6B0 (SysTask * param0, void * param1)
sub_0200C7EC(v1->unk_10);
}
-void ov12_0222D7C0 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222D7C0 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
int v0;
UnkStruct_ov12_0222D6B0 * v1;
@@ -409,7 +409,7 @@ static void ov12_0222D934 (SysTask * param0, void * param1)
sub_0200C7EC(v2->unk_14);
}
-void ov12_0222DB60 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222DB60 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
int v0;
UnkStruct_ov12_0222D934 * v1;
@@ -632,7 +632,7 @@ static const s16 Unk_ov12_0223A19A[][4] = {
{0x50, 0x92, 0x32, 0x35}
};
-void ov12_0222DEFC (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222DEFC (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
int v0;
int v1;
@@ -828,7 +828,7 @@ static void ov12_0222E25C (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_00.unk_10);
}
-void ov12_0222E2F8 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222E2F8 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0222E25C * v0 = NULL;
@@ -967,7 +967,7 @@ static void ov12_0222E390 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_00.unk_10);
}
-void ov12_0222E61C (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222E61C (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0222E390 * v0 = NULL;
diff --git a/src/overlay012/ov12_0222E91C.c b/src/overlay012/ov12_0222E91C.c
index 943a9e3a36..d0b625a09d 100644
--- a/src/overlay012/ov12_0222E91C.c
+++ b/src/overlay012/ov12_0222E91C.c
@@ -228,7 +228,7 @@ static void ov12_0222EC18 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_00.unk_10);
}
-void ov12_0222EC90 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222EC90 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0222EC18 * v0 = NULL;
diff --git a/src/overlay012/ov12_0222F700.c b/src/overlay012/ov12_0222F700.c
index 214ec77946..a6d6d78ca1 100644
--- a/src/overlay012/ov12_0222F700.c
+++ b/src/overlay012/ov12_0222F700.c
@@ -34,7 +34,7 @@
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
Sprite * unk_08;
UnkStruct_ov12_02225F6C unk_0C;
CellActorData * unk_30[2];
@@ -68,8 +68,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
UnkStruct_ov12_0222FAFC unk_0C;
UnkStruct_ov12_0222FAFC unk_58[2];
int unk_EC;
@@ -80,7 +80,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
int unk_08;
int unk_0C;
UnkStruct_ov12_02225F6C unk_10;
@@ -109,7 +109,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
int unk_08;
int unk_0C;
CellActorData * unk_10;
@@ -145,8 +145,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
CellActorData * unk_10;
UnkStruct_ov12_02225F6C unk_14;
@@ -167,8 +167,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
int unk_10;
int unk_14;
@@ -182,8 +182,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
Sprite * unk_10;
s16 unk_14;
@@ -200,7 +200,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
int unk_08;
int unk_0C;
Sprite * unk_10;
@@ -214,8 +214,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
Sprite * unk_10;
UnkStruct_ov12_02225F6C unk_14;
@@ -231,8 +231,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
Sprite * unk_10;
CellActorData * unk_14;
@@ -246,8 +246,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
Sprite * unk_10;
Sprite * unk_14[4];
@@ -288,8 +288,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
int unk_10;
CellActorData * unk_14;
@@ -330,8 +330,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
int unk_10;
int unk_14;
@@ -347,8 +347,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
Sprite * unk_10;
UnkStruct_ov12_02225F6C unk_14;
@@ -362,7 +362,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
int unk_08;
int unk_0C;
int unk_10;
@@ -384,8 +384,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
Sprite * unk_10;
UnkStruct_ov12_02225F6C unk_14;
@@ -398,8 +398,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
int unk_10;
int unk_14;
@@ -412,8 +412,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
int unk_10;
int unk_14;
@@ -448,8 +448,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
CellActorData * unk_10;
UnkStruct_ov12_02226454 unk_14;
@@ -475,7 +475,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C704 * unk_04;
+ AnimationResourceCollection * unk_04;
UnkStruct_ov12_02225F6C unk_08;
CellActorData * unk_2C;
} UnkStruct_ov12_02234290;
@@ -671,7 +671,7 @@ void ov12_0222F9E4 (UnkStruct_ov12_0221FCDC * param0)
ov12_022201E8(v0->unk_00, ov12_0222F888, v0);
}
-static void ov12_0222FAFC (UnkStruct_ov12_0222FAFC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, const UnkStruct_ov104_0223F9E0 * param3, const UnkStruct_ov12_0222FAFC * param4)
+static void ov12_0222FAFC (UnkStruct_ov12_0222FAFC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, const UnkStruct_ov104_0223F9E0 * param3, const UnkStruct_ov12_0222FAFC * param4)
{
param0->unk_00 = sub_0200CE6C(param1, param2, param3);
param0->unk_04 = param4->unk_04;
@@ -814,7 +814,7 @@ static void ov12_0222FC44 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_0222FE30 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_0222FE30 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0222FC44 * v0;
UnkStruct_ov104_0223F9E0 v1;
@@ -1453,7 +1453,7 @@ static void ov12_02230BE0 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02230CEC (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02230CEC (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02230BE0 * v0;
int v1;
@@ -1624,7 +1624,7 @@ static void ov12_02230F3C (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02231010 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02231010 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02230F3C * v0;
int v1;
@@ -1730,7 +1730,7 @@ static void ov12_022310D4 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_022312A4 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_022312A4 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_022310D4 * v0;
@@ -1912,7 +1912,7 @@ static void ov12_02231608 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02231650 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02231650 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02231508 * v0;
int v1;
@@ -2046,7 +2046,7 @@ static void ov12_0223181C (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02231950 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02231950 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02231760 * v0;
@@ -2180,7 +2180,7 @@ static void ov12_02231A38 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02231C1C (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02231C1C (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_022319AC * v0;
int v1;
@@ -2559,7 +2559,7 @@ static void ov12_0223223C (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02232378 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02232378 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02232084 * v0;
Sprite * v1;
@@ -2869,7 +2869,7 @@ static void ov12_022328B8 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_022329E0 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_022329E0 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02232720 * v0;
UnkStruct_ov104_0223F9E0 v1;
@@ -2983,7 +2983,7 @@ static void ov12_02232B40 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02232CA8 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02232CA8 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02232B40 * v0;
s16 v1, v2;
@@ -3332,7 +3332,7 @@ static void ov12_02233394 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02233454 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02233454 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_022332E8 * v0;
int v1;
@@ -3455,7 +3455,7 @@ static void ov12_02233644 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02233734 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02233734 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_0223351C * v0;
int v1;
@@ -3573,7 +3573,7 @@ static void ov12_02233988 (SysTask * param0, void * param1)
}
}
-void ov12_022339C4 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_022339C4 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02233900 * v0;
int v1;
@@ -3858,7 +3858,7 @@ static void ov12_02233F4C (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02234008 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02234008 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02233F4C * v0;
diff --git a/src/overlay012/ov12_022346A4.c b/src/overlay012/ov12_022346A4.c
index 8f5c9a1aaf..7232a20d05 100644
--- a/src/overlay012/ov12_022346A4.c
+++ b/src/overlay012/ov12_022346A4.c
@@ -24,7 +24,7 @@ typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
int unk_04;
int unk_08;
- UnkStruct_0200C704 * unk_0C;
+ AnimationResourceCollection * unk_0C;
int unk_10;
CellActorData * unk_14[2];
UnkStruct_ov12_02225F6C unk_1C[2];
@@ -35,7 +35,7 @@ typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
int unk_04;
int unk_08;
- UnkStruct_0200C704 * unk_0C;
+ AnimationResourceCollection * unk_0C;
CellActorData * unk_10;
UnkStruct_ov12_02226454 unk_14;
} UnkStruct_ov12_022348C8;
@@ -43,7 +43,7 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
int unk_04;
- UnkStruct_0200C704 * unk_08;
+ AnimationResourceCollection * unk_08;
CellActorData * unk_0C[6];
int unk_24[6];
int unk_3C[6];
@@ -51,8 +51,8 @@ typedef struct {
typedef struct {
UnkStruct_ov12_0221FCDC * unk_00;
- UnkStruct_0200C6E4 * unk_04;
- UnkStruct_0200C704 * unk_08;
+ CellTransferStateData * unk_04;
+ AnimationResourceCollection * unk_08;
int unk_0C;
int unk_10;
int unk_14;
@@ -72,7 +72,7 @@ static BOOL ov12_02234B34(CellActorData * param0, int * param1, int * param2);
static void ov12_02234AE0(CellActorData * param0, int * param1, int * param2, int param3, int param4);
static void ov12_02234CA8(SysTask * param0, void * param1);
-void ov12_022346A4 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_022346A4 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov104_0223F9E0 v0;
UnkStruct_ov12_022346A4 * v1;
@@ -180,7 +180,7 @@ static BOOL ov12_0223489C (CellActorData * param0, UnkStruct_ov12_02225F6C * par
return 1;
}
-void ov12_022348C8 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_022348C8 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_022348C8 * v0;
int v1;
@@ -248,7 +248,7 @@ static void ov12_02234918 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_0C);
}
-void ov12_02234A10 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02234A10 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov104_0223F9E0 v0;
UnkStruct_ov12_02234A10 * v1;
@@ -435,7 +435,7 @@ static void ov12_02234CA8 (SysTask * param0, void * param1)
sub_0200C7EC(v0->unk_08);
}
-void ov12_02234D98 (UnkStruct_ov12_0221FCDC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, CellActorData * param3)
+void ov12_02234D98 (UnkStruct_ov12_0221FCDC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, CellActorData * param3)
{
UnkStruct_ov12_02234BD8 * v0;
int v1;
diff --git a/src/overlay012/ov12_02235E94.c b/src/overlay012/ov12_02235E94.c
index 1ee3bd0bef..a0b2171499 100644
--- a/src/overlay012/ov12_02235E94.c
+++ b/src/overlay012/ov12_02235E94.c
@@ -101,7 +101,7 @@ typedef struct BallRotation {
s8 unk_22;
BOOL unk_24;
BOOL unk_28;
- UnkStruct_0200C704 * unk_2C;
+ AnimationResourceCollection * unk_2C;
CellActorData * unk_30;
UnkStruct_ov12_02225D50 unk_34;
UnkStruct_ov12_02225F6C unk_48[2];
diff --git a/src/overlay013/ov13_02224500.c b/src/overlay013/ov13_02224500.c
index 3ce61f233e..2b5328d9b8 100644
--- a/src/overlay013/ov13_02224500.c
+++ b/src/overlay013/ov13_02224500.c
@@ -238,7 +238,7 @@ void ov13_02224500 (UnkStruct_ov13_022213F0 * param0)
static void ov13_0222453C (UnkStruct_ov13_022213F0 * param0)
{
UnkStruct_ov104_02241308 v0 = {18, 6, 6, 6, 0, 0};
- UnkStruct_0200C6E4 * v1 = ov16_0223E010(param0->unk_00->unk_08);
+ CellTransferStateData * v1 = ov16_0223E010(param0->unk_00->unk_08);
param0->unk_1FB0 = sub_0200C704(v1);
@@ -248,7 +248,7 @@ static void ov13_0222453C (UnkStruct_ov13_022213F0 * param0)
static void ov13_02224588 (UnkStruct_ov13_022213F0 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
u32 v1;
NARC * v2;
@@ -272,7 +272,7 @@ static void ov13_02224588 (UnkStruct_ov13_022213F0 * param0)
static void ov13_02224670 (UnkStruct_ov13_022213F0 * param0)
{
- UnkStruct_0200C6E4 * v0 = ov16_0223E010(param0->unk_00->unk_08);
+ CellTransferStateData * v0 = ov16_0223E010(param0->unk_00->unk_08);
NARC * v1;
v1 = NARC_ctor(NARC_INDEX_GRAPHIC__PL_PST_GRA, param0->unk_00->unk_0C);
@@ -286,7 +286,7 @@ static void ov13_02224670 (UnkStruct_ov13_022213F0 * param0)
static void ov13_02224720 (UnkStruct_ov13_022213F0 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
u32 v1;
v0 = ov16_0223E010(param0->unk_00->unk_08);
@@ -303,7 +303,7 @@ static void ov13_02224720 (UnkStruct_ov13_022213F0 * param0)
static void ov13_02224798 (UnkStruct_ov13_022213F0 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
u32 v1;
NARC * v2;
@@ -319,7 +319,7 @@ static void ov13_02224798 (UnkStruct_ov13_022213F0 * param0)
static void ov13_02224848 (UnkStruct_ov13_022213F0 * param0)
{
- UnkStruct_0200C6E4 * v0 = ov16_0223E010(param0->unk_00->unk_08);
+ CellTransferStateData * v0 = ov16_0223E010(param0->unk_00->unk_08);
sub_0200CD7C(param0->unk_1E4, 3, v0, param0->unk_1FB0, 72, 27, 0, 1, NNS_G2D_VRAM_TYPE_2DSUB, 45067);
sub_0200CE0C(v0, param0->unk_1FB0, 72, 25, 0, 45067);
@@ -330,7 +330,7 @@ static void ov13_02224848 (UnkStruct_ov13_022213F0 * param0)
static CellActorData * ov13_022248D8 (UnkStruct_ov13_022213F0 * param0, u32 param1)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1;
+ CellTransferStateData * v1;
v1 = ov16_0223E010(param0->unk_00->unk_08);
@@ -364,7 +364,7 @@ static void ov13_02224948 (UnkStruct_ov13_022213F0 * param0)
void ov13_02224970 (UnkStruct_ov13_022213F0 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
u32 v1;
v0 = ov16_0223E010(param0->unk_00->unk_08);
@@ -398,7 +398,7 @@ static void ov13_022249CC (UnkStruct_ov13_022213F0 * param0)
static void ov13_02224A0C (UnkStruct_ov13_022213F0 * param0, CellActorData * param1, u32 param2, u8 param3)
{
- UnkStruct_0200C6E4 * v0 = ov16_0223E010(param0->unk_00->unk_08);
+ CellTransferStateData * v0 = ov16_0223E010(param0->unk_00->unk_08);
sub_0200D948(v0, param0->unk_1FB0, sub_0207C944(), sub_0207C908(param3), 1, param2);
sub_0200D41C(param1, sub_0207C92C(param3) + 4);
@@ -406,7 +406,7 @@ static void ov13_02224A0C (UnkStruct_ov13_022213F0 * param0, CellActorData * par
static void ov13_02224A5C (UnkStruct_ov13_022213F0 * param0, CellActorData * param1, u32 param2)
{
- UnkStruct_0200C6E4 * v0 = ov16_0223E010(param0->unk_00->unk_08);
+ CellTransferStateData * v0 = ov16_0223E010(param0->unk_00->unk_08);
sub_0200D948(v0, param0->unk_1FB0, sub_0207CAC0(), sub_0207CA90(param2), 1, 45077);
sub_0200D41C(param1, sub_0207CAA8(param2) + 4);
@@ -794,7 +794,7 @@ static void ov13_02225420 (UnkStruct_ov13_022213F0 * param0)
static void ov13_0222554C (UnkStruct_ov13_022213F0 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
UnkStruct_ov16_0226DC24 * v1;
v0 = ov16_0223E010(param0->unk_00->unk_08);
@@ -810,7 +810,7 @@ static void ov13_022255B8 (UnkStruct_ov13_022213F0 * param0)
ov16_0226DBFC(param0->unk_1FB0, 45080, 45068, 45068, 45068);
}
-static const UnkStruct_020F1DB8 Unk_ov13_02229464[] = {
+static const ByteFlagSet Unk_ov13_02229464[] = {
{0x8, 0x8, 0x78, 0x28, 0x6, 0x2, 0x6, 0x1},
{0x88, 0x10, 0xF8, 0x30, 0x4, 0x3, 0x0, 0x2},
{0x8, 0x38, 0x78, 0x58, 0x0, 0x4, 0x1, 0x3},
@@ -820,21 +820,21 @@ static const UnkStruct_020F1DB8 Unk_ov13_02229464[] = {
{0xE0, 0xA0, 0xF8, 0xB8, 0x5, 0x0, 0x5, 0x0}
};
-static const UnkStruct_020F1DB8 Unk_ov13_02229344[] = {
+static const ByteFlagSet Unk_ov13_02229344[] = {
{0x10, 0x10, 0xF0, 0x88, 0x0, 0x81, 0x0, 0x0},
{0x8, 0xA0, 0x60, 0xB8, 0x0, 0x1, 0x1, 0x2},
{0x70, 0xA0, 0xC8, 0xB8, 0x0, 0x2, 0x1, 0x3},
{0xE0, 0xA0, 0xF8, 0xB8, 0x0, 0x3, 0x2, 0x3}
};
-static const UnkStruct_020F1DB8 Unk_ov13_02229304[] = {
+static const ByteFlagSet Unk_ov13_02229304[] = {
{0x8, 0xA0, 0x20, 0xB8, 0x0, 0x0, 0x0, 0x1},
{0x30, 0xA0, 0x48, 0xB8, 0x1, 0x1, 0x0, 0x2},
{0x68, 0xA0, 0xC0, 0xB8, 0x2, 0x2, 0x1, 0x3},
{0xE0, 0xA0, 0xF8, 0xB8, 0x3, 0x3, 0x2, 0x3}
};
-static const UnkStruct_020F1DB8 Unk_ov13_022294D4[] = {
+static const ByteFlagSet Unk_ov13_022294D4[] = {
{0x8, 0x38, 0x78, 0x58, 0x0, 0x2, 0x0, 0x1},
{0x88, 0x38, 0xF8, 0x58, 0x1, 0x3, 0x0, 0x1},
{0x8, 0x68, 0x78, 0x88, 0x0, 0x84, 0x2, 0x3},
@@ -845,7 +845,7 @@ static const UnkStruct_020F1DB8 Unk_ov13_022294D4[] = {
{0xE0, 0xA0, 0xF8, 0xB8, 0x3, 0x7, 0x6, 0x7}
};
-static const UnkStruct_020F1DB8 Unk_ov13_02229364[] = {
+static const ByteFlagSet Unk_ov13_02229364[] = {
{0x5C, 0x9D, 0x7C, 0xA5, 0x0, 0x2, 0x0, 0x1},
{0x84, 0x9D, 0xA4, 0xA5, 0x1, 0x3, 0x0, 0x4},
{0x5C, 0xAD, 0x7C, 0xB5, 0x0, 0x2, 0x2, 0x3},
@@ -853,7 +853,7 @@ static const UnkStruct_020F1DB8 Unk_ov13_02229364[] = {
{0xE0, 0xA0, 0xF8, 0xB8, 0x4, 0x4, 0x83, 0x4}
};
-static const UnkStruct_020F1DB8 Unk_ov13_0222949C[] = {
+static const ByteFlagSet Unk_ov13_0222949C[] = {
{0x8, 0x38, 0x78, 0x58, 0x5, 0x2, 0x0, 0x1},
{0x88, 0x38, 0xF8, 0x58, 0x5, 0x3, 0x0, 0x1},
{0x8, 0x68, 0x78, 0x88, 0x0, 0x4, 0x2, 0x3},
@@ -863,13 +863,13 @@ static const UnkStruct_020F1DB8 Unk_ov13_0222949C[] = {
{0xE0, 0xA0, 0xF8, 0xB8, 0x3, 0x6, 0x4, 0x6}
};
-static const UnkStruct_020F1DB8 Unk_ov13_022292D4[] = {
+static const ByteFlagSet Unk_ov13_022292D4[] = {
{0x8, 0xA0, 0xC8, 0xB8, 0x1, 0x0, 0x0, 0x2},
{0xC0, 0x8, 0xF8, 0x18, 0x1, 0x82, 0x0, 0x1},
{0xE0, 0xA0, 0xF8, 0xB8, 0x1, 0x2, 0x0, 0x2}
};
-static const UnkStruct_020F1DB8 Unk_ov13_022293B4[] = {
+static const ByteFlagSet Unk_ov13_022293B4[] = {
{0x8, 0x38, 0x78, 0x58, 0x0, 0x2, 0x0, 0x1},
{0x88, 0x38, 0xF8, 0x58, 0x1, 0x3, 0x0, 0x1},
{0x8, 0x68, 0x78, 0x88, 0x0, 0x4, 0x2, 0x3},
@@ -877,7 +877,7 @@ static const UnkStruct_020F1DB8 Unk_ov13_022293B4[] = {
{0xE0, 0xA0, 0xF8, 0xB8, 0x83, 0x4, 0x4, 0x4}
};
-static const UnkStruct_020F1DB8 * const Unk_ov13_0222938C[] = {
+static const ByteFlagSet * const Unk_ov13_0222938C[] = {
Unk_ov13_02229464,
Unk_ov13_02229344,
Unk_ov13_02229304,
diff --git a/src/overlay013/ov13_02227BDC.c b/src/overlay013/ov13_02227BDC.c
index f04f4a36d4..2feb0bd969 100644
--- a/src/overlay013/ov13_02227BDC.c
+++ b/src/overlay013/ov13_02227BDC.c
@@ -79,7 +79,7 @@ void ov13_02227BDC (UnkStruct_ov13_02227244 * param0)
static void ov13_02227C08 (UnkStruct_ov13_02227244 * param0)
{
UnkStruct_ov104_02241308 v0 = {8, 8, 3, 3, 0, 0};
- UnkStruct_0200C6E4 * v1 = ov16_0223E010(param0->unk_00->unk_00);
+ CellTransferStateData * v1 = ov16_0223E010(param0->unk_00->unk_00);
param0->unk_30C = sub_0200C704(v1);
@@ -89,7 +89,7 @@ static void ov13_02227C08 (UnkStruct_ov13_02227244 * param0)
static void ov13_02227C54 (UnkStruct_ov13_02227244 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
u32 v1;
NARC * v2;
@@ -108,7 +108,7 @@ static void ov13_02227C54 (UnkStruct_ov13_02227244 * param0)
static void ov13_02227D10 (UnkStruct_ov13_02227244 * param0, u16 param1, u32 param2)
{
- UnkStruct_0200C6E4 * v0 = ov16_0223E010(param0->unk_00->unk_00);
+ CellTransferStateData * v0 = ov16_0223E010(param0->unk_00->unk_00);
sub_0200D948(v0, param0->unk_30C, 16, Item_FileID(param1, 1), 0, param2);
}
@@ -120,7 +120,7 @@ static void ov13_02227D48 (UnkStruct_ov13_02227244 * param0, u16 param1, u16 par
static CellActorData * ov13_02227D78 (UnkStruct_ov13_02227244 * param0, u32 param1)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1;
+ CellTransferStateData * v1;
v1 = ov16_0223E010(param0->unk_00->unk_00);
@@ -152,7 +152,7 @@ static void ov13_02227DE8 (UnkStruct_ov13_02227244 * param0)
void ov13_02227E08 (UnkStruct_ov13_02227244 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
u32 v1;
v0 = ov16_0223E010(param0->unk_00->unk_00);
@@ -235,7 +235,7 @@ static void ov13_02227F38 (UnkStruct_ov13_02227244 * param0)
static void ov13_02227F7C (UnkStruct_ov13_02227244 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
UnkStruct_ov16_0226DC24 * v1;
v0 = ov16_0223E010(param0->unk_00->unk_00);
@@ -251,7 +251,7 @@ static void ov13_02227FDC (UnkStruct_ov13_02227244 * param0)
ov16_0226DBFC(param0->unk_30C, 46270, 46270, 46265, 46265);
}
-static const UnkStruct_020F1DB8 Unk_ov13_02229C14[] = {
+static const ByteFlagSet Unk_ov13_02229C14[] = {
{0x8, 0x10, 0x78, 0x48, 0x0, 0x1, 0x0, 0x2},
{0x8, 0x58, 0x78, 0x90, 0x0, 0x4, 0x1, 0x3},
{0x88, 0x10, 0xF8, 0x48, 0x2, 0x3, 0x0, 0x2},
@@ -260,7 +260,7 @@ static const UnkStruct_020F1DB8 Unk_ov13_02229C14[] = {
{0xE0, 0xA0, 0xF8, 0xB8, 0x83, 0x5, 0x4, 0x5}
};
-static const UnkStruct_020F1DB8 Unk_ov13_02229C74[] = {
+static const ByteFlagSet Unk_ov13_02229C74[] = {
{0x8, 0x10, 0x78, 0x30, 0x0, 0x2, 0x0, 0x1},
{0x88, 0x10, 0xF8, 0x30, 0x1, 0x3, 0x0, 0x1},
{0x8, 0x40, 0x78, 0x60, 0x0, 0x4, 0x2, 0x3},
@@ -272,12 +272,12 @@ static const UnkStruct_020F1DB8 Unk_ov13_02229C74[] = {
{0xE0, 0xA0, 0xF8, 0xB8, 0x5, 0x8, 0x7, 0x8}
};
-static const UnkStruct_020F1DB8 Unk_ov13_02229BD4[] = {
+static const ByteFlagSet Unk_ov13_02229BD4[] = {
{0x8, 0xA0, 0xC8, 0xB8, 0x0, 0x0, 0x0, 0x1},
{0xE0, 0xA0, 0xF8, 0xB8, 0x1, 0x1, 0x0, 0x1}
};
-static const UnkStruct_020F1DB8 * const Unk_ov13_02229BC8[] = {
+static const ByteFlagSet * const Unk_ov13_02229BC8[] = {
Unk_ov13_02229C14,
Unk_ov13_02229C74,
Unk_ov13_02229BD4
@@ -308,7 +308,7 @@ void ov13_02228050 (UnkStruct_ov13_02227244 * param0)
static void ov13_02228070 (UnkStruct_ov13_02227244 * param0)
{
- UnkStruct_0200C6E4 * v0;
+ CellTransferStateData * v0;
UnkStruct_ov16_0226DEEC * v1;
v0 = ov16_0223E010(param0->unk_00->unk_00);
diff --git a/src/overlay013/ov13_02228A38.c b/src/overlay013/ov13_02228A38.c
index 41b8f1253f..5aa6808ae6 100644
--- a/src/overlay013/ov13_02228A38.c
+++ b/src/overlay013/ov13_02228A38.c
@@ -16,7 +16,7 @@
struct UnkStruct_ov13_02228A50_t {
UnkStruct_ov16_0226DC24 * unk_00;
- const UnkStruct_020F1DB8 * unk_04;
+ const ByteFlagSet * unk_04;
u8 unk_08;
u8 unk_09;
u8 unk_0A;
@@ -70,7 +70,7 @@ void ov13_02228A90 (UnkStruct_ov13_02228A50 * param0)
param0->unk_0A = 0xff;
}
-void ov13_02228A9C (UnkStruct_ov13_02228A50 * param0, const UnkStruct_020F1DB8 * param1)
+void ov13_02228A9C (UnkStruct_ov13_02228A50 * param0, const ByteFlagSet * param1)
{
ov13_02228A90(param0);
@@ -103,7 +103,7 @@ static u8 ov13_02228ACC (UnkStruct_ov13_02228A50 * param0)
return 0;
}
-static u8 ov13_02228B18 (const UnkStruct_020F1DB8 * param0, u8 param1)
+static u8 ov13_02228B18 (const ByteFlagSet * param0, u8 param1)
{
switch (param1) {
case 0:
diff --git a/src/overlay016/battle_script.c b/src/overlay016/battle_script.c
index af4e71e199..123f2e35c7 100644
--- a/src/overlay016/battle_script.c
+++ b/src/overlay016/battle_script.c
@@ -12213,8 +12213,8 @@ static const UnkStruct_ov104_0223F9E0 Unk_ov16_0226E6F8 = {
static void BattleScript_LoadPartyLevelUpIcon (BattleSystem * param0, BattleScriptTaskData * param1, Pokemon * param2)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
MessageLoader * v4;
UnkStruct_0200B358 * v5;
@@ -12301,7 +12301,7 @@ static void BattleScript_LoadPartyLevelUpIcon (BattleSystem * param0, BattleScri
static void BattleScript_FreePartyLevelUpIcon (BattleSystem * param0, BattleScriptTaskData * param1)
{
- UnkStruct_0200C704 * v0;
+ AnimationResourceCollection * v0;
v0 = ov16_0223E018(param0);
diff --git a/src/overlay016/ov16_0223B140.c b/src/overlay016/ov16_0223B140.c
index 91e5146057..492623dd10 100644
--- a/src/overlay016/ov16_0223B140.c
+++ b/src/overlay016/ov16_0223B140.c
@@ -134,8 +134,8 @@ static void ov16_0223CE68(void * param0);
static void ov16_0223CF1C(void * param0);
static void ov16_0223CF48(SysTask * param0, void * param1);
static void ov16_0223CF8C(SysTask * param0, void * param1);
-static UnkStruct_0207C690 * ov16_0223CD7C(void);
-static void ov16_0223CE20(UnkStruct_0207C690 * param0);
+static GenericPointerData * ov16_0223CD7C(void);
+static void ov16_0223CE20(GenericPointerData * param0);
static void ov16_0223CD9C(void);
static void ov16_0223DD4C(BattleSystem * param0);
static void ov16_0223D0C4(SysTask * param0, void * param1);
@@ -321,7 +321,7 @@ void ov16_0223B384 (BattleSystem * param0)
void ov16_0223B3E4 (BattleSystem * param0)
{
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov16_02268A14(param0->unk_198);
BGL_DeleteWindow(¶m0->unk_08[0]);
@@ -474,7 +474,7 @@ void ov16_0223B578 (BattleSystem * param0)
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
GXLayers_EngineBToggleLayers(GX_PLANEMASK_OBJ, 1);
- sub_02017798(ov16_0223CE68, param0);
+ SetMainCallback(ov16_0223CE68, param0);
param0->unk_23FB_1 = 1;
@@ -540,7 +540,7 @@ static void ov16_0223B790 (UnkStruct_020067E8 * param0)
v0->unk_00 = ov16_0223CD7C();
- sub_020177A4();
+ DisableHBlank();
sub_02002BB8(2, 5);
if (v0->battleType & 0x20) {
@@ -958,7 +958,7 @@ static void ov16_0223C004 (BattleSystem * param0, BGL * param1)
GXLayers_TurnBothDispOn();
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
GXLayers_EngineBToggleLayers(GX_PLANEMASK_OBJ, 1);
- sub_02017798(ov16_0223CE68, param0);
+ SetMainCallback(ov16_0223CE68, param0);
}
static void ov16_0223C210 (BattleSystem * param0)
@@ -1434,9 +1434,9 @@ static BOOL ov16_0223CD3C (u16 param0)
return 0;
}
-static UnkStruct_0207C690 * ov16_0223CD7C (void)
+static GenericPointerData * ov16_0223CD7C (void)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(5, 0, 2, 0, 2, ov16_0223CD9C);
return v0;
@@ -1457,7 +1457,7 @@ static void ov16_0223CD9C (void)
G3_ViewPort(0, 0, 255, 191);
}
-static void ov16_0223CE20 (UnkStruct_0207C690 * param0)
+static void ov16_0223CE20 (GenericPointerData * param0)
{
sub_020242C4(param0);
}
@@ -1758,7 +1758,7 @@ static void ov16_0223D10C (UnkStruct_020067E8 * param0, BattleParams * param1)
MessageLoader_Free(v5);
}
- sub_02017798(ov16_0223CF1C, v0);
+ SetMainCallback(ov16_0223CF1C, v0);
sub_02003178(v0->unk_0C, (0x1 | 0x4), 0xffff, 0, 16, 0, 0x0);
v0->unk_1024 = sub_0200E7FC(v0->unk_08, 1);
@@ -1997,7 +1997,7 @@ static void ov16_0223D7B4 (UnkStruct_020067E8 * param0)
{
UnkStruct_0207A778 * v0 = sub_0200682C(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_0200F344(0, 0x0);
sub_02002FA0(v0->unk_0C, 0);
sub_02002F54(v0->unk_0C);
diff --git a/src/overlay016/ov16_0223DF00.c b/src/overlay016/ov16_0223DF00.c
index 7ea8ece307..62ab361cf0 100644
--- a/src/overlay016/ov16_0223DF00.c
+++ b/src/overlay016/ov16_0223DF00.c
@@ -21,7 +21,7 @@
#include "strbuf.h"
#include "trainer_info.h"
#include "struct_decls/struct_02026324_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_020797DC_decl.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_decls/battle_system.h"
@@ -90,8 +90,8 @@ int BattleSystem_PartyCount(BattleSystem *battleSys, int battler);
Pokemon* BattleSystem_PartyPokemon(BattleSystem *battleSys, int battler, int slot);
UnkStruct_02007768 * ov16_0223E000(BattleSystem * param0);
UnkStruct_ov12_0221FCDC * ov16_0223E008(BattleSystem * param0);
-UnkStruct_0200C6E4 * ov16_0223E010(BattleSystem * param0);
-UnkStruct_0200C704 * ov16_0223E018(BattleSystem * param0);
+CellTransferStateData * ov16_0223E010(BattleSystem * param0);
+AnimationResourceCollection * ov16_0223E018(BattleSystem * param0);
UnkStruct_ov16_02268520 * ov16_0223E020(BattleSystem * param0, int param1);
UnkStruct_ov16_02268A14 * ov16_0223E02C(BattleSystem * param0);
UnkStruct_0200C440 * ov16_0223E04C(BattleSystem * param0);
@@ -137,13 +137,13 @@ u8 ov16_0223ED60(BattleSystem * param0);
u8 ov16_0223ED6C(BattleSystem * param0);
int BattleSystem_NumSafariBalls(BattleSystem * param0);
void BattleSystem_SetSafariBalls(BattleSystem * param0, int param1);
-UnkStruct_020279FC * ov16_0223EDA4(BattleSystem * param0);
+AnimationControlFlags * ov16_0223EDA4(BattleSystem * param0);
BOOL BattleSystem_AnimationsOn(BattleSystem *battleSys);
int ov16_0223EDE0(BattleSystem * param0);
u8 BattleSystem_TextSpeed(BattleSystem * param0);
int BattleSystem_Ruleset(BattleSystem * param0);
PokemonAnimationSys * ov16_0223EE28(BattleSystem * param0);
-UnkStruct_0202CC84 * BattleSystem_ChatotVoice(BattleSystem * param0, int param1);
+ChatotCry * BattleSystem_ChatotVoice(BattleSystem * param0, int param1);
void ov16_0223EE70(BattleSystem * param0);
void ov16_0223EF2C(BattleSystem * param0, int param1, int param2);
void ov16_0223EF48(BattleSystem * param0, Pokemon * param1);
@@ -311,12 +311,12 @@ UnkStruct_ov12_0221FCDC * ov16_0223E008 (BattleSystem * param0)
return param0->unk_8C;
}
-UnkStruct_0200C6E4 * ov16_0223E010 (BattleSystem * param0)
+CellTransferStateData * ov16_0223E010 (BattleSystem * param0)
{
return param0->unk_90;
}
-UnkStruct_0200C704 * ov16_0223E018 (BattleSystem * param0)
+AnimationResourceCollection * ov16_0223E018 (BattleSystem * param0)
{
return param0->unk_94;
}
@@ -1017,7 +1017,7 @@ void BattleSystem_SetSafariBalls (BattleSystem * param0, int param1)
param0->safariBalls = param1;
}
-UnkStruct_020279FC * ov16_0223EDA4 (BattleSystem * param0)
+AnimationControlFlags * ov16_0223EDA4 (BattleSystem * param0)
{
return param0->unk_1B0;
}
@@ -1056,7 +1056,7 @@ PokemonAnimationSys * ov16_0223EE28 (BattleSystem * param0)
return param0->unk_1C4;
}
-UnkStruct_0202CC84 * BattleSystem_ChatotVoice (BattleSystem * param0, int param1)
+ChatotCry * BattleSystem_ChatotVoice (BattleSystem * param0, int param1)
{
if ((param0->battleType & 0x8) || ((param0->battleType & 0x10) && (BattleSystem_BattlerSlot(param0, param1) & 0x1))) {
return param0->unk_78[param1];
diff --git a/src/overlay016/ov16_0225BFFC.c b/src/overlay016/ov16_0225BFFC.c
index cdd984d53e..a18ef51804 100644
--- a/src/overlay016/ov16_0225BFFC.c
+++ b/src/overlay016/ov16_0225BFFC.c
@@ -832,8 +832,8 @@ static void ov16_0225C8A4 (BattleSystem * param0, BattlerData * param1)
static void ov16_0225C8E0 (BattleSystem * param0, BattlerData * param1)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
PaletteSys * v2;
v0 = ov16_0223E010(param0);
@@ -847,7 +847,7 @@ static void ov16_0225C8E0 (BattleSystem * param0, BattlerData * param1)
static void ov16_0225C91C (BattleSystem * param0, BattlerData * param1)
{
- UnkStruct_0200C704 * v0;
+ AnimationResourceCollection * v0;
v0 = ov16_0223E018(param0);
diff --git a/src/overlay016/ov16_0225CBB8.c b/src/overlay016/ov16_0225CBB8.c
index 09dc6dfd08..32497c1b9d 100644
--- a/src/overlay016/ov16_0225CBB8.c
+++ b/src/overlay016/ov16_0225CBB8.c
@@ -1625,7 +1625,7 @@ static void ov16_0225E4E8 (SysTask * param0, void * param1)
{
u8 v4;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v4, v0->unk_16, v0->unk_1C);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_11), v0->unk_18, v0->unk_16, v0->unk_2C, 117, 127, NULL, 5, v4);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_11), v0->unk_18, v0->unk_16, v0->unk_2C, 117, 127, NULL, 5, v4);
}
if ((v0->unk_1C == 1) || (v0->unk_1C == 3)) {
@@ -1668,7 +1668,7 @@ static void ov16_0225E4E8 (SysTask * param0, void * param1)
u8 v5;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v5, v0->unk_16, v0->unk_1C);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_11), v0->unk_18, v0->unk_16, v0->unk_2C, -117, 127, NULL, 5, v5);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_11), v0->unk_18, v0->unk_16, v0->unk_2C, -117, 127, NULL, 5, v5);
}
if ((v0->unk_1C == 0) || (v0->unk_1C == 2)) {
@@ -1752,7 +1752,7 @@ static void ov16_0225E894 (SysTask * param0, void * param1)
u8 v4;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v4, v0->unk_16, v0->unk_1C);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_11), v0->unk_18, v0->unk_16, v0->unk_2C, 117, 127, NULL, 5, v4);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_11), v0->unk_18, v0->unk_16, v0->unk_2C, 117, 127, NULL, 5, v4);
}
sub_0200D4C4(v0->unk_0C->unk_00, (24 * 8), (8 * 11));
@@ -1913,7 +1913,7 @@ static void ov16_0225EA80 (SysTask * param0, void * param1)
u8 v4;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v4, v0->unk_86, v0->unk_82);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, 117, 127, NULL, 5, v4);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, 117, 127, NULL, 5, v4);
}
} else {
sub_02007B98(v0->unk_04->unk_20, 1);
@@ -1922,7 +1922,7 @@ static void ov16_0225EA80 (SysTask * param0, void * param1)
u8 v5;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v5, v0->unk_86, v0->unk_82);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, -117, 127, NULL, 5, v5);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, -117, 127, NULL, 5, v5);
}
}
@@ -1942,7 +1942,7 @@ static void ov16_0225EA80 (SysTask * param0, void * param1)
u8 v6;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v6, v0->unk_86, v0->unk_82);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, 117, 127, NULL, 5, v6);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, 117, 127, NULL, 5, v6);
}
} else {
sub_02007B98(v0->unk_04->unk_20, 1);
@@ -1951,7 +1951,7 @@ static void ov16_0225EA80 (SysTask * param0, void * param1)
u8 v7;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v7, v0->unk_86, v0->unk_82);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, -117, 127, NULL, 5, v7);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, -117, 127, NULL, 5, v7);
}
}
@@ -2109,7 +2109,7 @@ static void ov16_0225F0C0 (SysTask * param0, void * param1)
u8 v6;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v6, v0->unk_86, v0->unk_82);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, 117, 127, NULL, 5, v6);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, 117, 127, NULL, 5, v6);
}
} else {
sub_02007B98(v0->unk_04->unk_20, 1);
@@ -2118,7 +2118,7 @@ static void ov16_0225F0C0 (SysTask * param0, void * param1)
u8 v7;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v7, v0->unk_86, v0->unk_82);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, -117, 127, NULL, 5, v7);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, -117, 127, NULL, 5, v7);
}
}
@@ -2137,7 +2137,7 @@ static void ov16_0225F0C0 (SysTask * param0, void * param1)
u8 v8;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v8, v0->unk_86, v0->unk_82);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, 117, 127, NULL, 5, v8);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, 117, 127, NULL, 5, v8);
}
} else {
sub_02007B98(v0->unk_04->unk_20, 1);
@@ -2146,7 +2146,7 @@ static void ov16_0225F0C0 (SysTask * param0, void * param1)
u8 v9;
PokeSprite_LoadCryDelay(v0->unk_04->unk_1A0, &v9, v0->unk_86, v0->unk_82);
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, -117, 127, NULL, 5, v9);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_81), v0->unk_88, v0->unk_86, v0->unk_97, -117, 127, NULL, 5, v9);
}
}
@@ -2675,7 +2675,7 @@ static void ov16_0225FD5C (SysTask * param0, void * param1)
}
} else if (v1 >= (256 + 40)) {
{
- UnkStruct_0200C704 * v8;
+ AnimationResourceCollection * v8;
v8 = ov16_0223E018(v0->unk_00);
sub_0200D0F4(v0->unk_04->unk_18);
@@ -2728,7 +2728,7 @@ static void ov16_0225FD5C (SysTask * param0, void * param1)
if (v1 <= -40) {
{
- UnkStruct_0200C704 * v10;
+ AnimationResourceCollection * v10;
v10 = ov16_0223E018(v0->unk_00);
@@ -2819,7 +2819,7 @@ static void ov16_02260284 (SysTask * param0, void * param1)
break;
case 1:
{
- UnkStruct_0200C704 * v3;
+ AnimationResourceCollection * v3;
v3 = ov16_0223E018(v0->unk_00);
sub_0200D0F4(v0->unk_04->unk_18);
@@ -4911,7 +4911,7 @@ static void ov16_02262A9C (SysTask * param0, void * param1)
v7 = -117;
}
- sub_02077DB4(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_65), 5, v0->unk_68, v0->unk_6B, v7, 127, v0->unk_72, 5, 0);
+ Pokemon_PlayDelayedCry(BattleSystem_ChatotVoice(v0->unk_00, v0->unk_65), 5, v0->unk_68, v0->unk_6B, v7, 127, v0->unk_72, 5, 0);
v0->unk_66++;
}
case 5:
@@ -6217,8 +6217,8 @@ static void ov16_02264360 (BattleSystem * param0, BattlerData * param1, BattleMe
static CellActorData * ov16_022643B8 (BattleSystem * param0, int param1, int param2, int param3, s16 param4, s16 param5)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
PaletteSys * v2;
CellActorData * v3;
int v4;
diff --git a/src/overlay016/ov16_02266F1C.c b/src/overlay016/ov16_02266F1C.c
index 43a0fad510..7494799d7b 100644
--- a/src/overlay016/ov16_02266F1C.c
+++ b/src/overlay016/ov16_02266F1C.c
@@ -67,7 +67,7 @@ static void ov16_02267C58(UnkStruct_ov16_022674C4 * param0);
static void ov16_02267CA8(UnkStruct_ov16_022674C4 * param0, int param1);
static void ov16_02267CE8(UnkStruct_ov16_022674C4 * param0, u32 param1);
static void ov16_02267DC4(UnkStruct_ov16_022674C4 * param0, u32 param1);
-static void ov16_02266FE4(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, PaletteSys * param3, int param4);
+static void ov16_02266FE4(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, PaletteSys * param3, int param4);
static void ov16_02267244(UnkStruct_ov16_022674C4 * param0);
static void ov16_0226728C(UnkStruct_ov16_022674C4 * param0);
static const UnkStruct_ov104_0223F9E0 * ov16_022682B0(u8 param0);
@@ -409,7 +409,7 @@ static const UnkStruct_ov104_0223F9E0 Unk_ov16_0226F57C = {
#include "overlay016/rodata_ov16_0226F6AC.h"
-void ov16_02266F1C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, PaletteSys * param3, int param4)
+void ov16_02266F1C (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, PaletteSys * param3, int param4)
{
const UnkStruct_ov104_0223F9E0 * v0;
@@ -426,7 +426,7 @@ void ov16_02266F1C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NA
}
}
-static void ov16_02266FE4 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, PaletteSys * param3, int param4)
+static void ov16_02266FE4 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, PaletteSys * param3, int param4)
{
const UnkStruct_ov104_0223F9E0 * v0;
@@ -440,7 +440,7 @@ static void ov16_02266FE4 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * par
}
}
-CellActorData * ov16_02267060 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2)
+CellActorData * ov16_02267060 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2)
{
const UnkStruct_ov104_0223F9E0 * v0;
CellActorData * v1;
@@ -592,8 +592,8 @@ static void ov16_02267244 (UnkStruct_ov16_022674C4 * param0)
void ov16_02267258 (UnkStruct_ov16_022674C4 * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
const UnkStruct_ov104_0223F9E0 * v2;
v2 = ov16_022682B0(param0->unk_25);
@@ -607,8 +607,8 @@ void ov16_02267258 (UnkStruct_ov16_022674C4 * param0)
static void ov16_0226728C (UnkStruct_ov16_022674C4 * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
const UnkStruct_ov104_0223F9E0 * v2;
v2 = ov16_02268314(param0->unk_25);
@@ -628,8 +628,8 @@ static void ov16_0226728C (UnkStruct_ov16_022674C4 * param0)
void ov16_022672C4 (UnkStruct_ov16_022674C4 * param0)
{
const UnkStruct_ov104_0223F9E0 * v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
NARC * v4;
@@ -1614,7 +1614,7 @@ void ov16_0226834C (UnkStruct_ov16_022674C4 * param0, u8 * param1)
static void ov16_02268380 (SysTask * param0, void * param1)
{
UnkStruct_ov16_0226834C * v0 = param1;
- UnkStruct_0200C704 * v1;
+ AnimationResourceCollection * v1;
int v2;
PaletteSys * v3;
diff --git a/src/overlay016/ov16_02268520.c b/src/overlay016/ov16_02268520.c
index 2f734d2bbd..a3f81c6394 100644
--- a/src/overlay016/ov16_02268520.c
+++ b/src/overlay016/ov16_02268520.c
@@ -174,8 +174,8 @@ __attribute__((aligned(4))) static const u16 Unk_ov16_02270134[][3] = {
void ov16_02268520 (UnkStruct_ov16_02268520 * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
const UnkStruct_ov104_0223F9E0 * v2;
int v3, v4, v5, v6, v7, v8;
int v9;
@@ -213,8 +213,8 @@ void ov16_02268520 (UnkStruct_ov16_02268520 * param0)
void ov16_0226862C (UnkStruct_ov16_02268520 * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
const UnkStruct_ov104_0223F9E0 * v2;
v0 = ov16_0223E010(param0->unk_04);
@@ -237,7 +237,7 @@ void ov16_02268660 (UnkStruct_ov16_02268520 * param0)
void ov16_02268674 (UnkStruct_ov16_02268520 * param0)
{
- UnkStruct_0200C704 * v0;
+ AnimationResourceCollection * v0;
int v1, v2, v3;
v0 = ov16_0223E018(param0->unk_04);
diff --git a/src/overlay016/ov16_0226871C.c b/src/overlay016/ov16_0226871C.c
index 46c433294a..c202f97016 100644
--- a/src/overlay016/ov16_0226871C.c
+++ b/src/overlay016/ov16_0226871C.c
@@ -1212,8 +1212,8 @@ void ov16_02268A14 (UnkStruct_ov16_02268A14 * param0)
void ov16_02268A88 (UnkStruct_ov16_02268A14 * param0)
{
BGL * v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
int v4;
@@ -1250,8 +1250,8 @@ void ov16_02268A88 (UnkStruct_ov16_02268A14 * param0)
void ov16_02268B8C (UnkStruct_ov16_02268A14 * param0)
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
v1 = ov16_0223E010(param0->unk_00);
v2 = ov16_0223E018(param0->unk_00);
@@ -1274,8 +1274,8 @@ void ov16_02268C04 (NARC * param0, NARC * param1, UnkStruct_ov16_02268A14 * para
const UnkStruct_ov16_02270670 * v0, * v1;
int v2;
BGL * v3;
- UnkStruct_0200C6E4 * v4;
- UnkStruct_0200C704 * v5;
+ CellTransferStateData * v4;
+ AnimationResourceCollection * v5;
if (param5 != NULL) {
MI_CpuCopy8(param5, ¶m2->unk_1A, sizeof(UnkStruct_ov16_02268A14_sub2));
@@ -1341,8 +1341,8 @@ void ov16_02268C04 (NARC * param0, NARC * param1, UnkStruct_ov16_02268A14 * para
void ov16_02268D40 (NARC * param0, UnkStruct_ov16_02268A14 * param1)
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
GF_ASSERT(param1->unk_5BC[0] == NULL && param1->unk_5D4[0] == NULL);
@@ -1383,8 +1383,8 @@ void ov16_02268D40 (NARC * param0, UnkStruct_ov16_02268A14 * param1)
static void ov16_02268F00 (UnkStruct_ov16_02268A14 * param0)
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
GF_ASSERT(param0->unk_5BC[0] != NULL && param0->unk_5D4[0] != NULL);
@@ -1734,7 +1734,7 @@ static void ov16_02269550 (UnkStruct_ov16_02268A14 * param0, int param1)
Sound_PlayEffect(1806);
SysTask_Start(ov16_0226B988, v1, 1210);
- v0 = sub_020177BC(ov16_0226BB94, v1);
+ v0 = SetHBlankCallback(ov16_0226BB94, v1);
GF_ASSERT(v0 == 1);
v1->unk_04 = sub_0200DA04(ov16_0226BA88, v1, 10);
@@ -2439,8 +2439,8 @@ static int ov16_0226A634 (UnkStruct_ov16_02268A14 * param0, int param1, int para
static void ov16_0226A698 (UnkStruct_ov16_02268A14 * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
int v2, v3, v4;
PaletteSys * v5;
@@ -2455,7 +2455,7 @@ static void ov16_0226A698 (UnkStruct_ov16_02268A14 * param0)
static void ov16_0226A718 (UnkStruct_ov16_02268A14 * param0)
{
- UnkStruct_0200C704 * v0;
+ AnimationResourceCollection * v0;
v0 = ov16_0223E018(param0->unk_00);
@@ -2486,8 +2486,8 @@ static void ov16_0226A768 (UnkStruct_ov16_02268A14 * param0)
static CellActorData * ov16_0226A7A4 (UnkStruct_ov16_02268A14 * param0, Pokemon * param1, int param2, int param3, int param4, int param5)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
u32 v2;
UnkStruct_ov104_0223F9E0 v3;
CellActorData * v4;
@@ -2620,7 +2620,7 @@ static void ov16_0226A98C (UnkStruct_ov16_02268A14 * param0, UnkStruct_ov16_0226
int v3;
FontOAM * v4;
BGL * v5;
- UnkStruct_0200C704 * v6;
+ AnimationResourceCollection * v6;
int v7, v8;
GF_ASSERT(param1->unk_00 == NULL);
@@ -2866,8 +2866,8 @@ static void ov16_0226AEA0 (UnkStruct_ov16_02268A14 * param0, const Strbuf *param
static void ov16_0226AF0C (UnkStruct_ov16_02268A14 * param0)
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
UnkStruct_ov104_0223F9E0 v3;
UnkStruct_ov16_02260C00 * v4;
int v5;
@@ -2909,8 +2909,8 @@ static void ov16_0226AF0C (UnkStruct_ov16_02268A14 * param0)
static void ov16_0226AFF4 (UnkStruct_ov16_02268A14 * param0)
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
v1 = ov16_0223E010(param0->unk_00);
v2 = ov16_0223E018(param0->unk_00);
@@ -2926,8 +2926,8 @@ static void ov16_0226AFF4 (UnkStruct_ov16_02268A14 * param0)
static void ov16_0226B028 (UnkStruct_ov16_02268A14 * param0)
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
v1 = ov16_0223E010(param0->unk_00);
v2 = ov16_0223E018(param0->unk_00);
@@ -3541,7 +3541,7 @@ static void ov16_0226B988 (SysTask * param0, void * param1)
case 1:
v0->unk_00->unk_66E = 0;
SysTask_Done(v0->unk_04);
- sub_020177A4();
+ DisableHBlank();
GXS_SetVisibleWnd(GX_WNDMASK_NONE);
ov16_0226BCCC(v0->unk_00, 1);
v0->unk_13++;
@@ -4493,8 +4493,8 @@ static int(*const Unk_ov16_0227020C[])(UnkStruct_ov16_02268A14 *) = {
static int ov16_0226CD18 (UnkStruct_ov16_02268A14 * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
PaletteSys * v2;
int v3;
diff --git a/src/overlay016/ov16_0226D094.c b/src/overlay016/ov16_0226D094.c
index 58dcef030f..88b3edcdfb 100644
--- a/src/overlay016/ov16_0226D094.c
+++ b/src/overlay016/ov16_0226D094.c
@@ -60,9 +60,9 @@ typedef struct UnkStruct_ov16_0226D160_t {
s8 unk_13C;
} UnkStruct_ov16_0226D160;
-static void ov16_0226D2A0(UnkStruct_ov16_0226D2A0 * param0, UnkEnum_ov16_0226D194 param1, UnkEnum_ov16_0226D194_3 param2, UnkStruct_0200C6E4 * param3, UnkStruct_0200C704 * param4);
+static void ov16_0226D2A0(UnkStruct_ov16_0226D2A0 * param0, UnkEnum_ov16_0226D194 param1, UnkEnum_ov16_0226D194_3 param2, CellTransferStateData * param3, AnimationResourceCollection * param4);
static void ov16_0226D3F8(UnkStruct_ov16_0226D2A0 * param0, UnkEnum_ov16_0226D220 param1);
-static void ov16_0226D540(UnkStruct_ov16_0226D540 * param0, s8 * param1, UnkEnum_ov16_0226D194 param2, UnkEnum_ov16_0226D194_1 param3, UnkEnum_ov16_0226D194_3 param4, int param5, int param6, UnkStruct_0200C6E4 * param7, UnkStruct_0200C704 * param8);
+static void ov16_0226D540(UnkStruct_ov16_0226D540 * param0, s8 * param1, UnkEnum_ov16_0226D194 param2, UnkEnum_ov16_0226D194_1 param3, UnkEnum_ov16_0226D194_3 param4, int param5, int param6, CellTransferStateData * param7, AnimationResourceCollection * param8);
static void ov16_0226D938(UnkStruct_ov16_0226D540 * param0, int param1, UnkEnum_ov16_0226D194_2 param2, s16 * param3);
static void ov16_0226D34C(SysTask * param0, void * param1);
static void ov16_0226D434(SysTask * param0, void * param1);
@@ -125,7 +125,7 @@ __attribute__((aligned(4))) static const u16 Unk_ov16_02270A1C[] = {
0x32
};
-void ov16_0226D094 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2)
+void ov16_0226D094 (CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2)
{
NARC * v0;
@@ -138,7 +138,7 @@ void ov16_0226D094 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, Pa
NARC_dtor(v0);
}
-void ov16_0226D12C (UnkStruct_0200C704 * param0)
+void ov16_0226D12C (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 20413);
sub_0200D080(param0, 20037);
@@ -161,7 +161,7 @@ static void ov16_0226D17C (UnkStruct_ov16_0226D160 * param0)
Heap_FreeToHeap(param0);
}
-UnkStruct_ov16_0226D160 * ov16_0226D194 (u8 param0[], UnkEnum_ov16_0226D194 param1, UnkEnum_ov16_0226D194_1 param2, UnkEnum_ov16_0226D194_3 param3, UnkStruct_0200C6E4 * param4, UnkStruct_0200C704 * param5)
+UnkStruct_ov16_0226D160 * ov16_0226D194 (u8 param0[], UnkEnum_ov16_0226D194 param1, UnkEnum_ov16_0226D194_1 param2, UnkEnum_ov16_0226D194_3 param3, CellTransferStateData * param4, AnimationResourceCollection * param5)
{
UnkStruct_ov16_0226D160 * v0;
int v1, v2;
@@ -241,7 +241,7 @@ void ov16_0226D27C (UnkStruct_ov16_0226D160 * param0)
ov16_0226D17C(param0);
}
-static void ov16_0226D2A0 (UnkStruct_ov16_0226D2A0 * param0, UnkEnum_ov16_0226D194 param1, UnkEnum_ov16_0226D194_3 param2, UnkStruct_0200C6E4 * param3, UnkStruct_0200C704 * param4)
+static void ov16_0226D2A0 (UnkStruct_ov16_0226D2A0 * param0, UnkEnum_ov16_0226D194 param1, UnkEnum_ov16_0226D194_3 param2, CellTransferStateData * param3, AnimationResourceCollection * param4)
{
GF_ASSERT(param0->unk_00 == NULL && param0->unk_04 == NULL);
@@ -379,7 +379,7 @@ static void ov16_0226D434 (SysTask * param0, void * param1)
}
}
-static void ov16_0226D540 (UnkStruct_ov16_0226D540 * param0, s8 * param1, UnkEnum_ov16_0226D194 param2, UnkEnum_ov16_0226D194_1 param3, UnkEnum_ov16_0226D194_3 param4, int param5, int param6, UnkStruct_0200C6E4 * param7, UnkStruct_0200C704 * param8)
+static void ov16_0226D540 (UnkStruct_ov16_0226D540 * param0, s8 * param1, UnkEnum_ov16_0226D194 param2, UnkEnum_ov16_0226D194_1 param3, UnkEnum_ov16_0226D194_3 param4, int param5, int param6, CellTransferStateData * param7, AnimationResourceCollection * param8)
{
GF_ASSERT(param0->unk_00 == NULL && param0->unk_04 == NULL);
diff --git a/src/overlay016/ov16_0226DB7C.c b/src/overlay016/ov16_0226DB7C.c
index 7e708c06a0..c7758d2676 100644
--- a/src/overlay016/ov16_0226DB7C.c
+++ b/src/overlay016/ov16_0226DB7C.c
@@ -22,9 +22,9 @@ typedef struct UnkStruct_ov16_0226DC24_t {
} UnkStruct_ov16_0226DC24;
static void ov16_0226DE10(SysTask * param0, void * param1);
-void ov16_0226DB7C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, int param3, u32 param4, u32 param5, u32 param6, u32 param7);
-void ov16_0226DBFC(UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4);
-UnkStruct_ov16_0226DC24 * ov16_0226DC24(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
+void ov16_0226DB7C(CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, int param3, u32 param4, u32 param5, u32 param6, u32 param7);
+void ov16_0226DBFC(AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4);
+UnkStruct_ov16_0226DC24 * ov16_0226DC24(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
void ov16_0226DCA8(UnkStruct_ov16_0226DC24 * param0);
void ov16_0226DD7C(UnkStruct_ov16_0226DC24 * param0, int param1, int param2, int param3, int param4);
void ov16_0226DDE8(UnkStruct_ov16_0226DC24 * param0);
@@ -42,7 +42,7 @@ static const UnkStruct_ov104_0223F9E0 Unk_ov16_02270AA4 = {
0x0
};
-void ov16_0226DB7C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, int param3, u32 param4, u32 param5, u32 param6, u32 param7)
+void ov16_0226DB7C (CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, int param3, u32 param4, u32 param5, u32 param6, u32 param7)
{
NARC * v0;
@@ -55,7 +55,7 @@ void ov16_0226DB7C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, Pa
NARC_dtor(v0);
}
-void ov16_0226DBFC (UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4)
+void ov16_0226DBFC (AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4)
{
sub_0200D070(param0, param1);
sub_0200D080(param0, param2);
@@ -63,7 +63,7 @@ void ov16_0226DBFC (UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 par
sub_0200D0A0(param0, param4);
}
-UnkStruct_ov16_0226DC24 * ov16_0226DC24 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8)
+UnkStruct_ov16_0226DC24 * ov16_0226DC24 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8)
{
UnkStruct_ov16_0226DC24 * v0;
UnkStruct_ov104_0223F9E0 v1;
diff --git a/src/overlay016/ov16_0226DE44.c b/src/overlay016/ov16_0226DE44.c
index 0ee2a7af61..349ac1dd56 100644
--- a/src/overlay016/ov16_0226DE44.c
+++ b/src/overlay016/ov16_0226DE44.c
@@ -32,9 +32,9 @@ typedef struct UnkStruct_ov16_0226DEEC_t {
u8 unk_1E;
} UnkStruct_ov16_0226DEEC;
-void ov16_0226DE44(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u32 param2, PaletteSys * param3, u32 param4, u32 param5, u32 param6, u32 param7);
-void ov16_0226DEC4(UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4);
-UnkStruct_ov16_0226DEEC * ov16_0226DEEC(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
+void ov16_0226DE44(CellTransferStateData * param0, AnimationResourceCollection * param1, u32 param2, PaletteSys * param3, u32 param4, u32 param5, u32 param6, u32 param7);
+void ov16_0226DEC4(AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4);
+UnkStruct_ov16_0226DEEC * ov16_0226DEEC(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
void ov16_0226DF68(UnkStruct_ov16_0226DEEC * param0);
void ov16_0226DFB0(UnkStruct_ov16_0226DEEC * param0, int param1, int param2);
void ov16_0226DFBC(UnkStruct_ov16_0226DEEC * param0);
@@ -54,7 +54,7 @@ static const UnkStruct_ov104_0223F9E0 Unk_ov16_02270AD8 = {
0x0
};
-void ov16_0226DE44 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u32 param2, PaletteSys * param3, u32 param4, u32 param5, u32 param6, u32 param7)
+void ov16_0226DE44 (CellTransferStateData * param0, AnimationResourceCollection * param1, u32 param2, PaletteSys * param3, u32 param4, u32 param5, u32 param6, u32 param7)
{
NARC * v0 = NARC_ctor(NARC_INDEX_GRAPHIC__EV_POKESELECT, param2);
@@ -65,7 +65,7 @@ void ov16_0226DE44 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u3
NARC_dtor(v0);
}
-void ov16_0226DEC4 (UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4)
+void ov16_0226DEC4 (AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4)
{
sub_0200D070(param0, param1);
sub_0200D080(param0, param2);
@@ -73,7 +73,7 @@ void ov16_0226DEC4 (UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 par
sub_0200D0A0(param0, param4);
}
-UnkStruct_ov16_0226DEEC * ov16_0226DEEC (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8)
+UnkStruct_ov16_0226DEEC * ov16_0226DEEC (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8)
{
UnkStruct_ov16_0226DEEC * v0;
UnkStruct_ov104_0223F9E0 v1;
diff --git a/src/overlay017/ov17_0223B140.c b/src/overlay017/ov17_0223B140.c
index ab60f5f098..96b7548ffe 100644
--- a/src/overlay017/ov17_0223B140.c
+++ b/src/overlay017/ov17_0223B140.c
@@ -148,8 +148,8 @@ int ov17_0223B140 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov17_02246F24 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -262,7 +262,7 @@ int ov17_0223B140 (UnkStruct_020067E8 * param0, int * param1)
GXLayers_EngineBToggleLayers(GX_PLANEMASK_OBJ, 1);
sub_02004550(6, 1135, 1);
sub_020959F4(v0->unk_00->unk_155);
- sub_02017798(ov17_0223B6BC, v0);
+ SetMainCallback(ov17_0223B6BC, v0);
return 1;
}
@@ -377,8 +377,8 @@ int ov17_0223B580 (UnkStruct_020067E8 * param0, int * param1)
sub_0201E530();
sub_02006830(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
Heap_Destroy(21);
sub_02095A24();
sub_02039794();
diff --git a/src/overlay017/ov17_0223CB1C.c b/src/overlay017/ov17_0223CB1C.c
index 36418210df..d9bfe9c50e 100644
--- a/src/overlay017/ov17_0223CB1C.c
+++ b/src/overlay017/ov17_0223CB1C.c
@@ -128,8 +128,8 @@ int ov17_0223CB1C (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov17_02247A48 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -223,7 +223,7 @@ int ov17_0223CB1C (UnkStruct_020067E8 * param0, int * param1)
sub_02004234(0);
sub_02004550(6, 1135, 1);
sub_020959F4(v0->unk_00->unk_155);
- sub_02017798(ov17_0223D0C8, v0);
+ SetMainCallback(ov17_0223D0C8, v0);
Sound_PlayEffect(1541);
return 1;
@@ -341,8 +341,8 @@ int ov17_0223CF8C (UnkStruct_020067E8 * param0, int * param1)
sub_0201E530();
sub_02006830(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
Heap_Destroy(22);
sub_02095A24();
sub_02039794();
diff --git a/src/overlay017/ov17_0223DAD0.c b/src/overlay017/ov17_0223DAD0.c
index 2d4727f535..110f003908 100644
--- a/src/overlay017/ov17_0223DAD0.c
+++ b/src/overlay017/ov17_0223DAD0.c
@@ -229,8 +229,8 @@ int ov17_0223DAD0 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov17_0224DF54 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -334,7 +334,7 @@ int ov17_0223DAD0 (UnkStruct_020067E8 * param0, int * param1)
G2_SetBlendBrightness((GX_BLEND_PLANEMASK_BG0 | GX_BLEND_PLANEMASK_BG3 | GX_BLEND_PLANEMASK_BD | GX_BLEND_PLANEMASK_OBJ), -6);
Sound_PlayEffect(1765);
- sub_02017798(ov17_0223E09C, v0);
+ SetMainCallback(ov17_0223E09C, v0);
return 1;
}
@@ -450,8 +450,8 @@ int ov17_0223DF0C (UnkStruct_020067E8 * param0, int * param1)
sub_0201E530();
sub_02006830(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
Heap_Destroy(23);
sub_02095A24();
sub_02039794();
diff --git a/src/overlay017/ov17_0223F118.c b/src/overlay017/ov17_0223F118.c
index eb8096c526..16b75ced25 100644
--- a/src/overlay017/ov17_0223F118.c
+++ b/src/overlay017/ov17_0223F118.c
@@ -83,9 +83,9 @@ static void NitroStaticInit (void)
Overlay_LoadByID(FS_OVERLAY_ID(overlay22), 2);
}
-UnkStruct_0207C690 * ov17_0223F140 (int param0)
+GenericPointerData * ov17_0223F140 (int param0)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(param0, 0, 2, 0, 2, ov17_0223F15C);
return v0;
@@ -106,12 +106,12 @@ static void ov17_0223F15C (void)
G3_ViewPort(0, 0, 255, 191);
}
-void ov17_0223F1E0 (UnkStruct_0207C690 * param0)
+void ov17_0223F1E0 (GenericPointerData * param0)
{
sub_020242C4(param0);
}
-void ov17_0223F1E8 (int param0, BGL * param1, UnkStruct_0200C704 * param2, UnkStruct_02012744 * param3, UnkStruct_ov17_0223F2E4 * param4, const Strbuf *param5, int param6, u32 param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14)
+void ov17_0223F1E8 (int param0, BGL * param1, AnimationResourceCollection * param2, UnkStruct_02012744 * param3, UnkStruct_ov17_0223F2E4 * param4, const Strbuf *param5, int param6, u32 param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14)
{
UnkStruct_020127E8 v0;
Window v1;
@@ -314,7 +314,7 @@ void ov17_0223F374 (UnkStruct_02095C48 * param0)
}
}
-void ov17_0223F560 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, int param3, int param4, int param5, int param6)
+void ov17_0223F560 (CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, int param3, int param4, int param5, int param6)
{
if (param3 != -1) {
sub_0200CBDC(param0, param1, 46, 73, 1, NNS_G2D_VRAM_TYPE_2DMAIN, param3);
@@ -333,7 +333,7 @@ void ov17_0223F560 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, Pa
}
}
-void ov17_0223F5E8 (UnkStruct_0200C704 * param0, int param1, int param2, int param3, int param4)
+void ov17_0223F5E8 (AnimationResourceCollection * param0, int param1, int param2, int param3, int param4)
{
if (param1 != -1) {
sub_0200D070(param0, param1);
@@ -352,7 +352,7 @@ void ov17_0223F5E8 (UnkStruct_0200C704 * param0, int param1, int param2, int par
}
}
-void ov17_0223F630 (UnkStruct_ov17_0223F6E8 * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, u32 param10)
+void ov17_0223F630 (UnkStruct_ov17_0223F6E8 * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, u32 param10)
{
int v0;
UnkStruct_ov104_0223F9E0 v1;
diff --git a/src/overlay017/ov17_0223F7E4.c b/src/overlay017/ov17_0223F7E4.c
index b47e079ba9..06c6bd8581 100644
--- a/src/overlay017/ov17_0223F7E4.c
+++ b/src/overlay017/ov17_0223F7E4.c
@@ -641,8 +641,8 @@ void ov17_0223F9C4 (UnkStruct_ov17_0223F7E4 * param0, int param1, int param2, vo
const UnkStruct_ov17_02253558 * v0, * v1;
int v2;
BGL * v3;
- UnkStruct_0200C6E4 * v4;
- UnkStruct_0200C704 * v5;
+ CellTransferStateData * v4;
+ AnimationResourceCollection * v5;
param0->unk_0C = param3;
@@ -960,7 +960,7 @@ static void ov17_02240138 (UnkStruct_ov17_0223F7E4 * param0, UnkStruct_ov17_0224
int v3;
FontOAM * v4;
BGL * v5;
- UnkStruct_0200C704 * v6;
+ AnimationResourceCollection * v6;
int v7, v8;
GF_ASSERT(param1->unk_00 == NULL);
@@ -1057,8 +1057,8 @@ static void ov17_022402A8 (UnkStruct_ov17_0223F7E4 * param0)
static void ov17_022402E8 (UnkStruct_ov17_0223F7E4 * param0, u16 param1[])
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
UnkStruct_ov104_0223F9E0 v3;
int v4;
@@ -1085,8 +1085,8 @@ static void ov17_022402E8 (UnkStruct_ov17_0223F7E4 * param0, u16 param1[])
static void ov17_02240388 (UnkStruct_ov17_0223F7E4 * param0)
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
v1 = param0->unk_04->unk_18;
v2 = param0->unk_04->unk_1C;
diff --git a/src/overlay017/ov17_02241270.c b/src/overlay017/ov17_02241270.c
index a6e7ffb62c..6d2b7124fc 100644
--- a/src/overlay017/ov17_02241270.c
+++ b/src/overlay017/ov17_02241270.c
@@ -50,14 +50,14 @@ static const UnkStruct_ov104_0223F9E0 Unk_ov17_02253680 = {
0x0
};
-void ov17_02241270 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_02241270 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 42, 1, NNS_G2D_VRAM_TYPE_2DSUB, 33019);
sub_0200CE24(param0, param1, param2, 43, 1, 33014);
sub_0200CE54(param0, param1, param2, 44, 1, 33014);
}
-CellActorData * ov17_022412C0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2)
+CellActorData * ov17_022412C0 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2)
{
CellActorData * v0;
@@ -68,7 +68,7 @@ CellActorData * ov17_022412C0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 *
return v0;
}
-void ov17_022412F0 (UnkStruct_0200C704 * param0)
+void ov17_022412F0 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33019);
sub_0200D090(param0, 33014);
@@ -80,14 +80,14 @@ void ov17_02241314 (CellActorData * param0)
sub_0200D0F4(param0);
}
-void ov17_0224131C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224131C (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 45, 1, NNS_G2D_VRAM_TYPE_2DSUB, 33018);
sub_0200CE24(param0, param1, param2, 46, 1, 33013);
sub_0200CE54(param0, param1, param2, 47, 1, 33013);
}
-CellActorData * ov17_0224136C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4)
+CellActorData * ov17_0224136C (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4)
{
CellActorData * v0;
@@ -108,7 +108,7 @@ void ov17_022413AC (CellActorData * param0)
sub_0200D0F4(param0);
}
-void ov17_022413B4 (UnkStruct_0200C704 * param0)
+void ov17_022413B4 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33018);
sub_0200D090(param0, 33013);
diff --git a/src/overlay017/ov17_022413D8.c b/src/overlay017/ov17_022413D8.c
index 63fb003787..52fc2d5092 100644
--- a/src/overlay017/ov17_022413D8.c
+++ b/src/overlay017/ov17_022413D8.c
@@ -547,7 +547,7 @@ void ov17_022416E4 (UnkStruct_ov17_0223F88C * param0)
param0->unk_98.unk_00 = NULL;
}
-static CellActorData * ov17_02241720 (PaletteSys * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, const UnkStruct_020954F0 * param3, int param4, NARC * param5)
+static CellActorData * ov17_02241720 (PaletteSys * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, const UnkStruct_020954F0 * param3, int param4, NARC * param5)
{
CellActorData * v0;
UnkStruct_ov104_0223F9E0 v1;
@@ -593,7 +593,7 @@ static CellActorData * ov17_02241720 (PaletteSys * param0, UnkStruct_0200C6E4 *
return v0;
}
-static void ov17_02241814 (UnkStruct_0200C704 * param0, CellActorData * param1, int param2)
+static void ov17_02241814 (AnimationResourceCollection * param0, CellActorData * param1, int param2)
{
sub_0200D0F4(param1);
sub_0200D070(param0, 33001 + param2);
@@ -602,7 +602,7 @@ static void ov17_02241814 (UnkStruct_0200C704 * param0, CellActorData * param1,
sub_0200D0A0(param0, 33001 + param2);
}
-static void ov17_02241854 (PaletteSys * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, NARC * param3)
+static void ov17_02241854 (PaletteSys * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, NARC * param3)
{
u32 v0, v1, v2;
@@ -615,7 +615,7 @@ static void ov17_02241854 (PaletteSys * param0, UnkStruct_0200C6E4 * param1, Unk
sub_0200CE54(param1, param2, param3, v2, 1, 33004);
}
-static CellActorData * ov17_022418A4 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2)
+static CellActorData * ov17_022418A4 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2)
{
CellActorData * v0;
UnkStruct_ov104_0223F9E0 v1;
@@ -639,7 +639,7 @@ static void ov17_02241900 (CellActorData * param0)
sub_0200D0F4(param0);
}
-static void ov17_02241908 (UnkStruct_0200C704 * param0)
+static void ov17_02241908 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33004);
sub_0200D090(param0, 33004);
@@ -670,7 +670,7 @@ void ov17_0224197C (UnkStruct_ov17_0223F88C * param0)
ov17_02241908(param0->unk_1C);
}
-void ov17_022419AC (PaletteSys * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, NARC * param3)
+void ov17_022419AC (PaletteSys * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, NARC * param3)
{
u32 v0, v1, v2;
@@ -683,7 +683,7 @@ void ov17_022419AC (PaletteSys * param0, UnkStruct_0200C6E4 * param1, UnkStruct_
sub_0200CE54(param1, param2, param3, v2, 1, 33011);
}
-void ov17_02241A00 (UnkStruct_0200C704 * param0)
+void ov17_02241A00 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33013);
sub_0200D090(param0, 33011);
@@ -892,14 +892,14 @@ void ov17_02241E24 (UnkStruct_ov17_0223F88C * param0)
param0->unk_C0 = NULL;
}
-void ov17_02241E58 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_02241E58 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 17, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33006);
sub_0200CE24(param0, param1, param2, 16, 1, 33006);
sub_0200CE54(param0, param1, param2, 15, 1, 33006);
}
-void ov17_02241EA4 (UnkStruct_0200C704 * param0)
+void ov17_02241EA4 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33006);
sub_0200D090(param0, 33006);
@@ -932,7 +932,7 @@ void ov17_02241EF0 (UnkStruct_ov17_0223F88C * param0)
}
}
-static CellActorData * ov17_02241F08 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3)
+static CellActorData * ov17_02241F08 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3)
{
CellActorData * v0;
@@ -1031,7 +1031,7 @@ static void ov17_0224207C (SysTask * param0, void * param1)
}
}
-void ov17_02242154 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_02242154 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 26, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33008);
sub_0200CE24(param0, param1, param2, 25, 1, 33008);
@@ -1041,7 +1041,7 @@ void ov17_02242154 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NA
sub_0200CE54(param0, param1, param2, 27, 1, 33007);
}
-void ov17_022421E0 (UnkStruct_0200C704 * param0)
+void ov17_022421E0 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33008);
sub_0200D090(param0, 33008);
@@ -1077,7 +1077,7 @@ void ov17_02242248 (UnkStruct_ov17_0223F88C * param0)
}
}
-static CellActorData * ov17_02242260 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3)
+static CellActorData * ov17_02242260 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3)
{
CellActorData * v0;
@@ -1089,7 +1089,7 @@ static CellActorData * ov17_02242260 (UnkStruct_0200C6E4 * param0, UnkStruct_020
return v0;
}
-static CellActorData * ov17_0224228C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3)
+static CellActorData * ov17_0224228C (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3)
{
CellActorData * v0;
@@ -1629,14 +1629,14 @@ void ov17_02242FE8 (UnkStruct_ov17_02246F24 * param0)
}
}
-void ov17_02243040 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_02243040 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 23, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33009);
sub_0200CE24(param0, param1, param2, 22, 1, 33009);
sub_0200CE54(param0, param1, param2, 21, 1, 33009);
}
-void ov17_0224308C (UnkStruct_0200C704 * param0)
+void ov17_0224308C (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33009);
sub_0200D090(param0, 33009);
diff --git a/src/overlay017/ov17_022476F8.c b/src/overlay017/ov17_022476F8.c
index ef74f32816..40203fe33f 100644
--- a/src/overlay017/ov17_022476F8.c
+++ b/src/overlay017/ov17_022476F8.c
@@ -98,14 +98,14 @@ void ov17_02247734 (UnkStruct_ov17_022476F8 * param0)
}
}
-void ov17_0224774C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224774C (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 67, 1, NNS_G2D_VRAM_TYPE_2DSUB, 33002);
sub_0200CE24(param0, param1, param2, 68, 1, 33002);
sub_0200CE54(param0, param1, param2, 69, 1, 33002);
}
-void ov17_02247798 (UnkStruct_0200C704 * param0)
+void ov17_02247798 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33002);
sub_0200D090(param0, 33002);
diff --git a/src/overlay017/ov17_02247A48.c b/src/overlay017/ov17_02247A48.c
index e9312d66ac..6bc77d332f 100644
--- a/src/overlay017/ov17_02247A48.c
+++ b/src/overlay017/ov17_02247A48.c
@@ -1088,7 +1088,7 @@ static void ov17_02248AA4 (SysTask * param0, void * param1)
if (v0->unk_04 >= FX32_ONE) {
v2 = Pokemon_GetValue(v0->unk_00->unk_0C.unk_00->unk_00[v0->unk_0E], MON_DATA_SPECIES, NULL);
v3 = Pokemon_GetValue(v0->unk_00->unk_0C.unk_00->unk_00[v0->unk_0E], MON_DATA_FORM, NULL);
- sub_02077D3C(v0->unk_00->unk_00->unk_14C[v0->unk_0E], 0, v2, v3, 0, 127, NULL, 22);
+ Pokemon_PlayCry(v0->unk_00->unk_00->unk_14C[v0->unk_0E], 0, v2, v3, 0, 127, NULL, 22);
v0->unk_0C++;
}
break;
diff --git a/src/overlay017/ov17_022492DC.c b/src/overlay017/ov17_022492DC.c
index 2994f330b1..e8f3b055bb 100644
--- a/src/overlay017/ov17_022492DC.c
+++ b/src/overlay017/ov17_022492DC.c
@@ -417,8 +417,8 @@ void ov17_02249640 (UnkStruct_ov17_022492DC * param0, int param1, int param2, vo
const UnkStruct_ov17_02254578 * v0, * v1;
int v2;
BGL * v3;
- UnkStruct_0200C6E4 * v4;
- UnkStruct_0200C704 * v5;
+ CellTransferStateData * v4;
+ AnimationResourceCollection * v5;
param0->unk_08 = param3;
@@ -688,7 +688,7 @@ static void ov17_02249BC4 (UnkStruct_ov17_022492DC * param0, UnkStruct_ov17_0224
int v3;
FontOAM * v4;
BGL * v5;
- UnkStruct_0200C704 * v6;
+ AnimationResourceCollection * v6;
int v7, v8;
GF_ASSERT(param1->unk_00 == NULL);
@@ -759,7 +759,7 @@ static void ov17_02249CD0 (UnkStruct_ov17_022492DC * param0)
static void ov17_02249CFC (UnkStruct_ov17_022492DC * param0, int param1)
{
- UnkStruct_0200C704 * v0;
+ AnimationResourceCollection * v0;
int v1;
int v2, v3;
diff --git a/src/overlay017/ov17_0224A0FC.c b/src/overlay017/ov17_0224A0FC.c
index 6e66a1b061..8711263bf1 100644
--- a/src/overlay017/ov17_0224A0FC.c
+++ b/src/overlay017/ov17_0224A0FC.c
@@ -390,12 +390,12 @@ void ov17_0224A1EC (UnkStruct_ov17_0224A1EC * param0)
}
}
-void ov17_0224A20C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1)
+void ov17_0224A20C (CellTransferStateData * param0, AnimationResourceCollection * param1)
{
return;
}
-void ov17_0224A210 (UnkStruct_0200C704 * param0)
+void ov17_0224A210 (AnimationResourceCollection * param0)
{
return;
}
@@ -508,7 +508,7 @@ void ov17_0224A368 (UnkStruct_ov17_0224A1EC * param0, int param1, int param2, in
ov17_0224A214(param0, v0, param3);
}
-void ov17_0224A390 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224A390 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 58, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33003);
sub_0200CC3C(param0, param1, param2, 59, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33004);
@@ -518,7 +518,7 @@ void ov17_0224A390 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NA
sub_0200CE54(param0, param1, param2, 63, 1, 33003);
}
-void ov17_0224A428 (UnkStruct_0200C704 * param0)
+void ov17_0224A428 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33003);
sub_0200D070(param0, 33004);
@@ -528,7 +528,7 @@ void ov17_0224A428 (UnkStruct_0200C704 * param0)
sub_0200D0A0(param0, 33003);
}
-static int ov17_0224A46C (UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, int param3, int param4, int param5, int param6, int param7)
+static int ov17_0224A46C (UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, int param3, int param4, int param5, int param6, int param7)
{
CellActorData * v0;
int v1;
@@ -605,21 +605,21 @@ void ov17_0224A580 (UnkStruct_ov17_0224A1EC * param0)
}
}
-void ov17_0224A5A8 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224A5A8 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 55, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33007);
sub_0200CE24(param0, param1, param2, 56, 1, 33004);
sub_0200CE54(param0, param1, param2, 57, 1, 33004);
}
-void ov17_0224A5F8 (UnkStruct_0200C704 * param0)
+void ov17_0224A5F8 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33007);
sub_0200D090(param0, 33004);
sub_0200D0A0(param0, 33004);
}
-void ov17_0224A61C (UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2)
+void ov17_0224A61C (UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2)
{
CellActorData * v0;
int v1;
@@ -676,7 +676,7 @@ void ov17_0224A7B8 (UnkStruct_ov17_0224A1EC * param0)
}
}
-void ov17_0224A7E0 (UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, int param3, int param4, u8 param5)
+void ov17_0224A7E0 (UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2, int param3, int param4, u8 param5)
{
CellActorData * v0;
int v1, v2, v3, v4;
@@ -762,21 +762,21 @@ void ov17_0224A95C (UnkStruct_ov17_0224A1EC * param0)
}
}
-void ov17_0224A984 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224A984 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 64, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33008);
sub_0200CE24(param0, param1, param2, 65, 1, 33005);
sub_0200CE54(param0, param1, param2, 66, 1, 33005);
}
-void ov17_0224A9D4 (UnkStruct_0200C704 * param0)
+void ov17_0224A9D4 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33008);
sub_0200D090(param0, 33005);
sub_0200D0A0(param0, 33005);
}
-void ov17_0224A9F8 (UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2)
+void ov17_0224A9F8 (UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2)
{
CellActorData * v0;
@@ -818,21 +818,21 @@ static void ov17_0224AA68 (SysTask * param0, void * param1)
sub_0200D500(v0->unk_14.unk_1E8, v1, v2 - 8 * 5, (256 * FX32_ONE));
}
-void ov17_0224AA94 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224AA94 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 90, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33010);
sub_0200CE24(param0, param1, param2, 89, 1, 33007);
sub_0200CE54(param0, param1, param2, 88, 1, 33007);
}
-void ov17_0224AAE4 (UnkStruct_0200C704 * param0)
+void ov17_0224AAE4 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33010);
sub_0200D090(param0, 33007);
sub_0200D0A0(param0, 33007);
}
-void ov17_0224AB08 (UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2)
+void ov17_0224AB08 (UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2)
{
int v0;
@@ -907,21 +907,21 @@ void ov17_0224AC78 (UnkStruct_ov17_0224ABFC * param0, int param1, int param2)
param0->unk_12 = param2;
}
-void ov17_0224AC80 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224AC80 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 93, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33011);
sub_0200CE24(param0, param1, param2, 92, 1, 33008);
sub_0200CE54(param0, param1, param2, 91, 1, 33008);
}
-void ov17_0224ACD0 (UnkStruct_0200C704 * param0)
+void ov17_0224ACD0 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33011);
sub_0200D090(param0, 33008);
sub_0200D0A0(param0, 33008);
}
-void ov17_0224ACF4 (UnkStruct_ov17_0224A1EC * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2)
+void ov17_0224ACF4 (UnkStruct_ov17_0224A1EC * param0, CellTransferStateData * param1, AnimationResourceCollection * param2)
{
return;
}
@@ -931,14 +931,14 @@ void ov17_0224ACF8 (UnkStruct_ov17_0224A1EC * param0)
return;
}
-void ov17_0224ACFC (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224ACFC (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 96, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33012);
sub_0200CE24(param0, param1, param2, 95, 1, 33009);
sub_0200CE54(param0, param1, param2, 94, 1, 33009);
}
-void ov17_0224AD4C (UnkStruct_0200C704 * param0)
+void ov17_0224AD4C (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33012);
sub_0200D090(param0, 33009);
@@ -1065,14 +1065,14 @@ static void ov17_0224AF3C (UnkStruct_ov17_0224DF54 * param0, int param1, int par
}
}
-void ov17_0224AFA8 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224AFA8 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 99, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33013);
sub_0200CE24(param0, param1, param2, 98, 1, 33010);
sub_0200CE54(param0, param1, param2, 97, 1, 33010);
}
-void ov17_0224AFF8 (UnkStruct_0200C704 * param0)
+void ov17_0224AFF8 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33013);
sub_0200D090(param0, 33010);
@@ -1968,21 +1968,21 @@ int ov17_0224C300 (UnkStruct_ov17_0224DF54 * param0)
return Message_Printing(param0->unk_14.unk_A18);
}
-void ov17_0224C310 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2)
+void ov17_0224C310 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2)
{
sub_0200CC3C(param0, param1, param2, 76, 1, NNS_G2D_VRAM_TYPE_2DMAIN, 33009);
sub_0200CE24(param0, param1, param2, 77, 1, 33006);
sub_0200CE54(param0, param1, param2, 78, 1, 33006);
}
-void ov17_0224C360 (UnkStruct_0200C704 * param0)
+void ov17_0224C360 (AnimationResourceCollection * param0)
{
sub_0200D070(param0, 33009);
sub_0200D090(param0, 33006);
sub_0200D0A0(param0, 33006);
}
-void ov17_0224C384 (UnkStruct_ov17_0224DF54 * param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2)
+void ov17_0224C384 (UnkStruct_ov17_0224DF54 * param0, CellTransferStateData * param1, AnimationResourceCollection * param2)
{
UnkStruct_ov17_0224C384 * v0;
diff --git a/src/overlay017/ov17_0224F080.c b/src/overlay017/ov17_0224F080.c
index 3468a3c26b..60ecb3a7df 100644
--- a/src/overlay017/ov17_0224F080.c
+++ b/src/overlay017/ov17_0224F080.c
@@ -53,29 +53,29 @@ u32 ov17_0224F0B8 (void)
return 46;
}
-void ov17_0224F0BC (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4)
+void ov17_0224F0BC (CellTransferStateData * param0, AnimationResourceCollection * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4)
{
sub_0200CBDC(param0, param1, ov17_0224F0B8(), ov17_0224F080(param3), 1, param2, param4);
}
-void ov17_0224F0F0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u32 param2, u32 param3)
+void ov17_0224F0F0 (CellTransferStateData * param0, AnimationResourceCollection * param1, u32 param2, u32 param3)
{
sub_0200CE0C(param0, param1, ov17_0224F0B8(), ov17_0224F098(), 1, param2);
sub_0200CE3C(param0, param1, ov17_0224F0B8(), ov17_0224F09C(), 1, param3);
}
-void ov17_0224F138 (UnkStruct_0200C704 * param0, u32 param1)
+void ov17_0224F138 (AnimationResourceCollection * param0, u32 param1)
{
sub_0200D070(param0, param1);
}
-void ov17_0224F140 (UnkStruct_0200C704 * param0, u32 param1, u32 param2)
+void ov17_0224F140 (AnimationResourceCollection * param0, u32 param1, u32 param2)
{
sub_0200D090(param0, param1);
sub_0200D0A0(param0, param2);
}
-CellActorData * ov17_0224F154 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, const UnkStruct_ov104_0223F9E0 * param3)
+CellActorData * ov17_0224F154 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, const UnkStruct_ov104_0223F9E0 * param3)
{
CellActorData * v0;
UnkStruct_ov104_0223F9E0 v1;
diff --git a/src/overlay017/ov17_0224F4D4.c b/src/overlay017/ov17_0224F4D4.c
index 88034325f2..cc8eedc278 100644
--- a/src/overlay017/ov17_0224F4D4.c
+++ b/src/overlay017/ov17_0224F4D4.c
@@ -137,8 +137,8 @@ int ov17_0224F4D4 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov17_0224FCA0 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -218,7 +218,7 @@ int ov17_0224F4D4 (UnkStruct_020067E8 * param0, int * param1)
GXLayers_EngineBToggleLayers(GX_PLANEMASK_OBJ, 1);
sub_02004550(6, 1135, 1);
sub_020959F4(v0->unk_00->unk_155);
- sub_02017798(ov17_0224FA24, v0);
+ SetMainCallback(ov17_0224FA24, v0);
v0->unk_08 = sub_0200DA04(ov17_0224FAE4, v0, 10);
Sound_PlayEffect(1765);
@@ -236,7 +236,7 @@ int ov17_0224F754 (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
if (ScreenWipe_Done() == 1) {
- sub_020177BC(ov17_0224FAAC, v0);
+ SetHBlankCallback(ov17_0224FAAC, v0);
v0->unk_848 = ov17_0223F70C(24, v0->unk_10.unk_C0, Unk_ov17_02254AB4, NELEMS(Unk_ov17_02254AB4), 0xff, (50000 + 5000));
*param1 = 1;
}
@@ -333,8 +333,8 @@ int ov17_0224F86C (UnkStruct_020067E8 * param0, int * param1)
GX_SetVisibleWnd(GX_WNDMASK_NONE);
GXS_SetVisibleWnd(GX_WNDMASK_NONE);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
Heap_Destroy(24);
sub_02095A24();
diff --git a/src/overlay017/ov17_02251D6C.c b/src/overlay017/ov17_02251D6C.c
index 1be341731e..62e4e60542 100644
--- a/src/overlay017/ov17_02251D6C.c
+++ b/src/overlay017/ov17_02251D6C.c
@@ -679,7 +679,7 @@ static void ov17_0225266C (SysTask * param0, void * param1)
v1 = Pokemon_GetValue(v0->unk_00->unk_10.unk_00->unk_00[v0->unk_11], MON_DATA_SPECIES, NULL);
v2 = Pokemon_GetValue(v0->unk_00->unk_10.unk_00->unk_00[v0->unk_11], MON_DATA_FORM, NULL);
- sub_02077D3C(v0->unk_00->unk_00->unk_14C[v0->unk_11], 0, v1, v2, 0, 127, NULL, 24);
+ Pokemon_PlayCry(v0->unk_00->unk_00->unk_14C[v0->unk_11], 0, v1, v2, 0, 127, NULL, 24);
}
v0->unk_10++;
break;
diff --git a/src/overlay017/ov17_02252AB0.c b/src/overlay017/ov17_02252AB0.c
index 60a35345c6..c5b35582fe 100644
--- a/src/overlay017/ov17_02252AB0.c
+++ b/src/overlay017/ov17_02252AB0.c
@@ -20,9 +20,9 @@ typedef struct UnkStruct_ov17_02252B48_t {
} UnkStruct_ov17_02252B48;
static void ov17_02252CB8(SysTask * param0, void * param1);
-void ov17_02252AB0(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, u32 param3, u32 param4, u32 param5, u32 param6);
-void ov17_02252B20(UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4);
-UnkStruct_ov17_02252B48 * ov17_02252B48(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
+void ov17_02252AB0(CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, u32 param3, u32 param4, u32 param5, u32 param6);
+void ov17_02252B20(AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4);
+UnkStruct_ov17_02252B48 * ov17_02252B48(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
void ov17_02252BCC(UnkStruct_ov17_02252B48 * param0);
void ov17_02252C9C(UnkStruct_ov17_02252B48 * param0);
@@ -39,7 +39,7 @@ static const UnkStruct_ov104_0223F9E0 Unk_ov17_02254D9C = {
0x0
};
-void ov17_02252AB0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, u32 param3, u32 param4, u32 param5, u32 param6)
+void ov17_02252AB0 (CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, u32 param3, u32 param4, u32 param5, u32 param6)
{
sub_0200CD7C(param2, 3, param0, param1, 27, 80, 0, 1, NNS_G2D_VRAM_TYPE_2DSUB, param4);
sub_0200CBDC(param0, param1, 27, 250, 1, NNS_G2D_VRAM_TYPE_2DSUB, param3);
@@ -47,7 +47,7 @@ void ov17_02252AB0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, Pa
sub_0200CE3C(param0, param1, 27, 252, 1, param6);
}
-void ov17_02252B20 (UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 param3, u32 param4)
+void ov17_02252B20 (AnimationResourceCollection * param0, u32 param1, u32 param2, u32 param3, u32 param4)
{
sub_0200D070(param0, param1);
sub_0200D080(param0, param2);
@@ -55,7 +55,7 @@ void ov17_02252B20 (UnkStruct_0200C704 * param0, u32 param1, u32 param2, u32 par
sub_0200D0A0(param0, param4);
}
-UnkStruct_ov17_02252B48 * ov17_02252B48 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8)
+UnkStruct_ov17_02252B48 * ov17_02252B48 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8)
{
UnkStruct_ov17_02252B48 * v0;
UnkStruct_ov104_0223F9E0 v1;
diff --git a/src/overlay019/ov19_021D0D80.c b/src/overlay019/ov19_021D0D80.c
index 8857ada0b0..05f99c8437 100644
--- a/src/overlay019/ov19_021D0D80.c
+++ b/src/overlay019/ov19_021D0D80.c
@@ -11,7 +11,7 @@
#include "struct_decls/struct_0200B358_decl.h"
#include "struct_decls/sys_task.h"
#include "struct_decls/struct_02023FCC_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "pokemon.h"
#include "struct_decls/struct_020797DC_decl.h"
#include "struct_decls/struct_party_decl.h"
@@ -141,7 +141,7 @@ typedef struct UnkStruct_ov19_021D5DF8_t {
MessageLoader * unk_198;
UnkStruct_0200B358 * unk_19C;
Pokemon * unk_1A0;
- UnkStruct_020279FC * unk_1A4;
+ AnimationControlFlags * unk_1A4;
int (* unk_1A8)(struct UnkStruct_ov19_021D5DF8_t * param0);
void (* unk_1AC)(struct UnkStruct_ov19_021D5DF8_t * param0, u32 * param1);
u32 unk_1B0;
@@ -330,9 +330,9 @@ int ov19_021D0E58 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov19_021D5DF8 * v0 = sub_0200682C(param0);
if (Party_HasSpecies(v0->unk_124, 441) == 0) {
- UnkStruct_0202CC84 * v1 = sub_0202CC98(v0->unk_11C);
+ ChatotCry * v1 = GetChatotCryDataFromSave(v0->unk_11C);
- sub_0202CCA8(v1);
+ ResetChatotCryDataStatus(v1);
}
ov19_021D64A0(v0->unk_114);
diff --git a/src/overlay019/ov19_021D61B0.c b/src/overlay019/ov19_021D61B0.c
index 625079b860..e788fde08e 100644
--- a/src/overlay019/ov19_021D61B0.c
+++ b/src/overlay019/ov19_021D61B0.c
@@ -66,7 +66,7 @@ struct UnkStruct_ov19_021D61B0_t {
SysTask * unk_00;
SysTask * unk_04;
SysTask * unk_08[4];
- UnkStruct_020218BC * unk_18;
+ GraphicElementManager * unk_18;
UnkStruct_0200C738 unk_1C;
NNSG2dImagePaletteProxy unk_1A8;
UnkStruct_02007768 * unk_1BC;
@@ -174,8 +174,8 @@ BOOL ov19_021D61B0 (UnkStruct_ov19_021D61B0 ** param0, const UnkStruct_ov19_021D
v3 = NARC_ctor(NARC_INDEX_GRAPHIC__BOX, 10);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -245,7 +245,7 @@ static void ov19_021D6474 (SysTask * param0, void * param1)
void ov19_021D64A0 (UnkStruct_ov19_021D61B0 * param0)
{
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
SysTask_Done(param0->unk_00);
SysTask_Done(param0->unk_04);
@@ -1940,10 +1940,10 @@ void ov19_021D783C (UnkStruct_ov19_021DA864 * param0, NNSG2dImageProxy * param1,
param0->unk_1C = 0;
}
-UnkStruct_02022550 * ov19_021D785C (UnkStruct_020218BC * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5)
+GraphicElementData * ov19_021D785C (GraphicElementManager * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5)
{
UnkStruct_ov83_0223D9A8 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
v0.unk_00 = param0;
v0.unk_04 = param1;
@@ -1969,7 +1969,7 @@ UnkStruct_02022550 * ov19_021D785C (UnkStruct_020218BC * param0, UnkStruct_ov19_
return v1;
}
-void ov19_021D78AC (UnkStruct_02022550 * param0, u32 param1)
+void ov19_021D78AC (GraphicElementData * param0, u32 param1)
{
OSIntrMode v0 = OS_DisableInterrupts();
diff --git a/src/overlay019/ov19_021D79F8.c b/src/overlay019/ov19_021D79F8.c
index 095811b5c8..4ded3b8cc9 100644
--- a/src/overlay019/ov19_021D79F8.c
+++ b/src/overlay019/ov19_021D79F8.c
@@ -106,7 +106,7 @@ static const u16 Unk_ov19_021E0138[] = {
9, 10,
};
-BOOL ov19_021D79F8 (UnkStruct_ov19_021D8318 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4)
+BOOL ov19_021D79F8 (UnkStruct_ov19_021D8318 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4)
{
param0->unk_00 = param2->unk_40.unk_00;
param0->unk_01 = 11;
diff --git a/src/overlay019/ov19_021D8B54.c b/src/overlay019/ov19_021D8B54.c
index 035b01ddbe..807863a238 100644
--- a/src/overlay019/ov19_021D8B54.c
+++ b/src/overlay019/ov19_021D8B54.c
@@ -27,7 +27,7 @@
#include "overlay019/ov19_021DE3E8.h"
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
u16 unk_04;
u16 unk_06;
u32 unk_08;
@@ -46,7 +46,7 @@ static void ov19_021D8EE0(const UnkStruct_ov19_021D8E00 * param0, BOOL * param1,
static void ov19_021D9088(SysTask * param0, void * param1);
static void ov19_021D928C(SysTask * param0, void * param1);
static void ov19_021D93D0(SysTask * param0, void * param1);
-static void ov19_021D9554(UnkStruct_ov19_021D8E00 * param0, UnkStruct_02022550 * param1, fx32 param2, s32 param3, u32 param4);
+static void ov19_021D9554(UnkStruct_ov19_021D8E00 * param0, GraphicElementData * param1, fx32 param2, s32 param3, u32 param4);
static BOOL ov19_021D95E0(UnkStruct_ov19_021D8E00 * param0);
static void ov19_021D95F4(void * param0);
static void ov19_021D9600(SysTask * param0, void * param1);
@@ -63,9 +63,9 @@ static void ov19_021DA06C(UnkStruct_ov19_021D8E00 * param0);
static void ov19_021DA110(UnkStruct_ov19_021D8E00 * param0);
static void ov19_021DA1F8(UnkStruct_ov19_021D8E00 * param0);
static void ov19_021DA204(UnkStruct_ov19_021D8E00 * param0);
-static UnkStruct_02022550 * ov19_021DA224(UnkStruct_ov19_021D8E00 * param0);
+static GraphicElementData * ov19_021DA224(UnkStruct_ov19_021D8E00 * param0);
-BOOL ov19_021D8B54 (UnkStruct_ov19_021D8E00 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, UnkStruct_020218BC * param3, NARC * param4)
+BOOL ov19_021D8B54 (UnkStruct_ov19_021D8E00 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, GraphicElementManager * param3, NARC * param4)
{
param0->unk_794 = param1;
param0->unk_790 = param2;
@@ -507,7 +507,7 @@ static void ov19_021D93D0 (SysTask * param0, void * param1)
void ov19_021D94B4 (UnkStruct_ov19_021D8E00 * param0)
{
VecFx32 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
sub_02021D6C(param0->unk_04, 1);
@@ -534,7 +534,7 @@ BOOL ov19_021D9530 (UnkStruct_ov19_021D8E00 * param0)
return 0;
}
-static void ov19_021D9554 (UnkStruct_ov19_021D8E00 * param0, UnkStruct_02022550 * param1, fx32 param2, s32 param3, u32 param4)
+static void ov19_021D9554 (UnkStruct_ov19_021D8E00 * param0, GraphicElementData * param1, fx32 param2, s32 param3, u32 param4)
{
UnkStruct_ov19_021D9554 * v0 = Heap_AllocFromHeap(10, sizeof(UnkStruct_ov19_021D9554));
@@ -1149,7 +1149,7 @@ static void ov19_021DA204 (UnkStruct_ov19_021D8E00 * param0)
param0->unk_754 = 0;
}
-static UnkStruct_02022550 * ov19_021DA224 (UnkStruct_ov19_021D8E00 * param0)
+static GraphicElementData * ov19_021DA224 (UnkStruct_ov19_021D8E00 * param0)
{
UnkStruct_ov19_021DCD18 * v0;
u32 v1;
diff --git a/src/overlay019/ov19_021DA270.c b/src/overlay019/ov19_021DA270.c
index 5e100b83ea..ee56c1c622 100644
--- a/src/overlay019/ov19_021DA270.c
+++ b/src/overlay019/ov19_021DA270.c
@@ -21,7 +21,7 @@
#include "overlay019/ov19_021D61B0.h"
#include "overlay019/ov19_021DA270.h"
-BOOL ov19_021DA270 (UnkStruct_ov19_021DA384 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, UnkStruct_020218BC * param3, NARC * param4)
+BOOL ov19_021DA270 (UnkStruct_ov19_021DA384 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, GraphicElementManager * param3, NARC * param4)
{
NNSG2dImagePaletteProxy v0;
NNSG2dPaletteData * v1;
diff --git a/src/overlay019/ov19_021DA814.c b/src/overlay019/ov19_021DA814.c
index c5cdf06d4d..2f1a276924 100644
--- a/src/overlay019/ov19_021DA814.c
+++ b/src/overlay019/ov19_021DA814.c
@@ -15,7 +15,7 @@
#include "overlay019/ov19_021D61B0.h"
#include "overlay019/ov19_021DA814.h"
-BOOL ov19_021DA814 (UnkStruct_ov19_021DA8D8 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, UnkStruct_020218BC * param3, NARC * param4)
+BOOL ov19_021DA814 (UnkStruct_ov19_021DA8D8 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, GraphicElementManager * param3, NARC * param4)
{
param0->unk_44 = param1;
param0->unk_3C = param3;
diff --git a/src/overlay019/ov19_021DA92C.c b/src/overlay019/ov19_021DA92C.c
index 52c7ae937b..4775bc0d7f 100644
--- a/src/overlay019/ov19_021DA92C.c
+++ b/src/overlay019/ov19_021DA92C.c
@@ -62,7 +62,7 @@ static void ov19_021DAE60(Window * param0, UnkStruct_ov19_021DA9E0 * param1, u32
static void ov19_021DB0E4(UnkStruct_ov19_021DA9E0 * param0);
static void ov19_021DB24C(UnkStruct_ov19_021DA9E0 * param0, u8 param1);
-BOOL ov19_021DA92C (UnkStruct_ov19_021DA9E0 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, const MessageLoader * param5, NARC * param6)
+BOOL ov19_021DA92C (UnkStruct_ov19_021DA9E0 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, const MessageLoader * param5, NARC * param6)
{
int v0;
diff --git a/src/overlay019/ov19_021DB2FC.c b/src/overlay019/ov19_021DB2FC.c
index eb39838b5e..fe64fe7a77 100644
--- a/src/overlay019/ov19_021DB2FC.c
+++ b/src/overlay019/ov19_021DB2FC.c
@@ -34,7 +34,7 @@ static void ov19_021DB7BC(BGL * param0, u32 param1, u32 param2, u32 param3, u32
static void ov19_021DB84C(BGL * param0, Window * param1);
static void ov19_021DB898(BGL * param0, Window * param1);
-BOOL ov19_021DB2FC (UnkStruct_ov19_021DB6F0 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, MessageLoader * param5, const UnkStruct_0200B358 * param6, int param7, NARC * param8)
+BOOL ov19_021DB2FC (UnkStruct_ov19_021DB6F0 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, MessageLoader * param5, const UnkStruct_0200B358 * param6, int param7, NARC * param8)
{
param0->unk_0C = param1;
param0->unk_00 = param3;
diff --git a/src/overlay019/ov19_021DB8E4.c b/src/overlay019/ov19_021DB8E4.c
index b9be6988f9..23e17e0f88 100644
--- a/src/overlay019/ov19_021DB8E4.c
+++ b/src/overlay019/ov19_021DB8E4.c
@@ -73,7 +73,7 @@ static void ov19_021DC4F8(UnkStruct_ov19_021DBA9C * param0, u32 param1);
static void ov19_021DC5B8(UnkStruct_ov19_021DBA9C * param0, fx32 param1);
static void ov19_021DC5E0(UnkStruct_ov19_021DBA9C * param0);
-BOOL ov19_021DB8E4 (UnkStruct_ov19_021DBA9C * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, NARC * param5)
+BOOL ov19_021DB8E4 (UnkStruct_ov19_021DBA9C * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, NARC * param5)
{
int v0;
diff --git a/src/overlay019/ov19_021DC5F0.c b/src/overlay019/ov19_021DC5F0.c
index 34afb8313b..b0d5fd9523 100644
--- a/src/overlay019/ov19_021DC5F0.c
+++ b/src/overlay019/ov19_021DC5F0.c
@@ -47,7 +47,7 @@ static void ov19_021DCE50(UnkStruct_ov19_021DC680 * param0, fx32 param1);
static void ov19_021DCEB8(UnkStruct_ov19_021DC680 * param0, BOOL param1);
static void ov19_021DCF50(UnkStruct_ov19_021DC680 * param0);
-BOOL ov19_021DC5F0 (UnkStruct_ov19_021DC680 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, NARC * param5)
+BOOL ov19_021DC5F0 (UnkStruct_ov19_021DC680 * param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, NARC * param5)
{
param0->unk_00 = param1;
param0->unk_0C = param2;
diff --git a/src/overlay019/ov19_021DCF88.c b/src/overlay019/ov19_021DCF88.c
index a3edba19b5..66e19428a8 100644
--- a/src/overlay019/ov19_021DCF88.c
+++ b/src/overlay019/ov19_021DCF88.c
@@ -35,7 +35,7 @@
typedef struct {
UnkStruct_ov19_021DCF88 * unk_00;
u32 unk_04;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
u16 unk_0C;
s16 unk_0E;
fx32 unk_10;
@@ -45,7 +45,7 @@ typedef struct {
typedef struct {
void * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
fx32 unk_08;
fx32 unk_0C;
fx32 unk_10;
@@ -61,7 +61,7 @@ typedef struct {
typedef struct {
UnkStruct_ov19_021DCF88 * unk_00;
- UnkStruct_02022550 ** unk_04;
+ GraphicElementData ** unk_04;
UnkStruct_ov19_021DDBD0 unk_08[10];
u8 unk_1C0[10];
u8 unk_1CA;
@@ -74,14 +74,14 @@ struct UnkStruct_ov19_021DCF88_t {
UnkStruct_ov19_021D61B0 * unk_00;
const UnkStruct_ov19_021D4DF0 * unk_04;
BGL * unk_08;
- UnkStruct_020218BC * unk_0C;
+ GraphicElementManager * unk_0C;
u32 unk_10;
SysTask * unk_14;
NNSG2dImagePaletteProxy unk_18;
- UnkStruct_02022550 * unk_2C;
- UnkStruct_02022550 * unk_30;
- UnkStruct_02022550 * unk_34[8];
- UnkStruct_02022550 * unk_54[10];
+ GraphicElementData * unk_2C;
+ GraphicElementData * unk_30;
+ GraphicElementData * unk_34[8];
+ GraphicElementData * unk_54[10];
int unk_7C;
int unk_80;
Strbuf* unk_84;
@@ -119,7 +119,7 @@ static void ov19_021DDA7C(UnkStruct_ov19_021DCF88 * param0);
static void ov19_021DDA9C(SysTask * param0, void * param1);
static void ov19_021DDB20(SysTask * param0, void * param1);
static void ov19_021DDBD0(SysTask * param0, UnkStruct_ov19_021DDBD0 * param1);
-static void ov19_021DDBF8(UnkStruct_ov19_021DDBF8 * param0, UnkStruct_02022550 * param1, UnkStruct_ov19_021DDBD0 * param2, u32 param3, u32 param4, u32 param5, u32 param6, BOOL param7);
+static void ov19_021DDBF8(UnkStruct_ov19_021DDBF8 * param0, GraphicElementData * param1, UnkStruct_ov19_021DDBD0 * param2, u32 param3, u32 param4, u32 param5, u32 param6, BOOL param7);
static void ov19_021DDC74(UnkStruct_ov19_021DDBF8 * param0, UnkStruct_ov19_021DDBD0 * param1, u32 param2, u32 param3, u32 param4);
static void ov19_021DDCC0(SysTask * param0, void * param1);
static void ov19_021DDD78(void * param0);
@@ -307,7 +307,7 @@ static const u16 Unk_ov19_021E0264[] = {
0x0
};
-BOOL ov19_021DCF88 (UnkStruct_ov19_021DCF88 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4)
+BOOL ov19_021DCF88 (UnkStruct_ov19_021DCF88 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4)
{
if (ov19_021D5E08(param2) == 4) {
*param0 = NULL;
@@ -1051,7 +1051,7 @@ static void ov19_021DDBD0 (SysTask * param0, UnkStruct_ov19_021DDBD0 * param1)
SysTask_Done(param0);
}
-static void ov19_021DDBF8 (UnkStruct_ov19_021DDBF8 * param0, UnkStruct_02022550 * param1, UnkStruct_ov19_021DDBD0 * param2, u32 param3, u32 param4, u32 param5, u32 param6, BOOL param7)
+static void ov19_021DDBF8 (UnkStruct_ov19_021DDBF8 * param0, GraphicElementData * param1, UnkStruct_ov19_021DDBD0 * param2, u32 param3, u32 param4, u32 param5, u32 param6, BOOL param7)
{
SysTaskFunc v0;
diff --git a/src/overlay019/ov19_021DE3E8.c b/src/overlay019/ov19_021DE3E8.c
index 2aa7118bdb..dfdac8885f 100644
--- a/src/overlay019/ov19_021DE3E8.c
+++ b/src/overlay019/ov19_021DE3E8.c
@@ -38,10 +38,10 @@ struct UnkStruct_ov19_021DE3E8_t {
UnkStruct_ov19_021D61B0 * unk_04;
const UnkStruct_ov19_021D4DF0 * unk_08;
BGL * unk_0C;
- UnkStruct_020218BC * unk_10;
+ GraphicElementManager * unk_10;
UnkStruct_ov19_021DA384 * unk_14;
UnkStruct_ov19_021D8E00 * unk_18;
- UnkStruct_02022550 * unk_1C[3];
+ GraphicElementData * unk_1C[3];
int unk_28[3];
int unk_34;
int unk_38;
@@ -49,7 +49,7 @@ struct UnkStruct_ov19_021DE3E8_t {
typedef struct {
UnkStruct_ov19_021DE3E8 * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
VecFx32 unk_08;
VecFx32 unk_14;
fx32 unk_20;
@@ -71,7 +71,7 @@ static void ov19_021DE718(UnkStruct_ov19_021DE3E8 * param0, int param1, int para
static void ov19_021DE858(UnkStruct_ov19_021DE3E8 * param0, int param1, const VecFx32 * param2, int param3, int param4);
static void ov19_021DE8E0(SysTask * param0, void * param1);
-BOOL ov19_021DE3E8 (UnkStruct_ov19_021DE3E8 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4)
+BOOL ov19_021DE3E8 (UnkStruct_ov19_021DE3E8 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4)
{
UnkStruct_ov19_021DE3E8 * v0 = Heap_AllocFromHeap(10, sizeof(UnkStruct_ov19_021DE3E8));
diff --git a/src/overlay019/ov19_021DEC04.c b/src/overlay019/ov19_021DEC04.c
index 1ac605012c..4ddc7e5009 100644
--- a/src/overlay019/ov19_021DEC04.c
+++ b/src/overlay019/ov19_021DEC04.c
@@ -41,13 +41,13 @@ struct UnkStruct_ov19_021DEC04_t {
UnkStruct_ov19_021D61B0 * unk_04;
const UnkStruct_ov19_021D4DF0 * unk_08;
BGL * unk_0C;
- UnkStruct_020218BC * unk_10;
+ GraphicElementManager * unk_10;
UnkStruct_ov19_021DA384 * unk_14;
u32 unk_18[2];
- UnkStruct_02022550 * unk_20[2];
- UnkStruct_02022550 * unk_28[2];
- UnkStruct_02022550 * unk_30;
- UnkStruct_02022550 * unk_34[2][5];
+ GraphicElementData * unk_20[2];
+ GraphicElementData * unk_28[2];
+ GraphicElementData * unk_30;
+ GraphicElementData * unk_34[2][5];
void * unk_5C;
NNSG2dCellDataBank * unk_60;
void * unk_64;
@@ -90,7 +90,7 @@ static void ov19_021DF834(UnkStruct_ov19_021DEC04 * param0);
static void ov19_021DF8C8(UnkStruct_ov19_021DEC04 * param0, int param1);
static void ov19_021DF930(SysTask * param0, void * param1);
-BOOL ov19_021DEC04 (UnkStruct_ov19_021DEC04 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, UnkStruct_020218BC * param4, MessageLoader * param5, NARC * param6)
+BOOL ov19_021DEC04 (UnkStruct_ov19_021DEC04 ** param0, UnkStruct_ov19_021D61B0 * param1, const UnkStruct_ov19_021D4DF0 * param2, BGL * param3, GraphicElementManager * param4, MessageLoader * param5, NARC * param6)
{
if (ov19_021D5E08(param2) != 4) {
*param0 = NULL;
@@ -677,7 +677,7 @@ static void ov19_021DF834 (UnkStruct_ov19_021DEC04 * param0)
{
int v0 = ov19_021D5F9C(param0->unk_08);
const UnkStruct_ov19_021D5FAC * v1 = ov19_021D5FAC(param0->unk_08, v0);
- UnkStruct_02022550 * v2 = param0->unk_20[v0];
+ GraphicElementData * v2 = param0->unk_20[v0];
BoxPokemon * v3 = (BoxPokemon *)(v1->unk_00);
NNSG2dCharacterData * v4;
diff --git a/src/overlay020/ov20_021D2098.c b/src/overlay020/ov20_021D2098.c
index ecdb63915a..e936cad0cb 100644
--- a/src/overlay020/ov20_021D2098.c
+++ b/src/overlay020/ov20_021D2098.c
@@ -49,7 +49,7 @@ typedef struct UnkStruct_ov20_021D2128_t {
const UnkStruct_ov20_021D16E8 * unk_18;
const UnkStruct_020998EC * unk_1C;
BGL * unk_20;
- UnkStruct_020218BC * unk_24;
+ GraphicElementManager * unk_24;
UnkStruct_0200C738 unk_28;
NNSG2dImageProxy unk_1B4[2];
NNSG2dImagePaletteProxy unk_1FC[2];
@@ -115,8 +115,8 @@ UnkStruct_ov20_021D2128 * ov20_021D2098 (const UnkStruct_ov20_021D16E8 * param0,
if (v0) {
int v1;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
v0->unk_18 = param0;
v0->unk_1C = param1;
@@ -142,7 +142,7 @@ void ov20_021D2128 (UnkStruct_ov20_021D2128 * param0)
if (param0) {
int v0;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
for (v0 = 0; v0 < 4; v0++) {
if (param0->unk_08[v0]) {
@@ -966,7 +966,7 @@ BGL * ov20_021D2E04 (UnkStruct_ov20_021D2128 * param0)
return param0->unk_20;
}
-UnkStruct_020218BC * ov20_021D2E08 (UnkStruct_ov20_021D2128 * param0)
+GraphicElementManager * ov20_021D2E08 (UnkStruct_ov20_021D2128 * param0)
{
return param0->unk_24;
}
@@ -984,10 +984,10 @@ void ov20_021D2E0C (UnkStruct_ov20_021D2128 * param0, UnkStruct_ov19_021DA864 *
param1->unk_1C = 0;
}
-UnkStruct_02022550 * ov20_021D2E50 (UnkStruct_ov20_021D2128 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5)
+GraphicElementData * ov20_021D2E50 (UnkStruct_ov20_021D2128 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5)
{
UnkStruct_ov83_0223D9A8 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
OSIntrMode v2;
v0.unk_00 = param0->unk_24;
diff --git a/src/overlay020/ov20_021D2EA4.c b/src/overlay020/ov20_021D2EA4.c
index 79855d7221..a44ffc91d6 100644
--- a/src/overlay020/ov20_021D2EA4.c
+++ b/src/overlay020/ov20_021D2EA4.c
@@ -50,9 +50,9 @@ typedef struct UnkStruct_ov20_021D30F8_t {
Window unk_0C;
Window unk_1C;
Window unk_2C;
- UnkStruct_02022550 * unk_3C;
- UnkStruct_02022550 * unk_40;
- UnkStruct_02022550 * unk_44;
+ GraphicElementData * unk_3C;
+ GraphicElementData * unk_40;
+ GraphicElementData * unk_44;
MessageLoader * unk_48;
Strbuf* unk_4C;
UnkStruct_020149F0 * unk_50;
diff --git a/src/overlay020/ov20_021D3864.c b/src/overlay020/ov20_021D3864.c
index e76fe948b5..afc1eeecd7 100644
--- a/src/overlay020/ov20_021D3864.c
+++ b/src/overlay020/ov20_021D3864.c
@@ -28,7 +28,7 @@ typedef struct UnkStruct_ov20_021D3980_t {
UnkStruct_ov20_021D2128 * unk_00;
const UnkStruct_ov20_021D16E8 * unk_04;
const UnkStruct_020998EC * unk_08;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
} UnkStruct_ov20_021D3980;
static void ov20_021D390C(BGL * param0, const UnkStruct_ov61_0222C884 * param1, u32 param2);
diff --git a/src/overlay020/ov20_021D3A54.c b/src/overlay020/ov20_021D3A54.c
index e85bf81354..30be2b48c9 100644
--- a/src/overlay020/ov20_021D3A54.c
+++ b/src/overlay020/ov20_021D3A54.c
@@ -43,7 +43,7 @@ typedef struct UnkStruct_ov20_021D3E0C_t {
SysTask * unk_18;
UnkStruct_ov20_021D4FF0 unk_1C;
UnkStruct_ov20_021D4E8C unk_3C;
- UnkStruct_02022550 * unk_5C;
+ GraphicElementData * unk_5C;
} UnkStruct_ov20_021D3E0C;
static u32 ov20_021D3B74(UnkStruct_ov20_021D3E0C * param0, BGL * param1, u32 param2);
diff --git a/src/overlay020/ov20_021D40E8.c b/src/overlay020/ov20_021D40E8.c
index 4dff7e9d2d..5bebe4ba1c 100644
--- a/src/overlay020/ov20_021D40E8.c
+++ b/src/overlay020/ov20_021D40E8.c
@@ -32,9 +32,9 @@ typedef struct UnkStruct_ov20_021D4210_t {
BGL * unk_0C;
Window unk_10;
Window unk_20;
- UnkStruct_02022550 * unk_30;
- UnkStruct_02022550 * unk_34;
- UnkStruct_02022550 * unk_38;
+ GraphicElementData * unk_30;
+ GraphicElementData * unk_34;
+ GraphicElementData * unk_38;
Strbuf* unk_3C;
UnkStruct_ov20_021D4FF0 unk_40;
UnkStruct_ov20_021D4E8C unk_60;
diff --git a/src/overlay020/ov20_021D4728.c b/src/overlay020/ov20_021D4728.c
index 551adfe455..a3e1dfc5da 100644
--- a/src/overlay020/ov20_021D4728.c
+++ b/src/overlay020/ov20_021D4728.c
@@ -40,9 +40,9 @@ typedef struct UnkStruct_ov20_021D4AD4_t {
const UnkStruct_ov20_021D16E8 * unk_04;
const UnkStruct_020998EC * unk_08;
BGL * unk_0C;
- UnkStruct_020218BC * unk_10;
- UnkStruct_02022550 * unk_14;
- UnkStruct_02022550 * unk_18;
+ GraphicElementManager * unk_10;
+ GraphicElementData * unk_14;
+ GraphicElementData * unk_18;
UnkStruct_ov20_021D4B2C unk_1C;
u16 unk_2C[8][77];
SysTask * unk_4FC;
@@ -69,7 +69,7 @@ static void ov20_021D4AD4(UnkStruct_ov20_021D4AD4 * param0);
static void ov20_021D4AF8(UnkStruct_ov20_021D4B2C * param0, NARC * param1, u32 param2, u32 param3);
static void ov20_021D4B2C(UnkStruct_ov20_021D4B2C * param0);
static void ov20_021D4C40(SysTask * param0, void * param1);
-static UnkStruct_02022550 * ov20_021D4B40(UnkStruct_ov20_021D4AD4 * param0, NNSG2dImageProxy * param1, NNSG2dImagePaletteProxy * param2, UnkStruct_ov20_021D4B2C * param3, int param4, int param5, int param6, int param7);
+static GraphicElementData * ov20_021D4B40(UnkStruct_ov20_021D4AD4 * param0, NNSG2dImageProxy * param1, NNSG2dImagePaletteProxy * param2, UnkStruct_ov20_021D4B2C * param3, int param4, int param5, int param6, int param7);
UnkStruct_ov20_021D4AD4 * ov20_021D4728 (UnkStruct_ov20_021D2128 * param0, const UnkStruct_ov20_021D16E8 * param1, const UnkStruct_020998EC * param2)
{
@@ -345,11 +345,11 @@ static void ov20_021D4B2C (UnkStruct_ov20_021D4B2C * param0)
Heap_FreeToHeap(param0->unk_08);
}
-static UnkStruct_02022550 * ov20_021D4B40 (UnkStruct_ov20_021D4AD4 * param0, NNSG2dImageProxy * param1, NNSG2dImagePaletteProxy * param2, UnkStruct_ov20_021D4B2C * param3, int param4, int param5, int param6, int param7)
+static GraphicElementData * ov20_021D4B40 (UnkStruct_ov20_021D4AD4 * param0, NNSG2dImageProxy * param1, NNSG2dImagePaletteProxy * param2, UnkStruct_ov20_021D4B2C * param3, int param4, int param5, int param6, int param7)
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
v0.unk_00 = param1;
v0.unk_08 = param2;
diff --git a/src/overlay021/ov21_021D0D80.c b/src/overlay021/ov21_021D0D80.c
index c79441c6aa..16d2c46973 100644
--- a/src/overlay021/ov21_021D0D80.c
+++ b/src/overlay021/ov21_021D0D80.c
@@ -146,8 +146,8 @@ int ov21_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
Pokedex_SetupGiratina(v4);
}
- sub_02017798(ov21_021D0F04, v0);
- sub_020177A4();
+ SetMainCallback(ov21_021D0F04, v0);
+ DisableHBlank();
sub_0201E3D8();
v3 = sub_0201E450(4);
@@ -213,7 +213,7 @@ int ov21_021D0EC8 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov21_021D0F18 * v0 = sub_0200682C(param0);
BOOL v1;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
v1 = sub_0201E530();
GF_ASSERT(v1 == 1);
@@ -541,7 +541,7 @@ UnkStruct_ov21_021E68F4 * ov21_021D1430 (UnkStruct_ov21_021D0F60 * param0, int p
return ¶m0->unk_1C24[param1];
}
-void ov21_021D144C (UnkStruct_02022550 * param0, int param1)
+void ov21_021D144C (GraphicElementData * param0, int param1)
{
switch (param1) {
case 0:
@@ -564,7 +564,7 @@ void ov21_021D144C (UnkStruct_02022550 * param0, int param1)
}
}
-void ov21_021D1498 (UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2)
+void ov21_021D1498 (GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2)
{
int v0 = sub_02021E74(param0);
int v1, v2;
@@ -593,7 +593,7 @@ void ov21_021D1498 (UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param
}
}
-void ov21_021D1524 (UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
+void ov21_021D1524 (GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
{
int v0;
@@ -721,8 +721,8 @@ Window * ov21_021D172C (UnkStruct_ov21_021D4C0C * param0, int param1, int param2
void ov21_021D1778 (UnkStruct_ov21_021D13FC * param0, const UnkStruct_ov21_021D3320 * param1, int param2, int param3, fx32 param4, fx32 param5)
{
- UnkStruct_02022550 * v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v0;
+ GraphicElementData * v1;
UnkStruct_ov21_021D4CB8 v2;
Window * v3;
UnkStruct_02009DC8 * v4;
diff --git a/src/overlay021/ov21_021D1FA4.c b/src/overlay021/ov21_021D1FA4.c
index 486745e613..62d6efe7f9 100644
--- a/src/overlay021/ov21_021D1FA4.c
+++ b/src/overlay021/ov21_021D1FA4.c
@@ -221,13 +221,13 @@ void ov21_021D2280 (const UnkStruct_ov21_021D13FC * param0, BOOL param1, int par
}
}
-UnkStruct_02022550 * ov21_021D22A8 (const UnkStruct_ov21_021D13FC * param0)
+GraphicElementData * ov21_021D22A8 (const UnkStruct_ov21_021D13FC * param0)
{
GF_ASSERT(param0->unk_1B0.unk_00);
return param0->unk_1B0.unk_00;
}
-UnkStruct_02022550 * ov21_021D22C4 (const UnkStruct_ov21_021D13FC * param0)
+GraphicElementData * ov21_021D22C4 (const UnkStruct_ov21_021D13FC * param0)
{
GF_ASSERT(param0->unk_1B0.unk_04);
return param0->unk_1B0.unk_04;
@@ -904,7 +904,7 @@ static void ov21_021D2D4C (UnkStruct_ov21_021D13FC * param0)
}
}
-void ov21_021D2D88 (UnkStruct_ov21_021D22F8 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, int param4)
+void ov21_021D2D88 (UnkStruct_ov21_021D22F8 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, int param4)
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
diff --git a/src/overlay021/ov21_021D4C0C.c b/src/overlay021/ov21_021D4C0C.c
index a203474635..714785c8da 100644
--- a/src/overlay021/ov21_021D4C0C.c
+++ b/src/overlay021/ov21_021D4C0C.c
@@ -25,7 +25,7 @@
typedef struct UnkStruct_ov21_021D4C0C_t {
UnkStruct_02012744 * unk_00;
- UnkStruct_020218BC * unk_04;
+ GraphicElementManager * unk_04;
BGL * unk_08;
UnkStruct_ov21_021D4CA0 * unk_0C;
int unk_10;
diff --git a/src/overlay021/ov21_021D57B4.c b/src/overlay021/ov21_021D57B4.c
index 2f17d310ab..3785d076f1 100644
--- a/src/overlay021/ov21_021D57B4.c
+++ b/src/overlay021/ov21_021D57B4.c
@@ -131,7 +131,7 @@ u32 ov21_021D5948 (u8 * param0, int param1, int param2, const UnkStruct_ov21_021
return v2;
}
-void ov21_021D59D8 (UnkStruct_02022550 * param0, int param1, int param2, int param3, int param4, const UnkStruct_ov21_021D5868 * param5, int param6, int param7)
+void ov21_021D59D8 (GraphicElementData * param0, int param1, int param2, int param3, int param4, const UnkStruct_ov21_021D5868 * param5, int param6, int param7)
{
VecFx32 v0;
@@ -149,7 +149,7 @@ void ov21_021D59D8 (UnkStruct_02022550 * param0, int param1, int param2, int par
}
}
-int ov21_021D5A20 (UnkStruct_02022550 ** param0, int param1, int param2, int param3, int param4, int param5, int param6, const UnkStruct_ov21_021D5868 * param7, const UnkStruct_ov21_021D5844 * param8, int param9, int param10, const u8 * param11, u32 param12, u32 * param13)
+int ov21_021D5A20 (GraphicElementData ** param0, int param1, int param2, int param3, int param4, int param5, int param6, const UnkStruct_ov21_021D5868 * param7, const UnkStruct_ov21_021D5844 * param8, int param9, int param10, const u8 * param11, u32 param12, u32 * param13)
{
int v0, v1;
int v2 = param1;
diff --git a/src/overlay021/ov21_021D5AEC.c b/src/overlay021/ov21_021D5AEC.c
index 4301a7eb30..9c40729c4f 100644
--- a/src/overlay021/ov21_021D5AEC.c
+++ b/src/overlay021/ov21_021D5AEC.c
@@ -65,14 +65,14 @@ typedef struct {
} UnkStruct_ov21_021D7464;
typedef struct {
- UnkStruct_02022550 * unk_00[9];
+ GraphicElementData * unk_00[9];
int unk_24;
UnkStruct_ov21_021D4CA0 * unk_28[9];
int unk_4C;
- UnkStruct_02022550 * unk_50[9];
- UnkStruct_02022550 * unk_74;
+ GraphicElementData * unk_50[9];
+ GraphicElementData * unk_74;
fx32 unk_78;
- UnkStruct_02022550 * unk_7C;
+ GraphicElementData * unk_7C;
UnkStruct_02009714 * unk_80[4];
UnkStruct_ov19_021DA864 unk_90;
UnkStruct_ov19_021DA864 unk_B4;
@@ -155,7 +155,7 @@ static void ov21_021D6C44(UnkStruct_ov21_021D71A8 * param0, UnkStruct_ov21_021D1
static void ov21_021D6CC8(UnkStruct_ov21_021D71A8 * param0, UnkStruct_ov21_021D13FC * param1, const UnkStruct_ov21_021D5B68 * param2, int param3);
static void ov21_021D6D78(UnkStruct_ov21_021D71A8 * param0, UnkStruct_ov21_021D13FC * param1, const UnkStruct_ov21_021D5B68 * param2, int param3, int param4, int param5);
static void ov21_021D6DF4(UnkStruct_ov21_021D71A8 * param0, UnkStruct_ov21_021D13FC * param1, int param2, int param3, int param4);
-static void ov21_021D6CA4(UnkStruct_02022550 * param0, int * param1, int * param2);
+static void ov21_021D6CA4(GraphicElementData * param0, int * param1, int * param2);
static fx32 ov21_021D6BF8(fx32 param0, fx32 param1, int param2, int param3);
static void ov21_021D6F20(UnkStruct_ov21_021D71A8 * param0, UnkStruct_ov21_021D13FC * param1, const UnkStruct_ov21_021D5B68 * param2);
static void ov21_021D6F74(const UnkStruct_ov21_021D5B68 * param0);
@@ -1202,7 +1202,7 @@ static void ov21_021D6C44 (UnkStruct_ov21_021D71A8 * param0, UnkStruct_ov21_021D
}
}
-static void ov21_021D6CA4 (UnkStruct_02022550 * param0, int * param1, int * param2)
+static void ov21_021D6CA4 (GraphicElementData * param0, int * param1, int * param2)
{
const VecFx32 * v0;
diff --git a/src/overlay021/ov21_021D76B0.c b/src/overlay021/ov21_021D76B0.c
index e85e44c441..09f33a75c3 100644
--- a/src/overlay021/ov21_021D76B0.c
+++ b/src/overlay021/ov21_021D76B0.c
@@ -74,11 +74,11 @@ typedef struct {
} UnkStruct_ov21_021D7B8C;
typedef struct {
- UnkStruct_02022550 * unk_00[3];
+ GraphicElementData * unk_00[3];
UnkStruct_ov21_021D4CA0 * unk_0C[3];
- UnkStruct_02022550 * unk_18;
- UnkStruct_02022550 * unk_1C;
- UnkStruct_02022550 * unk_20;
+ GraphicElementData * unk_18;
+ GraphicElementData * unk_1C;
+ GraphicElementData * unk_20;
UnkStruct_ov21_021D4CA0 * unk_24;
u16 unk_28;
u16 unk_2A;
@@ -98,7 +98,7 @@ static int ov21_021D78AC(UnkStruct_ov21_021E6A68 * param0, void * param1);
static int ov21_021D78C0(void * param0, UnkStruct_ov21_021E6B20 * param1, const void * param2, const UnkStruct_ov21_021E6A68 * param3);
static int ov21_021D7950(void * param0, UnkStruct_ov21_021E6B20 * param1, const void * param2, const UnkStruct_ov21_021E6A68 * param3);
static int ov21_021D79E4(void * param0, UnkStruct_ov21_021E6B20 * param1, const void * param2, const UnkStruct_ov21_021E6A68 * param3);
-static void ov21_021D84A8(UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
+static void ov21_021D84A8(GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
static void ov21_021D7A64(UnkStruct_ov21_021D7A64 * param0, UnkStruct_ov21_021D77D4 * param1, int param2);
static void ov21_021D7B20(UnkStruct_ov21_021D7A64 * param0, UnkStruct_ov21_021D77D4 * param1);
static void ov21_021D7B70(UnkStruct_ov21_021D7A64 * param0);
@@ -921,7 +921,7 @@ static void ov21_021D8434 (UnkStruct_ov21_021D7A64 * param0, int param1, int par
}
}
-static void ov21_021D84A8 (UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
+static void ov21_021D84A8 (GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
{
ov21_021D1524(param0, param1, param2, param3, param4);
}
diff --git a/src/overlay021/ov21_021D85B0.c b/src/overlay021/ov21_021D85B0.c
index cf99ff8cae..fdaa324706 100644
--- a/src/overlay021/ov21_021D85B0.c
+++ b/src/overlay021/ov21_021D85B0.c
@@ -72,10 +72,10 @@ typedef struct {
int unk_14;
BOOL unk_18;
int unk_1C;
- UnkStruct_02022550 * unk_20;
+ GraphicElementData * unk_20;
UnkStruct_02009DC8 * unk_24[4];
UnkStruct_ov21_021D157C unk_34;
- UnkStruct_02022550 * unk_58;
+ GraphicElementData * unk_58;
void * unk_5C;
NNSG2dScreenData * unk_60;
} UnkStruct_ov21_021D9320;
diff --git a/src/overlay021/ov21_021D94BC.c b/src/overlay021/ov21_021D94BC.c
index abfa6a70c9..5b2cd3b27e 100644
--- a/src/overlay021/ov21_021D94BC.c
+++ b/src/overlay021/ov21_021D94BC.c
@@ -87,11 +87,11 @@ typedef struct {
} UnkStruct_ov21_021D9B24;
typedef struct {
- UnkStruct_02022550 * unk_00[6];
+ GraphicElementData * unk_00[6];
UnkStruct_ov21_021D4CA0 * unk_18[6];
- UnkStruct_02022550 * unk_30[15];
+ GraphicElementData * unk_30[15];
UnkStruct_ov21_021D4CA0 * unk_6C[15];
- UnkStruct_02022550 * unk_A8[15];
+ GraphicElementData * unk_A8[15];
UnkStruct_02009DC8 * unk_E4[4];
UnkStruct_02009DC8 * unk_F4[4];
int unk_104;
diff --git a/src/overlay021/ov21_021DC9BC.c b/src/overlay021/ov21_021DC9BC.c
index 5db210129c..59fcf842a4 100644
--- a/src/overlay021/ov21_021DC9BC.c
+++ b/src/overlay021/ov21_021DC9BC.c
@@ -103,10 +103,10 @@ typedef struct {
typedef struct {
int unk_00;
- UnkStruct_02022550 * unk_04[44];
+ GraphicElementData * unk_04[44];
UnkStruct_02009DC8 * unk_B4[4];
int unk_C4;
- UnkStruct_02022550 * unk_C8;
+ GraphicElementData * unk_C8;
UnkStruct_ov21_021D4CA0 * unk_CC;
UnkStruct_02009DC8 * unk_D0[4];
UnkStruct_ov21_021D4CA0 * unk_E0[3];
diff --git a/src/overlay021/ov21_021DDD2C.c b/src/overlay021/ov21_021DDD2C.c
index a427dad554..33a84e8185 100644
--- a/src/overlay021/ov21_021DDD2C.c
+++ b/src/overlay021/ov21_021DDD2C.c
@@ -65,7 +65,7 @@ typedef struct {
} UnkStruct_ov21_021DDE4C;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
UnkStruct_02009DC8 * unk_04[4];
void * unk_14;
int unk_18;
diff --git a/src/overlay021/ov21_021DE668.c b/src/overlay021/ov21_021DE668.c
index a91fbf7df2..41159d2546 100644
--- a/src/overlay021/ov21_021DE668.c
+++ b/src/overlay021/ov21_021DE668.c
@@ -52,8 +52,8 @@ typedef struct {
} UnkStruct_ov21_021DE760;
typedef struct {
- UnkStruct_02022550 * unk_00[3];
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_00[3];
+ GraphicElementData * unk_0C;
UnkStruct_ov21_021D4CA0 * unk_10;
UnkStruct_02009DC8 * unk_14[4];
UnkStruct_02009DC8 * unk_24[4];
@@ -228,7 +228,7 @@ static int ov21_021DE79C (UnkStruct_ov21_021E6A68 * param0, void * param1)
switch (param0->unk_00) {
case 0:
if (v0->unk_1C == 1) {
- sub_020059D0(14, ov21_021D37BC(v0->unk_04), 0x1ff, 0x1ff, 0x1ff, 0);
+ Sound_PlayPokemonCry(14, ov21_021D37BC(v0->unk_04), 0x1ff, 0x1ff, 0x1ff, 0);
v0->unk_1C = 0;
}
diff --git a/src/overlay021/ov21_021DF734.c b/src/overlay021/ov21_021DF734.c
index daa1ac0fe6..c982b7d9d9 100644
--- a/src/overlay021/ov21_021DF734.c
+++ b/src/overlay021/ov21_021DF734.c
@@ -54,13 +54,13 @@ typedef struct {
} UnkStruct_ov21_021DF858;
typedef struct {
- UnkStruct_02022550 * unk_00[4];
+ GraphicElementData * unk_00[4];
UnkStruct_02009DC8 * unk_10[4];
UnkStruct_ov21_021D4CA0 * unk_20[2];
UnkStruct_ov21_021D2648 unk_28[4];
int unk_A8[4];
int unk_B8;
- UnkStruct_02022550 * unk_BC;
+ GraphicElementData * unk_BC;
int unk_C0;
BOOL unk_C4;
int unk_C8;
diff --git a/src/overlay021/ov21_021E0C68.c b/src/overlay021/ov21_021E0C68.c
index c66fcc8dba..41ade15c8a 100644
--- a/src/overlay021/ov21_021E0C68.c
+++ b/src/overlay021/ov21_021E0C68.c
@@ -58,7 +58,7 @@ typedef struct {
} UnkStruct_ov21_021E0D7C;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
UnkStruct_ov21_021D4CA0 * unk_04;
UnkStruct_02009DC8 * unk_08[4];
UnkStruct_ov21_021D2648 unk_18;
diff --git a/src/overlay021/ov21_021E1924.c b/src/overlay021/ov21_021E1924.c
index e8b7cf916f..2c60614c53 100644
--- a/src/overlay021/ov21_021E1924.c
+++ b/src/overlay021/ov21_021E1924.c
@@ -76,10 +76,10 @@ typedef struct {
} UnkStruct_ov21_021E1E74;
typedef struct {
- UnkStruct_02022550 * unk_00[8];
+ GraphicElementData * unk_00[8];
UnkStruct_ov21_021D4CA0 * unk_20[8];
UnkStruct_02009DC8 * unk_40[4];
- UnkStruct_02022550 * unk_50[8];
+ GraphicElementData * unk_50[8];
UnkStruct_02009DC8 * unk_70[4];
int unk_80[8];
void * unk_A0[8];
@@ -107,10 +107,10 @@ static void ov21_021E1D40(UnkStruct_ov21_021E1E74 * param0, UnkStruct_ov21_021E1
static void ov21_021E1E00(UnkStruct_ov21_021E1E74 * param0, UnkStruct_ov21_021E1A7C * param1);
static void ov21_021E1E74(UnkStruct_ov21_021E1E74 * param0);
static void ov21_021E1E8C(u32 param0, u32 param1, void * param2);
-static void ov21_021E26A0(UnkStruct_ov21_021E1A90 * param0, UnkStruct_02022550 * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10);
-static void ov21_021E274C(UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
+static void ov21_021E26A0(UnkStruct_ov21_021E1A90 * param0, GraphicElementData * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10);
+static void ov21_021E274C(GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
static void ov21_021E28D0(UnkStruct_ov21_021E2588 * param0, const UnkStruct_ov21_021E1E74 * param1);
-static void ov21_021E29A4(UnkStruct_02022550 * param0, int param1, int param2);
+static void ov21_021E29A4(GraphicElementData * param0, int param1, int param2);
static void ov21_021E2968(UnkStruct_ov21_021E1E74 * param0, UnkStruct_ov21_021E1A7C * param1);
static void ov21_021E2014(UnkStruct_ov21_021E2588 * param0, UnkStruct_ov21_021E1A90 * param1, int param2);
static void ov21_021E2044(UnkStruct_ov21_021E2588 * param0, UnkStruct_ov21_021E1A90 * param1, int param2);
@@ -914,7 +914,7 @@ static BOOL ov21_021E2664 (UnkStruct_ov21_021E2588 * param0, UnkStruct_ov21_021E
return 0;
}
-static void ov21_021E26A0 (UnkStruct_ov21_021E1A90 * param0, UnkStruct_02022550 * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10)
+static void ov21_021E26A0 (UnkStruct_ov21_021E1A90 * param0, GraphicElementData * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10)
{
int v0;
NNSG2dPaletteData * v1;
@@ -964,7 +964,7 @@ static void ov21_021E26A0 (UnkStruct_ov21_021E1A90 * param0, UnkStruct_02022550
}
}
-static void ov21_021E274C (UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
+static void ov21_021E274C (GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
{
ov21_021D1524(param0, param1, param2, param3, param4);
}
@@ -1143,7 +1143,7 @@ static void ov21_021E2968 (UnkStruct_ov21_021E1E74 * param0, UnkStruct_ov21_021E
}
}
-static void ov21_021E29A4 (UnkStruct_02022550 * param0, int param1, int param2)
+static void ov21_021E29A4 (GraphicElementData * param0, int param1, int param2)
{
int v0;
diff --git a/src/overlay021/ov21_021E29DC.c b/src/overlay021/ov21_021E29DC.c
index 5b765e58fc..ae9db7bb21 100644
--- a/src/overlay021/ov21_021E29DC.c
+++ b/src/overlay021/ov21_021E29DC.c
@@ -109,7 +109,7 @@ typedef struct {
} UnkStruct_ov21_021E37B4;
typedef struct {
- UnkStruct_02022550 * unk_00[6];
+ GraphicElementData * unk_00[6];
UnkStruct_02009DC8 * unk_18[4];
} UnkStruct_ov21_021E3900;
diff --git a/src/overlay021/ov21_021E3FFC.c b/src/overlay021/ov21_021E3FFC.c
index 09e0f634fb..5bd122a1ee 100644
--- a/src/overlay021/ov21_021E3FFC.c
+++ b/src/overlay021/ov21_021E3FFC.c
@@ -57,12 +57,12 @@ typedef struct {
} UnkStruct_ov21_021E4898;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
int unk_04;
} UnkStruct_ov21_021E4B30_sub1;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
int unk_04;
int unk_08;
} UnkStruct_ov21_021E4B30_sub2;
@@ -120,7 +120,7 @@ static void ov21_021E4AF4(UnkStruct_ov21_021E4360 * param0);
static void ov21_021E4B10(UnkStruct_ov21_021E4360 * param0, const UnkStruct_ov21_021E4898 * param1);
static void ov21_021E4B30(UnkStruct_ov21_021E4B30 * param0, int param1);
static void ov21_021E4B94(UnkStruct_ov21_021E4B30 * param0, int param1);
-static void ov21_021E4C38(UnkStruct_02022550 * param0, int param1);
+static void ov21_021E4C38(GraphicElementData * param0, int param1);
void ov21_021E3FFC (UnkStruct_ov21_021E68F4 * param0, UnkStruct_ov21_021D0F60 * param1, int param2)
{
@@ -813,7 +813,7 @@ static void ov21_021E4B94 (UnkStruct_ov21_021E4B30 * param0, int param1)
}
}
-static void ov21_021E4C38 (UnkStruct_02022550 * param0, int param1)
+static void ov21_021E4C38 (GraphicElementData * param0, int param1)
{
VecFx32 v0;
const VecFx32 * v1;
diff --git a/src/overlay021/ov21_021E4CA4.c b/src/overlay021/ov21_021E4CA4.c
index c699e877ec..8801217187 100644
--- a/src/overlay021/ov21_021E4CA4.c
+++ b/src/overlay021/ov21_021E4CA4.c
@@ -100,12 +100,12 @@ typedef struct {
} UnkStruct_ov21_021E5C80;
typedef struct {
- UnkStruct_02022550 * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_00;
+ GraphicElementData * unk_04;
UnkStruct_ov21_021E5C80 unk_08;
- UnkStruct_02022550 * unk_20;
+ GraphicElementData * unk_20;
UnkStruct_ov21_021E5C80 unk_24;
- UnkStruct_02022550 * unk_3C;
+ GraphicElementData * unk_3C;
int unk_40;
fx32 unk_44;
int unk_48;
@@ -149,9 +149,9 @@ static void ov21_021E5DE8(UnkStruct_ov21_021E51DC * param0, UnkStruct_ov21_021E4
static void ov21_021E5E18(UnkStruct_ov21_021E51DC * param0);
static void ov21_021E5E48(UnkStruct_ov21_021E51DC * param0, UnkStruct_ov21_021E4D90 * param1);
static void ov21_021E5E78(UnkStruct_ov21_021E51DC * param0, BOOL param1);
-static void ov21_021E5C80(UnkStruct_02022550 * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2, BOOL param3);
-static void ov21_021E5CF8(UnkStruct_02022550 * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2, int param3);
-static void ov21_021E5D90(UnkStruct_02022550 * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2);
+static void ov21_021E5C80(GraphicElementData * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2, BOOL param3);
+static void ov21_021E5CF8(GraphicElementData * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2, int param3);
+static void ov21_021E5D90(GraphicElementData * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2);
static void ov21_021E59B4(UnkStruct_ov21_021E5004 * param0, const UnkStruct_ov21_021E51DC * param1);
static void ov21_021E5A04(UnkStruct_ov21_021E5004 * param0, const UnkStruct_ov21_021E51DC * param1);
static void ov21_021E5A2C(UnkStruct_ov21_021E5004 * param0, const UnkStruct_ov21_021E51DC * param1);
@@ -1168,7 +1168,7 @@ static void ov21_021E5C4C (UnkStruct_ov21_021E5004 * param0)
}
}
-static void ov21_021E5C80 (UnkStruct_02022550 * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2, int param3)
+static void ov21_021E5C80 (GraphicElementData * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2, int param3)
{
int v0;
@@ -1202,7 +1202,7 @@ static void ov21_021E5C80 (UnkStruct_02022550 * param0, UnkStruct_ov21_021E5C80
}
}
-static void ov21_021E5CF8 (UnkStruct_02022550 * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2, int param3)
+static void ov21_021E5CF8 (GraphicElementData * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2, int param3)
{
int v0;
@@ -1241,7 +1241,7 @@ static void ov21_021E5CF8 (UnkStruct_02022550 * param0, UnkStruct_ov21_021E5C80
}
}
-static void ov21_021E5D90 (UnkStruct_02022550 * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2)
+static void ov21_021E5D90 (GraphicElementData * param0, UnkStruct_ov21_021E5C80 * param1, BOOL param2)
{
int v0;
@@ -1266,7 +1266,7 @@ static void ov21_021E5DE8 (UnkStruct_ov21_021E51DC * param0, UnkStruct_ov21_021E
{
param0->unk_2C = 1;
- sub_020059D0(13, param2, 0, 127, 0x1ff, 0);
+ Sound_PlayPokemonCry(13, param2, 0, 127, 0x1ff, 0);
ov21_021E5F00(param0);
}
diff --git a/src/overlay021/ov21_021E6014.c b/src/overlay021/ov21_021E6014.c
index 5402e808d4..19515ef9c6 100644
--- a/src/overlay021/ov21_021E6014.c
+++ b/src/overlay021/ov21_021E6014.c
@@ -55,7 +55,7 @@ typedef struct {
typedef struct {
UnkStruct_02009DC8 * unk_00[4];
- UnkStruct_02022550 * unk_10;
+ GraphicElementData * unk_10;
} UnkStruct_ov21_021E6274;
static UnkStruct_ov21_021E6104 * ov21_021E608C(int param0, UnkStruct_ov21_021D0F60 * param1);
@@ -88,9 +88,9 @@ static void ov21_021E6600(UnkStruct_ov21_021E6118 * param0, int param1);
static void ov21_021E66B0(UnkStruct_ov21_021E6118 * param0, const UnkStruct_ov21_021E6104 * param1, int param2);
static void ov21_021E67C8(UnkStruct_ov21_021E6118 * param0, const UnkStruct_ov21_021E6104 * param1);
static void ov21_021E6844(UnkStruct_ov21_021E6118 * param0);
-static void ov21_021E6860(UnkStruct_02022550 * param0, short param1);
+static void ov21_021E6860(GraphicElementData * param0, short param1);
static void ov21_021E687C(Sprite * param0, short param1);
-static void ov21_021E688C(UnkStruct_02022550 * param0, short param1);
+static void ov21_021E688C(GraphicElementData * param0, short param1);
static void ov21_021E68B0(Sprite * param0, short param1);
void ov21_021E6014 (UnkStruct_ov21_021E68F4 * param0, UnkStruct_ov21_021D0F60 * param1, int param2)
@@ -545,7 +545,7 @@ static void ov21_021E6844 (UnkStruct_ov21_021E6118 * param0)
sub_02008780(v0);
}
-static void ov21_021E6860 (UnkStruct_02022550 * param0, short param1)
+static void ov21_021E6860 (GraphicElementData * param0, short param1)
{
VecFx32 v0;
@@ -560,7 +560,7 @@ static void ov21_021E687C (Sprite * param0, short param1)
sub_02007DEC(param0, 1, 88 + param1);
}
-static void ov21_021E688C (UnkStruct_02022550 * param0, short param1)
+static void ov21_021E688C (GraphicElementData * param0, short param1)
{
VecFx32 v0;
diff --git a/src/overlay021/ov21_021E68F4.c b/src/overlay021/ov21_021E68F4.c
index e24c0ef98a..35ab79c4ba 100644
--- a/src/overlay021/ov21_021E68F4.c
+++ b/src/overlay021/ov21_021E68F4.c
@@ -67,10 +67,10 @@ typedef struct {
} UnkStruct_ov21_021E6DAC;
typedef struct {
- UnkStruct_02022550 * unk_00[2];
+ GraphicElementData * unk_00[2];
UnkStruct_ov21_021D4CA0 * unk_08[2];
UnkStruct_02009DC8 * unk_10[4];
- UnkStruct_02022550 * unk_20[4];
+ GraphicElementData * unk_20[4];
int unk_30[2];
void * unk_38[2];
} UnkStruct_ov21_021E6C60;
@@ -97,8 +97,8 @@ static void ov21_021E6DAC(UnkStruct_ov21_021E6DAC * param0);
static void ov21_021E6DBC(UnkStruct_ov21_021E6DAC * param0, UnkStruct_ov21_021E6A20 * param1);
static void ov21_021E6DEC(UnkStruct_ov21_021E6DAC * param0);
static void ov21_021E6E04(u32 param0, u32 param1, void * param2);
-static void ov21_021E71D0(UnkStruct_ov21_021E6A34 * param0, UnkStruct_02022550 * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10);
-static void ov21_021E727C(UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
+static void ov21_021E71D0(UnkStruct_ov21_021E6A34 * param0, GraphicElementData * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10);
+static void ov21_021E727C(GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
static void ov21_021E728C(UnkStruct_ov21_021E6C60 * param0, UnkStruct_ov21_021E6A34 * param1, const UnkStruct_ov21_021E6DAC * param2, int param3);
static void ov21_021E72E8(UnkStruct_ov21_021E6DAC * param0, UnkStruct_ov21_021E6A20 * param1);
static void ov21_021E732C(UnkStruct_ov21_021E6A34 * param0, const UnkStruct_ov21_021E6A20 * param1);
@@ -660,7 +660,7 @@ static void ov21_021E71B8 (UnkStruct_ov21_021E6C60 * param0, UnkStruct_ov21_021E
}
}
-static void ov21_021E71D0 (UnkStruct_ov21_021E6A34 * param0, UnkStruct_02022550 * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10)
+static void ov21_021E71D0 (UnkStruct_ov21_021E6A34 * param0, GraphicElementData * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10)
{
int v0;
NNSG2dPaletteData * v1;
@@ -710,7 +710,7 @@ static void ov21_021E71D0 (UnkStruct_ov21_021E6A34 * param0, UnkStruct_02022550
}
}
-static void ov21_021E727C (UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
+static void ov21_021E727C (GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
{
ov21_021D1524(param0, param1, param2, param3, param4);
}
diff --git a/src/overlay021/ov21_021E737C.c b/src/overlay021/ov21_021E737C.c
index d22fd668af..dfc8b7bd5f 100644
--- a/src/overlay021/ov21_021E737C.c
+++ b/src/overlay021/ov21_021E737C.c
@@ -81,10 +81,10 @@ typedef struct {
typedef struct {
UnkStruct_02015214 * unk_00;
- UnkStruct_02022550 * unk_04;
- UnkStruct_02022550 * unk_08;
- UnkStruct_02022550 * unk_0C;
- UnkStruct_02022550 * unk_10;
+ GraphicElementData * unk_04;
+ GraphicElementData * unk_08;
+ GraphicElementData * unk_0C;
+ GraphicElementData * unk_10;
int unk_14;
int unk_18;
int unk_1C;
@@ -97,10 +97,10 @@ typedef struct {
typedef struct {
UnkStruct_02015214 * unk_00;
- UnkStruct_02022550 * unk_04;
- UnkStruct_02022550 * unk_08;
- UnkStruct_02022550 * unk_0C;
- UnkStruct_02022550 * unk_10;
+ GraphicElementData * unk_04;
+ GraphicElementData * unk_08;
+ GraphicElementData * unk_0C;
+ GraphicElementData * unk_10;
int unk_14;
int unk_18;
int unk_1C;
@@ -108,7 +108,7 @@ typedef struct {
} UnkStruct_ov21_021E81F8;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
fx32 unk_04;
fx32 unk_08;
s16 unk_0C;
@@ -119,10 +119,10 @@ typedef struct {
} UnkStruct_ov21_021E82C8;
typedef struct {
- UnkStruct_02022550 * unk_00;
- UnkStruct_02022550 * unk_04;
- UnkStruct_02022550 * unk_08;
- UnkStruct_02022550 * unk_0C[2];
+ GraphicElementData * unk_00;
+ GraphicElementData * unk_04;
+ GraphicElementData * unk_08;
+ GraphicElementData * unk_0C[2];
UnkStruct_02009DC8 * unk_14[4];
UnkStruct_02009DC8 * unk_24[4];
const UnkStruct_ov21_021E9DB0 * unk_34;
@@ -167,7 +167,7 @@ static void ov21_021E7F20(UnkStruct_ov21_021E747C * param0);
static void ov21_021E7F40(UnkStruct_ov21_021E747C * param0, int param1);
static void ov21_021E7F7C(UnkStruct_ov21_021E747C * param0);
static const UnkStruct_ov21_021E9DB0 * ov21_021E83D8(const UnkStruct_ov21_021E9DB0 * param0, int param1, int param2);
-static void ov21_021E80D4(UnkStruct_02015214 * param0, UnkStruct_02022550 * param1, UnkStruct_02022550 * param2, UnkStruct_02022550 * param3, UnkStruct_02022550 * param4, u16 param5);
+static void ov21_021E80D4(UnkStruct_02015214 * param0, GraphicElementData * param1, GraphicElementData * param2, GraphicElementData * param3, GraphicElementData * param4, u16 param5);
static void ov21_021E7F88(UnkStruct_ov21_021E7714 * param0, UnkStruct_ov21_021E747C * param1, int param2);
static void ov21_021E7FD0(SysTask * param0, void * param1);
static void ov21_021E8084(UnkStruct_ov21_021E8084 * param0);
@@ -909,7 +909,7 @@ static void ov21_021E8084 (UnkStruct_ov21_021E8084 * param0)
ov21_021E80D4(param0->unk_00, param0->unk_04, param0->unk_08, param0->unk_0C, param0->unk_10, param0->unk_1C);
}
-static void ov21_021E80D4 (UnkStruct_02015214 * param0, UnkStruct_02022550 * param1, UnkStruct_02022550 * param2, UnkStruct_02022550 * param3, UnkStruct_02022550 * param4, u16 param5)
+static void ov21_021E80D4 (UnkStruct_02015214 * param0, GraphicElementData * param1, GraphicElementData * param2, GraphicElementData * param3, GraphicElementData * param4, u16 param5)
{
fx32 v0, v1;
VecFx32 v2;
diff --git a/src/overlay021/ov21_021E8484.c b/src/overlay021/ov21_021E8484.c
index 0e0ebbea7d..f503ce2a78 100644
--- a/src/overlay021/ov21_021E8484.c
+++ b/src/overlay021/ov21_021E8484.c
@@ -67,10 +67,10 @@ typedef struct {
} UnkStruct_ov21_021E88B0;
typedef struct {
- UnkStruct_02022550 * unk_00[1];
+ GraphicElementData * unk_00[1];
UnkStruct_ov21_021D4CA0 * unk_04[1];
UnkStruct_02009DC8 * unk_08[4];
- UnkStruct_02022550 * unk_18[4];
+ GraphicElementData * unk_18[4];
int unk_28[1];
void * unk_2C[1];
} UnkStruct_ov21_021E8794;
@@ -97,8 +97,8 @@ static void ov21_021E88B0(UnkStruct_ov21_021E88B0 * param0);
static void ov21_021E88B8(UnkStruct_ov21_021E88B0 * param0, UnkStruct_ov21_021E8570 * param1);
static void ov21_021E88D0(UnkStruct_ov21_021E88B0 * param0);
static void ov21_021E88E8(u32 param0, u32 param1, void * param2);
-static void ov21_021E8BE8(UnkStruct_ov21_021E8584 * param0, UnkStruct_02022550 * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10);
-static void ov21_021E8C94(UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
+static void ov21_021E8BE8(UnkStruct_ov21_021E8584 * param0, GraphicElementData * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10);
+static void ov21_021E8C94(GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4);
static void ov21_021E8CBC(UnkStruct_ov21_021E8584 * param0, UnkStruct_ov21_021E8794 * param1, const UnkStruct_ov21_021E88B0 * param2, int param3);
static void ov21_021E8D3C(const UnkStruct_ov21_021E8570 * param0);
static void ov21_021E8CF0(UnkStruct_ov21_021E88B0 * param0, UnkStruct_ov21_021E8570 * param1);
@@ -612,7 +612,7 @@ static void ov21_021E8BDC (UnkStruct_ov21_021E8794 * param0, UnkStruct_ov21_021E
}
}
-static void ov21_021E8BE8 (UnkStruct_ov21_021E8584 * param0, UnkStruct_02022550 * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10)
+static void ov21_021E8BE8 (UnkStruct_ov21_021E8584 * param0, GraphicElementData * param1, UnkStruct_ov21_021D4CA0 * param2, int param3, int param4, int param5, int * param6, int param7, int param8, int param9, void ** param10)
{
int v0;
NNSG2dPaletteData * v1;
@@ -662,7 +662,7 @@ static void ov21_021E8BE8 (UnkStruct_ov21_021E8584 * param0, UnkStruct_02022550
}
}
-static void ov21_021E8C94 (UnkStruct_02022550 * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
+static void ov21_021E8C94 (GraphicElementData * param0, UnkStruct_ov21_021D4CA0 * param1, int param2, int param3, int param4)
{
int v0;
diff --git a/src/overlay021/ov21_021E8D48.c b/src/overlay021/ov21_021E8D48.c
index 32f6094654..6ab690b8ed 100644
--- a/src/overlay021/ov21_021E8D48.c
+++ b/src/overlay021/ov21_021E8D48.c
@@ -57,17 +57,17 @@
#include "overlay021/ov21_021E8D48.h"
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
UnkStruct_02009DC8 * unk_04[4];
} UnkStruct_ov21_021E94F8;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
UnkStruct_ov21_021D4CA0 * unk_04;
} UnkStruct_ov21_021E95B0;
typedef struct {
- UnkStruct_02022550 * unk_00[2];
+ GraphicElementData * unk_00[2];
UnkStruct_02009DC8 * unk_08[4];
} UnkStruct_ov21_021E968C;
@@ -85,7 +85,7 @@ typedef struct UnkStruct_ov21_021E8D48_t {
PaletteSys * unk_08;
Sprite * unk_0C;
UnkStruct_0200C738 unk_10;
- UnkStruct_020218BC * unk_19C;
+ GraphicElementManager * unk_19C;
UnkStruct_02009714 * unk_1A0[4];
UnkStruct_ov21_021D4C0C * unk_1B0;
UnkStruct_ov21_021D22F8 unk_1B4;
@@ -121,15 +121,15 @@ static void ov21_021E93C4(UnkStruct_02009DC8 ** param0, UnkStruct_02009714 ** pa
static void ov21_021E93F8(UnkStruct_02009DC8 ** param0, UnkStruct_02009714 ** param1, UnkStruct_ov19_021DA864 * param2, int param3);
static void ov21_021E9458(UnkStruct_ov21_021E94F8 * param0, UnkStruct_02009714 ** param1, int param2, int param3);
static void ov21_021E94A4(UnkStruct_ov21_021E94F8 * param0, UnkStruct_02009714 ** param1);
-static void ov21_021E94B0(UnkStruct_ov21_021E94F8 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3);
+static void ov21_021E94B0(UnkStruct_ov21_021E94F8 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3);
static void ov21_021E94F8(UnkStruct_ov21_021E94F8 * param0);
-static void ov21_021E9504(UnkStruct_ov21_021E95B0 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, UnkStruct_02009DC8 ** param4);
+static void ov21_021E9504(UnkStruct_ov21_021E95B0 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, UnkStruct_02009DC8 ** param4);
static void ov21_021E9554(UnkStruct_ov21_021E95B0 * param0);
static void ov21_021E9560(UnkStruct_ov21_021E95B0 * param0, UnkStruct_ov21_021D4C0C * param1, int param2, int param3, UnkStruct_02009DC8 * param4);
static void ov21_021E95B0(UnkStruct_ov21_021E95B0 * param0);
static void ov21_021E95BC(UnkStruct_ov21_021E968C * param0, UnkStruct_02009714 ** param1, int param2, int param3, NARC * param4);
static void ov21_021E95EC(UnkStruct_ov21_021E968C * param0, UnkStruct_02009714 ** param1);
-static void ov21_021E95F8(UnkStruct_ov21_021E968C * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, int param4);
+static void ov21_021E95F8(UnkStruct_ov21_021E968C * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, int param4);
static void ov21_021E968C(UnkStruct_ov21_021E968C * param0);
static void ov21_021E96A8(BGL * param0, int param1, NARC * param2);
static void ov21_021E97C4(BGL * param0, int param1, NARC * param2);
@@ -509,7 +509,7 @@ static void ov21_021E94A4 (UnkStruct_ov21_021E94F8 * param0, UnkStruct_02009714
ov21_021E93C4(param0->unk_04, param1);
}
-static void ov21_021E94B0 (UnkStruct_ov21_021E94F8 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3)
+static void ov21_021E94B0 (UnkStruct_ov21_021E94F8 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3)
{
UnkStruct_ov83_0223D9A8 v0;
UnkStruct_ov19_021DA864 v1;
@@ -533,7 +533,7 @@ static void ov21_021E94F8 (UnkStruct_ov21_021E94F8 * param0)
sub_02021BD4(param0->unk_00);
}
-static void ov21_021E9504 (UnkStruct_ov21_021E95B0 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, UnkStruct_02009DC8 ** param4)
+static void ov21_021E9504 (UnkStruct_ov21_021E95B0 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, UnkStruct_02009DC8 ** param4)
{
UnkStruct_ov83_0223D9A8 v0;
UnkStruct_ov19_021DA864 v1;
@@ -597,7 +597,7 @@ static void ov21_021E95EC (UnkStruct_ov21_021E968C * param0, UnkStruct_02009714
ov21_021E93C4(param0->unk_08, param1);
}
-static void ov21_021E95F8 (UnkStruct_ov21_021E968C * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, int param4)
+static void ov21_021E95F8 (UnkStruct_ov21_021E968C * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, int param4)
{
UnkStruct_ov83_0223D9A8 v0;
UnkStruct_ov19_021DA864 v1;
@@ -703,7 +703,7 @@ static void ov21_021E9828 (SysTask * param0, void * param1)
}
break;
case 2:
- v1 = sub_020059D0(14, v0->unk_220, 0x1ff, 0x1ff, 0x1ff, 0);
+ v1 = Sound_PlayPokemonCry(14, v0->unk_220, 0x1ff, 0x1ff, 0x1ff, 0);
GF_ASSERT(v1);
v0->unk_21C++;
break;
diff --git a/src/overlay022/ov22_02255094.c b/src/overlay022/ov22_02255094.c
index 2b14fcf7cc..321b4119bb 100644
--- a/src/overlay022/ov22_02255094.c
+++ b/src/overlay022/ov22_02255094.c
@@ -156,7 +156,7 @@ void ov22_022551D0 (UnkStruct_ov22_0225A0E4 * param0)
sub_020151EC(param0->unk_00);
}
-UnkStruct_02022550 * ov22_022551E4 (UnkStruct_ov22_0225A0E4 * param0, int param1, int param2, int param3, int param4, int param5)
+GraphicElementData * ov22_022551E4 (UnkStruct_ov22_0225A0E4 * param0, int param1, int param2, int param3, int param4, int param5)
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
diff --git a/src/overlay022/ov22_02255D44.c b/src/overlay022/ov22_02255D44.c
index 07dfbbdce1..75bf577e3c 100644
--- a/src/overlay022/ov22_02255D44.c
+++ b/src/overlay022/ov22_02255D44.c
@@ -110,7 +110,7 @@ typedef struct {
int unk_72C;
int unk_730;
UnkStruct_02095C60 * unk_734;
- const UnkStruct_020279FC * unk_738;
+ const AnimationControlFlags * unk_738;
u32 unk_73C;
Strbuf* unk_740;
UnkStruct_0200B358 * unk_744;
@@ -155,8 +155,8 @@ static void ov22_02256B04(UnkStruct_ov22_02259C58 * param0, void * param1);
static void ov22_02256B24(UnkStruct_ov22_02259C58 * param0, void * param1);
static void ov22_02256B44(UnkStruct_ov22_02259C58 * param0, void * param1);
static void ov22_02256B78(UnkStruct_ov22_02259C58 * param0, void * param1);
-static void ov22_02256BAC(UnkStruct_ov22_02255D44 * param0, const UnkStruct_020279FC * param1);
-static void ov22_02256BF4(UnkStruct_ov22_02255D44 * param0, int param1, int param2, UnkStruct_02095C60 * param3, const UnkStruct_020279FC * param4);
+static void ov22_02256BAC(UnkStruct_ov22_02255D44 * param0, const AnimationControlFlags * param1);
+static void ov22_02256BF4(UnkStruct_ov22_02255D44 * param0, int param1, int param2, UnkStruct_02095C60 * param3, const AnimationControlFlags * param4);
static void ov22_02256C38(UnkStruct_ov22_02255D44 * param0);
static void ov22_02256C48(UnkStruct_ov22_02255D44 * param0, BOOL * param1);
static void ov22_02256C70(SysTask * param0, void * param1);
@@ -208,8 +208,8 @@ int ov22_02255D44 (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200681C(param0, sizeof(UnkStruct_ov22_02255D44), 13);
memset(v0, 0, sizeof(UnkStruct_ov22_02255D44));
- sub_02017798(ov22_02256940, v0);
- sub_020177A4();
+ SetMainCallback(ov22_02256940, v0);
+ DisableHBlank();
v2 = sub_02006840(param0);
v0->unk_738 = v2->unk_0C;
@@ -400,8 +400,8 @@ int ov22_02256098 (UnkStruct_020067E8 * param0, int * param1)
ov22_022594AC(&v0->unk_3C0);
ov22_022566F4(v0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
v1 = sub_0201E530();
GF_ASSERT(v1 == 1);
@@ -425,8 +425,8 @@ int ov22_02256174 (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200681C(param0, sizeof(UnkStruct_ov22_02255D44), 13);
memset(v0, 0, sizeof(UnkStruct_ov22_02255D44));
- sub_02017798(ov22_02256940, v0);
- sub_020177A4();
+ SetMainCallback(ov22_02256940, v0);
+ DisableHBlank();
v2 = sub_02006840(param0);
@@ -661,8 +661,8 @@ int ov22_02256600 (UnkStruct_020067E8 * param0, int * param1)
ov22_022594AC(&v0->unk_3C0);
ov22_022566F4(v0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
v1 = sub_0201E530();
GF_ASSERT(v1 == 1);
@@ -935,7 +935,7 @@ static void ov22_02256B78 (UnkStruct_ov22_02259C58 * param0, void * param1)
}
}
-static void ov22_02256BAC (UnkStruct_ov22_02255D44 * param0, const UnkStruct_020279FC * param1)
+static void ov22_02256BAC (UnkStruct_ov22_02255D44 * param0, const AnimationControlFlags * param1)
{
UnkStruct_ov22_02256BAC v0;
@@ -951,7 +951,7 @@ static void ov22_02256BAC (UnkStruct_ov22_02255D44 * param0, const UnkStruct_020
ov22_0225A428(¶m0->unk_5C4, &v0, (1 | 2 | 4 | 8));
}
-static void ov22_02256BF4 (UnkStruct_ov22_02255D44 * param0, int param1, int param2, UnkStruct_02095C60 * param3, const UnkStruct_020279FC * param4)
+static void ov22_02256BF4 (UnkStruct_ov22_02255D44 * param0, int param1, int param2, UnkStruct_02095C60 * param3, const AnimationControlFlags * param4)
{
UnkStruct_ov22_02256BAC v0;
BOOL v1;
diff --git a/src/overlay022/ov22_0225A428.c b/src/overlay022/ov22_0225A428.c
index 6277925dba..74b8e6d737 100644
--- a/src/overlay022/ov22_0225A428.c
+++ b/src/overlay022/ov22_0225A428.c
@@ -41,7 +41,7 @@
#include "overlay022/ov22_0225A428.h"
static void ov22_0225A6E0(UnkStruct_ov22_022597BC * param0, BGL * param1);
-static void ov22_0225A718(BGL * param0, const UnkStruct_020279FC * param1);
+static void ov22_0225A718(BGL * param0, const AnimationControlFlags * param1);
static void ov22_0225A748(Window ** param0, BGL * param1, int param2, int param3, int param4, int param5, int param6, BOOL param7);
static void ov22_0225A7B8(UnkStruct_ov22_022597BC * param0);
static void ov22_0225A7C0(Window * param0);
@@ -49,10 +49,10 @@ static s32 ov22_0225A7CC(Window * param0, int param1, int param2, int param3, in
static s32 ov22_0225A814(Window * param0, int param1, int param2, int param3, int param4, int param5, u32 param6, Strbuf **param7);
static s32 ov22_0225A860(Window * param0, int param1, int param2, int param3, int param4, int param5, u32 param6, u32 param7);
static s32 ov22_0225A8B4(Window * param0, int param1, int param2, int param3, int param4, int param5, u32 param6, u32 param7, Strbuf **param8);
-static void ov22_0225A914(UnkStruct_ov22_0225A914 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, NARC * param4);
+static void ov22_0225A914(UnkStruct_ov22_0225A914 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, NARC * param4);
static void ov22_0225A9C8(UnkStruct_ov22_0225A914 * param0, int param1);
static void ov22_0225AA10(UnkStruct_ov22_0225A914 * param0, UnkStruct_02009714 ** param1);
-static void ov22_0225AB54(UnkStruct_ov22_0225AB54 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, BGL * param4, UnkStruct_02095C60 * param5, NARC * param6);
+static void ov22_0225AB54(UnkStruct_ov22_0225AB54 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, BGL * param4, UnkStruct_02095C60 * param5, NARC * param6);
static void ov22_0225AC58(UnkStruct_ov22_0225AB54 * param0, UnkStruct_02009714 ** param1);
static void ov22_0225AC8C(UnkStruct_ov22_0225AB54 * param0);
static void ov22_0225AD5C(UnkStruct_ov22_0225AB54 * param0);
@@ -202,7 +202,7 @@ static void ov22_0225A6E0 (UnkStruct_ov22_022597BC * param0, BGL * param1)
ov22_022597BC(param0, &v0);
}
-static void ov22_0225A718 (BGL * param0, const UnkStruct_020279FC * param1)
+static void ov22_0225A718 (BGL * param0, const AnimationControlFlags * param1)
{
int v0 = sub_02027B50(param1);
@@ -292,7 +292,7 @@ static s32 ov22_0225A8B4 (Window * param0, int param1, int param2, int param3, i
return v1;
}
-static void ov22_0225A914 (UnkStruct_ov22_0225A914 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, NARC * param4)
+static void ov22_0225A914 (UnkStruct_ov22_0225A914 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, NARC * param4)
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
@@ -385,7 +385,7 @@ static void ov22_0225AAF4 (UnkStruct_02009DC8 ** param0, UnkStruct_02009714 ** p
sub_020093B4(param2, sub_02009E08(param0[0]), sub_02009E08(param0[1]), sub_02009E08(param0[2]), sub_02009E08(param0[3]), 0xffffffff, 0xffffffff, 0, param3, param1[0], param1[1], param1[2], param1[3], NULL, NULL);
}
-static void ov22_0225AB54 (UnkStruct_ov22_0225AB54 * param0, UnkStruct_020218BC * param1, UnkStruct_02009714 ** param2, int param3, BGL * param4, UnkStruct_02095C60 * param5, NARC * param6)
+static void ov22_0225AB54 (UnkStruct_ov22_0225AB54 * param0, GraphicElementManager * param1, UnkStruct_02009714 ** param2, int param3, BGL * param4, UnkStruct_02095C60 * param5, NARC * param6)
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
diff --git a/src/overlay022/ov22_0225B660.c b/src/overlay022/ov22_0225B660.c
index 06e6037413..0d98837762 100644
--- a/src/overlay022/ov22_0225B660.c
+++ b/src/overlay022/ov22_0225B660.c
@@ -46,7 +46,7 @@ typedef struct {
u32 unk_0C;
UnkStruct_ov22_0225B1BC * unk_10;
UnkStruct_ov22_0225A0E4 unk_14;
- UnkStruct_02022550 * unk_1FC;
+ GraphicElementData * unk_1FC;
Window * unk_200;
} UnkStruct_ov22_0225B85C;
@@ -72,8 +72,8 @@ int ov22_0225B660 (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200681C(param0, sizeof(UnkStruct_ov22_0225B85C), 13);
memset(v0, 0, sizeof(UnkStruct_ov22_0225B85C));
- sub_02017798(ov22_0225B848, v0);
- sub_020177A4();
+ SetMainCallback(ov22_0225B848, v0);
+ DisableHBlank();
v1 = sub_02006840(param0);
@@ -171,8 +171,8 @@ int ov22_0225B7FC (UnkStruct_020067E8 * param0, int * param1)
ov22_022555FC(&v0->unk_14);
ov22_022550B4();
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_02006830(param0);
Heap_Destroy(13);
Heap_Destroy(14);
diff --git a/src/overlay023/ov23_0223E140.c b/src/overlay023/ov23_0223E140.c
index 6915fd05b6..a4b735aefe 100644
--- a/src/overlay023/ov23_0223E140.c
+++ b/src/overlay023/ov23_0223E140.c
@@ -150,15 +150,15 @@ typedef struct {
UnkStruct_0203CDB0 * unk_00;
BGL * unk_04;
MATHRandContext32 unk_08;
- UnkStruct_020218BC * unk_20;
+ GraphicElementManager * unk_20;
UnkStruct_0200C738 unk_24;
UnkStruct_02009714 * unk_1B0[4];
UnkStruct_02009DC8 * unk_1C0[8];
UnkStruct_ov19_021DA864 unk_1E0;
UnkStruct_ov19_021DA864 unk_204[2];
- UnkStruct_02022550 * unk_24C[8];
+ GraphicElementData * unk_24C[8];
UnkStruct_ov23_0223E6F8 unk_26C[250];
- UnkStruct_02001AF4 * unk_848;
+ UIControlData * unk_848;
UnkStruct_ov23_0223E6F8 * unk_84C[8];
u8 unk_86C[8];
UnkStruct_ov23_0223FC9C unk_874[8];
@@ -1321,7 +1321,7 @@ static void ov23_0223EE80 (UnkStruct_ov23_0223EE80 * param0)
v1 = sub_02018340(29);
Unk_ov23_02257740->unk_04 = v1;
- sub_02017798(ov23_022411E8, v1);
+ SetMainCallback(ov23_022411E8, v1);
ov23_02253E2C(ov23_0224219C(), v1, (512 - (18 + 12)), (((512 - (18 + 12)) - 73) - (27 * 4)));
ov23_0223EC34(v1);
@@ -1404,7 +1404,7 @@ static void ov23_0223F020 (UnkStruct_ov23_0223EE80 * param0)
sub_0201E958();
sub_0201F8B4();
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_FreeToHeap(Unk_ov23_02257740->unk_04);
Unk_ov23_02257740->unk_04 = NULL;
diff --git a/src/overlay023/ov23_0224340C.c b/src/overlay023/ov23_0224340C.c
index c229213b4e..34d1cfced1 100644
--- a/src/overlay023/ov23_0224340C.c
+++ b/src/overlay023/ov23_0224340C.c
@@ -121,14 +121,14 @@ typedef struct {
UnkStruct_ov23_02248A6C * unk_00[8];
SysTask * unk_20[8];
UnkStruct_0203CDB0 * unk_40;
- UnkStruct_020218BC * unk_44;
+ GraphicElementManager * unk_44;
UnkStruct_0200C738 unk_48;
UnkStruct_02009714 * unk_1D4[2][4];
UnkStruct_02009DC8 * unk_1F4[2][4];
UnkStruct_ov19_021DA864 unk_214;
UnkStruct_ov19_021DA864 unk_238;
- UnkStruct_02022550 * unk_25C[32];
- UnkStruct_02022550 * unk_2DC[4];
+ GraphicElementData * unk_25C[32];
+ GraphicElementData * unk_2DC[4];
UnkStruct_020508D4 * unk_2EC;
SysTask * unk_2F0;
SysTask * unk_2F4;
diff --git a/src/overlay023/ov23_02248C08.c b/src/overlay023/ov23_02248C08.c
index 00a0599054..d8d1463591 100644
--- a/src/overlay023/ov23_02248C08.c
+++ b/src/overlay023/ov23_02248C08.c
@@ -39,7 +39,7 @@ UnkStruct_ov23_02248D20 * ov23_02248C08 (UnkStruct_ov84_02240FA8 * param0, u16 p
v0->unk_1D = param3;
{
- UnkStruct_02013A04 * v1 = sub_02013A04(param0->unk_10, v0->unk_1D);
+ ResourceMetadata * v1 = sub_02013A04(param0->unk_10, v0->unk_1D);
int v2;
for (v2 = 0; v2 < param0->unk_10; v2++) {
@@ -89,7 +89,7 @@ u32 ov23_02248D20 (UnkStruct_ov23_02248D20 * param0)
u16 v1, v2, v3;
int v4, v5;
u32 v6;
- UnkStruct_02013A04 * v7;
+ ResourceMetadata * v7;
if (param0->unk_00) {
int v8 = sub_02001504(v0, 2);
diff --git a/src/overlay023/ov23_02248F1C.c b/src/overlay023/ov23_02248F1C.c
index 85e3128806..3ec0255cdb 100644
--- a/src/overlay023/ov23_02248F1C.c
+++ b/src/overlay023/ov23_02248F1C.c
@@ -57,13 +57,13 @@ struct UnkStruct_ov23_0224942C_t {
int unk_A4[17][4];
UnkStruct_0203CDB0 * unk_1B4;
BGL * unk_1B8;
- UnkStruct_020218BC * unk_1BC;
+ GraphicElementManager * unk_1BC;
UnkStruct_0200C738 unk_1C0;
UnkStruct_02009714 * unk_34C[4];
UnkStruct_02009DC8 * unk_35C[4];
UnkStruct_ov19_021DA864 unk_36C;
- UnkStruct_02022550 * unk_390[8];
- UnkStruct_02022550 * unk_3B0[17];
+ GraphicElementData * unk_390[8];
+ GraphicElementData * unk_3B0[17];
Window unk_3F4;
int unk_404;
int unk_408;
@@ -77,7 +77,7 @@ static void ov23_0224944C(BGL * param0, Window * param1);
static void ov23_02249584(UnkStruct_ov23_0224942C * param0);
static void ov23_02249214(UnkStruct_0205E884 * const param0, int param1[][2], int param2[][3]);
static void ov23_022491CC(int param0[][2], int param1[][3]);
-static void ov23_022492C8(int param0[][3], UnkStruct_02022550 * param1[]);
+static void ov23_022492C8(int param0[][3], GraphicElementData * param1[]);
static void ov23_0224944C(BGL * param0, Window * param1);
static void ov23_02249438(BGL * param0);
static void ov23_0224966C(BGL * param0, Window * param1, int * param2, int * param3, int * param4, UnkStruct_ov23_02249724 * param5);
@@ -86,7 +86,7 @@ static void ov23_02249778(UnkStruct_ov23_02249724 * param0);
static int ov23_02249844(UnkStruct_ov23_02249724 * param0, Strbuf *param1);
static Strbuf* ov23_022498C4(UnkStruct_ov23_02249724 * param0);
static int ov23_02249900(UnkStruct_ov23_02249724 * param0);
-static void ov23_0224937C(int param0[][4], UnkStruct_02022550 * param1[]);
+static void ov23_0224937C(int param0[][4], GraphicElementData * param1[]);
static void ov23_02249334(int param0[][4]);
static UnkStruct_ov23_0224942C * Unk_ov23_02257768;
@@ -254,7 +254,7 @@ static void ov23_02249214 (UnkStruct_0205E884 * const param0, int param1[][2], i
}
}
-static void ov23_022492C8 (int param0[][3], UnkStruct_02022550 * param1[])
+static void ov23_022492C8 (int param0[][3], GraphicElementData * param1[])
{
int v0;
@@ -295,7 +295,7 @@ static void ov23_02249334 (int param0[][4])
}
}
-static void ov23_0224937C (int param0[][4], UnkStruct_02022550 * param1[])
+static void ov23_0224937C (int param0[][4], GraphicElementData * param1[])
{
int v0;
diff --git a/src/overlay023/ov23_0224B05C.c b/src/overlay023/ov23_0224B05C.c
index 3fa397fd38..81cb7c6e6c 100644
--- a/src/overlay023/ov23_0224B05C.c
+++ b/src/overlay023/ov23_0224B05C.c
@@ -126,7 +126,7 @@ typedef struct {
typedef struct {
UnkStruct_0203CDB0 * unk_00;
- UnkStruct_02001AF4 * unk_04;
+ UIControlData * unk_04;
SysTask * unk_08;
int unk_0C;
int unk_10;
@@ -147,7 +147,7 @@ typedef struct {
typedef struct {
UnkStruct_0203CDB0 * unk_00;
SysTask * unk_04;
- UnkStruct_02001AF4 * unk_08;
+ UIControlData * unk_08;
int unk_0C;
u8 unk_10;
u8 unk_11;
@@ -1013,11 +1013,11 @@ static int ov23_0224BD1C (int param0, BOOL param1)
return v1;
}
-static UnkStruct_02001AF4 * ov23_0224BD90 (BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u32 param4)
+static UIControlData * ov23_0224BD90 (BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u32 param4)
{
UnkStruct_02081CF4 v0;
MessageLoader * v1 = ov23_02253E3C(ov23_0224219C());
- UnkStruct_02013A04 * v2;
+ ResourceMetadata * v2;
v2 = sub_02013A04(2, param4);
diff --git a/src/overlay023/ov23_0224DC40.c b/src/overlay023/ov23_0224DC40.c
index 5f6249c909..e811415070 100644
--- a/src/overlay023/ov23_0224DC40.c
+++ b/src/overlay023/ov23_0224DC40.c
@@ -67,9 +67,9 @@ typedef struct {
UnkStruct_ov23_02250CD4 * unk_04;
UnkStruct_0203CDB0 * unk_08;
Window unk_0C;
- UnkStruct_02013A04 * unk_1C;
+ ResourceMetadata * unk_1C;
UnkStruct_0200112C * unk_20;
- UnkStruct_02001AF4 * unk_24;
+ UIControlData * unk_24;
UnkStruct_ov23_0224F184 unk_28;
UnkFuncPtr_ov23_0224DCB8 unk_2C;
u16 unk_30;
@@ -89,9 +89,9 @@ typedef struct {
SysTask * unk_00;
UnkStruct_0203CDB0 * unk_04;
Window unk_08;
- UnkStruct_02013A04 * unk_18;
+ ResourceMetadata * unk_18;
UnkStruct_0200112C * unk_1C;
- UnkStruct_02001AF4 * unk_20;
+ UIControlData * unk_20;
UnkStruct_ov23_0224F184 unk_24;
UnkFuncPtr_ov23_0224DCB8 unk_28;
u16 unk_2C;
diff --git a/src/overlay023/ov23_0224F294.c b/src/overlay023/ov23_0224F294.c
index dba63a2f52..23aa4a07bd 100644
--- a/src/overlay023/ov23_0224F294.c
+++ b/src/overlay023/ov23_0224F294.c
@@ -82,10 +82,10 @@ typedef struct {
static void ov23_0224F460(UnkStruct_ov23_02250CD4 * param0);
static void ov23_0224F498(UnkStruct_ov23_02250CD4 * param0);
-static void ov23_0224F4D0(UnkStruct_02022550 * param0, u32 param1);
-static void ov23_0224F500(UnkStruct_02022550 * param0, u16 param1, u16 param2);
+static void ov23_0224F4D0(GraphicElementData * param0, u32 param1);
+static void ov23_0224F500(GraphicElementData * param0, u16 param1, u16 param2);
static void ov23_0224F52C(UnkStruct_ov23_02250CD4 * param0, u16 param1, u16 param2);
-static void ov23_0224F560(UnkStruct_02022550 * param0);
+static void ov23_0224F560(GraphicElementData * param0);
static void ov23_0224F914(SysTask * param0, void * param1);
static BOOL ov23_0224FA58(SysTask * param0, void * param1);
static void ov23_0224FE38(UnkStruct_ov23_02250CD4 * param0, UnkFuncPtr_ov23_02248D20 param1);
@@ -250,7 +250,7 @@ static void ov23_0224F498 (UnkStruct_ov23_02250CD4 * param0)
}
}
-static void ov23_0224F4D0 (UnkStruct_02022550 * param0, u32 param1)
+static void ov23_0224F4D0 (GraphicElementData * param0, u32 param1)
{
VecFx32 v0;
@@ -260,7 +260,7 @@ static void ov23_0224F4D0 (UnkStruct_02022550 * param0, u32 param1)
sub_02021C50(param0, &v0);
}
-static void ov23_0224F500 (UnkStruct_02022550 * param0, u16 param1, u16 param2)
+static void ov23_0224F500 (GraphicElementData * param0, u16 param1, u16 param2)
{
u32 v0 = sub_02021E24(param0);
@@ -274,7 +274,7 @@ static void ov23_0224F52C (UnkStruct_ov23_02250CD4 * param0, u16 param1, u16 par
ov23_0224F500(param0->unk_23C[1 + param2]->unk_00, 1, 1);
}
-static void ov23_0224F560 (UnkStruct_02022550 * param0)
+static void ov23_0224F560 (GraphicElementData * param0)
{
if ((sub_02021E24(param0) % 3) != 1) {
return;
diff --git a/src/overlay023/ov23_0225128C.c b/src/overlay023/ov23_0225128C.c
index eb58bef672..22aeda595d 100644
--- a/src/overlay023/ov23_0225128C.c
+++ b/src/overlay023/ov23_0225128C.c
@@ -73,7 +73,7 @@ typedef struct {
typedef struct {
int unk_00;
UnkStruct_0203CDB0 * unk_04;
- UnkStruct_02001AF4 * unk_08;
+ UIControlData * unk_08;
UnkStruct_ov23_022513B0 unk_0C;
SysTask * unk_10;
} UnkStruct_ov23_02252038;
diff --git a/src/overlay023/ov23_02253598.c b/src/overlay023/ov23_02253598.c
index 4315b996ee..680c033ca5 100644
--- a/src/overlay023/ov23_02253598.c
+++ b/src/overlay023/ov23_02253598.c
@@ -46,7 +46,7 @@ typedef struct {
UnkFuncPtr_ov23_02253834 unk_00;
void * unk_04;
Window unk_08;
- UnkStruct_02013A04 * unk_18;
+ ResourceMetadata * unk_18;
UnkStruct_0200112C * unk_1C;
UnkFuncPtr_ov23_0224DCB8 unk_20;
u16 unk_24;
diff --git a/src/overlay023/ov23_022542CC.c b/src/overlay023/ov23_022542CC.c
index ae938c829e..ca665b48bb 100644
--- a/src/overlay023/ov23_022542CC.c
+++ b/src/overlay023/ov23_022542CC.c
@@ -38,7 +38,7 @@ typedef struct UnkStruct_ov23_022542D8_t {
UnkStruct_0203CDB0 * unk_00;
Window unk_04;
Window unk_14;
- UnkStruct_02013A04 * unk_24;
+ ResourceMetadata * unk_24;
UnkStruct_0200112C * unk_28;
Strbuf* unk_2C;
u16 * unk_30;
@@ -53,7 +53,7 @@ typedef struct UnkStruct_ov23_02254594_t {
UnkStruct_0206A844 * unk_04;
Window unk_08;
Window unk_18;
- UnkStruct_02013A04 * unk_28;
+ ResourceMetadata * unk_28;
UnkStruct_ov23_02248D20 * unk_2C;
UnkStruct_0200112C * unk_30;
Strbuf* unk_34;
diff --git a/src/overlay026/ov26_022561C0.c b/src/overlay026/ov26_022561C0.c
index 800ad15b51..aaaebef433 100644
--- a/src/overlay026/ov26_022561C0.c
+++ b/src/overlay026/ov26_022561C0.c
@@ -12,7 +12,7 @@
#include "overlay026/struct_ov26_02256404_1.h"
#include "unk_0200D9E8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "overlay025/ov25_02253CE0.h"
#include "overlay025/ov25_02255ACC.h"
@@ -85,7 +85,7 @@ static BOOL ov26_0225621C (UnkStruct_ov26_0225621C * param0, UnkStruct_ov25_0225
param0->unk_07 = 0;
param0->unk_14.unk_0C = 0;
- sub_02013880(&(param0->unk_14.unk_00));
+ GetCurrentTime(&(param0->unk_14.unk_00));
if (param0->unk_14.unk_00.hour >= 24) {
param0->unk_14.unk_00.hour %= 24;
@@ -203,7 +203,7 @@ static BOOL ov26_02256370 (UnkStruct_ov26_0225621C * param0)
if (ov26_022564CC(param0->unk_24, 1)) {
param0->unk_06 = param0->unk_14.unk_00.minute;
param0->unk_05 = param0->unk_14.unk_00.hour;
- sub_02013880(&(param0->unk_14.unk_00));
+ GetCurrentTime(&(param0->unk_14.unk_00));
if ((param0->unk_06 != param0->unk_14.unk_00.minute) || (param0->unk_05 != param0->unk_14.unk_00.hour)) {
ov26_022564A8(param0->unk_24, 1);
diff --git a/src/overlay030/ov30_022561C0.c b/src/overlay030/ov30_022561C0.c
index 886ec8a1d1..2b60bd750f 100644
--- a/src/overlay030/ov30_022561C0.c
+++ b/src/overlay030/ov30_022561C0.c
@@ -12,7 +12,7 @@
#include "overlay030/struct_ov30_022563EC_1.h"
#include "unk_0200D9E8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "overlay025/ov25_02253CE0.h"
#include "overlay025/ov25_02255ACC.h"
@@ -84,7 +84,7 @@ static BOOL ov30_0225621C (UnkStruct_ov30_0225621C * param0, UnkStruct_ov25_0225
param0->unk_06 = 0;
param0->unk_14.unk_0C = 0;
- sub_02013880(&(param0->unk_14.unk_00));
+ GetCurrentTime(&(param0->unk_14.unk_00));
if (param0->unk_14.unk_00.hour >= 24) {
param0->unk_14.unk_00.hour %= 24;
@@ -201,7 +201,7 @@ static BOOL ov30_02256364 (UnkStruct_ov30_0225621C * param0)
if (ov30_02256488(param0->unk_24, 1)) {
param0->unk_05 = param0->unk_14.unk_00.minute;
- sub_02013880(&(param0->unk_14.unk_00));
+ GetCurrentTime(&(param0->unk_14.unk_00));
if (param0->unk_05 != param0->unk_14.unk_00.minute) {
ov30_02256464(param0->unk_24, 1);
diff --git a/src/overlay045/ov45_022561C0.c b/src/overlay045/ov45_022561C0.c
index a58785a8fe..2e13d3fe68 100644
--- a/src/overlay045/ov45_022561C0.c
+++ b/src/overlay045/ov45_022561C0.c
@@ -13,7 +13,7 @@
#include "overlay045/struct_ov45_022566EC_1.h"
#include "unk_0200D9E8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_02056720.h"
#include "overlay025/ov25_02253CE0.h"
@@ -127,7 +127,7 @@ static void ov45_022562C0 (UnkStruct_ov45_022566EC_1 * param0)
{
RTCTime v0;
- sub_02013880(&v0);
+ GetCurrentTime(&v0);
if (v0.hour >= 24) {
v0.hour %= 24;
@@ -398,7 +398,7 @@ static BOOL ov45_02256664 (UnkStruct_ov45_022561D4 * param0)
static void ov45_02256668 (UnkStruct_ov45_022561D4 * param0)
{
if (param0->unk_2C == 0) {
- sub_02013880(&(param0->unk_20));
+ GetCurrentTime(&(param0->unk_20));
param0->unk_30 = 1;
}
}
diff --git a/src/overlay050/ov50_022561C0.c b/src/overlay050/ov50_022561C0.c
index 876b629f69..1ef5f661b9 100644
--- a/src/overlay050/ov50_022561C0.c
+++ b/src/overlay050/ov50_022561C0.c
@@ -13,7 +13,7 @@
#include "overlay050/struct_ov50_02256510_1.h"
#include "unk_0200D9E8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_02056720.h"
#include "overlay025/ov25_02253CE0.h"
@@ -115,7 +115,7 @@ static BOOL ov50_0225621C (UnkStruct_ov50_022561D4 * param0, UnkStruct_ov25_0225
};
RTCDate v1;
- sub_020138A4(&v1);
+ GetCurrentDate(&v1);
param0->unk_98 = ov25_02254540(param1);
ov50_022562AC(&(param0->unk_04), param0, &v1);
diff --git a/src/overlay056/ov56_022561C0.c b/src/overlay056/ov56_022561C0.c
index c6d6c18468..9c2700a5ff 100644
--- a/src/overlay056/ov56_022561C0.c
+++ b/src/overlay056/ov56_022561C0.c
@@ -87,12 +87,12 @@ struct UnkStruct_ov56_02256468_t {
MessageLoader * unk_1C;
u16 * unk_20;
NNSG2dScreenData * unk_24;
- UnkStruct_020218BC * unk_28;
+ GraphicElementManager * unk_28;
UnkStruct_0200C738 unk_2C;
UnkStruct_02009714 * unk_1B8[4];
UnkStruct_02009DC8 * unk_1C8[4];
UnkStruct_ov19_021DA864 unk_1D8;
- UnkStruct_02022550 * unk_1FC[8];
+ GraphicElementData * unk_1FC[8];
int unk_21C;
int unk_220;
int unk_224;
@@ -123,7 +123,7 @@ static void ov56_022568E0(UnkStruct_ov56_02256468 * param0);
static void ov56_022567FC(UnkStruct_ov56_02256468 * param0, int param1, UnkStruct_0205C924 * param2);
static void ov56_02256D04(UnkStruct_ov56_02256468 * param0);
static void ov56_022569E0(UnkStruct_ov56_02256468 * param0);
-static void ov56_02256994(UnkStruct_02022550 * param0, int param1);
+static void ov56_02256994(GraphicElementData * param0, int param1);
static void ov56_02257098(UnkStruct_ov56_02256468 * param0);
static void ov56_02256EE8(UnkStruct_ov56_02256468 * param0, u32 param1, Sentence * param2, TrainerInfo * param3);
static int ov56_02256FC8(UnkStruct_ov56_02256468 * param0, Sentence * param1, int param2);
@@ -534,7 +534,7 @@ static const UnkUnion_02022594 Unk_ov56_02257250[] = {
{0xff, 0x0, 0x0, 0x0}
};
-static void ov56_02256994 (UnkStruct_02022550 * param0, int param1)
+static void ov56_02256994 (GraphicElementData * param0, int param1)
{
VecFx32 v0;
diff --git a/src/overlay057/ov57_021D0D80.c b/src/overlay057/ov57_021D0D80.c
index 27a3d2c0d5..c9e52197dd 100644
--- a/src/overlay057/ov57_021D0D80.c
+++ b/src/overlay057/ov57_021D0D80.c
@@ -72,7 +72,7 @@ const UnkStruct_0208BE5C Unk_ov57_021D0F70 = {
static int ov57_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
{
Heap_Create(3, 77, 131072);
- sub_02001028();
+ InitRNG();
return 1;
}
@@ -96,7 +96,7 @@ static int ov57_021D0DAC (UnkStruct_020067E8 * param0, int * param1)
static int ov57_021D0DC8 (UnkStruct_020067E8 * param0, int * param1)
{
Heap_Create(3, 77, 131072);
- sub_02001028();
+ InitRNG();
return 1;
}
@@ -121,7 +121,7 @@ static int ov57_021D0E00 (UnkStruct_020067E8 * param0, int * param1)
static int ov57_021D0E1C (UnkStruct_020067E8 * param0, int * param1)
{
Heap_Create(3, 77, 131072);
- sub_02001028();
+ InitRNG();
return 1;
}
diff --git a/src/overlay058/ov58_021D0D80.c b/src/overlay058/ov58_021D0D80.c
index 546f06a9b6..7477c851e7 100644
--- a/src/overlay058/ov58_021D0D80.c
+++ b/src/overlay058/ov58_021D0D80.c
@@ -86,7 +86,7 @@ static void ov58_021D1554(UnkStruct_02095EAC * param0, NARC * param1);
static void ov58_021D16D8(UnkStruct_02095EAC * param0);
static void ov58_021D18AC(UnkStruct_02095EAC * param0, UnkStruct_020067E8 * param1);
static void ov58_021D19D4(UnkStruct_02095EAC * param0);
-static void ov58_021D1A10(UnkStruct_02022550 * param0, int param1, int param2);
+static void ov58_021D1A10(GraphicElementData * param0, int param1, int param2);
static void ov58_021D1A80(UnkStruct_02095EAC * param0);
static int ov58_021D1CF4(UnkStruct_02095EAC * param0, int param1);
static void ov58_021D1D40(UnkStruct_02095EAC * param0);
@@ -124,8 +124,8 @@ static int ov58_021D2A30(void);
static int ov58_021D1DBC(UnkStruct_02095EAC * param0, int param1);
static int ov58_021D1D64(UnkStruct_02095EAC * param0, int param1);
static int ov58_021D1DC8(UnkStruct_02095EAC * param0, int param1);
-static void ov58_021D1CAC(UnkStruct_02022550 ** param0, int param1);
-static void ov58_021D1CDC(UnkStruct_02022550 ** param0, BOOL param1);
+static void ov58_021D1CAC(GraphicElementData ** param0, int param1);
+static void ov58_021D1CDC(GraphicElementData ** param0, BOOL param1);
static void ov58_021D2528(Window * param0, void * param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9);
static void ov58_021D2B3C(UnkStruct_02095EAC * param0, int param1);
static int ov58_021D2B5C(UnkStruct_02095EAC * param0);
@@ -171,8 +171,8 @@ int ov58_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -208,7 +208,7 @@ int ov58_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
sub_0201E3D8();
sub_0201E450(2);
- sub_02017798(ov58_021D115C, v0->unk_00);
+ SetMainCallback(ov58_021D115C, v0->unk_00);
ov58_021D12C4(v0);
ov58_021D1524();
@@ -319,7 +319,7 @@ int ov58_021D1018 (UnkStruct_020067E8 * param0, int * param1)
v3 = sub_0202C168(39);
sub_0202B758(v1->unk_04, v3, 4);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_0200A4E4(v0->unk_1D4[0][0]);
sub_0200A4E4(v0->unk_1D4[1][0]);
sub_0200A6DC(v0->unk_1D4[0][1]);
@@ -369,7 +369,7 @@ int ov58_021D1018 (UnkStruct_020067E8 * param0, int * param1)
Heap_FreeToHeap(v0->unk_08);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(39);
sub_02037B58(2);
@@ -775,7 +775,7 @@ static void ov58_021D19D4 (UnkStruct_02095EAC * param0)
BGL_DeleteWindow(¶m0->unk_33C);
}
-static void ov58_021D1A10 (UnkStruct_02022550 * param0, int param1, int param2)
+static void ov58_021D1A10 (GraphicElementData * param0, int param1, int param2)
{
VecFx32 v0;
@@ -908,7 +908,7 @@ static void ov58_021D1A80 (UnkStruct_02095EAC * param0)
}
}
-static void ov58_021D1CAC (UnkStruct_02022550 ** param0, int param1)
+static void ov58_021D1CAC (GraphicElementData ** param0, int param1)
{
int v0;
@@ -921,7 +921,7 @@ static void ov58_021D1CAC (UnkStruct_02022550 ** param0, int param1)
}
}
-static void ov58_021D1CDC (UnkStruct_02022550 ** param0, BOOL param1)
+static void ov58_021D1CDC (GraphicElementData ** param0, BOOL param1)
{
if (param1 == 1) {
sub_02021D6C(param0[8], Unk_ov58_021D2EEC[8][2] + 1);
diff --git a/src/overlay059/ov59_021D0D80.c b/src/overlay059/ov59_021D0D80.c
index 8d40ab7da2..ae44f92506 100644
--- a/src/overlay059/ov59_021D0D80.c
+++ b/src/overlay059/ov59_021D0D80.c
@@ -175,8 +175,8 @@ int ov59_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -206,7 +206,7 @@ int ov59_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
sub_0200F174(0, 17, 17, 0x0, 16, 1, 51);
ov59_021D1388(v0, v1);
- sub_02017798(ov59_021D1100, v0);
+ SetMainCallback(ov59_021D1100, v0);
ov59_021D1250(v0, v1);
ov59_021D1474();
@@ -330,7 +330,7 @@ int ov59_021D0FF4 (UnkStruct_020067E8 * param0, int * param1)
GX_SetDispSelect(GX_DISP_SELECT_MAIN_SUB);
sub_0205BEA8(0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(51);
return 1;
@@ -1090,7 +1090,7 @@ static int ov59_021D1DC8 (UnkStruct_020961E8 * param0, int param1)
{
void * v0;
- gCoreSys.unk_68 = 1;
+ gCoreSys.inhibitReset = 1;
v0 = sub_0202C1B4(51);
sub_0202B758(param0->unk_08->unk_10, v0, 4);
@@ -1115,7 +1115,7 @@ static int ov59_021D1E0C (UnkStruct_020961E8 * param0, int param1)
param0->unk_0C.unk_00 = 0;
param0->unk_3B4 = 0;
- gCoreSys.unk_68 = 0;
+ gCoreSys.inhibitReset = 0;
param0->unk_4AA4 = 0;
}
diff --git a/src/overlay061/ov61_0222BF44.c b/src/overlay061/ov61_0222BF44.c
index 33219d89c6..c3fdd4230a 100644
--- a/src/overlay061/ov61_0222BF44.c
+++ b/src/overlay061/ov61_0222BF44.c
@@ -77,13 +77,13 @@ typedef struct {
Window unk_54;
Window unk_64;
Window unk_74;
- UnkStruct_02001AF4 * unk_84;
+ UIControlData * unk_84;
void * unk_88;
int unk_8C;
int unk_90;
int unk_94;
int unk_98;
- UnkStruct_02013A04 * unk_9C;
+ ResourceMetadata * unk_9C;
UnkStruct_0200112C * unk_A0;
UnkStruct_ov61_0222C3B0 unk_A4;
} UnkStruct_ov61_0222C664;
@@ -104,7 +104,7 @@ static void ov61_0222C7F8(UnkStruct_ov61_0222C664 * param0, int param1, int para
static int ov61_0222C834(int param0);
static void ov61_0222C850(UnkStruct_ov61_0222C664 * param0);
static void ov61_0222C86C(UnkStruct_ov61_0222C664 * param0);
-static UnkStruct_02001AF4 * ov61_0222C884(BGL * param0, int param1, int param2);
+static UIControlData * ov61_0222C884(BGL * param0, int param1, int param2);
static void ov61_0222C8B8(UnkStruct_ov61_0222C664 * param0, MessageLoader * param1, int param2, int param3, u16 param4);
static void ov61_0222C920(UnkStruct_ov61_0222C664 * param0, int param1, int param2);
static BOOL ov61_0222C928(int param0, int param1);
@@ -153,8 +153,8 @@ int ov61_0222BF44 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov61_0222C664 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -202,7 +202,7 @@ int ov61_0222BF44 (UnkStruct_020067E8 * param0, int * param1)
sub_02002AC8(1);
sub_02002AE4(0);
sub_02002B20(0);
- sub_02017798(ov61_0222C1FC, v0);
+ SetMainCallback(ov61_0222C1FC, v0);
if (v0->unk_00->unk_10) {
sub_02039734();
@@ -271,8 +271,8 @@ int ov61_0222C160 (UnkStruct_020067E8 * param0, int * param1)
ov61_0222C70C(v0);
Heap_FreeToHeap(v0->unk_04);
ov61_0222C38C(v0->unk_04);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0201DC3C();
sub_0201E530();
sub_02002AC8(0);
@@ -560,7 +560,7 @@ static void ov61_0222C86C (UnkStruct_ov61_0222C664 * param0)
}
}
-static UnkStruct_02001AF4 * ov61_0222C884 (BGL * param0, int param1, int param2)
+static UIControlData * ov61_0222C884 (BGL * param0, int param1, int param2)
{
UnkStruct_ov61_0222C884 v0;
diff --git a/src/overlay062/ov62_0222F2C0.c b/src/overlay062/ov62_0222F2C0.c
index 422f9f43ef..5f31385e3d 100644
--- a/src/overlay062/ov62_0222F2C0.c
+++ b/src/overlay062/ov62_0222F2C0.c
@@ -52,8 +52,8 @@ static void ov62_0222F848(UnkStruct_0208C06C * param0);
void ov62_0222F2C0 (UnkStruct_0208C06C * param0)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
GX_SetVisiblePlane(0);
@@ -86,7 +86,7 @@ void ov62_0222F2C0 (UnkStruct_0208C06C * param0)
sub_02002B20(1);
}
- sub_02017798(ov62_0222F8E4, param0);
+ SetMainCallback(ov62_0222F8E4, param0);
if (param0->unk_00 != 0) {
ov62_02241130(param0);
@@ -212,7 +212,7 @@ void ov62_0222F514 (UnkStruct_0208C06C * param0)
ov62_022411EC(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_0201DC3C();
}
diff --git a/src/overlay062/ov62_022300D8.c b/src/overlay062/ov62_022300D8.c
index f74bca24d3..7a12cf4757 100644
--- a/src/overlay062/ov62_022300D8.c
+++ b/src/overlay062/ov62_022300D8.c
@@ -50,8 +50,8 @@ void ov62_022300D8 (UnkStruct_0208C06C * param0)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
if (param0->unk_00 == 0) {
@@ -81,8 +81,8 @@ void ov62_022302A8 (UnkStruct_0208C06C * param0, int param1, BOOL param2)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
int v5 = 2;
@@ -98,8 +98,8 @@ void ov62_022302F0 (UnkStruct_0208C06C * param0, int param1)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
int v5 = 1;
@@ -111,8 +111,8 @@ void ov62_02230330 (UnkStruct_0208C06C * param0)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
if (param0->unk_00 == 0) {
@@ -134,8 +134,8 @@ void ov62_02230330 (UnkStruct_0208C06C * param0)
void ov62_02230464 (UnkStruct_0208C06C * param0)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v2 = param0->unk_14.unk_08;
+ CellTransferStateData * v1 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v2 = param0->unk_14.unk_08;
PaletteSys * v3 = param0->unk_14.unk_14;
v0.unk_00 = 0;
@@ -256,8 +256,8 @@ void ov62_022306B8 (UnkStruct_0208C06C * param0)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
int v5;
int v6;
@@ -353,8 +353,8 @@ void ov62_0223088C (UnkStruct_0208C06C * param0)
int v0;
UnkStruct_ov62_022307C0 * v1 = ¶m0->unk_534;
UnkStruct_ov104_0223F9E0 v2;
- UnkStruct_0200C6E4 * v3 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v4 = param0->unk_14.unk_08;
+ CellTransferStateData * v3 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v4 = param0->unk_14.unk_08;
PaletteSys * v5 = param0->unk_14.unk_14;
v2.unk_00 = 42;
@@ -825,8 +825,8 @@ void ov62_022312CC (UnkStruct_0208C06C * param0, int param1)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
sub_0200CC3C(v2, v3, v0, 49, 0, param1, 11924);
@@ -838,8 +838,8 @@ void ov62_0223131C (UnkStruct_0208C06C * param0, int param1)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
sub_0200CC3C(v2, v3, v0, 122, 0, param1, 11924);
@@ -851,8 +851,8 @@ void ov62_0223136C (UnkStruct_0208C06C * param0, int param1)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
int v5 = 30;
int v6 = 32;
diff --git a/src/overlay062/ov62_02231690.c b/src/overlay062/ov62_02231690.c
index 9bef31e065..31c8ad8cb3 100644
--- a/src/overlay062/ov62_02231690.c
+++ b/src/overlay062/ov62_02231690.c
@@ -138,8 +138,8 @@ int ov62_02231710 (UnkStruct_0208C06C * param0, int param1)
void ov62_022317CC (UnkStruct_0208C06C * param0, int param1)
{
PaletteSys * v0 = param0->unk_14.unk_14;
- UnkStruct_0200C6E4 * v1 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v2 = param0->unk_14.unk_08;
+ CellTransferStateData * v1 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v2 = param0->unk_14.unk_08;
NARC * v3 = param0->unk_14.unk_00;
PaletteSys_LoadPalette(v0, 162, ov62_02231710(param0, 3), 102, 0, 0x20 * (8 + 1), 0);
@@ -832,8 +832,8 @@ static void ov62_022320EC (UnkStruct_ov62_022323B8 * param0, UnkStruct_0208C06C
int v2;
int v3;
u8 v4;
- UnkStruct_0200C6E4 * v5;
- UnkStruct_0200C704 * v6;
+ CellTransferStateData * v5;
+ AnimationResourceCollection * v6;
PaletteSys * v7;
UnkStruct_ov104_0223F9E0 v8;
@@ -948,8 +948,8 @@ int ov62_02232234 (int param0, int param1)
static void ov62_0223226C (UnkStruct_ov62_022323B8 * param0, UnkStruct_0208C06C * param1)
{
int v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
UnkStruct_ov104_0223F9E0 v4;
int v5 = 13;
@@ -2251,8 +2251,8 @@ void ov62_0223331C (UnkStruct_ov62_02233310 * param0, UnkStruct_0208C06C * param
UnkStruct_ov104_0223F9E0 v1;
NARC * v2 = param1->unk_14.unk_00;
BGL * v3 = param1->unk_14.unk_10;
- UnkStruct_0200C6E4 * v4 = param1->unk_14.unk_04;
- UnkStruct_0200C704 * v5 = param1->unk_14.unk_08;
+ CellTransferStateData * v4 = param1->unk_14.unk_04;
+ AnimationResourceCollection * v5 = param1->unk_14.unk_08;
PaletteSys * v6 = param1->unk_14.unk_14;
sub_0200CC3C(v4, v5, v2, 127, 0, param2, 200000);
@@ -2693,8 +2693,8 @@ void ov62_022339A0 (UnkStruct_0208C06C * param0)
void ov62_022339DC (UnkStruct_0208C06C * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
PaletteSys * v2;
v0 = param0->unk_14.unk_04;
@@ -2729,8 +2729,8 @@ void ov62_02233A74 (NARC * param0)
CellActorData * ov62_02233A7C (UnkStruct_0208C06C * param0, NARC * param1, int param2, int param3, int param4, int param5)
{
CellActorData * v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
UnkStruct_ov104_0223F9E0 v4;
int v5;
@@ -3012,8 +3012,8 @@ static void ov62_02234000 (UnkStruct_ov62_02233F74 * param0, UnkStruct_0208C06C
int v7[12];
int v8[12];
int v9;
- UnkStruct_0200C6E4 * v10;
- UnkStruct_0200C704 * v11;
+ CellTransferStateData * v10;
+ AnimationResourceCollection * v11;
PaletteSys * v12;
s16 v13[][12][2] = {
{
diff --git a/src/overlay062/ov62_02236CBC.c b/src/overlay062/ov62_02236CBC.c
index cc301530e6..95782e4fa6 100644
--- a/src/overlay062/ov62_02236CBC.c
+++ b/src/overlay062/ov62_02236CBC.c
@@ -89,8 +89,8 @@ static void ov62_02236CF8 (UnkStruct_0208C06C * param0, int param1)
{
NARC * v0 = param0->unk_14.unk_00;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
sub_0200CC3C(v2, v3, v0, 50, 0, param1, 11924);
@@ -137,8 +137,8 @@ static void ov62_02236E14 (UnkStruct_0208C06C * param0)
UnkStruct_ov62_02236CBC * v0 = param0->unk_860;
NARC * v1 = param0->unk_14.unk_00;
BGL * v2 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v3 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v4 = param0->unk_14.unk_08;
+ CellTransferStateData * v3 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v4 = param0->unk_14.unk_08;
PaletteSys * v5 = param0->unk_14.unk_14;
sub_020070E8(param0->unk_14.unk_00, 62, param0->unk_14.unk_10, 6, 0, 0, 0, 102);
@@ -223,8 +223,8 @@ static void ov62_0223712C (UnkStruct_0208C06C * param0)
{
UnkStruct_ov62_02236CBC * v0 = param0->unk_860;
BGL * v1 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v2 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_14.unk_08;
+ CellTransferStateData * v2 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v3 = param0->unk_14.unk_08;
PaletteSys * v4 = param0->unk_14.unk_14;
int v5;
int v6[5];
@@ -264,8 +264,8 @@ static void ov62_022371CC (UnkStruct_0208C06C * param0)
int v3[5];
UnkStruct_ov62_02236CBC * v4 = param0->unk_860;
BGL * v5 = param0->unk_14.unk_10;
- UnkStruct_0200C6E4 * v6 = param0->unk_14.unk_04;
- UnkStruct_0200C704 * v7 = param0->unk_14.unk_08;
+ CellTransferStateData * v6 = param0->unk_14.unk_04;
+ AnimationResourceCollection * v7 = param0->unk_14.unk_08;
PaletteSys * v8 = param0->unk_14.unk_14;
UnkStruct_ov104_0223F9E0 v9;
diff --git a/src/overlay062/ov62_02237D24.c b/src/overlay062/ov62_02237D24.c
index 15c9ac4a3a..9f560ba124 100644
--- a/src/overlay062/ov62_02237D24.c
+++ b/src/overlay062/ov62_02237D24.c
@@ -308,7 +308,7 @@ static BOOL ov62_02237F08 (UnkStruct_0208C06C * param0)
ov62_02234540(param0, 0);
GXLayers_EngineAToggleLayers(GX_PLANEMASK_BG2, 0);
GXLayers_EngineAToggleLayers(GX_PLANEMASK_BG0, 0);
- sub_02017798(ov62_022394D8, param0);
+ SetMainCallback(ov62_022394D8, param0);
param0->unk_08++;
break;
case 1:
@@ -480,7 +480,7 @@ static BOOL ov62_022380B0 (UnkStruct_0208C06C * param0)
Heap_FreeToHeap(v0);
Overlay_UnloadByID(FS_OVERLAY_ID(overlay22));
- sub_02017798(ov62_0222F8E4, param0);
+ SetMainCallback(ov62_0222F8E4, param0);
} else {
sub_02003A2C(param0->unk_14.unk_14, 1, 0x2, v0->unk_08, param0->unk_14.unk_44);
sub_02003A2C(param0->unk_14.unk_14, 3, 0xC, v0->unk_08, param0->unk_14.unk_44);
@@ -569,7 +569,7 @@ static BOOL ov62_022383E4 (UnkStruct_0208C06C * param0)
Heap_FreeToHeap(v0);
Overlay_UnloadByID(FS_OVERLAY_ID(overlay22));
- sub_02017798(ov62_0222F8E4, param0);
+ SetMainCallback(ov62_0222F8E4, param0);
} else {
sub_02003A2C(param0->unk_14.unk_14, 1, 0x2, v0->unk_08, param0->unk_14.unk_44);
sub_02003A2C(param0->unk_14.unk_14, 3, 0xC, v0->unk_08, param0->unk_14.unk_44);
@@ -819,7 +819,7 @@ static BOOL ov62_0223896C (UnkStruct_0208C06C * param0)
Heap_FreeToHeap(v0);
Overlay_UnloadByID(FS_OVERLAY_ID(overlay22));
- sub_02017798(ov62_0222F8E4, param0);
+ SetMainCallback(ov62_0222F8E4, param0);
} else {
sub_02003A2C(param0->unk_14.unk_14, 1, 0x2, v0->unk_08, param0->unk_14.unk_44);
sub_02003A2C(param0->unk_14.unk_14, 3, 0xC, v0->unk_08, param0->unk_14.unk_44);
@@ -922,7 +922,7 @@ static BOOL ov62_02238D04 (UnkStruct_0208C06C * param0)
GXLayers_EngineAToggleLayers(GX_PLANEMASK_BG3, 1);
GXLayers_EngineAToggleLayers(GX_PLANEMASK_BG2, 0);
GXLayers_EngineAToggleLayers(GX_PLANEMASK_BG0, 0);
- sub_02017798(ov62_022394D8, param0);
+ SetMainCallback(ov62_022394D8, param0);
param0->unk_08++;
break;
case 1:
diff --git a/src/overlay062/ov62_02239D60.c b/src/overlay062/ov62_02239D60.c
index 7fb347cecb..12646e5778 100644
--- a/src/overlay062/ov62_02239D60.c
+++ b/src/overlay062/ov62_02239D60.c
@@ -1073,8 +1073,8 @@ static void ov62_0223ADC0 (UnkStruct_0208C06C * param0, int param1)
static void ov62_0223AE60 (UnkStruct_0208C06C * param0)
{
UnkStruct_ov62_02239DBC * v0 = param0->unk_860;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
UnkStruct_ov104_0223F9E0 v4;
diff --git a/src/overlay062/ov62_02246B00.c b/src/overlay062/ov62_02246B00.c
index d24d7d5b52..b81aeadc8d 100644
--- a/src/overlay062/ov62_02246B00.c
+++ b/src/overlay062/ov62_02246B00.c
@@ -27,7 +27,7 @@
static inline void inline_ov62_02247CE0(UnkStruct_ov62_02246BF4 * param0, int param1, s16 param2, s16 param3);
-UnkStruct_ov62_02246B00 * ov62_02246B00 (int param0, int param1, int param2[], UnkStruct_020279FC * param3)
+UnkStruct_ov62_02246B00 * ov62_02246B00 (int param0, int param1, int param2[], AnimationControlFlags * param3)
{
int v0;
UnkStruct_ov62_02246B00 * v1 = NULL;
@@ -585,8 +585,8 @@ void ov62_02247574 (UnkStruct_ov62_02246BF4 * param0)
{
NARC * v0;
BGL * v1;
- UnkStruct_0200C6E4 * v2;
- UnkStruct_0200C704 * v3;
+ CellTransferStateData * v2;
+ AnimationResourceCollection * v3;
PaletteSys * v4;
v2 = param0->unk_220.unk_04;
@@ -639,8 +639,8 @@ void ov62_02247754 (UnkStruct_ov62_02246BF4 * param0)
int v1 = 0;
int v2 = 0;
UnkStruct_ov104_0223F9E0 v3;
- UnkStruct_0200C6E4 * v4;
- UnkStruct_0200C704 * v5;
+ CellTransferStateData * v4;
+ AnimationResourceCollection * v5;
PaletteSys * v6;
v4 = param0->unk_220.unk_04;
@@ -684,8 +684,8 @@ void ov62_02247754 (UnkStruct_ov62_02246BF4 * param0)
void ov62_0224784C (UnkStruct_ov62_02246BF4 * param0)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
v1 = param0->unk_220.unk_04;
diff --git a/src/overlay062/ov62_02248408.c b/src/overlay062/ov62_02248408.c
index 6453e249a8..e521366081 100644
--- a/src/overlay062/ov62_02248408.c
+++ b/src/overlay062/ov62_02248408.c
@@ -167,7 +167,7 @@ int ov62_022486A4 (SaveData * param0, int param1)
Unk_021C07A4->unk_84.unk_60.unk_00 = sub_0202486C(param0, &Unk_021C07A4->unk_84, sizeof(UnkStruct_0202F41C) - (sizeof(UnkStruct_0202F298_sub1)) - (sizeof(u64)));
sub_0202F858(&Unk_021C07A4->unk_E8, sizeof(UnkStruct_0202F298) - (sizeof(UnkStruct_0202F298_sub1)), Unk_021C07A4->unk_E8.unk_1BEC.unk_00 + ((Unk_021C07A4->unk_E8.unk_1BEC.unk_00 ^ 0xffff) << 16));
- sub_02017DE0(8);
+ ResetLock(8);
v0 = SaveData_SaveBattleRecording(param0, Unk_021C07A4, param1);
@@ -175,6 +175,6 @@ int ov62_022486A4 (SaveData * param0, int param1)
v0 = sub_020246E0(param0);
}
- sub_02017DF0(8);
+ ResetUnlock(8);
return v0;
}
diff --git a/src/overlay063/ov63_0222AE60.c b/src/overlay063/ov63_0222AE60.c
index b9137ac6d0..d16207bb63 100644
--- a/src/overlay063/ov63_0222AE60.c
+++ b/src/overlay063/ov63_0222AE60.c
@@ -35,8 +35,8 @@ typedef struct {
typedef struct UnkStruct_ov63_0222BB38_t {
const UnkStruct_ov63_0222BB38_sub1 * unk_00;
- UnkStruct_02022550 * unk_04;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_04;
+ GraphicElementData * unk_08;
int unk_0C;
int unk_10;
s16 unk_14;
@@ -49,7 +49,7 @@ typedef struct {
} UnkStruct_ov63_0222B96C;
typedef struct UnkStruct_ov63_0222AE60_t {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
PaletteSys * unk_04;
UnkStruct_ov63_0222BB38 * unk_08;
u32 unk_0C;
@@ -302,7 +302,7 @@ static const u8 Unk_ov63_0222D904[10] = {
0x0
};
-UnkStruct_ov63_0222AE60 * ov63_0222AE60 (UnkStruct_020218BC * param0, PaletteSys * param1, u32 param2, u32 param3)
+UnkStruct_ov63_0222AE60 * ov63_0222AE60 (GraphicElementManager * param0, PaletteSys * param1, u32 param2, u32 param3)
{
UnkStruct_ov63_0222AE60 * v0;
int v1;
@@ -521,7 +521,7 @@ void ov63_0222B210 (UnkStruct_ov63_0222BB38 * param0)
memset(param0, 0, sizeof(UnkStruct_ov63_0222BB38));
}
-const UnkStruct_02022550 * ov63_0222B234 (const UnkStruct_ov63_0222BB38 * param0)
+const GraphicElementData * ov63_0222B234 (const UnkStruct_ov63_0222BB38 * param0)
{
return param0->unk_04;
}
diff --git a/src/overlay063/ov63_0222CCE4.c b/src/overlay063/ov63_0222CCE4.c
index d320b7f697..beb63e5ba2 100644
--- a/src/overlay063/ov63_0222CCE4.c
+++ b/src/overlay063/ov63_0222CCE4.c
@@ -23,7 +23,7 @@ static int ov63_0222D0C4(const UnkStruct_ov63_0222BB38 * param0, int param1);
static void ov63_0222D0E0(const UnkStruct_ov63_0222CE44 * param0, s16 * param1, s16 * param2);
static void ov63_0222D110(UnkStruct_ov63_0222CE44 * param0, int param1, int param2);
-UnkStruct_ov63_0222CD2C * ov63_0222CCE4 (UnkStruct_020218BC * param0, PaletteSys * param1, u32 param2, u32 param3, u32 param4)
+UnkStruct_ov63_0222CD2C * ov63_0222CCE4 (GraphicElementManager * param0, PaletteSys * param1, u32 param2, u32 param3, u32 param4)
{
UnkStruct_ov63_0222CD2C * v0;
@@ -40,7 +40,7 @@ UnkStruct_ov63_0222CD2C * ov63_0222CCE4 (UnkStruct_020218BC * param0, PaletteSys
return v0;
}
-UnkStruct_ov63_0222CD2C * ov63_0222CD2C (UnkStruct_020218BC * param0, PaletteSys * param1, u32 param2, u32 param3, int param4, u32 param5, u32 param6)
+UnkStruct_ov63_0222CD2C * ov63_0222CD2C (GraphicElementManager * param0, PaletteSys * param1, u32 param2, u32 param3, int param4, u32 param5, u32 param6)
{
UnkStruct_ov63_0222CD2C * v0;
diff --git a/src/overlay064/ov64_0222DCE0.c b/src/overlay064/ov64_0222DCE0.c
index c7b250bf15..c1b861184b 100644
--- a/src/overlay064/ov64_0222DCE0.c
+++ b/src/overlay064/ov64_0222DCE0.c
@@ -140,7 +140,7 @@ typedef struct {
typedef struct {
BGL * unk_00;
- UnkStruct_020218BC * unk_04;
+ GraphicElementManager * unk_04;
NNSG2dRenderSurface unk_08;
UnkStruct_0200C738 unk_78;
UnkStruct_02009714 * unk_204[4];
@@ -153,7 +153,7 @@ typedef struct {
u32 unk_238;
UnkStruct_ov19_021DA864 unk_23C;
UnkStruct_02009DC8 * unk_260[4];
- UnkStruct_02022550 * unk_270[2];
+ GraphicElementData * unk_270[2];
UnkStruct_ov64_022300E4 unk_278;
} UnkStruct_ov64_0222E21C;
@@ -163,7 +163,7 @@ typedef struct {
void * unk_14;
NNSG2dScreenData * unk_18;
Window unk_1C;
- UnkStruct_02001AF4 * unk_2C;
+ UIControlData * unk_2C;
u32 unk_30;
u32 unk_34;
Strbuf* unk_38;
@@ -195,11 +195,11 @@ typedef struct {
u32 unk_D8;
u32 unk_DC;
Window unk_E0;
- UnkStruct_02013A04 * unk_F0[2];
+ ResourceMetadata * unk_F0[2];
UnkStruct_0200112C * unk_F8;
- UnkStruct_02001AF4 * unk_FC;
+ UIControlData * unk_FC;
s32 unk_100;
- UnkStruct_02022550 * unk_104;
+ GraphicElementData * unk_104;
u32 unk_108;
} UnkStruct_ov64_0222F0C4;
@@ -662,8 +662,8 @@ int ov64_0222DCE0 (UnkStruct_020067E8 * param0, int * param1)
ov64_02230620(&v0->unk_41C, &v0->unk_28C, &v0->unk_04, 52);
ov64_022308DC(&v0->unk_444, &v0->unk_28C, &v0->unk_04, 52);
- sub_02017798(ov64_0222DF3C, v0);
- sub_020177A4();
+ SetMainCallback(ov64_0222DF3C, v0);
+ DisableHBlank();
return 1;
}
@@ -721,8 +721,8 @@ int ov64_0222DEA4 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov64_0222DFD0 * v0 = sub_0200682C(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
ov64_0222EC8C(&v0->unk_2C8, &v0->unk_28C, &v0->unk_04);
ov64_0222F40C(&v0->unk_304, &v0->unk_28C, &v0->unk_04);
@@ -756,14 +756,14 @@ static void ov64_0222DF48 (UnkStruct_ov64_0222DFD0 * param0, u32 param1)
ov64_02230680(¶m0->unk_41C, ¶m0->unk_28C, ¶m0->unk_04, param1);
ov64_02230B1C(¶m0->unk_444, ¶m0->unk_28C, ¶m0->unk_04, param1);
- sub_02017798(ov64_0222DF3C, param0);
- sub_020177A4();
+ SetMainCallback(ov64_0222DF3C, param0);
+ DisableHBlank();
}
static void ov64_0222DFD0 (UnkStruct_ov64_0222DFD0 * param0)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
ov64_0222EE00(¶m0->unk_2C8, ¶m0->unk_28C, ¶m0->unk_04);
ov64_0222F5F4(¶m0->unk_304, ¶m0->unk_28C, ¶m0->unk_04);
diff --git a/src/overlay065/ov65_0222DCE0.c b/src/overlay065/ov65_0222DCE0.c
index fbafa4c302..a47f298111 100644
--- a/src/overlay065/ov65_0222DCE0.c
+++ b/src/overlay065/ov65_0222DCE0.c
@@ -64,7 +64,7 @@
#include "unk_0200DA60.h"
#include "unk_0200F174.h"
#include "unk_02012744.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02013A04.h"
#include "unk_02017728.h"
#include "heap.h"
@@ -703,8 +703,8 @@ static void ov65_0222E01C (UnkStruct_ov65_0222EBE0 * param0)
{
NARC * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -726,7 +726,7 @@ static void ov65_0222E01C (UnkStruct_ov65_0222EBE0 * param0)
inline_ov61_0222C3B0(¶m0->unk_E2C, v0, 4, 54);
- sub_02017798(ov65_0222E5E0, param0);
+ SetMainCallback(ov65_0222E5E0, param0);
ov65_0222EDD0();
ov65_0222EE18(param0, v0);
@@ -861,7 +861,7 @@ static void ov65_0222E47C (UnkStruct_ov65_0222EBE0 * param0)
{
int v0;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
inline_ov61_0222C160(¶m0->unk_E2C);
@@ -3822,7 +3822,7 @@ static void ov65_02231A0C (void)
ov4_021D2584(0);
if (ov65_02231A54() == 0) {
- if (sub_02013948() == 0) {
+ if (IsNight() == 0) {
v0 = 1085;
} else {
v0 = 1086;
diff --git a/src/overlay065/ov65_0223648C.c b/src/overlay065/ov65_0223648C.c
index b4d109c272..af68aadf37 100644
--- a/src/overlay065/ov65_0223648C.c
+++ b/src/overlay065/ov65_0223648C.c
@@ -119,7 +119,7 @@ typedef struct {
u8 unk_14;
u8 unk_15;
u16 unk_16;
- UnkStruct_020218BC * unk_18;
+ GraphicElementManager * unk_18;
UnkStruct_0200C738 unk_1C;
UnkStruct_02009714 * unk_1A8[4];
UnkStruct_ov63_0222BE18 * unk_1B8;
@@ -130,7 +130,7 @@ typedef struct {
Window unk_210;
Window unk_220;
Window unk_230;
- UnkStruct_02001AF4 * unk_240;
+ UIControlData * unk_240;
void * unk_244;
NNSG2dScreenData * unk_248;
void * unk_24C;
@@ -434,7 +434,7 @@ int ov65_0223648C (UnkStruct_020067E8 * param0, int * param1)
ov65_0223760C(v0);
ov65_022367A8(v0, v1, 96);
- sub_02017798(ov65_02236780, v0);
+ SetMainCallback(ov65_02236780, v0);
sub_02039734();
v0->unk_00.unk_27 = 1;
@@ -514,7 +514,7 @@ int ov65_0223668C (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov65_022367A8 * v0 = sub_0200682C(param0);
UnkStruct_0207DE04 * v1 = sub_02006840(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov65_0223761C(v0);
ov65_022377E8(v0);
diff --git a/src/overlay066/ov66_0222DCE0.c b/src/overlay066/ov66_0222DCE0.c
index 4351fa7e4a..a52c6b764b 100644
--- a/src/overlay066/ov66_0222DCE0.c
+++ b/src/overlay066/ov66_0222DCE0.c
@@ -54,8 +54,8 @@ int ov66_0222DCE0 (UnkStruct_020067E8 * param0, int * param1)
v0->unk_04 = ov66_0222DDF0(v0->unk_00, 104);
v0->unk_08 = ov66_02230C44(v1->unk_08, v1->unk_04, v1->unk_00, v0->unk_04, 104);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
v0->unk_0C = sub_0200DA3C(ov66_0222DDDC, v0, 0);
@@ -88,8 +88,8 @@ int ov66_0222DD90 (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200682C(param0);
SysTask_Done(v0->unk_0C);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
ov66_02230C90(v0->unk_08);
ov66_0222DEEC(v0->unk_04);
diff --git a/src/overlay067/ov67_0225C700.c b/src/overlay067/ov67_0225C700.c
index 46cc590ceb..c29b0122ae 100644
--- a/src/overlay067/ov67_0225C700.c
+++ b/src/overlay067/ov67_0225C700.c
@@ -36,7 +36,7 @@
#include "unk_0200B358.h"
#include "unk_0200DA60.h"
#include "unk_0200F174.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02017728.h"
#include "heap.h"
#include "unk_02018340.h"
@@ -74,7 +74,7 @@ typedef struct {
UnkStruct_ov67_0225D210 unk_40;
UnkStruct_ov67_0225D210 unk_70;
UnkStruct_ov67_0225D210 unk_A0;
- UnkStruct_02001AF4 * unk_D0;
+ UIControlData * unk_D0;
UnkStruct_ov61_0222C3B0 unk_D4;
} UnkStruct_ov67_0225D154;
@@ -197,8 +197,8 @@ int ov67_0225C700 (UnkStruct_020067E8 * param0, int * param1)
ov67_0225D188(&v0->unk_10, v0->unk_0C, 1, 674, 5, 1, 22, 2, (((((((((1 + (18 + 12)) + 9)) + (27 * 4))) + (23 * 16))) + (6 * 4))), v0->unk_00, 112);
ov67_0225D37C(&v0->unk_10, 21);
- sub_02017798(ov67_0225CE28, v0);
- sub_020177A4();
+ SetMainCallback(ov67_0225CE28, v0);
+ DisableHBlank();
return 1;
}
@@ -286,7 +286,7 @@ int ov67_0225C820 (UnkStruct_020067E8 * param0, int * param1)
}
{
- v1->unk_0C->unk_00 = sub_020138EC();
+ v1->unk_0C->unk_00 = GetTimestamp();
}
v1->unk_10 = 1;
@@ -403,8 +403,8 @@ int ov67_0225CB1C (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200682C(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
inline_ov61_0222C160(&v0->unk_D4);
@@ -442,8 +442,8 @@ int ov67_0225CB8C (UnkStruct_020067E8 * param0, int * param1)
ov67_0225D37C(&v0->unk_10, 21);
sub_02039734();
- sub_02017798(ov67_0225CE28, v0);
- sub_020177A4();
+ SetMainCallback(ov67_0225CE28, v0);
+ DisableHBlank();
return 1;
}
@@ -540,8 +540,8 @@ int ov67_0225CDC0 (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200682C(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
inline_ov61_0222C160(&v0->unk_D4);
@@ -591,7 +591,7 @@ static void ov67_0225CE30 (UnkStruct_ov67_0225D154 * param0, u32 param1)
}
{
- UnkStruct_020279FC * v1;
+ AnimationControlFlags * v1;
u8 v2;
v1 = sub_02025E44(param0->unk_00);
diff --git a/src/overlay068/ov68_0225C700.c b/src/overlay068/ov68_0225C700.c
index cde624dc3b..08a94ce35d 100644
--- a/src/overlay068/ov68_0225C700.c
+++ b/src/overlay068/ov68_0225C700.c
@@ -82,7 +82,7 @@ typedef struct {
typedef struct {
Window unk_00[1];
s32 unk_10;
- UnkStruct_02022550 * unk_14;
+ GraphicElementData * unk_14;
UnkStruct_02009DC8 * unk_18[4];
u16 unk_28;
u16 unk_2A;
@@ -115,7 +115,7 @@ typedef struct {
Window unk_08;
Strbuf* unk_18;
void * unk_1C;
- UnkStruct_02001AF4 * unk_20;
+ UIControlData * unk_20;
} UnkStruct_ov68_0225D128;
typedef struct {
@@ -128,7 +128,7 @@ typedef struct {
typedef struct {
BGL * unk_00;
- UnkStruct_020218BC * unk_04;
+ GraphicElementManager * unk_04;
UnkStruct_0200C738 unk_08;
UnkStruct_02009714 * unk_194[4];
NARC * unk_1A4;
@@ -146,7 +146,7 @@ static void ov68_0225C91C(UnkStruct_ov68_0225C91C * param0, SaveData * param1, u
static void ov68_0225C960(UnkStruct_ov68_0225C91C * param0);
static void ov68_0225C980(UnkStruct_ov68_0225C91C * param0);
static void ov68_0225C98C(UnkStruct_ov68_0225C91C * param0);
-static void ov68_0225C9A0(UnkStruct_ov68_0225C91C * param0, UnkStruct_020279FC * param1, u32 param2);
+static void ov68_0225C9A0(UnkStruct_ov68_0225C91C * param0, AnimationControlFlags * param1, u32 param2);
static void ov68_0225CA8C(UnkStruct_ov68_0225C91C * param0);
static void ov68_0225CAB4(UnkStruct_ov68_0225C91C * param0, u32 param1);
static void ov68_0225CB44(UnkStruct_ov68_0225C91C * param0);
@@ -355,8 +355,8 @@ int ov68_0225C700 (UnkStruct_020067E8 * param0, int * param1)
GF_ASSERT(v1->unk_08 < 2);
Unk_ov68_0225DEB0[v1->unk_08](&v0->unk_1DC, &v0->unk_1A8, &v0->unk_00, v1, 122);
- sub_02017798(ov68_0225C914, v0);
- sub_020177A4();
+ SetMainCallback(ov68_0225C914, v0);
+ DisableHBlank();
return 1;
}
@@ -429,8 +429,8 @@ int ov68_0225C8A8 (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200682C(param0);
v1 = sub_02006840(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
Unk_ov68_0225DEA0[v1->unk_08](&v0->unk_1DC, &v0->unk_1A8, &v0->unk_00);
@@ -453,7 +453,7 @@ static void ov68_0225C914 (void * param0)
static void ov68_0225C91C (UnkStruct_ov68_0225C91C * param0, SaveData * param1, u32 param2)
{
- UnkStruct_020279FC * v0;
+ AnimationControlFlags * v0;
v0 = sub_02025E44(param1);
param0->unk_1A4 = NARC_ctor(NARC_INDEX_GRAPHIC__WIFI_LOBBY_OTHER, param2);
@@ -485,7 +485,7 @@ static void ov68_0225C98C (UnkStruct_ov68_0225C91C * param0)
sub_0201DCAC();
}
-static void ov68_0225C9A0 (UnkStruct_ov68_0225C91C * param0, UnkStruct_020279FC * param1, u32 param2)
+static void ov68_0225C9A0 (UnkStruct_ov68_0225C91C * param0, AnimationControlFlags * param1, u32 param2)
{
sub_02018368(&Unk_ov68_0225DD48);
@@ -921,7 +921,7 @@ static void ov68_0225D128 (UnkStruct_ov68_0225D128 * param0, UnkStruct_ov68_0225
param0->unk_18 = Strbuf_Init(256, param3);
{
- UnkStruct_020279FC * v0;
+ AnimationControlFlags * v0;
v0 = sub_02025E44(param2);
param0->unk_04 = sub_02027AC0(v0);
diff --git a/src/overlay069/ov69_0225C700.c b/src/overlay069/ov69_0225C700.c
index e216baa403..0380f25657 100644
--- a/src/overlay069/ov69_0225C700.c
+++ b/src/overlay069/ov69_0225C700.c
@@ -126,10 +126,10 @@ typedef struct {
typedef struct {
BGL * unk_00;
- UnkStruct_020218BC * unk_04;
+ GraphicElementManager * unk_04;
UnkStruct_0200C738 unk_08;
UnkStruct_02009714 * unk_194[4];
- UnkStruct_0207C690 * unk_1A4;
+ GenericPointerData * unk_1A4;
NARC * unk_1A8;
} UnkStruct_ov69_0225D35C;
@@ -200,7 +200,7 @@ typedef struct {
s16 unk_32;
u8 unk_34[4];
u8 unk_38[4];
- UnkStruct_02022550 * unk_3C[12];
+ GraphicElementData * unk_3C[12];
UnkStruct_02009DC8 * unk_6C[12][4];
} UnkStruct_ov69_0225EB60;
@@ -268,7 +268,7 @@ typedef struct {
u16 unk_02;
UnkStruct_ov69_0225DA74 unk_04;
UnkStruct_0202C878 * unk_0C;
- UnkStruct_020279FC * unk_10;
+ AnimationControlFlags * unk_10;
int unk_14;
int unk_18;
UnkStruct_ov66_02231428 unk_1C;
@@ -301,11 +301,11 @@ static u32 ov69_0225D194(const VecFx32 * param0, const VecFx32 * param1);
static u32 ov69_0225D1E0(const UnkStruct_ov69_0225CE64 * param0, u32 param1, UnkStruct_ov66_02231428 param2);
static BOOL ov69_0225D268(UnkStruct_ov69_0225CE64 * param0, u8 param1, u8 param2);
static void ov69_0225D2A8(UnkStruct_ov69_0225CE64 * param0, const UnkStruct_ov66_02230F50 * param1);
-static void ov69_0225D318(UnkStruct_ov69_0225D35C * param0, UnkStruct_020279FC * param1, u32 param2);
+static void ov69_0225D318(UnkStruct_ov69_0225D35C * param0, AnimationControlFlags * param1, u32 param2);
static void ov69_0225D35C(UnkStruct_ov69_0225D35C * param0);
static void ov69_0225D384(UnkStruct_ov69_0225D35C * param0);
static void ov69_0225D390(UnkStruct_ov69_0225D35C * param0);
-static void ov69_0225D3A4(UnkStruct_ov69_0225D35C * param0, UnkStruct_020279FC * param1, u32 param2);
+static void ov69_0225D3A4(UnkStruct_ov69_0225D35C * param0, AnimationControlFlags * param1, u32 param2);
static void ov69_0225D504(UnkStruct_ov69_0225D35C * param0);
static void ov69_0225D53C(UnkStruct_ov69_0225D35C * param0, u32 param1);
static void ov69_0225D5D8(UnkStruct_ov69_0225D35C * param0);
@@ -724,8 +724,8 @@ int ov69_0225C700 (UnkStruct_020067E8 * param0, int * param1)
ov69_0225DEC0(&v0->unk_BC70, &v0->unk_20, &v0->unk_1CC, 105);
ov69_0225D030(v0, v1);
- sub_02017798(ov69_0225CF90, v0);
- sub_020177A4();
+ SetMainCallback(ov69_0225CF90, v0);
+ DisableHBlank();
return 1;
}
@@ -795,8 +795,8 @@ int ov69_0225C8FC (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200682C(param0);
v1 = sub_02006840(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
ov69_0225DFBC(&v0->unk_BC70, &v0->unk_20);
ov69_0225DDC8(&v0->unk_BF64);
@@ -1391,7 +1391,7 @@ static void ov69_0225D2A8 (UnkStruct_ov69_0225CE64 * param0, const UnkStruct_ov6
}
}
-static void ov69_0225D318 (UnkStruct_ov69_0225D35C * param0, UnkStruct_020279FC * param1, u32 param2)
+static void ov69_0225D318 (UnkStruct_ov69_0225D35C * param0, AnimationControlFlags * param1, u32 param2)
{
param0->unk_1A8 = NARC_ctor(NARC_INDEX_GRAPHIC__WORLDTIMER, param2);
@@ -1425,7 +1425,7 @@ static void ov69_0225D390 (UnkStruct_ov69_0225D35C * param0)
sub_0201DCAC();
}
-static void ov69_0225D3A4 (UnkStruct_ov69_0225D35C * param0, UnkStruct_020279FC * param1, u32 param2)
+static void ov69_0225D3A4 (UnkStruct_ov69_0225D35C * param0, AnimationControlFlags * param1, u32 param2)
{
sub_02018368(&Unk_ov69_0225F040);
@@ -1962,7 +1962,7 @@ static void ov69_0225DD60 (UnkStruct_ov69_0225DDC8 * param0, UnkStruct_ov69_0225
memset(param0, 0, sizeof(UnkStruct_ov69_0225DC48));
{
- UnkStruct_020279FC * v0;
+ AnimationControlFlags * v0;
v0 = sub_02025E44(param3);
param0->unk_08 = sub_02027AC0(v0);
@@ -2910,7 +2910,7 @@ static void ov69_0225EE68 (const UnkStruct_ov69_0225ED90 * param0, UnkStruct_ov6
static void ov69_0225EEC4 (UnkStruct_ov69_0225EB60 * param0, u32 param1)
{
VecFx32 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
ov69_0225ED78(¶m0->unk_00[param1], &v0);
diff --git a/src/overlay070/ov70_0225D9A4.c b/src/overlay070/ov70_0225D9A4.c
index a0beee3b2e..30f63dcdcd 100644
--- a/src/overlay070/ov70_0225D9A4.c
+++ b/src/overlay070/ov70_0225D9A4.c
@@ -120,11 +120,11 @@ typedef struct {
typedef struct {
BGL * unk_00;
- UnkStruct_020218BC * unk_04;
+ GraphicElementManager * unk_04;
UnkStruct_0200C738 unk_08;
UnkStruct_02009714 * unk_194[4];
NNSG2dCellTransferState * unk_1A4;
- UnkStruct_0207C690 * unk_1A8;
+ GenericPointerData * unk_1A8;
} UnkStruct_ov70_0225E4EC;
typedef struct {
@@ -139,16 +139,16 @@ typedef struct {
UnkStruct_ov84_02240FA8 unk_00;
Window unk_20;
UnkStruct_0200112C * unk_30;
- UnkStruct_02013A04 * unk_34;
+ ResourceMetadata * unk_34;
u16 unk_38;
u16 unk_3A;
BOOL unk_3C;
UnkStruct_02009DC8 * unk_40[4];
- UnkStruct_02022550 * unk_50[2];
+ GraphicElementData * unk_50[2];
} UnkStruct_ov70_0225EC20;
typedef struct {
- UnkStruct_02013A04 * unk_00;
+ ResourceMetadata * unk_00;
UnkStruct_ov84_02240FA8 unk_04;
} UnkStruct_ov70_0225F098;
@@ -184,11 +184,11 @@ typedef struct {
typedef struct {
u32 unk_00;
Window unk_04[5];
- UnkStruct_02022550 * unk_54;
+ GraphicElementData * unk_54;
UnkStruct_02009DC8 * unk_58[4];
- UnkStruct_02022550 * unk_68;
+ GraphicElementData * unk_68;
UnkStruct_02009DC8 * unk_6C[4];
- UnkStruct_02022550 * unk_7C[12];
+ GraphicElementData * unk_7C[12];
UnkStruct_02009DC8 * unk_AC[4];
UnkStruct_02009DC8 * unk_BC[12];
UnkStruct_02009DC8 * unk_EC[4];
@@ -278,7 +278,7 @@ static void ov70_0225ED4C(UnkStruct_ov70_0225EC20 * param0, UnkStruct_ov70_0225E
static void ov70_0225EDA8(UnkStruct_ov70_0225EC20 * param0, u32 param1, u32 param2, u32 param3);
static void ov70_0225EDE0(UnkStruct_ov70_0225EC20 * param0);
static void ov70_0225EDF8(UnkStruct_ov70_0225EC20 * param0, const Strbuf *param1, u32 param2);
-static const UnkStruct_02013A04 * ov70_0225EE04(const UnkStruct_ov70_0225EC20 * param0);
+static const ResourceMetadata * ov70_0225EE04(const UnkStruct_ov70_0225EC20 * param0);
static BOOL ov70_0225EE08(const UnkStruct_ov70_0225EC20 * param0, u32 param1);
static void ov70_0225EE30(UnkStruct_ov70_0225EC20 * param0, const UnkStruct_ov84_02240FA8 * param1, UnkStruct_ov70_0225E4EC * param2, u16 param3, u16 param4, u32 param5, u8 param6, u8 param7, u8 param8);
static u32 ov70_0225EED8(UnkStruct_ov70_0225EC20 * param0);
@@ -671,8 +671,8 @@ int ov70_0225D9A4 (UnkStruct_020067E8 * param0, int * param1)
v0->unk_438 = ov70_02269190(v0->unk_34, v0->unk_44C, v0->unk_450, v0->unk_444, 112, 113);
v0->unk_440 = ov70_0226C60C(112, v0);
- sub_02017798(ov70_0225E4C8, v0);
- sub_020177A4();
+ SetMainCallback(ov70_0225E4C8, v0);
+ DisableHBlank();
return 1;
}
@@ -815,8 +815,8 @@ int ov70_0225DDF8 (UnkStruct_020067E8 * param0, int * param1)
v1->unk_18 = v0->unk_01;
}
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
ov70_0226C6F8(v0->unk_440);
ov70_02269204(v0->unk_438);
@@ -1001,7 +1001,7 @@ void ov70_0225E044 (UnkStruct_ov70_0225DEE8 * param0, const Strbuf *param1, u32
ov70_0225EDF8(¶m0->unk_39C, param1, param2);
}
-const UnkStruct_02013A04 * ov70_0225E054 (const UnkStruct_ov70_0225DEE8 * param0)
+const ResourceMetadata * ov70_0225E054 (const UnkStruct_ov70_0225DEE8 * param0)
{
return ov70_0225EE04(¶m0->unk_39C);
}
@@ -1314,7 +1314,7 @@ static void ov70_0225E4EC (UnkStruct_ov70_0225E4EC * param0, SaveData * param1,
}
{
- UnkStruct_020279FC * v1;
+ AnimationControlFlags * v1;
u8 v2;
v1 = sub_02025E44(param1);
@@ -1549,7 +1549,7 @@ static void ov70_0225E9C8 (UnkStruct_ov70_0225E9C8 * param0, UnkStruct_ov70_0225
param0->unk_18 = Strbuf_Init(384, param3);
{
- UnkStruct_020279FC * v0;
+ AnimationControlFlags * v0;
v0 = sub_02025E44(param2);
param0->unk_14 = sub_02027AC0(v0);
@@ -1758,7 +1758,7 @@ static void ov70_0225EDF8 (UnkStruct_ov70_0225EC20 * param0, const Strbuf *param
sub_02013A6C(param0->unk_34, param1, param2);
}
-static const UnkStruct_02013A04 * ov70_0225EE04 (const UnkStruct_ov70_0225EC20 * param0)
+static const ResourceMetadata * ov70_0225EE04 (const UnkStruct_ov70_0225EC20 * param0)
{
return param0->unk_34;
}
diff --git a/src/overlay071/ov71_0223B140.c b/src/overlay071/ov71_0223B140.c
index d122f34f4c..ec8fcdce8c 100644
--- a/src/overlay071/ov71_0223B140.c
+++ b/src/overlay071/ov71_0223B140.c
@@ -149,8 +149,8 @@ int ov71_0223B140 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov71_0223B620 * v0;
NARC * v1;
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -250,7 +250,7 @@ int ov71_0223B140 (UnkStruct_020067E8 * param0, int * param1)
ov71_0223C288();
- sub_02017798(ov71_0223C18C, NULL);
+ SetMainCallback(ov71_0223C18C, NULL);
sub_020397E4();
sub_0200544C(1, (127 / 3));
sub_0200F174(2, 3, 3, 0x0, 6, 1, 25);
@@ -401,7 +401,7 @@ int ov71_0223B5B8 (UnkStruct_020067E8 * param0, int * param1)
sub_0201E530();
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(25);
sub_0200544C(1, 127);
diff --git a/src/overlay072/ov72_0223D7A0.c b/src/overlay072/ov72_0223D7A0.c
index 9eec87217f..3573abe133 100644
--- a/src/overlay072/ov72_0223D7A0.c
+++ b/src/overlay072/ov72_0223D7A0.c
@@ -95,8 +95,8 @@ static void ov72_0223E910(Window * param0, int param1, u32 param2, UnkStruct_ov7
static void ov72_0223E914(UnkStruct_ov72_0223DB98 * param0);
static void ov72_0223E930(UnkStruct_ov72_0223DB98 * param0, int param1);
static int ov72_0223E99C(int param0);
-static void ov72_0223E388(UnkStruct_02022550 ** param0, int param1);
-static void ov72_0223E3A8(UnkStruct_02022550 ** param0, BOOL param1);
+static void ov72_0223E388(GraphicElementData ** param0, int param1);
+static void ov72_0223E3A8(GraphicElementData ** param0, BOOL param1);
static int ov72_0223E528(UnkStruct_ov72_0223DB98 * param0, int param1);
static void ov72_0223E430(BGL * param0, UnkStruct_02015920 * param1);
static void ov72_0223E9B4(u8 * param0, u8 * param1);
@@ -124,8 +124,8 @@ int ov72_0223D7A0 (UnkStruct_020067E8 * param0, int * param1)
case 0:
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -151,14 +151,14 @@ int ov72_0223D7A0 (UnkStruct_020067E8 * param0, int * param1)
v0->unk_5BFC = (u8 *)sub_0202C840(sub_0202C834(v2));
v0->unk_08 = (UnkStruct_0202CD88 *)sub_0202CD88((SaveData *)sub_02006840(param0));
- v0->unk_0C = (UnkStruct_020279FC *)sub_02025E44((SaveData *)sub_02006840(param0));
+ v0->unk_0C = (AnimationControlFlags *)sub_02025E44((SaveData *)sub_02006840(param0));
}
ov72_0223DCA8(v0, v1);
sub_0201E3D8();
sub_0201E450(1);
- sub_02017798(ov72_0223DA48, v0->unk_00);
+ SetMainCallback(ov72_0223DA48, v0->unk_00);
sub_02002BB8(2, 39);
ov72_0223DB98(v0);
@@ -219,7 +219,7 @@ int ov72_0223D984 (UnkStruct_020067E8 * param0, int * param1)
ov72_0223E9B4(v0->unk_5BFC, v0->unk_328.unk_0C);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_0200A4E4(v0->unk_1DC[0][0]);
sub_0200A4E4(v0->unk_1DC[1][0]);
sub_0200A6DC(v0->unk_1DC[0][1]);
@@ -245,7 +245,7 @@ int ov72_0223D984 (UnkStruct_020067E8 * param0, int * param1)
GX_SetDispSelect(GX_DISP_SELECT_MAIN_SUB);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(39);
return 1;
@@ -697,7 +697,7 @@ static void ov72_0223E2A8 (UnkStruct_ov72_0223DB98 * param0)
}
}
-static void ov72_0223E388 (UnkStruct_02022550 ** param0, int param1)
+static void ov72_0223E388 (GraphicElementData ** param0, int param1)
{
int v0;
@@ -710,7 +710,7 @@ static void ov72_0223E388 (UnkStruct_02022550 ** param0, int param1)
}
}
-static void ov72_0223E3A8 (UnkStruct_02022550 ** param0, BOOL param1)
+static void ov72_0223E3A8 (GraphicElementData ** param0, BOOL param1)
{
if (param1 == 1) {
sub_02021D6C(param0[0], Unk_ov72_0223EB3C[0][2] + 1);
diff --git a/src/overlay073/ov73_021D0D80.c b/src/overlay073/ov73_021D0D80.c
index 759b966933..7bf08d5696 100644
--- a/src/overlay073/ov73_021D0D80.c
+++ b/src/overlay073/ov73_021D0D80.c
@@ -68,7 +68,7 @@ FS_EXTERN_OVERLAY(overlay57);
typedef struct {
int unk_00;
SaveData * unk_04;
- UnkStruct_020279FC * unk_08;
+ AnimationControlFlags * unk_08;
int unk_0C;
int unk_10;
UnkStruct_020067E8 * unk_14;
@@ -77,7 +77,7 @@ typedef struct {
int unk_2C;
Window unk_30;
UnkStruct_0200112C * unk_40;
- UnkStruct_02013A04 * unk_44;
+ ResourceMetadata * unk_44;
int unk_48;
MessageLoader * unk_4C;
int unk_50;
@@ -182,8 +182,8 @@ int ov73_021D0E20 (UnkStruct_020067E8 * param0, int * param1)
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -196,7 +196,7 @@ int ov73_021D0E20 (UnkStruct_020067E8 * param0, int * param1)
ov73_021D12C4(v0);
ov73_021D1318(v0);
- sub_02017798(ov73_021D0FF0, (void *)v0);
+ SetMainCallback(ov73_021D0FF0, (void *)v0);
GXLayers_TurnBothDispOn();
*param1 = 1;
@@ -217,7 +217,7 @@ int ov73_021D0E20 (UnkStruct_020067E8 * param0, int * param1)
ov73_021D1300(v0);
ov73_021D1238(v0);
ov73_021D1328(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
v1 = 1;
}
@@ -227,7 +227,7 @@ int ov73_021D0E20 (UnkStruct_020067E8 * param0, int * param1)
ov73_021D1300(v0);
ov73_021D1238(v0);
ov73_021D1328(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
*param1 = 4;
}
break;
diff --git a/src/overlay073/ov73_021D3250.c b/src/overlay073/ov73_021D3250.c
index ce92805713..92918a8dc3 100644
--- a/src/overlay073/ov73_021D3250.c
+++ b/src/overlay073/ov73_021D3250.c
@@ -78,8 +78,8 @@ int ov73_021D3280 (UnkStruct_020067E8 * param0, int * param1)
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -90,7 +90,7 @@ int ov73_021D3280 (UnkStruct_020067E8 * param0, int * param1)
ov73_021D342C(v0);
ov73_021D366C(v0);
- sub_02017798(ov73_021D3420, (void *)v0);
+ SetMainCallback(ov73_021D3420, (void *)v0);
GXLayers_TurnBothDispOn();
{
@@ -144,7 +144,7 @@ int ov73_021D3280 (UnkStruct_020067E8 * param0, int * param1)
if (ScreenWipe_Done() == 1) {
ov73_021D368C(v0);
ov73_021D35F4(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
v1 = 1;
}
diff --git a/src/overlay074/ov74_021D0D80.c b/src/overlay074/ov74_021D0D80.c
index 99de640acc..faf70d7be5 100644
--- a/src/overlay074/ov74_021D0D80.c
+++ b/src/overlay074/ov74_021D0D80.c
@@ -63,16 +63,16 @@ typedef struct UnkStruct_ov74_021D0D80_t {
u32 unk_10_22 : 10;
BGL * unk_14;
UnkStruct_0203D8EC unk_18;
- UnkStruct_020279FC * unk_1C;
+ AnimationControlFlags * unk_1C;
MessageLoader * unk_20;
void * unk_24;
NNSG2dScreenData * unk_28;
Window unk_2C[3];
UnkStruct_ov74_021D1720 unk_5C[7];
- UnkStruct_02001AF4 * unk_2A8;
+ UIControlData * unk_2A8;
u32 unk_2AC;
- UnkStruct_0200C6E4 * unk_2B0;
- UnkStruct_0200C704 * unk_2B4;
+ CellTransferStateData * unk_2B0;
+ AnimationResourceCollection * unk_2B4;
CellActorData * unk_2B8;
} UnkStruct_ov74_021D0D80;
@@ -103,9 +103,9 @@ static u32 ov74_021D1BD0(UnkStruct_ov74_021D0D80 * param0);
int ov74_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov74_021D0D80 * v0 = NULL;
- UnkStruct_020279FC * v1;
+ AnimationControlFlags * v1;
- v1 = (UnkStruct_020279FC *)sub_02006840(param0);
+ v1 = (AnimationControlFlags *)sub_02006840(param0);
Heap_Create(3, 38, 0x10000);
@@ -270,8 +270,8 @@ static int ov74_021D1178 (UnkStruct_ov74_021D0D80 * param0)
{
switch (param0->unk_08) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -294,7 +294,7 @@ static int ov74_021D1178 (UnkStruct_ov74_021D0D80 * param0)
sub_0201DBEC(32, param0->unk_00);
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
sub_020397E4();
- sub_02017798(ov74_021D1118, param0);
+ SetMainCallback(ov74_021D1118, param0);
param0->unk_08 = 0;
return 1;
}
@@ -323,8 +323,8 @@ static int ov74_021D122C (UnkStruct_ov74_021D0D80 * param0)
ov74_021D135C(param0);
break;
case 1:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
diff --git a/src/overlay075/ov75_021D0D80.c b/src/overlay075/ov75_021D0D80.c
index fbf5374135..97a4fd74d4 100644
--- a/src/overlay075/ov75_021D0D80.c
+++ b/src/overlay075/ov75_021D0D80.c
@@ -99,9 +99,9 @@ typedef struct {
NNSG2dScreenData * unk_3C;
NNSG2dScreenData * unk_40;
Window unk_44[6];
- UnkStruct_02001AF4 * unk_A4;
- UnkStruct_0200C6E4 * unk_A8;
- UnkStruct_0200C704 * unk_AC;
+ UIControlData * unk_A4;
+ CellTransferStateData * unk_A8;
+ AnimationResourceCollection * unk_AC;
CellActorData * unk_B0[3];
} UnkStruct_ov75_021D1184;
@@ -385,8 +385,8 @@ static int ov75_021D1184 (UnkStruct_ov75_021D1184 * param0)
{
switch (param0->unk_04) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -403,7 +403,7 @@ static int ov75_021D1184 (UnkStruct_ov75_021D1184 * param0)
return 0;
}
- sub_02017798(ov75_021D131C, param0);
+ SetMainCallback(ov75_021D131C, param0);
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
sub_0200F338(0);
@@ -448,7 +448,7 @@ static int ov75_021D1184 (UnkStruct_ov75_021D1184 * param0)
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
diff --git a/src/overlay076/ov76_0223B140.c b/src/overlay076/ov76_0223B140.c
index 35e5cde45d..993934f8d4 100644
--- a/src/overlay076/ov76_0223B140.c
+++ b/src/overlay076/ov76_0223B140.c
@@ -176,8 +176,8 @@ void ov76_0223B36C (UnkStruct_ov76_0223DE00 * param0, u8 param1, u8 param2)
{
int v0;
int v1;
- UnkStruct_0200C6E4 * v2;
- UnkStruct_0200C704 * v3;
+ CellTransferStateData * v2;
+ AnimationResourceCollection * v3;
PaletteSys * v4;
v2 = param0->unk_D4.unk_08;
@@ -277,8 +277,8 @@ BOOL ov76_0223B52C (UnkStruct_ov76_0223DE00 * param0, u8 param1)
int v1;
UnkStruct_ov76_0223B52C * v2;
UnkStruct_ov104_0223F9E0 v3;
- UnkStruct_0200C6E4 * v4;
- UnkStruct_0200C704 * v5;
+ CellTransferStateData * v4;
+ AnimationResourceCollection * v5;
PaletteSys * v6;
v4 = param0->unk_D4.unk_08;
diff --git a/src/overlay076/ov76_0223B870.c b/src/overlay076/ov76_0223B870.c
index bce7b00ec9..c5074908d8 100644
--- a/src/overlay076/ov76_0223B870.c
+++ b/src/overlay076/ov76_0223B870.c
@@ -76,7 +76,7 @@ void ov76_0223C32C(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223C354(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223C398(UnkStruct_ov76_0223C398 * param0);
void ov76_0223C424(UnkStruct_ov76_0223C398 * param0);
-void ov76_0223C5A4(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, NARC * param10);
+void ov76_0223C5A4(CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, NARC * param10);
void ov76_0223C61C(UnkStruct_ov76_0223DE00 * param0, NARC * param1);
void ov76_0223C7E0(UnkStruct_ov76_0223DE00 * param0);
void ov76_0223C80C(UnkStruct_ov76_0223DE00 * param0, int param1, int param2);
@@ -238,8 +238,8 @@ void ov76_0223BB04 (UnkStruct_ov76_0223DE00 * param0)
{
int v0;
int v1;
- UnkStruct_0200C6E4 * v2;
- UnkStruct_0200C704 * v3;
+ CellTransferStateData * v2;
+ AnimationResourceCollection * v3;
PaletteSys * v4;
v2 = param0->unk_D4.unk_08;
@@ -261,8 +261,8 @@ void ov76_0223BBAC (UnkStruct_ov76_0223DE00 * param0)
int v0;
UnkStruct_ov76_0223BBAC * v1;
UnkStruct_ov104_0223F9E0 v2;
- UnkStruct_0200C6E4 * v3;
- UnkStruct_0200C704 * v4;
+ CellTransferStateData * v3;
+ AnimationResourceCollection * v4;
PaletteSys * v5;
v3 = param0->unk_D4.unk_08;
@@ -389,9 +389,9 @@ void ov76_0223BD30 (UnkStruct_ov76_0223DE00 * param0, s8 param1, int param2)
SysTask_Start(ov76_0223BCA0, v0, 0x1000);
}
-UnkStruct_0207C690 * ov76_0223BE6C (void)
+GenericPointerData * ov76_0223BE6C (void)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(53, 0, 2, 0, 2, ov76_0223BE8C);
return v0;
@@ -541,8 +541,8 @@ void ov76_0223C0EC (int param0, s16 * param1, s16 * param2)
void ov76_0223C110 (UnkStruct_ov76_0223DE00 * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
PaletteSys * v2;
v0 = param0->unk_D4.unk_08;
@@ -769,7 +769,7 @@ void ov76_0223C588 (UnkStruct_ov76_0223DE00 * param0)
}
}
-void ov76_0223C5A4 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, PaletteSys * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, NARC * param10)
+void ov76_0223C5A4 (CellTransferStateData * param0, AnimationResourceCollection * param1, PaletteSys * param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, NARC * param10)
{
sub_0200CC3C(param0, param1, param10, param3, 1, param7, (param3 + 11000));
sub_0200CDC4(param2, param8, param0, param1, param10, param4, 0, param9, param7, (param4 + 11000));
@@ -1143,8 +1143,8 @@ void ov76_0223CF88 (UnkStruct_ov76_0223DE00 * param0, NARC * param1)
void ov76_0223CFEC (UnkStruct_ov76_0223DE00 * param0, NARC * param1)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
PaletteSys * v2;
v0 = param0->unk_D4.unk_08;
@@ -1171,8 +1171,8 @@ void ov76_0223D16C (UnkStruct_ov76_0223DE00 * param0)
int v0;
UnkStruct_ov76_0223BBAC * v1;
UnkStruct_ov104_0223F9E0 v2;
- UnkStruct_0200C6E4 * v3;
- UnkStruct_0200C704 * v4;
+ CellTransferStateData * v3;
+ AnimationResourceCollection * v4;
PaletteSys * v5;
v3 = param0->unk_D4.unk_08;
diff --git a/src/overlay076/ov76_0223D338.c b/src/overlay076/ov76_0223D338.c
index 3c72aaac92..070f625fbe 100644
--- a/src/overlay076/ov76_0223D338.c
+++ b/src/overlay076/ov76_0223D338.c
@@ -1337,8 +1337,8 @@ static BOOL ov76_0223EB1C (UnkStruct_ov76_0223DE00 * param0)
void ov76_0223EB20 (int param0)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -1348,8 +1348,8 @@ void ov76_0223EB20 (int param0)
void ov76_0223EB54 (int param0)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
}
void ov76_0223EB64 (BGL * param0)
diff --git a/src/overlay077/ov77_021D0D80.c b/src/overlay077/ov77_021D0D80.c
index 74d91b1016..61565f342b 100644
--- a/src/overlay077/ov77_021D0D80.c
+++ b/src/overlay077/ov77_021D0D80.c
@@ -118,7 +118,7 @@ typedef struct {
typedef struct {
int unk_00;
BGL * unk_04;
- UnkStruct_0207C690 * unk_08;
+ GenericPointerData * unk_08;
UnkStruct_ov77_021D17B4_sub1 unk_0C;
UnkStruct_ov77_021D1568 unk_238;
u16 unk_4E8;
@@ -183,8 +183,8 @@ static int ov77_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
G2S_BlendNone();
G2_BlendNone();
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -206,7 +206,7 @@ static int ov77_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
ov77_021D17B4(v0);
ov77_021D11CC(v0);
- sub_02017798(ov77_021D1178, (void *)v0);
+ SetMainCallback(ov77_021D1178, (void *)v0);
GXLayers_TurnBothDispOn();
return 1;
@@ -335,7 +335,7 @@ static int ov77_021D10FC (UnkStruct_020067E8 * param0, int * param1)
int v1 = v0->unk_00;
int v2 = v0->unk_4E8;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov77_021D11FC(v0);
ov77_021D1908(v0);
diff --git a/src/overlay077/ov77_021D25B0.c b/src/overlay077/ov77_021D25B0.c
index 68439c58b6..82a3420907 100644
--- a/src/overlay077/ov77_021D25B0.c
+++ b/src/overlay077/ov77_021D25B0.c
@@ -136,7 +136,7 @@ typedef struct {
int unk_04;
BOOL unk_08;
BGL * unk_0C;
- UnkStruct_0207C690 * unk_10;
+ GenericPointerData * unk_10;
u32 unk_14;
UnkStruct_ov77_021D2F38 unk_18;
UnkStruct_ov77_021D37C0 unk_34;
@@ -943,8 +943,8 @@ static int ov77_021D2D08 (UnkStruct_020067E8 * param0, int * param1)
sub_0200AB84();
sub_0200F344(0, 0x7fff);
sub_0200F344(1, 0x7fff);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
SetAutorepeat(4, 8);
@@ -1069,7 +1069,7 @@ static void ov77_021D2F0C (UnkStruct_ov77_021D2E9C * param0)
param0->unk_18.unk_0C = param0->unk_0C;
param0->unk_18.unk_14 = ov77_021D670C();
- sub_02017798(ov77_021D2B30, (void *)param0);
+ SetMainCallback(ov77_021D2B30, (void *)param0);
param0->unk_18.unk_02 = 1;
}
@@ -1177,7 +1177,7 @@ static BOOL ov77_021D30D0 (UnkStruct_ov77_021D2F38 * param0, const int param1)
static void ov77_021D3234 (UnkStruct_ov77_021D2E9C * param0)
{
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
if (param0->unk_18.unk_02) {
ov77_021D67B0(param0->unk_18.unk_14);
@@ -1365,7 +1365,7 @@ static void ov77_021D34A8 (UnkStruct_ov77_021D2E9C * param0)
NNS_G3dGlbMaterialColorSpecEmi(GX_RGB(18, 18, 18), GX_RGB(14, 14, 14), 0);
NNS_G3dGlbPolygonAttr(13, GX_POLYGONMODE_MODULATE, GX_CULL_BACK, 0, 31, GX_POLYGON_ATTR_MISC_FOG);
- sub_02017798(ov77_021D2B38, (void *)param0);
+ SetMainCallback(ov77_021D2B38, (void *)param0);
sub_0200AB4C(-16, GX_BLEND_PLANEMASK_BG3, 1);
param0->unk_34.unk_02 = 1;
@@ -1475,7 +1475,7 @@ static void ov77_021D36F8 (UnkStruct_ov77_021D2E9C * param0)
GX_SetVisibleWnd(0);
GXS_SetVisibleWnd(0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
}
static void ov77_021D37C0 (UnkStruct_ov77_021D37C0 * param0)
diff --git a/src/overlay077/ov77_021D54B0.c b/src/overlay077/ov77_021D54B0.c
index ff283bb8b2..dcb18eb126 100644
--- a/src/overlay077/ov77_021D54B0.c
+++ b/src/overlay077/ov77_021D54B0.c
@@ -31,11 +31,11 @@ SDK_COMPILER_ASSERT(((3 + 1 + 1 + 2 + 4) + 6) == 17);
void include_data_ov77_021D79B8(void);
typedef struct UnkStruct_ov77_021D5564_t {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_02009DC8 * unk_1A0[11][4];
- UnkStruct_02022550 * unk_250[17];
+ GraphicElementData * unk_250[17];
UnkStruct_ov19_021DA864 unk_294[3];
NNSG2dCellTransferState * unk_300;
} UnkStruct_ov77_021D5564;
@@ -377,7 +377,7 @@ void ov77_021D5FB4 (UnkStruct_ov77_021D5564 * param0, UnkStruct_ov77_021D6734 *
int v0;
UnkStruct_ov19_021DA864 v1;
UnkStruct_ov115_02261520 v2;
- UnkStruct_02022550 ** v3;
+ GraphicElementData ** v3;
{
ov77_021D54E8(5, param0, 0, &v2, &v1, 0, NNS_G2D_VRAM_TYPE_2DSUB);
@@ -394,7 +394,7 @@ void ov77_021D5FB4 (UnkStruct_ov77_021D5564 * param0, UnkStruct_ov77_021D6734 *
void ov77_021D6000 (UnkStruct_ov77_021D5564 * param0, UnkStruct_ov77_021D6734 * param1)
{
int v0;
- UnkStruct_02022550 ** v1;
+ GraphicElementData ** v1;
for (v0 = 0; v0 < 16; v0++) {
v1 = ov77_021D6794(param1, v0);
diff --git a/src/overlay077/ov77_021D6670.c b/src/overlay077/ov77_021D6670.c
index 13c678b4b4..2fb814ff7c 100644
--- a/src/overlay077/ov77_021D6670.c
+++ b/src/overlay077/ov77_021D6670.c
@@ -28,7 +28,7 @@
typedef struct {
u8 unk_00;
u8 unk_01;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
SysTask * unk_08;
} UnkStruct_ov77_021D6ADC;
@@ -54,7 +54,7 @@ typedef struct {
} UnkStruct_ov77_021D6A0C;
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
UnkStruct_02009714 * unk_190[4];
UnkStruct_02009DC8 * unk_1A0[4];
@@ -163,7 +163,7 @@ void ov77_021D6760 (UnkStruct_ov77_021D6734 * param0)
Heap_FreeToHeap(param0);
}
-UnkStruct_02022550 ** ov77_021D6794 (UnkStruct_ov77_021D6734 * param0, const int param1)
+GraphicElementData ** ov77_021D6794 (UnkStruct_ov77_021D6734 * param0, const int param1)
{
GF_ASSERT(param1 < param0->unk_00);
return ¶m0->unk_04[param1].unk_04;
diff --git a/src/overlay077/ov77_021D6C70.c b/src/overlay077/ov77_021D6C70.c
index 3660536c94..3219d035b6 100644
--- a/src/overlay077/ov77_021D6C70.c
+++ b/src/overlay077/ov77_021D6C70.c
@@ -11,7 +11,7 @@
#include "spl.h"
#include "unk_0200762C.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02014000.h"
#include "heap.h"
#include "unk_02020020.h"
@@ -120,7 +120,7 @@ void ov77_021D6CFC (UnkStruct_ov77_021D6CFC * param0)
int v6, v7;
RTCTime v8;
- sub_02013880(&v8);
+ GetCurrentTime(&v8);
v6 = (v8.hour * v8.minute + v8.second) & 1;
v7 = v8.second % 3;
diff --git a/src/overlay078/ov78_021D0D80.c b/src/overlay078/ov78_021D0D80.c
index f54d8e2f62..50a62f1706 100644
--- a/src/overlay078/ov78_021D0D80.c
+++ b/src/overlay078/ov78_021D0D80.c
@@ -118,7 +118,7 @@ typedef struct {
} UnkStruct_ov78_021D235C;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
UnkStruct_02009DC8 * unk_04[6];
VecFx32 unk_1C;
SysTask * unk_28;
@@ -166,9 +166,9 @@ typedef struct {
int unk_A8;
Strbuf* unk_AC;
UnkStruct_ov61_0222C884 unk_B0;
- UnkStruct_02001AF4 * unk_B8;
+ UIControlData * unk_B8;
UnkStruct_0200C738 unk_BC;
- UnkStruct_020218BC * unk_248;
+ GraphicElementManager * unk_248;
UnkStruct_02009714 * unk_24C[6];
UnkStruct_02007768 * unk_264;
Sprite * unk_268[3];
@@ -298,8 +298,8 @@ int ov78_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
v0->unk_704 = sub_02027AC0(v1->unk_04);
sub_0201DBEC(8, 47);
- sub_02017798(ov78_021D1058, v0);
- sub_020177A4();
+ SetMainCallback(ov78_021D1058, v0);
+ DisableHBlank();
sub_0201E3D8();
v3 = sub_0201E450(4);
@@ -395,7 +395,7 @@ int ov78_021D0FA8 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_020425E0 * v1 = sub_02006840(param0);
BOOL v2;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
v1->unk_00 = ov78_021D291C(v0->unk_54);
diff --git a/src/overlay079/ov79_021D0D80.c b/src/overlay079/ov79_021D0D80.c
index 72cb9160f0..3b2ef8b894 100644
--- a/src/overlay079/ov79_021D0D80.c
+++ b/src/overlay079/ov79_021D0D80.c
@@ -128,8 +128,8 @@ static int ov79_021D0E1C (UnkStruct_ov79_021D0E1C * param0)
switch (param0->unk_04) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -184,7 +184,7 @@ static int ov79_021D0E1C (UnkStruct_ov79_021D0E1C * param0)
sub_0201E530();
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
GX_SetVisiblePlane(0);
@@ -422,7 +422,7 @@ static int ov79_021D122C (UnkStruct_ov79_021D0E1C * param0)
case 5:
ov79_021D196C(param0);
ov79_021D1B24(param0, param0->unk_1B, 4);
- sub_02017798(ov79_021D0F7C, param0);
+ SetMainCallback(ov79_021D0F7C, param0);
param0->unk_08 = 0;
return 1;
}
diff --git a/src/overlay079/ov79_021D2268.c b/src/overlay079/ov79_021D2268.c
index 23ecde7eb3..64d8c725a1 100644
--- a/src/overlay079/ov79_021D2268.c
+++ b/src/overlay079/ov79_021D2268.c
@@ -100,7 +100,7 @@ struct UnkStruct_ov79_021D29B4_t {
int unk_08;
UnkStruct_ov79_021D2C50 unk_0C;
UnkStruct_ov79_021D2C50 unk_68;
- UnkStruct_02022550 * unk_C4;
+ GraphicElementData * unk_C4;
Sprite * unk_C8;
UnkStruct_ov79_021D29E4 unk_CC[4];
};
@@ -121,7 +121,7 @@ typedef struct {
UnkStruct_0209916C * unk_60[2];
BGL * unk_68;
Window unk_6C;
- UnkStruct_0200C6E4 * unk_7C;
+ CellTransferStateData * unk_7C;
UnkStruct_ov79_021D29B4 unk_80;
} UnkStruct_ov79_021D2928;
@@ -209,8 +209,8 @@ int ov79_021D22E4 (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -227,7 +227,7 @@ int ov79_021D22E4 (UnkStruct_020067E8 * param0, int * param1)
return 0;
}
- sub_02017798(ov79_021D252C, v0);
+ SetMainCallback(ov79_021D252C, v0);
break;
case 2:
if (v0->unk_04++ < 4) {
@@ -265,7 +265,7 @@ int ov79_021D22E4 (UnkStruct_020067E8 * param0, int * param1)
case 7:
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -694,10 +694,10 @@ static int ov79_021D2AF0 (UnkStruct_ov79_021D2928 * param0, UnkStruct_ov79_021D2
switch (param0->unk_30.unk_09) {
case 1:
- sub_020059D0(11, param0->unk_30.unk_04, 0, 127, param0->unk_00, v0);
+ Sound_PlayPokemonCry(11, param0->unk_30.unk_04, 0, 127, param0->unk_00, v0);
break;
default:
- sub_020059D0(0, param0->unk_30.unk_04, 0, 127, param0->unk_00, v0);
+ Sound_PlayPokemonCry(0, param0->unk_30.unk_04, 0, 127, param0->unk_00, v0);
break;
}
diff --git a/src/overlay080/ov80_021D0D80.c b/src/overlay080/ov80_021D0D80.c
index a30a2f93d1..7dba9d7e1f 100644
--- a/src/overlay080/ov80_021D0D80.c
+++ b/src/overlay080/ov80_021D0D80.c
@@ -204,8 +204,8 @@ static int ov80_021D0EC8 (UnkStruct_ov80_021D2A08 * param0)
{
switch (param0->unk_0C) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -238,7 +238,7 @@ static int ov80_021D0EC8 (UnkStruct_ov80_021D2A08 * param0)
ov80_021D2A08(param0);
break;
case 2:
- sub_02017798(ov80_021D0E68, param0);
+ SetMainCallback(ov80_021D0E68, param0);
param0->unk_38 = Unk_ov80_021D2E94[param0->unk_00].unk_10;
param0->unk_0C = 0;
return 1;
@@ -255,8 +255,8 @@ static void ov80_021D0FF4 (UnkStruct_ov80_021D2A08 * param0)
sub_0201E530();
GXLayers_EngineAToggleLayers(GX_PLANEMASK_BG0 | GX_PLANEMASK_BG1 | GX_PLANEMASK_BG2 | GX_PLANEMASK_BG3 | GX_PLANEMASK_OBJ, 0);
GXLayers_EngineBToggleLayers(GX_PLANEMASK_BG0 | GX_PLANEMASK_BG1 | GX_PLANEMASK_BG2 | GX_PLANEMASK_BG3 | GX_PLANEMASK_OBJ, 0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
ov80_021D2AC0(param0);
ov80_021D12D8(param0);
diff --git a/src/overlay080/ov80_021D1458.c b/src/overlay080/ov80_021D1458.c
index 2b34211385..6269c7326a 100644
--- a/src/overlay080/ov80_021D1458.c
+++ b/src/overlay080/ov80_021D1458.c
@@ -43,7 +43,7 @@ typedef struct {
u16 unk_08;
u8 unk_0A;
u8 unk_0B;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
} UnkStruct_ov80_021D1744;
typedef struct {
@@ -79,9 +79,9 @@ typedef struct {
UnkStruct_ov80_021D2C1C * unk_9C;
UnkStruct_ov80_021D2AF4 * unk_A0;
UnkStruct_ov80_021D2570 unk_A4;
- UnkStruct_02022550 * unk_100;
- UnkStruct_02022550 * unk_104;
- UnkStruct_02022550 * unk_108;
+ GraphicElementData * unk_100;
+ GraphicElementData * unk_104;
+ GraphicElementData * unk_108;
SysTask * unk_10C;
} UnkStruct_ov80_021D1478;
diff --git a/src/overlay080/ov80_021D2AF4.c b/src/overlay080/ov80_021D2AF4.c
index 07d31e6359..f290326fe0 100644
--- a/src/overlay080/ov80_021D2AF4.c
+++ b/src/overlay080/ov80_021D2AF4.c
@@ -41,7 +41,7 @@ const UnkStruct_ov80_021D2C5C_sub1 Unk_ov80_021D31D8[20] = {
{ 0xAC, 0x44, 0x0, 0x1, 0x3, 0xB6, 0x77 }
};
-UnkStruct_ov80_021D2C1C * ov80_021D2AF4 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u8 * param2, short param3, int param4)
+UnkStruct_ov80_021D2C1C * ov80_021D2AF4 (CellTransferStateData * param0, AnimationResourceCollection * param1, u8 * param2, short param3, int param4)
{
UnkStruct_ov80_021D2C1C * v0;
UnkStruct_ov80_021D2C5C * v1;
diff --git a/src/overlay081/ov81_021D0D80.c b/src/overlay081/ov81_021D0D80.c
index e25619adaf..556fb3c90d 100644
--- a/src/overlay081/ov81_021D0D80.c
+++ b/src/overlay081/ov81_021D0D80.c
@@ -72,8 +72,8 @@ int ov81_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov81_021D1610 * v0;
SaveData * v1;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -105,7 +105,7 @@ int ov81_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
ov81_021D164C(v0, 0);
ov81_021D1434(v0);
- sub_02017798(ov81_021D0F00, v0);
+ SetMainCallback(ov81_021D0F00, v0);
GXLayers_TurnBothDispOn();
sub_02039734();
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
@@ -144,7 +144,7 @@ int ov81_021D0EC4 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov81_021D1610 * v0 = sub_0200682C(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov81_021D1634(v0);
ov81_021D101C(v0->unk_00);
diff --git a/src/overlay083/ov83_0223B5A0.c b/src/overlay083/ov83_0223B5A0.c
index 39c2046270..a310c59f5d 100644
--- a/src/overlay083/ov83_0223B5A0.c
+++ b/src/overlay083/ov83_0223B5A0.c
@@ -133,8 +133,8 @@ int ov83_0223B5B0 (UnkStruct_020067E8 * param0, int * param1)
v1->unk_28 = sub_02027AC0(v0->unk_10->unk_18);
v1->unk_31C = 1;
- sub_02017798(ov83_0223B5A0, v0);
- sub_020177A4();
+ SetMainCallback(ov83_0223B5A0, v0);
+ DisableHBlank();
sub_02004550(12, 1183, 1);
return 1;
@@ -221,8 +221,8 @@ int ov83_0223B710 (UnkStruct_020067E8 * param0, int * param1)
ov83_0223D1EC(v2);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0201DC3C();
MI_CpuClear8(v2, sizeof(UnkStruct_ov83_0223B784));
sub_02006830(param0);
diff --git a/src/overlay083/ov83_0223D6A8.c b/src/overlay083/ov83_0223D6A8.c
index b6af8ba5af..ad6420a37a 100644
--- a/src/overlay083/ov83_0223D6A8.c
+++ b/src/overlay083/ov83_0223D6A8.c
@@ -271,10 +271,10 @@ void ov83_0223D95C (UnkStruct_ov83_0223D784 * param0, UnkStruct_ov83_0223D95C *
}
}
-UnkStruct_02022550 * ov83_0223D9A8 (UnkStruct_ov83_0223D784 * param0, UnkStruct_ov83_0223D95C * param1, fx32 param2, fx32 param3, fx32 param4, int param5, int param6)
+GraphicElementData * ov83_0223D9A8 (UnkStruct_ov83_0223D784 * param0, UnkStruct_ov83_0223D95C * param1, fx32 param2, fx32 param3, fx32 param4, int param5, int param6)
{
UnkStruct_ov83_0223D9A8 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
v0.unk_00 = param0->unk_00;
v0.unk_04 = ¶m1->unk_14;
diff --git a/src/overlay084/ov84_0223B5A0.c b/src/overlay084/ov84_0223B5A0.c
index 2de13cfa90..ac510e21ab 100644
--- a/src/overlay084/ov84_0223B5A0.c
+++ b/src/overlay084/ov84_0223B5A0.c
@@ -396,8 +396,8 @@ int ov84_0223B5A0 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov84_0223B5A0 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -451,7 +451,7 @@ int ov84_0223B5A0 (UnkStruct_020067E8 * param0, int * param1)
ov84_02240328(v0);
}
- sub_02017798(ov84_0223BA14, v0);
+ SetMainCallback(ov84_0223BA14, v0);
sub_02004550(51, 0, 0);
sub_020397E4();
@@ -597,7 +597,7 @@ int ov84_0223B900 (UnkStruct_020067E8 * param0, int * param1)
sub_0200B3F0(v0->unk_118);
NARC_dtor(v0->unk_D4);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(6);
SetAutorepeat(4, 8);
diff --git a/src/overlay085/ov85_02241440.c b/src/overlay085/ov85_02241440.c
index ce516b9469..e5c10fd1ab 100644
--- a/src/overlay085/ov85_02241440.c
+++ b/src/overlay085/ov85_02241440.c
@@ -218,8 +218,8 @@ int ov85_02241440 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov85_022417E4 * v0;
NARC * v1;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -256,7 +256,7 @@ int ov85_02241440 (UnkStruct_020067E8 * param0, int * param1)
ov85_02242038(v0);
ov85_02242218(v0);
- sub_02017798(ov85_022415F4, v0);
+ SetMainCallback(ov85_022415F4, v0);
sub_020397E4();
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
NARC_dtor(v1);
@@ -304,7 +304,7 @@ int ov85_022415A0 (UnkStruct_020067E8 * param0, int * param1)
Heap_FreeToHeap(v0->unk_1FC);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(36);
G2_BlendNone();
diff --git a/src/overlay086/ov86_0223B140.c b/src/overlay086/ov86_0223B140.c
index 35a94bcac2..2be36ad103 100644
--- a/src/overlay086/ov86_0223B140.c
+++ b/src/overlay086/ov86_0223B140.c
@@ -75,10 +75,10 @@ typedef struct {
UnkStruct_0203E234 * unk_0C;
BGL * unk_10;
Window unk_14;
- UnkStruct_020218BC * unk_24;
+ GraphicElementManager * unk_24;
UnkStruct_0200C738 unk_28;
- UnkStruct_02022550 * unk_1B4[6];
- UnkStruct_02022550 * unk_1CC;
+ GraphicElementData * unk_1B4[6];
+ GraphicElementData * unk_1CC;
void * unk_1D0;
void * unk_1D4;
SpriteAnimationFrame unk_1D8[6][10];
@@ -128,14 +128,14 @@ typedef struct {
typedef struct {
UnkStruct_ov86_0223BDAC unk_00;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
VecFx32 unk_0C;
UnkStruct_ov86_0223D264 unk_18;
} UnkStruct_ov86_0223BDE0;
typedef struct {
UnkStruct_ov86_0223BDAC unk_00;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
VecFx32 unk_0C;
UnkStruct_ov86_0223D264 unk_18;
} UnkStruct_ov86_0223BEA0;
@@ -171,7 +171,7 @@ typedef struct {
typedef struct {
UnkStruct_ov86_0223BDAC unk_00;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
const SpriteAnimationFrame * unk_0C;
UnkStruct_02008900 unk_10;
NNSG2dImageProxy unk_24[2];
@@ -208,7 +208,7 @@ typedef struct {
typedef struct {
UnkStruct_ov86_0223BDAC unk_00;
- UnkStruct_02022550 ** unk_08;
+ GraphicElementData ** unk_08;
UnkStruct_ov86_0223B3C8 * unk_0C;
int unk_10;
int unk_14;
@@ -305,7 +305,7 @@ int ov86_0223B140 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov86_0223B3C8 * v0;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Create(3, 63, 196608);
v0 = sub_0200681C(param0, sizeof(UnkStruct_ov86_0223B3C8), 63);
diff --git a/src/overlay087/ov87_021D106C.c b/src/overlay087/ov87_021D106C.c
index 80639ae6a1..a8b6876097 100644
--- a/src/overlay087/ov87_021D106C.c
+++ b/src/overlay087/ov87_021D106C.c
@@ -52,9 +52,9 @@ typedef struct UnkStruct_ov87_021D106C_t {
int unk_0C;
BGL * unk_10;
Window unk_14[2];
- UnkStruct_020218BC * unk_34;
+ GraphicElementManager * unk_34;
UnkStruct_0200C738 unk_38;
- UnkStruct_02022550 * unk_1C4[6];
+ GraphicElementData * unk_1C4[6];
void * unk_1DC;
void * unk_1E0;
MessageLoader * unk_1E4;
@@ -116,7 +116,7 @@ UnkStruct_ov87_021D106C * ov87_021D106C (UnkStruct_ov87_021D0D80 * param0, const
v0->unk_1F8 = Strbuf_Init(256, 61);
v0->unk_1FC = Pokemon_New(61);
- sub_02017798(ov87_021D11AC, v0);
+ SetMainCallback(ov87_021D11AC, v0);
}
return v0;
@@ -125,7 +125,7 @@ UnkStruct_ov87_021D106C * ov87_021D106C (UnkStruct_ov87_021D0D80 * param0, const
void ov87_021D1140 (UnkStruct_ov87_021D106C * param0)
{
if (param0) {
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_FreeToHeap(param0->unk_1FC);
Strbuf_Free(param0->unk_1F8);
Strbuf_Free(param0->unk_1F4);
@@ -213,7 +213,7 @@ static BOOL ov87_021D12C0 (UnkStruct_ov87_021D106C * param0, int * param1)
if (v1 == v0->unk_18) {
sub_02021FE0(param0->unk_1C4[v1], GX_OAM_MODE_NORMAL);
sub_02021F58(param0->unk_1C4[v1], 0);
- sub_020063D4(1);
+ Sound_FlagDefaultChatotCry(1);
sub_02005844(v0->unk_20[v1].unk_10, v0->unk_20[v1].unk_13);
} else {
@@ -562,7 +562,7 @@ static void ov87_021D1970 (UnkStruct_ov87_021D106C * param0)
sub_02006E84(v1.archive, v1.palette, 1, v3 * 0x20, 0x20, 61);
if (v3 == v2->unk_18) {
- sub_020063D4(1);
+ Sound_FlagDefaultChatotCry(1);
sub_02005844(v2->unk_20[v3].unk_10, v2->unk_20[v3].unk_13);
sub_02021FE0(param0->unk_1C4[v3], GX_OAM_MODE_NORMAL);
} else {
diff --git a/src/overlay088/ov88_0223B140.c b/src/overlay088/ov88_0223B140.c
index 0184803ad4..6c959d980c 100644
--- a/src/overlay088/ov88_0223B140.c
+++ b/src/overlay088/ov88_0223B140.c
@@ -14,7 +14,7 @@
#include "trainer_info.h"
#include "struct_decls/struct_0202B370_decl.h"
#include "struct_decls/struct_0202B628_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_020507E4_decl.h"
#include "pokemon.h"
#include "struct_decls/struct_party_decl.h"
@@ -59,7 +59,7 @@
#include "unk_0200DA60.h"
#include "unk_0200F174.h"
#include "unk_020131EC.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02013A04.h"
#include "unk_02017728.h"
#include "heap.h"
@@ -102,7 +102,7 @@
#include "overlay088/ov88_0223B140.h"
#include "overlay088/ov88_0223E9C4.h"
-static void ov88_0223B2F0(NNSG2dCharacterData * param0, int param1, int param2, int param3, int param4, UnkStruct_02022550 * param5);
+static void ov88_0223B2F0(NNSG2dCharacterData * param0, int param1, int param2, int param3, int param4, GraphicElementData * param5);
static void ov88_0223B320(UnkStruct_02095E80 * param0);
static void ov88_0223C0E0(void * param0);
static void ov88_0223C15C(void);
@@ -118,11 +118,11 @@ static void ov88_0223CE34(u32 * param0);
static void ov88_0223CE74(UnkStruct_02095E80 * param0);
static void ov88_0223CEF0(u16 * param0);
static int ov88_0223CF30(int param0, int param1, UnkStruct_ov88_0223C8AC * param2);
-static void ov88_0223CF68(int param0, UnkStruct_02022550 * param1, int param2);
-static int ov88_0223CFF4(u32 * param0, int * param1, UnkStruct_02022550 * param2, UnkStruct_ov88_0223C8AC * param3, int param4);
+static void ov88_0223CF68(int param0, GraphicElementData * param1, int param2);
+static int ov88_0223CFF4(u32 * param0, int * param1, GraphicElementData * param2, UnkStruct_ov88_0223C8AC * param3, int param4);
static int ov88_0223C800(int param0, Pokemon * param1, u8 * param2, ArchivedSprite * param3);
static void ov88_0223E7F0(UnkStruct_0202B628 * param0, Pokemon * param1);
-static void ov88_0223D140(UnkStruct_0202CC84 * param0);
+static void ov88_0223D140(ChatotCry * param0);
static void ov88_0223E894(UnkStruct_02095E80 * param0);
static void ov88_0223E8B4(UnkStruct_02095E80 * param0);
static int ov88_0223E8D0(UnkStruct_02095E80 * param0);
@@ -139,7 +139,7 @@ static void ov88_0223BFD8(UnkStruct_02095E80 * param0);
static void ov88_0223BE28(UnkStruct_02095E80 * param0);
static void ov88_0223CB34(Window * param0, int param1, UnkStruct_02095E80 * param2);
static void ov88_0223BD18(Pokemon * param0, UnkStruct_ov88_0223C8AC * param1);
-static void ov88_0223E87C(UnkStruct_02022550 * param0, int param1, int param2);
+static void ov88_0223E87C(GraphicElementData * param0, int param1, int param2);
static int ov88_0223C8AC(UnkStruct_ov88_0223C8AC * param0, Party * param1, int param2, int param3);
static void ov88_0223D0C0(SaveData * param0);
static int ov88_0223B914(UnkStruct_02095E80 * param0);
@@ -169,7 +169,7 @@ static void ov88_0223DFF4(UnkStruct_02095E80 * param0);
static void ov88_0223E1AC(UnkStruct_02095E80 * param0);
static void ov88_0223E1C0(UnkStruct_02095E80 * param0, int param1, int param2);
static void ov88_0223DE68(VecFx32 param0[], int param1, int param2, int param3, int param4);
-static void ov88_0223DE7C(UnkStruct_02022550 * param0, UnkStruct_02022550 * param1, UnkStruct_02022550 * param2, int param3, VecFx32 param4[], UnkStruct_ov88_0223C8AC * param5);
+static void ov88_0223DE7C(GraphicElementData * param0, GraphicElementData * param1, GraphicElementData * param2, int param3, VecFx32 param4[], UnkStruct_ov88_0223C8AC * param5);
static void ov88_0223BDA4(UnkStruct_02095E80 * param0, int param1);
static void ov88_0223E848(UnkStruct_02095E80 * param0);
static void ov88_0223C860(Window * param0, Party * param1, int param2, int param3, int param4);
@@ -292,8 +292,8 @@ int ov88_0223B140 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_02095E80 * v0;
NARC * v1;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -320,7 +320,7 @@ int ov88_0223B140 (UnkStruct_020067E8 * param0, int * param1)
ov88_0223C17C(v0->unk_174);
sub_0200F174(0, 1, 1, 0x0, 16, 1, 26);
ov88_0223C504(v0, v1);
- sub_02017798(ov88_0223C0E0, v0);
+ SetMainCallback(ov88_0223C0E0, v0);
ov88_0223C63C();
ov88_0223C66C(v0, v1);
ov88_0223CBA0(v0);
@@ -336,7 +336,7 @@ int ov88_0223B140 (UnkStruct_020067E8 * param0, int * param1)
sub_02038A1C(26, v0->unk_174);
sub_02039734();
- if (sub_02013948() == 0) {
+ if (IsNight() == 0) {
sub_02004550(4, 1085, 1);
sub_02004A84(1085);
} else {
@@ -349,7 +349,7 @@ int ov88_0223B140 (UnkStruct_020067E8 * param0, int * param1)
return 1;
}
-static void ov88_0223B2F0 (NNSG2dCharacterData * param0, int param1, int param2, int param3, int param4, UnkStruct_02022550 * param5)
+static void ov88_0223B2F0 (NNSG2dCharacterData * param0, int param1, int param2, int param3, int param4, GraphicElementData * param5)
{
u8 * v0;
@@ -413,7 +413,7 @@ static void ov88_0223B3C0 (UnkStruct_02095E80 * param0)
sub_02021CAC(param0->unk_39C[0], 1);
sub_02021CAC(param0->unk_39C[1], 1);
- sub_02017798(ov88_0223C0E0, param0);
+ SetMainCallback(ov88_0223C0E0, param0);
NARC_dtor(v0);
}
@@ -576,7 +576,7 @@ static int ov88_0223B914 (UnkStruct_02095E80 * param0)
switch (param0->unk_4C) {
case 0:
sub_020364F0(80);
- sub_02017DE0(2);
+ ResetLock(2);
ov88_0223E894(param0);
{
@@ -700,7 +700,7 @@ static int ov88_0223B914 (UnkStruct_02095E80 * param0)
}
break;
case 14:
- ov88_0223D140(sub_0202CC98(param0->unk_04));
+ ov88_0223D140(GetChatotCryDataFromSave(param0->unk_04));
param0->unk_4C++;
break;
case 15:
@@ -753,7 +753,7 @@ static int ov88_0223B914 (UnkStruct_02095E80 * param0)
sub_0200E084(¶m0->unk_49C[23], 0);
sub_02019CB8(param0->unk_174, 0, 0, 0, 0, 32, 24, 0);
ov88_0223ECBC(¶m0->unk_49C[21], 15, 1, param0->unk_184, param0->unk_178);
- sub_02017DF0(2);
+ ResetUnlock(2);
return 1;
}
@@ -906,7 +906,7 @@ int ov88_0223C03C (UnkStruct_020067E8 * param0, int * param1)
sub_0200B3F0(v0->unk_178);
Strbuf_Free(v0->unk_18C);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(26);
return 1;
@@ -1538,7 +1538,7 @@ static void ov88_0223CE74 (UnkStruct_02095E80 * param0)
v1 = param0->unk_6F4[param0->unk_88[0]].unk_06;
if (v0 == 441) {
- sub_020063E4(sub_0202CC98(param0->unk_04), 0, 100, 0);
+ Sound_PlayChatotCry(GetChatotCryDataFromSave(param0->unk_04), 0, 100, 0);
} else {
sub_02005844(v0, v1);
}
@@ -1588,7 +1588,7 @@ static const int Unk_ov88_0223EE50[][3] = {
{0x11, 0x12, 0x13}
};
-static void ov88_0223CF68 (int param0, UnkStruct_02022550 * param1, int param2)
+static void ov88_0223CF68 (int param0, GraphicElementData * param1, int param2)
{
VecFx32 v0;
@@ -1611,7 +1611,7 @@ static void ov88_0223CF68 (int param0, UnkStruct_02022550 * param1, int param2)
}
}
-static int ov88_0223CFF4 (u32 * param0, int * param1, UnkStruct_02022550 * param2, UnkStruct_ov88_0223C8AC * param3, int param4)
+static int ov88_0223CFF4 (u32 * param0, int * param1, GraphicElementData * param2, UnkStruct_ov88_0223C8AC * param3, int param4)
{
int v0 = *param0 - 1;
int v1 = 0;
@@ -1697,7 +1697,7 @@ static void ov88_0223D0D4 (TrainerInfo * param0, UnkStruct_02027F8C * param1, Un
sub_0203597C(28, param2, sizeof(UnkStruct_02027F8C));
}
-static void ov88_0223D140 (UnkStruct_0202CC84 * param0)
+static void ov88_0223D140 (ChatotCry * param0)
{
sub_0203597C(29, param0, 1000);
}
@@ -1751,7 +1751,7 @@ static void ov88_0223D1EC (UnkStruct_02095E80 * param0, int param1)
} else {
param0->unk_0C.unk_00 = param0->unk_2274;
param0->unk_0C.unk_13 = Party_GetCurrentCount(param0->unk_2274);
- param0->unk_0C.unk_28 = (UnkStruct_0202CC84 *)param0->unk_2E6C[sub_0203608C() ^ 1];
+ param0->unk_0C.unk_28 = (ChatotCry *)param0->unk_2E6C[sub_0203608C() ^ 1];
sub_0208E9C0(¶m0->unk_0C, sub_02032EE8(sub_0203608C() ^ 1));
}
@@ -2232,7 +2232,7 @@ static void ov88_0223DE68 (VecFx32 param0[], int param1, int param2, int param3,
param0[1].y = FX32_ONE * param4;
}
-static void ov88_0223DE7C (UnkStruct_02022550 * param0, UnkStruct_02022550 * param1, UnkStruct_02022550 * param2, int param3, VecFx32 param4[], UnkStruct_ov88_0223C8AC * param5)
+static void ov88_0223DE7C (GraphicElementData * param0, GraphicElementData * param1, GraphicElementData * param2, int param3, VecFx32 param4[], UnkStruct_ov88_0223C8AC * param5)
{
VecFx32 v0, v1, v2;
@@ -2528,8 +2528,8 @@ static void ov88_0223E694 (Party * param0, Party * param1, int param2, int param
param4->unk_2C = param2;
if (Party_HasSpecies(param0, 441) == 0) {
- UnkStruct_0202CC84 * v4 = sub_0202CC98(param4->unk_10);
- sub_0202CCA8(v4);
+ ChatotCry * v4 = GetChatotCryDataFromSave(param4->unk_10);
+ ResetChatotCryDataStatus(v4);
}
sub_0202F180(param4->unk_10, v1);
@@ -2559,7 +2559,7 @@ static void ov88_0223E848 (UnkStruct_02095E80 * param0)
sub_02019184(param0->unk_174, 3, 0, param0->unk_2310);
}
-static void ov88_0223E87C (UnkStruct_02022550 * param0, int param1, int param2)
+static void ov88_0223E87C (GraphicElementData * param0, int param1, int param2)
{
VecFx32 v0;
diff --git a/src/overlay088/ov88_0223E9C4.c b/src/overlay088/ov88_0223E9C4.c
index b65ca2fb5d..f93000d452 100644
--- a/src/overlay088/ov88_0223E9C4.c
+++ b/src/overlay088/ov88_0223E9C4.c
@@ -57,7 +57,7 @@ static const u16 Unk_ov88_0223F170[][2] = {
{0x14, 0xA}
};
-void ov88_0223E9C4 (BGL * param0, Window * param1, UnkStruct_020279FC * param2)
+void ov88_0223E9C4 (BGL * param0, Window * param1, AnimationControlFlags * param2)
{
int v0;
@@ -165,7 +165,7 @@ static const UnkStruct_ov61_0222C884 Unk_ov88_0223F148 = {
0x112
};
-u32 ov88_0223ED2C (BGL * param0, UnkStruct_02001AF4 ** param1, int * param2)
+u32 ov88_0223ED2C (BGL * param0, UIControlData ** param1, int * param2)
{
u32 v0 = 0xffffffff;
@@ -212,7 +212,7 @@ static const UnkStruct_ov84_02240FA8 Unk_ov88_0223F150 = {
NULL
};
-UnkStruct_0200112C * ov88_0223ED94 (UnkStruct_02013A04 * param0, int param1, Window * param2, BGL * param3)
+UnkStruct_0200112C * ov88_0223ED94 (ResourceMetadata * param0, int param1, Window * param2, BGL * param3)
{
UnkStruct_0200112C * v0;
UnkStruct_ov84_02240FA8 v1;
diff --git a/src/overlay090/ov90_021D0D80.c b/src/overlay090/ov90_021D0D80.c
index a160842500..4287fe9669 100644
--- a/src/overlay090/ov90_021D0D80.c
+++ b/src/overlay090/ov90_021D0D80.c
@@ -91,16 +91,16 @@ typedef struct {
u8 unk_0F;
BGL * unk_10;
UnkStruct_ov90_021D0D80 * unk_14;
- UnkStruct_020279FC * unk_18;
+ AnimationControlFlags * unk_18;
UnkStruct_0203068C * unk_1C;
UnkStruct_0202D750 * unk_20;
UnkStruct_0202D764 * unk_24;
UnkStruct_ov90_021D0ECC_sub1 unk_28;
Window unk_6C[5];
UnkStruct_ov90_021D17F8 unk_BC[30];
- UnkStruct_0200C6E4 * unk_29C;
- UnkStruct_0200C704 * unk_2A0;
- UnkStruct_02022550 * unk_2A4[4];
+ CellTransferStateData * unk_29C;
+ AnimationResourceCollection * unk_2A0;
+ GraphicElementData * unk_2A4[4];
} UnkStruct_ov90_021D0ECC;
static int ov90_021D0ECC(UnkStruct_ov90_021D0ECC * param0);
@@ -228,8 +228,8 @@ static int ov90_021D0ECC (UnkStruct_ov90_021D0ECC * param0)
{
switch (param0->unk_04) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -262,7 +262,7 @@ static int ov90_021D0ECC (UnkStruct_ov90_021D0ECC * param0)
ov90_021D1984(param0);
break;
case 4:
- sub_02017798(ov90_021D1034, param0);
+ SetMainCallback(ov90_021D1034, param0);
param0->unk_04 = 0;
return 1;
}
@@ -286,8 +286,8 @@ static int ov90_021D0F98 (UnkStruct_ov90_021D0ECC * param0)
ov90_021D1280(param0);
break;
case 1:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
diff --git a/src/overlay091/ov91_021D0D80.c b/src/overlay091/ov91_021D0D80.c
index 2ed260aea0..5b56dc004b 100644
--- a/src/overlay091/ov91_021D0D80.c
+++ b/src/overlay091/ov91_021D0D80.c
@@ -72,10 +72,10 @@ typedef struct {
UnkStruct_0200B358 * unk_FC;
Strbuf* unk_100;
UnkStruct_0200112C * unk_104;
- UnkStruct_02013A04 * unk_108;
- UnkStruct_02001AF4 * unk_10C;
- UnkStruct_0200C6E4 * unk_110;
- UnkStruct_0200C704 * unk_114;
+ ResourceMetadata * unk_108;
+ UIControlData * unk_10C;
+ CellTransferStateData * unk_110;
+ AnimationResourceCollection * unk_114;
CellActorData * unk_118[13];
UnkStruct_02098D38 unk_14C;
UnkStruct_020067E8 * unk_17C;
@@ -85,12 +85,12 @@ typedef struct {
u8 unk_186;
} UnkStruct_ov91_021D0ED8;
-typedef int (* UnkFuncPtr_0207F248_1)(UnkStruct_ov91_021D0ED8 *);
+typedef int (* GenericFunctionPtr_1)(UnkStruct_ov91_021D0ED8 *);
typedef struct {
- UnkFuncPtr_0207F248_1 unk_00;
- UnkFuncPtr_0207F248_1 unk_04;
-} UnkStruct_0207F248_1;
+ GenericFunctionPtr_1 unk_00;
+ GenericFunctionPtr_1 unk_04;
+} GameWindowLayout_1;
static void ov91_021D0ED8(UnkStruct_ov91_021D0ED8 * param0);
static void ov91_021D0F6C(UnkStruct_ov91_021D0ED8 * param0);
@@ -197,7 +197,7 @@ static const u32 Unk_ov91_021D282C[2][11] = {
{0xB, 0xC, 0xD, 0xE, 0xF, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15}
};
-static const UnkStruct_0207F248_1 Unk_ov91_021D27DC[] = {
+static const GameWindowLayout_1 Unk_ov91_021D27DC[] = {
{ov91_021D1EC8, ov91_021D1EE8},
{ov91_021D1F38, ov91_021D1F44},
{ov91_021D1F94, ov91_021D1FA0},
@@ -383,7 +383,7 @@ int ov91_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
sub_0201A9A4(&v0->unk_08[12]);
ov91_021D2594(v0);
- sub_02017798(ov91_021D0F9C, v0);
+ SetMainCallback(ov91_021D0F9C, v0);
return 1;
}
@@ -455,8 +455,8 @@ static void ov91_021D0ED8 (UnkStruct_ov91_021D0ED8 * param0)
{
NARC * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -479,7 +479,7 @@ static void ov91_021D0ED8 (UnkStruct_ov91_021D0ED8 * param0)
ov91_021D1784(param0);
ov91_021D1498(param0);
- sub_02017798(ov91_021D0F9C, param0);
+ SetMainCallback(ov91_021D0F9C, param0);
NARC_dtor(v0);
}
@@ -492,7 +492,7 @@ static void ov91_021D0F6C (UnkStruct_ov91_021D0ED8 * param0)
ov91_021D20B4(param0);
sub_0201DC3C();
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
}
static void ov91_021D0F9C (void * param0)
diff --git a/src/overlay092/ov92_021D0D80.c b/src/overlay092/ov92_021D0D80.c
index 11d133532c..1d79a4acd5 100644
--- a/src/overlay092/ov92_021D0D80.c
+++ b/src/overlay092/ov92_021D0D80.c
@@ -85,7 +85,7 @@ typedef struct {
typedef struct {
int unk_00;
UnkStruct_0202C878 * unk_04;
- UnkStruct_020279FC * unk_08;
+ AnimationControlFlags * unk_08;
UnkStruct_ov92_021D1B24_sub1 unk_0C;
BGL * unk_B810;
Window unk_B814;
@@ -93,8 +93,8 @@ typedef struct {
Window unk_B834;
Window unk_B844;
UnkStruct_0200112C * unk_B854;
- UnkStruct_02013A04 * unk_B858;
- UnkStruct_02001AF4 * unk_B85C;
+ ResourceMetadata * unk_B858;
+ UIControlData * unk_B85C;
MessageLoader * unk_B860;
int unk_B864;
int unk_B868;
@@ -321,8 +321,8 @@ int ov92_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov92_021D1B24 * v0;
int v1 = 50;
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -713,7 +713,7 @@ int ov92_021D1478 (UnkStruct_020067E8 * param0, int * param1)
sub_0200B3F0(v0->unk_B870);
sub_0201CBA0();
Heap_FreeToHeap(v0->unk_B810);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_02006830(param0);
Heap_Destroy(v1);
diff --git a/src/overlay093/ov93_021D0D80.c b/src/overlay093/ov93_021D0D80.c
index 8f9aa4eeba..4d4901ce3e 100644
--- a/src/overlay093/ov93_021D0D80.c
+++ b/src/overlay093/ov93_021D0D80.c
@@ -202,8 +202,8 @@ int ov93_021D0F58 (UnkStruct_020067E8 * param0, int * param1)
static void ov93_021D0FA8 (void)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
diff --git a/src/overlay093/ov93_021D111C.c b/src/overlay093/ov93_021D111C.c
index 6c2fe5c9b2..f9039065e0 100644
--- a/src/overlay093/ov93_021D111C.c
+++ b/src/overlay093/ov93_021D111C.c
@@ -202,8 +202,8 @@ int ov93_021D12F0 (UnkStruct_020067E8 * param0, int * param1)
static void ov93_021D133C (void)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
diff --git a/src/overlay094/ov94_0223BCB0.c b/src/overlay094/ov94_0223BCB0.c
index 3bf5f56033..c5f934efc5 100644
--- a/src/overlay094/ov94_0223BCB0.c
+++ b/src/overlay094/ov94_0223BCB0.c
@@ -97,8 +97,8 @@ int ov94_0223BCB0 (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -234,7 +234,7 @@ int ov94_0223BF54 (UnkStruct_020067E8 * param0, int * param1)
Heap_FreeToHeap(v0->unk_04);
Heap_FreeToHeap(v0->unk_00);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(62);
return 1;
@@ -413,7 +413,7 @@ static const UnkStruct_ov61_0222C884 Unk_ov94_022459F8 = {
0x0
};
-UnkStruct_02001AF4 * ov94_0223C3C0 (BGL * param0, int param1, int param2)
+UIControlData * ov94_0223C3C0 (BGL * param0, int param1, int param2)
{
UnkStruct_ov61_0222C884 v0;
@@ -430,7 +430,7 @@ void ov94_0223C3F4 (UnkStruct_ov94_0223FD4C * param0, int param1, int param2)
param0->unk_30 = param2;
}
-void ov94_0223C3FC (UnkStruct_02022550 * param0, int param1, int param2)
+void ov94_0223C3FC (GraphicElementData * param0, int param1, int param2)
{
VecFx32 v0;
@@ -503,7 +503,7 @@ static void ov94_0223C4E0 (UnkStruct_ov94_0223FD4C * param0)
ov94_0223C0D4(param0);
ov94_0223C32C(param0);
- sub_02017798(ov94_0223BFE4, param0);
+ SetMainCallback(ov94_0223BFE4, param0);
}
static void ov94_0223C508 (UnkStruct_ov94_0223FD4C * param0)
diff --git a/src/overlay094/ov94_0223FB48.c b/src/overlay094/ov94_0223FB48.c
index ce8f71b29c..6640514dd1 100644
--- a/src/overlay094/ov94_0223FB48.c
+++ b/src/overlay094/ov94_0223FB48.c
@@ -54,7 +54,7 @@
typedef struct {
int unk_00;
int unk_04;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
u8 unk_0C[512];
} UnkStruct_ov94_02240FA0;
@@ -75,7 +75,7 @@ static int ov94_02240AE8(UnkStruct_ov94_0223FD4C * param0);
static int ov94_02240D08(UnkStruct_ov94_0223FD4C * param0);
static int ov94_02240D28(UnkStruct_ov94_0223FD4C * param0);
static void ov94_02240D58(UnkStruct_ov94_0223FD4C * param0, int param1, int param2, int param3, u16 param4, int param5);
-static void ov94_02240DF8(int param0, int param1, int param2, int param3, UnkStruct_02022550 * param4, NARC * param5, UnkStruct_ov94_02240FA0 * param6);
+static void ov94_02240DF8(int param0, int param1, int param2, int param3, GraphicElementData * param4, NARC * param5, UnkStruct_ov94_02240FA0 * param6);
static void ov94_02240FA0(UnkStruct_ov94_0223FD4C * param0, int param1);
static int ov94_022405CC(int param0, int param1, int param2);
static void ov94_022404F0(UnkStruct_ov94_0223FD4C * param0);
@@ -91,10 +91,10 @@ static int ov94_02240C84(UnkStruct_ov94_0223FD4C * param0);
static int ov94_02240CA8(UnkStruct_ov94_0223FD4C * param0);
static int ov94_02241384(BoxPokemon * param0, UnkStruct_ov94_0223BA88_sub3 * param1);
static void ov94_022413BC(UnkStruct_ov94_0223BA88 * param0, UnkStruct_ov94_0223FD4C * param1);
-static void ov94_02240EAC(BoxPokemon * param0, UnkStruct_02022550 * param1, UnkStruct_02022550 * param2, u16 * param3, int param4, NARC * param5, UnkStruct_ov94_0223BA88_sub2 * param6, UnkStruct_ov94_02240FA0 * param7);
+static void ov94_02240EAC(BoxPokemon * param0, GraphicElementData * param1, GraphicElementData * param2, u16 * param3, int param4, NARC * param5, UnkStruct_ov94_0223BA88_sub2 * param6, UnkStruct_ov94_02240FA0 * param7);
void * ov94_02240DD0(NARC * param0, u32 param1, NNSG2dCharacterData ** param2, u32 param3);
static int ov94_02241328(UnkStruct_ov94_0223BA88_sub2 * param0, UnkStruct_ov94_0223BA88_sub3 * param1);
-static void ov94_02241464(UnkStruct_ov94_0223BA88_sub2 * param0, UnkStruct_02022550 ** param1, UnkStruct_ov94_0223BA88_sub3 * param2, UnkStruct_ov94_02240FA0 * param3);
+static void ov94_02241464(UnkStruct_ov94_0223BA88_sub2 * param0, GraphicElementData ** param1, UnkStruct_ov94_0223BA88_sub3 * param2, UnkStruct_ov94_02240FA0 * param3);
static int ov94_0224121C(Party * param0, PCBoxes * param1, int param2, int param3);
static int ov94_022412F4(Party * param0, PCBoxes * param1, int param2, int param3);
static int ov94_02240BB0(UnkStruct_ov94_0223FD4C * param0);
@@ -1049,7 +1049,7 @@ void * ov94_02240DD0 (NARC * param0, u32 param1, NNSG2dCharacterData ** param2,
return v0;
}
-static void ov94_02240DF8 (int param0, int param1, int param2, int param3, UnkStruct_02022550 * param4, NARC * param5, UnkStruct_ov94_02240FA0 * param6)
+static void ov94_02240DF8 (int param0, int param1, int param2, int param3, GraphicElementData * param4, NARC * param5, UnkStruct_ov94_02240FA0 * param6)
{
u8 * v0;
u8 * v1;
@@ -1089,7 +1089,7 @@ static void ov94_02240E5C (void * param0)
Heap_FreeToHeap(v0->unk_1114);
}
-static void ov94_02240EAC (BoxPokemon * param0, UnkStruct_02022550 * param1, UnkStruct_02022550 * param2, u16 * param3, int param4, NARC * param5, UnkStruct_ov94_0223BA88_sub2 * param6, UnkStruct_ov94_02240FA0 * param7)
+static void ov94_02240EAC (BoxPokemon * param0, GraphicElementData * param1, GraphicElementData * param2, u16 * param3, int param4, NARC * param5, UnkStruct_ov94_0223BA88_sub2 * param6, UnkStruct_ov94_02240FA0 * param7)
{
int v0, v1, v2, v3;
@@ -1401,7 +1401,7 @@ static void ov94_022413BC (UnkStruct_ov94_0223BA88 * param0, UnkStruct_ov94_0223
param0->unk_F0 = v1;
}
-static void ov94_02241464 (UnkStruct_ov94_0223BA88_sub2 * param0, UnkStruct_02022550 ** param1, UnkStruct_ov94_0223BA88_sub3 * param2, UnkStruct_ov94_02240FA0 * param3)
+static void ov94_02241464 (UnkStruct_ov94_0223BA88_sub2 * param0, GraphicElementData ** param1, UnkStruct_ov94_0223BA88_sub3 * param2, UnkStruct_ov94_02240FA0 * param3)
{
int v0, v1;
diff --git a/src/overlay094/ov94_022414B8.c b/src/overlay094/ov94_022414B8.c
index e59773d731..da337cb0fa 100644
--- a/src/overlay094/ov94_022414B8.c
+++ b/src/overlay094/ov94_022414B8.c
@@ -87,7 +87,7 @@ static int ov94_02242040(UnkStruct_ov94_0223FD4C * param0);
static int ov94_02242068(UnkStruct_ov94_0223FD4C * param0);
static int ov94_0224208C(UnkStruct_ov94_0223FD4C * param0);
static void ov94_02242668(UnkStruct_ov94_0223BA88 * param0, UnkStruct_ov94_0223FD4C * param1);
-static int ov94_02242718(UnkStruct_02013A04 ** param0, MessageLoader * param1, MessageLoader * param2, u16 * param3, u8 * param4, int param5, int param6, UnkStruct_02026324 * param7);
+static int ov94_02242718(ResourceMetadata ** param0, MessageLoader * param1, MessageLoader * param2, u16 * param3, u8 * param4, int param5, int param6, UnkStruct_02026324 * param7);
static u32 ov94_022421E8(int param0, u32 param1);
static int (* Unk_ov94_0224695C[])(UnkStruct_ov94_0223FD4C *) = {
@@ -1100,7 +1100,7 @@ static const UnkStruct_ov84_02240FA8 Unk_ov94_0224608C = {
NULL
};
-UnkStruct_0200112C * ov94_022426A8 (UnkStruct_ov94_0223FD4C * param0, UnkStruct_02013A04 ** param1, Window * param2, MessageLoader * param3)
+UnkStruct_0200112C * ov94_022426A8 (UnkStruct_ov94_0223FD4C * param0, ResourceMetadata ** param1, Window * param2, MessageLoader * param3)
{
UnkStruct_ov84_02240FA8 v0;
int v1;
@@ -1133,7 +1133,7 @@ static u16 Unk_ov94_02246928[] = {
0x1ED
};
-static int ov94_02242718 (UnkStruct_02013A04 ** param0, MessageLoader * param1, MessageLoader * param2, u16 * param3, u8 * param4, int param5, int param6, UnkStruct_02026324 * param7)
+static int ov94_02242718 (ResourceMetadata ** param0, MessageLoader * param1, MessageLoader * param2, u16 * param3, u8 * param4, int param5, int param6, UnkStruct_02026324 * param7)
{
int v0, v1, v2 = 0;
int v3 = Unk_ov94_02246928[param6 + 1] - Unk_ov94_02246928[param6];
@@ -1176,7 +1176,7 @@ static int ov94_02242718 (UnkStruct_02013A04 ** param0, MessageLoader * param1,
return v2 + 1;
}
-UnkStruct_0200112C * ov94_022427C0 (UnkStruct_ov94_0223FD4C * param0, UnkStruct_02013A04 ** param1, Window * param2, MessageLoader * param3, MessageLoader * param4, UnkStruct_ov94_0223FD4C_sub3 * param5, UnkStruct_02026324 * param6)
+UnkStruct_0200112C * ov94_022427C0 (UnkStruct_ov94_0223FD4C * param0, ResourceMetadata ** param1, Window * param2, MessageLoader * param3, MessageLoader * param4, UnkStruct_ov94_0223FD4C_sub3 * param5, UnkStruct_02026324 * param6)
{
UnkStruct_ov84_02240FA8 v0;
int v1, v2, v3;
@@ -1203,7 +1203,7 @@ static Unk_ov94_0224693C[][2] = {
{0x79, 0xFFFFFFFE}
};
-UnkStruct_0200112C * ov94_02242840 (UnkStruct_02013A04 ** param0, Window * param1, MessageLoader * param2)
+UnkStruct_0200112C * ov94_02242840 (ResourceMetadata ** param0, Window * param1, MessageLoader * param2)
{
UnkStruct_ov84_02240FA8 v0;
int v1;
@@ -1224,7 +1224,7 @@ UnkStruct_0200112C * ov94_02242840 (UnkStruct_02013A04 ** param0, Window * param
return sub_0200112C(&v0, 0, 0, 62);
}
-UnkStruct_0200112C * ov94_022428B0 (UnkStruct_02013A04 ** param0, Window * param1, MessageLoader * param2, int param3)
+UnkStruct_0200112C * ov94_022428B0 (ResourceMetadata ** param0, Window * param1, MessageLoader * param2, int param3)
{
UnkStruct_ov84_02240FA8 v0;
int v1;
@@ -1294,7 +1294,7 @@ int ov94_02242970 (int param0, int param1, int param2)
return 0;
}
-UnkStruct_0200112C * ov94_022429B4 (UnkStruct_02013A04 ** param0, Window * param1, MessageLoader * param2, MessageLoader * param3)
+UnkStruct_0200112C * ov94_022429B4 (ResourceMetadata ** param0, Window * param1, MessageLoader * param2, MessageLoader * param3)
{
UnkStruct_ov84_02240FA8 v0;
int v1;
diff --git a/src/overlay094/ov94_02242AD0.c b/src/overlay094/ov94_02242AD0.c
index 0bacc9b4af..4fee91d51b 100644
--- a/src/overlay094/ov94_02242AD0.c
+++ b/src/overlay094/ov94_02242AD0.c
@@ -8,7 +8,7 @@
#include "struct_decls/struct_0202440C_decl.h"
#include "struct_decls/struct_0202B628_decl.h"
#include "struct_decls/struct_0202C878_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_0202DA40_decl.h"
#include "struct_decls/struct_020507E4_decl.h"
#include "pokemon.h"
@@ -1264,8 +1264,8 @@ static void ov94_02243B08 (UnkStruct_ov94_0223FD4C * param0, int param1)
Party_RemovePokemonBySlotIndex(param0->unk_00->unk_08, param0->unk_112);
if (Party_HasSpecies(param0->unk_00->unk_08, 441) == 0) {
- UnkStruct_0202CC84 * v2 = sub_0202CC98(param0->unk_00->unk_20);
- sub_0202CCA8(v2);
+ ChatotCry * v2 = GetChatotCryDataFromSave(param0->unk_00->unk_20);
+ ResetChatotCryDataStatus(v2);
}
}
diff --git a/src/overlay094/ov94_02243EF8.c b/src/overlay094/ov94_02243EF8.c
index 6c83b416b7..dd5b4970c1 100644
--- a/src/overlay094/ov94_02243EF8.c
+++ b/src/overlay094/ov94_02243EF8.c
@@ -29,7 +29,7 @@ typedef struct {
static void ov94_0224400C(SysTask * param0, void * param1);
static void ov94_022440FC(SysTask * param0, void * param1);
-static void ov94_022441A0(UnkStruct_02022550 * param0, int param1, int param2);
+static void ov94_022441A0(GraphicElementData * param0, int param1, int param2);
static void ov94_02243FF0(UnkStruct_ov94_02243FF0 * param0, int param1);
static void ov94_0224432C(UnkStruct_ov94_0223FD4C * param0);
static void ov94_02244378(NNSG2dCharacterData * param0, NNSG2dPaletteData * param1, int param2, int param3, int param4);
@@ -202,7 +202,7 @@ static void ov94_022440FC (SysTask * param0, void * param1)
}
}
-static void ov94_022441A0 (UnkStruct_02022550 * param0, int param1, int param2)
+static void ov94_022441A0 (GraphicElementData * param0, int param1, int param2)
{
VecFx32 v0;
diff --git a/src/overlay095/ov95_02246C20.c b/src/overlay095/ov95_02246C20.c
index 871674c0da..b8311c206b 100644
--- a/src/overlay095/ov95_02246C20.c
+++ b/src/overlay095/ov95_02246C20.c
@@ -59,7 +59,7 @@ struct UnkStruct_ov95_02247628_t {
UnkStruct_0200B358 * unk_0C;
MessageLoader * unk_10;
Strbuf* unk_14;
- UnkStruct_020218BC * unk_18;
+ GraphicElementManager * unk_18;
UnkStruct_0200C738 unk_1C;
SysTask * unk_1A8;
BOOL unk_1AC;
@@ -183,8 +183,8 @@ int ov95_02246C20 (UnkStruct_020067E8 * param0, int * param1)
v0->unk_1B6 = BoxPokemon_GetValue((BoxPokemon *)(v0->unk_00->unk_04), MON_DATA_FORM, NULL);
v0->unk_1B8 = NULL;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -650,9 +650,9 @@ void ov95_022475C4 (UnkStruct_ov19_021DA864 * param0, UnkStruct_ov95_02247568 *
param0->unk_1C = 0;
}
-UnkStruct_02022550 * ov95_022475E4 (UnkStruct_ov95_02247628 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5)
+GraphicElementData * ov95_022475E4 (UnkStruct_ov95_02247628 * param0, UnkStruct_ov19_021DA864 * param1, u32 param2, u32 param3, u32 param4, int param5)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
UnkStruct_ov83_0223D9A8 v1;
v1.unk_00 = param0->unk_18;
diff --git a/src/overlay095/ov95_02247B6C.c b/src/overlay095/ov95_02247B6C.c
index 245c45ceba..09ae1dd979 100644
--- a/src/overlay095/ov95_02247B6C.c
+++ b/src/overlay095/ov95_02247B6C.c
@@ -54,7 +54,7 @@ typedef struct {
UnkStruct_02007768 * unk_0C;
Sprite * unk_10;
SpriteAnimationFrame unk_14[10];
- UnkStruct_02022550 * unk_3C[2];
+ GraphicElementData * unk_3C[2];
UnkStruct_ov95_02247568 unk_44;
BGL * unk_54;
Window unk_58;
diff --git a/src/overlay095/ov95_02248590.c b/src/overlay095/ov95_02248590.c
index 4a7f73dd85..6be41afa02 100644
--- a/src/overlay095/ov95_02248590.c
+++ b/src/overlay095/ov95_02248590.c
@@ -131,7 +131,7 @@ typedef struct {
int unk_04;
int unk_08;
UnkStruct_ov95_02247568 unk_0C;
- UnkStruct_02022550 * unk_1C[20][2];
+ GraphicElementData * unk_1C[20][2];
u32 unk_BC;
BGL * unk_C0;
UnkStruct_ov95_02247004 * unk_C4;
diff --git a/src/overlay095/ov95_02249740.c b/src/overlay095/ov95_02249740.c
index 0cd917b712..2e036692af 100644
--- a/src/overlay095/ov95_02249740.c
+++ b/src/overlay095/ov95_02249740.c
@@ -93,7 +93,7 @@ typedef struct {
int unk_08;
BOOL unk_0C;
UnkStruct_ov95_02247568 unk_10;
- UnkStruct_02022550 * unk_20[1];
+ GraphicElementData * unk_20[1];
BGL * unk_24;
UnkStruct_ov95_0224773C * unk_28;
UnkStruct_ov95_02247958 * unk_2C;
@@ -145,7 +145,7 @@ void ov95_02249770 (void * param0)
if (v0) {
int v1;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov95_02249A68(v0);
ov95_02249B80(v0);
diff --git a/src/overlay095/ov95_0224A390.c b/src/overlay095/ov95_0224A390.c
index 01b8c880b2..505acdc4a0 100644
--- a/src/overlay095/ov95_0224A390.c
+++ b/src/overlay095/ov95_0224A390.c
@@ -89,7 +89,7 @@ typedef struct {
int unk_08;
BOOL unk_0C;
UnkStruct_ov95_02247568 unk_10;
- UnkStruct_02022550 * unk_20[1];
+ GraphicElementData * unk_20[1];
BGL * unk_24;
UnkStruct_ov95_0224773C * unk_28;
UnkStruct_ov95_02247958 * unk_2C;
@@ -131,7 +131,7 @@ void * ov95_0224A390 (UnkStruct_ov95_02247628 * param0)
v0->unk_0C = 0;
ov95_0224A848(&(v0->unk_34));
- sub_02017798(ov95_0224AB50, v0);
+ SetMainCallback(ov95_0224AB50, v0);
}
return v0;
@@ -144,7 +144,7 @@ void ov95_0224A3CC (void * param0)
if (v0) {
int v1;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov95_0224A678(v0);
ov95_0224A7A0(v0);
diff --git a/src/overlay095/ov95_0224B3D8.c b/src/overlay095/ov95_0224B3D8.c
index 1b1d242f01..7c6b4cae07 100644
--- a/src/overlay095/ov95_0224B3D8.c
+++ b/src/overlay095/ov95_0224B3D8.c
@@ -71,7 +71,7 @@ typedef struct {
UnkStruct_02007768 * unk_10;
Sprite * unk_14;
SpriteAnimationFrame unk_18[10];
- UnkStruct_02022550 * unk_40[2];
+ GraphicElementData * unk_40[2];
UnkStruct_ov95_02247568 unk_48;
BGL * unk_58;
Window unk_5C;
diff --git a/src/overlay096/ov96_0223B6A0.c b/src/overlay096/ov96_0223B6A0.c
index 5b9ac2a119..1d31f737ac 100644
--- a/src/overlay096/ov96_0223B6A0.c
+++ b/src/overlay096/ov96_0223B6A0.c
@@ -71,8 +71,8 @@ int ov96_0223B6A0 (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -189,7 +189,7 @@ int ov96_0223B8CC (UnkStruct_020067E8 * param0, int * param1)
sub_020334CC();
Heap_FreeToHeap(v0->unk_04);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(68);
return 1;
@@ -335,7 +335,7 @@ static const UnkStruct_ov61_0222C884 Unk_ov96_0223DA78 = {
0x0
};
-UnkStruct_02001AF4 * ov96_0223BBC8 (BGL * param0, int param1, int param2)
+UIControlData * ov96_0223BBC8 (BGL * param0, int param1, int param2)
{
UnkStruct_ov61_0222C884 v0;
@@ -403,7 +403,7 @@ static void ov96_0223BC64 (UnkStruct_ov96_0223BF40 * param0)
ov96_0223B9D0(param0);
ov96_0223BB0C(param0);
- sub_02017798(ov96_0223B940, param0);
+ SetMainCallback(ov96_0223B940, param0);
}
static void ov96_0223BC8C (UnkStruct_ov96_0223BF40 * param0)
diff --git a/src/overlay097/ov97_0222AE60.c b/src/overlay097/ov97_0222AE60.c
index ef9420a806..800f9fcc09 100644
--- a/src/overlay097/ov97_0222AE60.c
+++ b/src/overlay097/ov97_0222AE60.c
@@ -133,7 +133,7 @@ typedef struct {
int unk_150;
BOOL unk_154[1];
Window unk_158;
- UnkStruct_02022550 * unk_168[2];
+ GraphicElementData * unk_168[2];
int unk_170;
} UnkStruct_0222AE60;
@@ -923,7 +923,7 @@ static void ov97_0222BC9C (UnkStruct_020067E8 * param0)
sub_02019044(v1->unk_00, 1);
sub_02019044(v1->unk_00, 2);
Heap_FreeToHeap(v1->unk_00);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
}
u16 Unk_ov97_0223DF70[] = {
@@ -1065,7 +1065,7 @@ static int ov97_0222BE24 (UnkStruct_020067E8 * param0, int * param1)
ov97_0222B404(v1);
ov97_0222B46C(v1);
- sub_02017798(ov97_0222BD48, v1->unk_00);
+ SetMainCallback(ov97_0222BD48, v1->unk_00);
ov97_0222B9BC(v1);
ov97_0222BAD8(v1, v1->unk_54);
diff --git a/src/overlay097/ov97_0222C174.c b/src/overlay097/ov97_0222C174.c
index f7d67a27fd..308afeeea2 100644
--- a/src/overlay097/ov97_0222C174.c
+++ b/src/overlay097/ov97_0222C174.c
@@ -40,7 +40,7 @@
#include "unk_0200B29C.h"
#include "unk_0200B358.h"
#include "unk_0200DA60.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_02018340.h"
#include "unk_0201D670.h"
@@ -366,7 +366,7 @@ typedef struct {
SaveData * unk_08;
UnkStruct_02026324 * unk_0C;
TrainerInfo * unk_10;
- UnkStruct_020279FC * unk_14;
+ AnimationControlFlags * unk_14;
Window unk_18;
Window unk_28;
Window unk_38;
@@ -385,7 +385,7 @@ typedef struct {
int unk_168;
u8 unk_16C[12288];
UnkStruct_020067E8 * unk_316C;
- UnkStruct_02022550 * unk_3170;
+ GraphicElementData * unk_3170;
MysteryGift * unk_3174;
int unk_3178;
int unk_317C;
@@ -840,7 +840,7 @@ static void ov97_0222C974 (UnkStruct_ov97_0222C388 * param0)
v4->unk_34A[1] = 0;
v4->unk_34A[2] = 0;
v4->unk_350 = 0;
- sub_020138A4(&v0);
+ GetCurrentDate(&v0);
v4->unk_354 = RTC_ConvertDateToDay(&v0);
sub_0200B3F0(v2);
diff --git a/src/overlay097/ov97_0222D30C.c b/src/overlay097/ov97_0222D30C.c
index 31dc13aeaf..663dca0b73 100644
--- a/src/overlay097/ov97_0222D30C.c
+++ b/src/overlay097/ov97_0222D30C.c
@@ -50,7 +50,7 @@
#include "unk_0200D9E8.h"
#include "unk_0200DA60.h"
#include "unk_0200F174.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02013A04.h"
#include "unk_02017728.h"
#include "heap.h"
@@ -89,7 +89,7 @@ typedef struct {
int unk_00;
int unk_04;
BOOL unk_08;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
VecFx32 unk_10;
fx32 unk_1C;
fx32 unk_20;
@@ -460,7 +460,7 @@ static void ov97_0222D658 (UnkStruct_020067E8 * param0)
v4->val2.unk_348 = 0;
}
- sub_020138A4(&v7);
+ GetCurrentDate(&v7);
v4->val2.unk_354 = RTC_ConvertDateToDay(&v7);
}
@@ -1177,9 +1177,9 @@ static void ov97_0222E398 (UnkStruct_ov97_0222E398 * param0)
sub_020093B4(¶m0->unk_10[v9 + 1], v7, v7, v7, v7, 0xffffffff, 0xffffffff, 0, 0, param0->unk_0C->unk_190[0], param0->unk_0C->unk_190[1], param0->unk_0C->unk_190[2], param0->unk_0C->unk_190[3], NULL, NULL);
}
-static UnkStruct_02022550 * ov97_0222E538 (UnkStruct_ov97_0222E398 * param0, int param1)
+static GraphicElementData * ov97_0222E538 (UnkStruct_ov97_0222E398 * param0, int param1)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
{
UnkStruct_ov115_02261520 v1;
diff --git a/src/overlay097/ov97_02230410.c b/src/overlay097/ov97_02230410.c
index aaf9640f13..707bca193b 100644
--- a/src/overlay097/ov97_02230410.c
+++ b/src/overlay097/ov97_02230410.c
@@ -94,14 +94,14 @@ typedef struct {
void * unk_2BFC;
MysteryGift * unk_2C00;
SaveData * unk_2C04;
- UnkStruct_020279FC * unk_2C08;
+ AnimationControlFlags * unk_2C08;
int unk_2C0C;
int unk_2C10;
UnkStruct_0202DBAC * unk_2C14[3];
int unk_2C20;
int unk_2C24;
UnkStruct_0200112C * unk_2C28;
- UnkStruct_02013A04 * unk_2C2C;
+ ResourceMetadata * unk_2C2C;
Window unk_2C30;
Window unk_2C40;
int unk_2C50;
@@ -114,13 +114,13 @@ typedef struct {
void (* unk_2C98)(void *);
int unk_2C9C;
int unk_2CA0;
- UnkStruct_020218BC * unk_2CA4;
+ GraphicElementManager * unk_2CA4;
UnkStruct_0200C738 unk_2CA8;
UnkStruct_02009714 * unk_2E34[6];
UnkStruct_02009DC8 * unk_2E4C[6];
UnkStruct_ov19_021DA864 unk_2E64;
- UnkStruct_02022550 * unk_2E88[2];
- UnkStruct_02022550 * unk_2E90[3];
+ GraphicElementData * unk_2E88[2];
+ GraphicElementData * unk_2E90[3];
UnkUnion_ov97_0222D2B0 unk_2E9C;
UnkStruct_ov97_02231318 unk_31F4;
void (* unk_3E0C)(void *);
diff --git a/src/overlay097/ov97_02233B18.c b/src/overlay097/ov97_02233B18.c
index 4a7bdb5b91..d068d8fad1 100644
--- a/src/overlay097/ov97_02233B18.c
+++ b/src/overlay097/ov97_02233B18.c
@@ -108,13 +108,13 @@ typedef struct {
} UnkStruct_ov97_02233DAC;
typedef struct {
- UnkStruct_02022550 * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_00;
+ GraphicElementData * unk_04;
int unk_08;
} UnkStruct_ov97_02234A2C_sub1;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
int unk_04;
int unk_08;
} UnkStruct_ov97_02234A2C_sub2;
@@ -128,7 +128,7 @@ typedef struct {
typedef struct {
int unk_00;
int unk_04;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
u8 unk_0C[512];
} UnkStruct_ov97_0223F434;
@@ -139,23 +139,23 @@ typedef struct {
int unk_0C;
SaveData * unk_10;
TrainerInfo * unk_14;
- UnkStruct_020279FC * unk_18;
+ AnimationControlFlags * unk_18;
int unk_1C;
BGL * unk_20;
int unk_24;
- UnkStruct_020218BC * unk_28;
+ GraphicElementManager * unk_28;
UnkStruct_0200C738 unk_2C;
UnkStruct_02009714 * unk_1B8[6];
UnkStruct_02009DC8 * unk_1D0[6];
UnkStruct_ov19_021DA864 unk_1E8;
UnkStruct_ov97_02234A2C_sub1 unk_20C[30];
UnkUnion_02022594 unk_374[34];
- UnkStruct_02022550 * unk_3FC[4];
- UnkStruct_02022550 * unk_40C[4];
- UnkStruct_02022550 * unk_41C[4];
+ GraphicElementData * unk_3FC[4];
+ GraphicElementData * unk_40C[4];
+ GraphicElementData * unk_41C[4];
UnkStruct_ov97_02234A2C_sub2 unk_42C[6];
int unk_474;
- UnkStruct_02022550 * unk_478[6];
+ GraphicElementData * unk_478[6];
UnkStruct_ov97_02233DAC unk_490;
Window unk_4DC;
Window unk_4EC;
@@ -320,7 +320,7 @@ static int ov97_02233B8C (UnkStruct_ov97_02234A2C * param0)
v0 = ov97_02236280();
if (v0 == 0) {
- sub_02017B8C(1);
+ SleepUnlock(1);
return 12;
}
@@ -337,7 +337,7 @@ static int ov97_02233B8C (UnkStruct_ov97_02234A2C * param0)
v0 = ov97_022362C8();
if (v0 == 8) {
- sub_02017B8C(1);
+ SleepUnlock(1);
return 12;
}
}
@@ -352,19 +352,19 @@ static int ov97_02233B8C (UnkStruct_ov97_02234A2C * param0)
} while (v2 != 2);
ov97_022362C8();
- sub_02017B7C(1);
+ SleepLock(1);
v4->unk_00++;
break;
case 9:
v0 = ov97_022362C8();
if (v0 == 8) {
- sub_02017B8C(1);
+ SleepUnlock(1);
return 12;
}
if (v0 == 0) {
- sub_02017B8C(1);
+ SleepUnlock(1);
return 11;
}
break;
@@ -381,10 +381,10 @@ static void ov97_02233CE4 (UnkStruct_ov97_02234A2C * param0)
v0 = SaveData_PalParkTransfer(param0->unk_10);
sub_0202EFB8(v0, ov97_0223635C());
- sub_02017DE0(4);
+ ResetLock(4);
v1 = sub_020246E0(param0->unk_10);
- sub_02017DF0(4);
+ ResetUnlock(4);
}
static void ov97_02233D10 (UnkStruct_ov97_02234A2C * param0)
@@ -651,7 +651,7 @@ static u8 GBASpeciesToDSFormId (int param0, u32 param1, int param2)
return v0;
}
-static void ov97_02234278 (int param0, int param1, u32 param2, int param3, int param4, UnkStruct_02022550 * param5)
+static void ov97_02234278 (int param0, int param1, u32 param2, int param3, int param4, GraphicElementData * param5)
{
u8 * v0;
u8 v1;
@@ -669,7 +669,7 @@ static void ov97_02234278 (int param0, int param1, u32 param2, int param3, int p
Heap_FreeToHeap(v0);
}
-static void ov97_022342E4 (int param0, int param1, int param2, int param3, UnkStruct_02022550 * param4, void * param5, NARC * param6)
+static void ov97_022342E4 (int param0, int param1, int param2, int param3, GraphicElementData * param4, void * param5, NARC * param6)
{
u32 v0;
NNSG2dCharacterData * v1;
@@ -799,10 +799,10 @@ static void ov97_02234508 (UnkStruct_ov97_02234A2C * param0)
}
}
-static UnkStruct_02022550 * ov97_02234638 (UnkStruct_ov97_02234A2C * param0, int param1, int param2, int param3, int param4)
+static GraphicElementData * ov97_02234638 (UnkStruct_ov97_02234A2C * param0, int param1, int param2, int param3, int param4)
{
UnkStruct_ov115_02261520 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
ov97_022340FC(&v0, param0, ¶m0->unk_1E8, NNS_G2D_VRAM_TYPE_2DMAIN);
@@ -1546,7 +1546,7 @@ static void ov97_022351F0 (UnkStruct_ov97_02234A2C * param0)
{
int v0;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
for (v0 = 0; v0 < 30; v0++) {
if (param0->unk_20C[v0].unk_00) {
@@ -1819,7 +1819,7 @@ static int ov97_02235624 (UnkStruct_020067E8 * param0, int * param1)
return 1;
}
-extern int Unk_02101D24;
+extern int gIgnoreCartridgeForWake;
static int ov97_022356E8 (UnkStruct_020067E8 * param0, int * param1)
{
@@ -1828,7 +1828,7 @@ static int ov97_022356E8 (UnkStruct_020067E8 * param0, int * param1)
CTRDG_IsExisting();
- if ((CTRDG_IsPulledOut() == TRUE) || Unk_02101D24) {
+ if ((CTRDG_IsPulledOut() == TRUE) || gIgnoreCartridgeForWake) {
UnkStruct_ov97_02233B8C * v4 = &v3->unk_E8F0;
if ((v4->unk_00 == 3) || (v4->unk_00 == 4)) {
@@ -1869,7 +1869,7 @@ static int ov97_022356E8 (UnkStruct_020067E8 * param0, int * param1)
ov97_022340B0(v3);
ov97_0223468C(v3);
- sub_02017798(ov97_022353CC, v3);
+ SetMainCallback(ov97_022353CC, v3);
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 0);
if (v3->unk_04 == 1) {
@@ -1979,7 +1979,7 @@ static int ov97_022356E8 (UnkStruct_020067E8 * param0, int * param1)
ov97_02234508(v3);
ov97_022343A8(v3);
- sub_02017798(ov97_022353CC, v3);
+ SetMainCallback(ov97_022353CC, v3);
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
ov97_02234B0C(v3, NULL);
@@ -2098,7 +2098,7 @@ static int ov97_022356E8 (UnkStruct_020067E8 * param0, int * param1)
v3->unk_E8F0.unk_00 = 0;
v3->unk_E8F0.unk_08 = sub_0200E7FC(&v3->unk_4FC, (0x3F0 - (18 + 12)));
*param1 = 21;
- sub_02017DE0(4);
+ ResetLock(4);
break;
case 2:
sub_02015A54(v3->unk_E8EC);
@@ -2125,7 +2125,7 @@ static int ov97_022356E8 (UnkStruct_020067E8 * param0, int * param1)
ov97_02233DD0(v3, &v3->unk_490, 0);
*param1 = 22;
- sub_02017DF0(4);
+ ResetUnlock(4);
}
break;
case 22:
diff --git a/src/overlay097/ov97_02237694.c b/src/overlay097/ov97_02237694.c
index 14b7991bb0..6baa87cf66 100644
--- a/src/overlay097/ov97_02237694.c
+++ b/src/overlay097/ov97_02237694.c
@@ -68,7 +68,7 @@ typedef struct {
int unk_20;
BOOL unk_24[4];
UnkStruct_ov97_02237AEC unk_34;
- UnkStruct_02022550 * unk_26C;
+ GraphicElementData * unk_26C;
int unk_270;
fx32 unk_274;
u8 unk_278[3200];
@@ -396,7 +396,7 @@ void ov97_02237B0C (int param0, int param1, int param2, int param3, int param4,
GXLayers_EngineBToggleLayers(GX_PLANEMASK_OBJ, 1);
}
- sub_02017798(ov97_02237E58, NULL);
+ SetMainCallback(ov97_02237E58, NULL);
}
void ov97_02237C80 (fx32 param0, fx32 param1)
@@ -439,7 +439,7 @@ void ov97_02237CAC (int param0)
}
}
-UnkStruct_02022550 * ov97_02237D14 (int param0, UnkStruct_02022550 * param1, int param2, int param3, int param4)
+GraphicElementData * ov97_02237D14 (int param0, GraphicElementData * param1, int param2, int param3, int param4)
{
UnkStruct_ov97_0223F550 * v0 = &Unk_ov97_0223F550;
@@ -513,7 +513,7 @@ void ov97_02237DA0 (void)
sub_0201E958();
sub_0201F8B4();
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
}
u32 ov97_02237E4C (int param0)
@@ -573,7 +573,7 @@ static int ov97_02237EA8 (int param0)
return 0;
}
-static void ov97_02237EF8 (UnkStruct_02022550 * param0, Pokemon * param1, int param2, int param3, u8 * param4, ArchivedSprite * param5)
+static void ov97_02237EF8 (GraphicElementData * param0, Pokemon * param1, int param2, int param3, u8 * param4, ArchivedSprite * param5)
{
int v0, v1;
u32 v2;
@@ -850,7 +850,7 @@ int ov97_0223847C (void)
switch (v1->unk_14) {
case 0:
- sub_02017DE0(4);
+ ResetLock(4);
sub_02024814(v1->unk_18, 2);
v1->unk_14++;
break;
@@ -866,7 +866,7 @@ int ov97_0223847C (void)
}
if ((v0 == 2) || (v0 == 3)) {
- sub_02017DF0(4);
+ ResetUnlock(4);
}
return v0;
@@ -897,7 +897,7 @@ void ov97_0223850C (void)
sub_02024850(v0->unk_18);
v0->unk_14 = 3;
- sub_02017DF0(4);
+ ResetUnlock(4);
}
int ov97_02238528 (void)
diff --git a/src/overlay098/ov98_02246C20.c b/src/overlay098/ov98_02246C20.c
index 813f1c89e3..e69312c38f 100644
--- a/src/overlay098/ov98_02246C20.c
+++ b/src/overlay098/ov98_02246C20.c
@@ -198,7 +198,7 @@ static void ov98_02246E08 (UnkStruct_ov98_02246E88 * param0)
sub_02099550();
sub_020995B4();
sub_02033478();
- sub_02017B8C(4);
+ SleepUnlock(4);
}
}
diff --git a/src/overlay098/ov98_022471C8.c b/src/overlay098/ov98_022471C8.c
index 8d46eaa950..49f9ffd423 100644
--- a/src/overlay098/ov98_022471C8.c
+++ b/src/overlay098/ov98_022471C8.c
@@ -89,13 +89,13 @@ typedef struct {
Window unk_58;
Window unk_68;
Window unk_78;
- UnkStruct_02001AF4 * unk_88;
+ UIControlData * unk_88;
void * unk_8C;
int unk_90;
int unk_94;
int unk_98;
int unk_9C;
- UnkStruct_02013A04 * unk_A0;
+ ResourceMetadata * unk_A0;
UnkStruct_0200112C * unk_A4;
int unk_A8;
int unk_AC;
@@ -128,7 +128,7 @@ static void ov98_02247ACC(UnkStruct_ov98_02247704 * param0);
static void ov98_02247AE8(UnkStruct_ov98_02247704 * param0, int param1, int param2);
static void ov98_02247AF0(UnkStruct_ov98_02247704 * param0);
static void ov98_02247B0C(UnkStruct_ov98_02247704 * param0);
-static UnkStruct_02001AF4 * ov98_02247B24(BGL * param0, int param1, int param2);
+static UIControlData * ov98_02247B24(BGL * param0, int param1, int param2);
static int ov98_02247B98(UnkStruct_ov98_02247704 * param0);
static int ov98_02247D30(UnkStruct_ov98_02247704 * param0);
static int ov98_02247D50(UnkStruct_ov98_02247704 * param0);
@@ -300,8 +300,8 @@ int ov98_022471C8 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov98_02247704 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -374,7 +374,7 @@ int ov98_022471C8 (UnkStruct_020067E8 * param0, int * param1)
sub_02002AC8(1);
sub_02002AE4(0);
sub_02002B20(0);
- sub_02017798(ov98_022474E8, v0);
+ SetMainCallback(ov98_022474E8, v0);
return 1;
}
@@ -434,8 +434,8 @@ int ov98_02247440 (UnkStruct_020067E8 * param0, int * param1)
ov98_02247ACC(v0);
Heap_FreeToHeap(v0->unk_04);
ov98_022476D0(v0->unk_04);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0201DC3C();
sub_0201E530();
sub_02002AC8(0);
@@ -722,7 +722,7 @@ static void ov98_02247B0C (UnkStruct_ov98_02247704 * param0)
}
}
-static UnkStruct_02001AF4 * ov98_02247B24 (BGL * param0, int param1, int param2)
+static UIControlData * ov98_02247B24 (BGL * param0, int param1, int param2)
{
UnkStruct_ov61_0222C884 v0;
@@ -733,7 +733,7 @@ static UnkStruct_02001AF4 * ov98_02247B24 (BGL * param0, int param1, int param2)
return sub_02002100(param0, &v0, (1 + (18 + 12)), 11, 109);
}
-static UnkStruct_02001AF4 * ov98_02247B58 (BGL * param0, int param1, int param2, int param3)
+static UIControlData * ov98_02247B58 (BGL * param0, int param1, int param2, int param3)
{
UnkStruct_ov61_0222C884 v0;
@@ -1557,7 +1557,7 @@ static int ov98_0224897C (UnkStruct_ov98_02247704 * param0)
DWC_CleanupInet();
sub_02039794();
- sub_02017B8C(4);
+ SleepUnlock(4);
if (param0->unk_00->unk_11C == 1) {
ov94_0223B7AC();
@@ -1593,7 +1593,7 @@ static int ov98_022489DC (UnkStruct_ov98_02247704 * param0)
}
break;
case 2:
- sub_02017B7C(4);
+ SleepLock(4);
DWC_InitInetEx(¶m0->unk_00->unk_14, 2, 1, 20);
DWC_SetAuthServer((DWC_CONNECTINET_AUTH_RELEASE));
@@ -1627,7 +1627,7 @@ static int ov98_02248A68 (UnkStruct_ov98_02247704 * param0)
sub_02039794();
sub_0203859C();
- sub_02017B8C(4);
+ SleepUnlock(4);
if (param0->unk_00->unk_11C == 1) {
ov94_0223B7AC();
@@ -1707,7 +1707,7 @@ static int ov98_02248B24 (UnkStruct_ov98_02247704 * param0)
sub_02039794();
sub_0203859C();
- sub_02017B8C(4);
+ SleepUnlock(4);
if (param0->unk_00->unk_11C == 1) {
ov94_0223B7AC();
@@ -2172,7 +2172,7 @@ static int ov98_02249320 (UnkStruct_ov98_02247704 * param0)
sub_02039794();
sub_0203859C();
- sub_02017B8C(4);
+ SleepUnlock(4);
if (param0->unk_00->unk_11C == 1) {
ov94_0223B7AC();
@@ -2337,7 +2337,7 @@ static int ov98_022495C4 (UnkStruct_ov98_02247704 * param0)
DWC_CleanupInet();
sub_02039794();
- sub_02017B8C(4);
+ SleepUnlock(4);
if (param0->unk_00->unk_11C == 1) {
ov94_0223B7AC();
diff --git a/src/overlay099/ov99_021D0D80.c b/src/overlay099/ov99_021D0D80.c
index 437209f1e3..2c160e0f20 100644
--- a/src/overlay099/ov99_021D0D80.c
+++ b/src/overlay099/ov99_021D0D80.c
@@ -83,9 +83,9 @@ static void ov99_021D1380(BGL * param0);
static void ov99_021D1720(UnkStruct_ov99_021D2CB0 * param0);
static void ov99_021D1918(UnkStruct_ov99_021D2CB0 * param0);
static void ov99_021D19A0(UnkStruct_ov99_021D2CB0 * param0);
-static UnkStruct_0207C690 * ov99_021D19AC(int param0);
+static GenericPointerData * ov99_021D19AC(int param0);
static void ov99_021D19C8(void);
-static void ov99_021D1A4C(UnkStruct_0207C690 * param0);
+static void ov99_021D1A4C(GenericPointerData * param0);
static void ov99_021D16E4(UnkStruct_ov99_021D2CB0 * param0);
static void ov99_021D1270(UnkStruct_ov99_021D2CB0 * param0);
static void ov99_021D1314(UnkStruct_ov99_021D2CB0 * param0);
@@ -95,8 +95,8 @@ int ov99_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov99_021D2CB0 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -172,7 +172,7 @@ int ov99_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
v0->unk_14 = SysTask_Start(ov99_021D1244, v0, 60000);
- sub_02017798(ov99_021D1350, v0);
+ SetMainCallback(ov99_021D1350, v0);
sub_02004550(14, 1186, 1);
sub_0200AB4C(-16, (GX_BLEND_PLANEMASK_BG0 | GX_BLEND_PLANEMASK_BG2 | GX_BLEND_PLANEMASK_BG3 | GX_BLEND_PLANEMASK_OBJ | GX_BLEND_PLANEMASK_OBJ | GX_BLEND_PLANEMASK_BD), 3);
@@ -284,8 +284,8 @@ int ov99_021D11A8 (UnkStruct_020067E8 * param0, int * param1)
ov99_021D19A0(v0);
NARC_dtor(v0->unk_10F8);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0201DC3C();
sub_0201E530();
sub_02006830(param0);
@@ -774,9 +774,9 @@ static void ov99_021D19A0 (UnkStruct_ov99_021D2CB0 * param0)
sub_020203B8(param0->unk_28);
}
-static UnkStruct_0207C690 * ov99_021D19AC (int param0)
+static GenericPointerData * ov99_021D19AC (int param0)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(param0, 0, 1, 0, 1, ov99_021D19C8);
return v0;
@@ -797,7 +797,7 @@ static void ov99_021D19C8 (void)
G3_ViewPort(0, 0, 255, 191);
}
-static void ov99_021D1A4C (UnkStruct_0207C690 * param0)
+static void ov99_021D1A4C (GenericPointerData * param0)
{
sub_020242C4(param0);
}
diff --git a/src/overlay100/ov100_021D0D80.c b/src/overlay100/ov100_021D0D80.c
index 455aa00305..1eb277c17a 100644
--- a/src/overlay100/ov100_021D0D80.c
+++ b/src/overlay100/ov100_021D0D80.c
@@ -62,7 +62,7 @@ int ov100_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
ov100_021D1034(&v0->unk_0C);
sub_0200F174(0, 1, 1, 0x0, 6 * 2, 1, 111);
- sub_02017798(ov100_021D13B4, v0);
+ SetMainCallback(ov100_021D13B4, v0);
v0->unk_0C.unk_50.unk_00 = 31;
v0->unk_0C.unk_50.unk_01 = 31;
@@ -155,8 +155,8 @@ int ov100_021D0F44 (UnkStruct_020067E8 * param0, int * param1)
v0 = sub_0200682C(param0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0200E084(&v0->unk_0C.unk_30, 1);
sub_0201ACF4(&v0->unk_0C.unk_30);
BGL_DeleteWindow(&v0->unk_0C.unk_30);
@@ -217,8 +217,8 @@ static void ov100_021D0FA0 (UnkStruct_ov100_021D46C8 * param0)
static void ov100_021D1034 (UnkStruct_ov100_021D46C8 * param0)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
GX_SetVisiblePlane(0);
diff --git a/src/overlay100/ov100_021D13E4.c b/src/overlay100/ov100_021D13E4.c
index 262e4e55ae..dfea306b45 100644
--- a/src/overlay100/ov100_021D13E4.c
+++ b/src/overlay100/ov100_021D13E4.c
@@ -124,7 +124,7 @@ BOOL ov100_021D14A8 (void * param0)
}
if (v0->unk_04 == v2[v0->unk_08]) {
- sub_020059D0(0, v4[v0->unk_08], 0, 100, 111, 0);
+ Sound_PlayPokemonCry(0, v4[v0->unk_08], 0, 100, 111, 0);
}
if ((++v0->unk_04) >= v1[v0->unk_08]) {
@@ -233,8 +233,8 @@ static void ov100_021D1808 (UnkStruct_ov100_021D1808 * param0)
{
NARC * v0 = param0->unk_7C4->unk_00;
BGL * v1 = param0->unk_7C4->unk_0C;
- UnkStruct_0200C6E4 * v2 = param0->unk_7C4->unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_7C4->unk_08;
+ CellTransferStateData * v2 = param0->unk_7C4->unk_04;
+ AnimationResourceCollection * v3 = param0->unk_7C4->unk_08;
PaletteSys * v4 = param0->unk_7C4->unk_10;
int v5 = 50000;
@@ -289,8 +289,8 @@ static void ov100_021D1A54 (UnkStruct_ov100_021D1808 * param0)
int v0;
NARC * v1 = param0->unk_7C4->unk_00;
BGL * v2 = param0->unk_7C4->unk_0C;
- UnkStruct_0200C6E4 * v3 = param0->unk_7C4->unk_04;
- UnkStruct_0200C704 * v4 = param0->unk_7C4->unk_08;
+ CellTransferStateData * v3 = param0->unk_7C4->unk_04;
+ AnimationResourceCollection * v4 = param0->unk_7C4->unk_08;
PaletteSys * v5 = param0->unk_7C4->unk_10;
UnkStruct_ov104_0223F9E0 v6;
diff --git a/src/overlay100/ov100_021D1C44.c b/src/overlay100/ov100_021D1C44.c
index 67c504745b..daa994bff4 100644
--- a/src/overlay100/ov100_021D1C44.c
+++ b/src/overlay100/ov100_021D1C44.c
@@ -74,8 +74,8 @@ static void ov100_021D1C98 (UnkStruct_ov100_021D1C98 * param0)
{
NARC * v0 = param0->unk_1EBC->unk_00;
BGL * v1 = param0->unk_1EBC->unk_0C;
- UnkStruct_0200C6E4 * v2 = param0->unk_1EBC->unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_1EBC->unk_08;
+ CellTransferStateData * v2 = param0->unk_1EBC->unk_04;
+ AnimationResourceCollection * v3 = param0->unk_1EBC->unk_08;
PaletteSys * v4 = param0->unk_1EBC->unk_10;
int v5 = 50000;
@@ -198,8 +198,8 @@ static void ov100_021D2250 (UnkStruct_ov100_021D1C98 * param0)
int v0;
NARC * v1 = param0->unk_1EBC->unk_00;
BGL * v2 = param0->unk_1EBC->unk_0C;
- UnkStruct_0200C6E4 * v3 = param0->unk_1EBC->unk_04;
- UnkStruct_0200C704 * v4 = param0->unk_1EBC->unk_08;
+ CellTransferStateData * v3 = param0->unk_1EBC->unk_04;
+ AnimationResourceCollection * v4 = param0->unk_1EBC->unk_08;
PaletteSys * v5 = param0->unk_1EBC->unk_10;
UnkStruct_ov104_0223F9E0 v6;
@@ -515,11 +515,11 @@ BOOL ov100_021D2428 (void * param0)
}
if (v0->unk_04 == 15 + 25) {
- sub_020059D0(0, 483, -80, 40, 111, 0);
+ Sound_PlayPokemonCry(0, 483, -80, 40, 111, 0);
}
if (v0->unk_04 == 40 + 25) {
- sub_020059D0(0, 484, +80, 40, 111, 0);
+ Sound_PlayPokemonCry(0, 484, +80, 40, 111, 0);
}
if (v0->unk_04 < 15 + 25) {
@@ -557,7 +557,7 @@ BOOL ov100_021D2428 (void * param0)
sub_02017348(&v0->unk_1A0.unk_934[1].unk_00, 0);
sub_02017348(&v0->unk_1A0.unk_934[2].unk_00, 1);
- sub_020059D0(2, 487, 0, 127, 111, 0);
+ Sound_PlayPokemonCry(2, 487, 0, 127, 111, 0);
v0->unk_04 = 0;
v0->unk_00++;
@@ -597,7 +597,7 @@ BOOL ov100_021D2428 (void * param0)
break;
case 19:
if ((++v0->unk_04) == 238) {
- sub_020059D0(2, 487, 0, 127, 111, 0);
+ Sound_PlayPokemonCry(2, 487, 0, 127, 111, 0);
}
if (v0->unk_04 == 170) {
diff --git a/src/overlay100/ov100_021D2F0C.c b/src/overlay100/ov100_021D2F0C.c
index 48d80d23a7..f40b9f32c3 100644
--- a/src/overlay100/ov100_021D2F0C.c
+++ b/src/overlay100/ov100_021D2F0C.c
@@ -59,8 +59,8 @@ static void ov100_021D2F64 (UnkStruct_ov100_021D3084 * param0)
{
NARC * v0 = param0->unk_1D28->unk_00;
BGL * v1 = param0->unk_1D28->unk_0C;
- UnkStruct_0200C6E4 * v2 = param0->unk_1D28->unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_1D28->unk_08;
+ CellTransferStateData * v2 = param0->unk_1D28->unk_04;
+ AnimationResourceCollection * v3 = param0->unk_1D28->unk_08;
PaletteSys * v4 = param0->unk_1D28->unk_10;
ov100_021D4AC8(¶m0->unk_0C.unk_934[0], 84, param0->unk_1D28->unk_00);
@@ -87,8 +87,8 @@ static void ov100_021D3084 (UnkStruct_ov100_021D3084 * param0)
{
NARC * v0 = param0->unk_1D28->unk_00;
BGL * v1 = param0->unk_1D28->unk_0C;
- UnkStruct_0200C6E4 * v2 = param0->unk_1D28->unk_04;
- UnkStruct_0200C704 * v3 = param0->unk_1D28->unk_08;
+ CellTransferStateData * v2 = param0->unk_1D28->unk_04;
+ AnimationResourceCollection * v3 = param0->unk_1D28->unk_08;
PaletteSys * v4 = param0->unk_1D28->unk_10;
ov100_021D4AC8(¶m0->unk_0C.unk_04, 46, param0->unk_1D28->unk_00);
@@ -370,7 +370,7 @@ static void ov100_021D37F4 (SysTask * param0, void * param1)
break;
case 1:
if ((++v0->unk_04) >= NELEMS(v1)) {
- sub_020059D0(0, v0->unk_08, v0->unk_0C, 80, 111, 0);
+ Sound_PlayPokemonCry(0, v0->unk_08, v0->unk_0C, 80, 111, 0);
v0->unk_00++;
} else {
sub_0201736C(&v0->unk_10->unk_00, FX32_CONST(v1[v0->unk_04]), FX32_CONST(1.00f), FX32_CONST(1.00f));
diff --git a/src/overlay101/ov101_021D0D80.c b/src/overlay101/ov101_021D0D80.c
index 0353fadeb5..556b058861 100644
--- a/src/overlay101/ov101_021D0D80.c
+++ b/src/overlay101/ov101_021D0D80.c
@@ -83,8 +83,8 @@ int ov101_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov101_021D13C8 * v1;
UnkStruct_0203E348 * v2;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
Heap_Create(3, 79, 0x80000);
@@ -154,7 +154,7 @@ int ov101_021D0EE4 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov101_021D0F3C * v0 = sub_0200682C(param0);
UnkStruct_ov101_021D13C8 * v1 = v0->unk_04;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov101_021D0F3C(v0, v1);
@@ -235,7 +235,7 @@ static void ov101_021D0F9C (UnkStruct_ov101_021D13C8 * param0)
G2S_SetBG3Priority(3);
G2_SetBlendAlpha(GX_BLEND_PLANEMASK_BG2, GX_BLEND_PLANEMASK_OBJ, 8, 9);
- sub_02017798(ov101_021D197C, param0);
+ SetMainCallback(ov101_021D197C, param0);
}
static void ov101_021D107C (UnkStruct_ov101_021D13C8 * param0)
diff --git a/src/overlay101/ov101_021D59AC.c b/src/overlay101/ov101_021D59AC.c
index dbf27d5f7e..5ee5e6bd2e 100644
--- a/src/overlay101/ov101_021D59AC.c
+++ b/src/overlay101/ov101_021D59AC.c
@@ -1468,7 +1468,7 @@ static void ov101_021D6E3C (UnkStruct_ov101_021D5D90 * param0, void * param1)
}
}
-static void ov101_021D6E78 (UnkStruct_ov101_021D5D90 * param0, fx32 param1, fx32 param2, fx32 param3, fx32 param4, UnkStruct_02022550 * param5, int param6)
+static void ov101_021D6E78 (UnkStruct_ov101_021D5D90 * param0, fx32 param1, fx32 param2, fx32 param3, fx32 param4, GraphicElementData * param5, int param6)
{
VecFx32 v0, v1;
diff --git a/src/overlay101/ov101_021D7E48.c b/src/overlay101/ov101_021D7E48.c
index a2f10a18a1..21b7458dca 100644
--- a/src/overlay101/ov101_021D7E48.c
+++ b/src/overlay101/ov101_021D7E48.c
@@ -36,7 +36,7 @@ typedef struct UnkStruct_ov101_021D7E48_t {
u8 unk_09;
u8 unk_0A;
u8 unk_0B;
- UnkStruct_020218BC * unk_0C;
+ GraphicElementManager * unk_0C;
UnkStruct_0200C738 unk_10;
NNSG2dCellTransferState * unk_19C;
UnkStruct_02009714 * unk_1A0;
@@ -325,7 +325,7 @@ void ov101_021D84A4 (UnkStruct_ov101_021D7E48 * param0, UnkStruct_ov101_021D8544
{
UnkStruct_ov19_021DA864 v0;
UnkStruct_ov83_0223D9A8 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
if (param8 == param0->unk_0B) {
param8 = 0xffffffff;
@@ -362,13 +362,13 @@ void ov101_021D8544 (UnkStruct_ov101_021D8544 * param0)
param0->unk_04 = NULL;
}
-void ov101_021D8560 (UnkStruct_02022550 * param0, VecFx32 * param1)
+void ov101_021D8560 (GraphicElementData * param0, VecFx32 * param1)
{
const VecFx32 * v0 = sub_02021D28(param0);
*param1 = *v0;
}
-void ov101_021D8574 (UnkStruct_02022550 * param0, VecFx32 * param1)
+void ov101_021D8574 (GraphicElementData * param0, VecFx32 * param1)
{
const VecFx32 * v0 = sub_02021D2C(param0);
*param1 = *v0;
diff --git a/src/overlay102/ov102_021D0D80.c b/src/overlay102/ov102_021D0D80.c
index ac6b79c11f..782a5b8a61 100644
--- a/src/overlay102/ov102_021D0D80.c
+++ b/src/overlay102/ov102_021D0D80.c
@@ -84,8 +84,8 @@ int ov102_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -97,7 +97,7 @@ int ov102_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
ov102_021D0F8C(v0);
ov102_021D1174(v0);
- sub_02017798(ov102_021D0F80, (void *)v0);
+ SetMainCallback(ov102_021D0F80, (void *)v0);
GXLayers_TurnBothDispOn();
return 1;
@@ -170,7 +170,7 @@ int ov102_021D0F50 (UnkStruct_020067E8 * param0, int * param1)
ov102_021D1204(v0);
ov102_021D10F8(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_02006830(param0);
Heap_Destroy(v1);
diff --git a/src/overlay104/ov104_0222DCE0.c b/src/overlay104/ov104_0222DCE0.c
index c5c4559f82..3b76c9edca 100644
--- a/src/overlay104/ov104_0222DCE0.c
+++ b/src/overlay104/ov104_0222DCE0.c
@@ -42,8 +42,8 @@
#include "overlay104/ov104_0222DCE0.h"
void ov104_0222E1C0(SaveData * param0, Party * param1, Pokemon * param2);
-void ov104_0222E1D8(UnkStruct_02022550 * param0, u8 param1);
-void ov104_0222E204(UnkStruct_02022550 * param0, s16 param1, s16 param2, u8 param3);
+void ov104_0222E1D8(GraphicElementData * param0, u8 param1);
+void ov104_0222E204(GraphicElementData * param0, s16 param1, s16 param2, u8 param3);
u8 ov104_0222E240(u16 param0, u16 param1);
void ov104_0222E278(UnkStruct_ov104_0223A348 * param0, u16 param1, int param2, int param3);
void ov104_0222E284(BattleParams * param0, UnkStruct_ov104_0223A348_sub1 * param1, int param2, int param3, int param4);
@@ -361,7 +361,7 @@ void ov104_0222E134 (SaveData * param0, Pokemon * param1)
TrainerInfo * v5 = sub_02025E38(param0);
v0 = Pokemon_GetValue(param1, MON_DATA_OT_ID, NULL);
- sub_02077EE4(param1, sub_02025E38(param0), 4, 0, 0, 11);
+ Pokemon_UpdateAfterCatch(param1, sub_02025E38(param0), 4, 0, 0, 11);
v3 = sub_0203A138(562);
sub_0209304C(param1, v5, v4, v3, 11);
@@ -385,7 +385,7 @@ void ov104_0222E1C0 (SaveData * param0, Party * param1, Pokemon * param2)
return;
}
-void ov104_0222E1D8 (UnkStruct_02022550 * param0, u8 param1)
+void ov104_0222E1D8 (GraphicElementData * param0, u8 param1)
{
if (sub_02021E24(param0) == param1) {
return;
@@ -397,7 +397,7 @@ void ov104_0222E1D8 (UnkStruct_02022550 * param0, u8 param1)
return;
}
-void ov104_0222E204 (UnkStruct_02022550 * param0, s16 param1, s16 param2, u8 param3)
+void ov104_0222E204 (GraphicElementData * param0, s16 param1, s16 param2, u8 param3)
{
VecFx32 v0;
diff --git a/src/overlay104/ov104_0222FBE4.c b/src/overlay104/ov104_0222FBE4.c
index 3be665ec96..eaad1e247a 100644
--- a/src/overlay104/ov104_0222FBE4.c
+++ b/src/overlay104/ov104_0222FBE4.c
@@ -141,7 +141,7 @@ typedef struct {
UnkStruct_ov104_0223EBD0 * unk_2C;
} UnkStruct_ov104_02231148;
-void ov104_0223DC7C(int param0, BGL * param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, PaletteSys * param4, u16 * param5, s16 param6, s16 param7);
+void ov104_0223DC7C(int param0, BGL * param1, CellTransferStateData * param2, AnimationResourceCollection * param3, PaletteSys * param4, u16 * param5, s16 param6, s16 param7);
u16 ov104_0222FC8C(UnkStruct_ov104_0222E930 * param0, u16 param1);
u16 * ov104_0222FC14(UnkStruct_ov104_0222E930 * param0, u16 param1);
static BOOL ov104_0222FCA0(UnkStruct_ov104_0222E930 * param0);
@@ -1730,8 +1730,8 @@ static BOOL ov104_02230C04 (UnkStruct_ov104_0222E930 * param0)
UnkStruct_ov104_02230BE4 * v1 = sub_0209B970(param0->unk_00->unk_00);
u16 * v2 = ov104_0222FBE4(param0);
- sub_02017DE0(4);
- sub_02017E00(v0->unk_34);
+ ResetLock(4);
+ InitHeapCanary(v0->unk_34);
sub_02024814(v1->unk_08, 2);
ov104_0222E974(param0, ov104_02230C3C);
@@ -1746,14 +1746,14 @@ static BOOL ov104_02230C3C (UnkStruct_ov104_0222E930 * param0)
v0 = sub_02024828(v1->unk_08);
if (v0 == 2) {
- sub_02017E2C();
- sub_02017DF0(4);
+ FreeHeapCanary();
+ ResetUnlock(4);
return 1;
}
if (v0 == 3) {
- sub_02017E2C();
- sub_02017DF0(4);
+ FreeHeapCanary();
+ ResetUnlock(4);
return 1;
}
@@ -2005,7 +2005,7 @@ static BOOL ov104_02231050 (UnkStruct_ov104_0222E930 * param0)
v0 = sub_0209B970(param0->unk_00->unk_00);
- sub_02097284(Party_GetFromSavedata(v0->unk_08));
+ HealAllPokemonInParty(Party_GetFromSavedata(v0->unk_08));
return 0;
}
diff --git a/src/overlay104/ov104_02231F74.c b/src/overlay104/ov104_02231F74.c
index 172994f552..e330ab3ccc 100644
--- a/src/overlay104/ov104_02231F74.c
+++ b/src/overlay104/ov104_02231F74.c
@@ -94,13 +94,13 @@ typedef struct UnkStruct_ov104_02232B5C_t {
u16 * unk_9C;
u16 * unk_A0;
UnkStruct_02081CF4 unk_A4;
- UnkStruct_02001AF4 * unk_B0;
- UnkStruct_02013A04 unk_B4[28];
+ UIControlData * unk_B0;
+ ResourceMetadata unk_B4[28];
UnkStruct_ov84_02240FA8 unk_194;
UnkStruct_0200112C * unk_1B4;
u16 unk_1B8;
u16 unk_1BA;
- UnkStruct_02013A04 unk_1BC[28];
+ ResourceMetadata unk_1BC[28];
u16 unk_29C[28];
u16 unk_2D4;
} UnkStruct_ov104_02232B5C;
@@ -873,8 +873,8 @@ void ov104_02232C80 (UnkStruct_ov63_0222CCB8 * param0, UnkStruct_ov63_0222BEC0 *
void ov104_02232CE0 (UnkStruct_ov104_0223C4CC * param0, Pokemon * param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, u16 param9)
{
- UnkStruct_0200C6E4 * v0 = param0->unk_34.unk_00;
- UnkStruct_0200C704 * v1 = param0->unk_34.unk_04;
+ CellTransferStateData * v0 = param0->unk_34.unk_00;
+ AnimationResourceCollection * v1 = param0->unk_34.unk_04;
PaletteSys * v2 = param0->unk_04;
ArchivedSprite v3;
void * v4;
diff --git a/src/overlay104/ov104_02237378.c b/src/overlay104/ov104_02237378.c
index 1bc93e5047..e0a4bc27a3 100644
--- a/src/overlay104/ov104_02237378.c
+++ b/src/overlay104/ov104_02237378.c
@@ -406,24 +406,24 @@ BOOL ov104_02237748 (UnkStruct_ov104_0222E930 * param0)
{
VecFx32 v21;
VecFx32 v22;
- UnkStruct_02022550 * v23;
- UnkStruct_02022550 * v24;
+ GraphicElementData * v23;
+ GraphicElementData * v24;
for (v11 = 0; v11 < v4; v11++) {
v23 = v3->unk_30[v11]->unk_00;
- v21 = *(sub_02021D28((const UnkStruct_02022550 *)v23));
+ v21 = *(sub_02021D28((const GraphicElementData *)v23));
v24 = v3->unk_40[v11]->unk_00;
- v22 = *(sub_02021D28((const UnkStruct_02022550 *)v24));
+ v22 = *(sub_02021D28((const GraphicElementData *)v24));
sub_02021C50(v23, &v22);
sub_02021C50(v24, &v21);
v23 = v3->unk_50[v11]->unk_00;
- v21 = *(sub_02021D28((const UnkStruct_02022550 *)v23));
+ v21 = *(sub_02021D28((const GraphicElementData *)v23));
v24 = v3->unk_60[v11]->unk_00;
- v22 = *(sub_02021D28((const UnkStruct_02022550 *)v24));
+ v22 = *(sub_02021D28((const GraphicElementData *)v24));
sub_02021C50(v23, &v22);
sub_02021C50(v24, &v21);
@@ -524,7 +524,7 @@ BOOL ov104_02237748 (UnkStruct_ov104_0222E930 * param0)
{
u32 v25;
UnkStruct_ov104_0223C634 * v26;
- UnkStruct_02022550 * v27;
+ GraphicElementData * v27;
v26 = ov104_0223D5A8(param0->unk_00->unk_00, v19);
v25 = ov63_0222D050(v26->unk_04);
diff --git a/src/overlay104/ov104_022395F0.c b/src/overlay104/ov104_022395F0.c
index 75d132e76d..9bcd6006d5 100644
--- a/src/overlay104/ov104_022395F0.c
+++ b/src/overlay104/ov104_022395F0.c
@@ -354,7 +354,7 @@ BOOL ov104_02239B14 (UnkStruct_ov104_0222E930 * param0)
sub_0204A4C8(v1, v2->unk_08);
}
- sub_02097284(Party_GetFromSavedata(v2->unk_08));
+ HealAllPokemonInParty(Party_GetFromSavedata(v2->unk_08));
sub_0209BA80(v1);
v1->unk_8D4 = 0;
diff --git a/src/overlay104/ov104_02239C58.c b/src/overlay104/ov104_02239C58.c
index 4c02f9e2be..962ac6bc61 100644
--- a/src/overlay104/ov104_02239C58.c
+++ b/src/overlay104/ov104_02239C58.c
@@ -109,8 +109,8 @@ static void ov104_02239D1C (UnkStruct_0209B75C * param0, UnkStruct_0209BBA4 * pa
{
u8 v0;
- param1->unk_A8 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
- MI_CpuClearFast(param1->unk_A8, sizeof(UnkStruct_02098C44));
+ param1->unk_A8 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
+ MI_CpuClearFast(param1->unk_A8, sizeof(PartyManagementData));
param1->unk_A8->unk_00 = Party_GetFromSavedata(param1->unk_00);
param1->unk_A8->unk_04 = sub_0207D990(param1->unk_00);
diff --git a/src/overlay104/ov104_0223A7F4.c b/src/overlay104/ov104_0223A7F4.c
index 826f47ceed..feed13937e 100644
--- a/src/overlay104/ov104_0223A7F4.c
+++ b/src/overlay104/ov104_0223A7F4.c
@@ -353,8 +353,8 @@ BattleParams * ov104_0223ABA0 (UnkStruct_ov104_0223ADA0 * param0, UnkStruct_ov10
v2 = ov104_0223AA50(param0->unk_04);
v3 = ov104_0223AA74(param0->unk_04, 0);
- sub_02097284(param0->unk_4D4);
- sub_02097284(param0->unk_4D8);
+ HealAllPokemonInParty(param0->unk_4D4);
+ HealAllPokemonInParty(param0->unk_4D8);
v4 = sub_02051D8C(11, ov104_0223AD74(param0->unk_04));
sub_020521B8(v4, NULL, param1->unk_08, param1->unk_1C, param1->unk_0C, param1->unk_10, param1->unk_20);
diff --git a/src/overlay104/ov104_0223AF58.c b/src/overlay104/ov104_0223AF58.c
index 6249716b88..3400dd2c9f 100644
--- a/src/overlay104/ov104_0223AF58.c
+++ b/src/overlay104/ov104_0223AF58.c
@@ -1586,7 +1586,7 @@ BattleParams * ov104_0223B250 (UnkStruct_ov104_0223B5C0 * param0, UnkStruct_ov10
v5 = ov104_0223B50C(param0->unk_04);
v13 = Party_GetFromSavedata(param0->unk_6FC);
- sub_02097284(v13);
+ HealAllPokemonInParty(v13);
v8 = sub_02051D8C(11, ov104_0223B4D4(param0->unk_04));
sub_020521B8(v8, NULL, param1->unk_08, param1->unk_1C, param1->unk_0C, param1->unk_10, param1->unk_20);
diff --git a/src/overlay104/ov104_0223B6F4.c b/src/overlay104/ov104_0223B6F4.c
index 680def205b..e07a178fd1 100644
--- a/src/overlay104/ov104_0223B6F4.c
+++ b/src/overlay104/ov104_0223B6F4.c
@@ -174,7 +174,7 @@ BattleParams * ov104_0223B810 (UnkStruct_ov104_0223BA10 * param0, UnkStruct_ov10
v2 = ov104_0223B7A8(param0->unk_10, 0);
v3 = ov104_0223B7DC(param0->unk_10, 0);
- sub_02097284(param0->unk_2C);
+ HealAllPokemonInParty(param0->unk_2C);
v5 = sub_02051D8C(11, ov104_0223B9E4(param0->unk_10));
sub_020521B8(v5, NULL, param1->unk_08, param1->unk_1C, param1->unk_0C, param1->unk_10, param1->unk_20);
@@ -283,24 +283,24 @@ void ov104_0223BA24 (Party * param0)
{
int v0, v1, v2;
u32 v3;
- Pokemon * v4;
+ Pokemon * mon;
v2 = Party_GetCurrentCount(param0);
for (v0 = 0; v0 < v2; v0++) {
- v4 = Party_GetPokemonBySlotIndex(param0, v0);
+ mon = Party_GetPokemonBySlotIndex(param0, v0);
- if (Pokemon_GetValue(v4, MON_DATA_172, NULL) == 0) {
+ if (Pokemon_GetValue(mon, MON_DATA_172, NULL) == 0) {
continue;
}
- if (Pokemon_GetValue(v4, MON_DATA_CURRENT_HP, NULL) == 0) {
+ if (Pokemon_GetValue(mon, MON_DATA_CURRENT_HP, NULL) == 0) {
v3 = 1;
- Pokemon_SetValue(v4, 163, &v3);
+ Pokemon_SetValue(mon, 163, &v3);
}
v3 = 0;
- Pokemon_SetValue(v4, 160, &v3);
+ Pokemon_SetValue(mon, 160, &v3);
}
return;
@@ -308,7 +308,7 @@ void ov104_0223BA24 (Party * param0)
void ov104_0223BA7C (UnkStruct_ov104_0223BA10 * param0, Pokemon * param1)
{
- sub_02077EE4(param1, sub_02025E38(param0->unk_04), 4, 0, 0, 11);
+ Pokemon_UpdateAfterCatch(param1, sub_02025E38(param0->unk_04), 4, 0, 0, 11);
return;
}
diff --git a/src/overlay104/ov104_0223BCBC.c b/src/overlay104/ov104_0223BCBC.c
index ac500dd51e..0fa7ae462e 100644
--- a/src/overlay104/ov104_0223BCBC.c
+++ b/src/overlay104/ov104_0223BCBC.c
@@ -254,8 +254,8 @@ BattleParams * ov104_0223BDD8 (UnkStruct_ov104_0223BFFC * param0, UnkStruct_ov10
break;
}
- sub_02097284(param0->unk_70);
- sub_02097284(param0->unk_74);
+ HealAllPokemonInParty(param0->unk_70);
+ HealAllPokemonInParty(param0->unk_74);
return v5;
}
@@ -294,7 +294,7 @@ BOOL ov104_0223C000 (u8 param0)
void ov104_0223C010 (UnkStruct_ov104_0223BFFC * param0, Pokemon * param1)
{
- sub_02077EE4(param1, sub_02025E38(param0->unk_04), 4, 0, 0, 11);
+ Pokemon_UpdateAfterCatch(param1, sub_02025E38(param0->unk_04), 4, 0, 0, 11);
return;
}
diff --git a/src/overlay104/ov104_0223C2D4.c b/src/overlay104/ov104_0223C2D4.c
index 30b4e8fa83..0a92ef0253 100644
--- a/src/overlay104/ov104_0223C2D4.c
+++ b/src/overlay104/ov104_0223C2D4.c
@@ -79,9 +79,9 @@ UnkStruct_ov104_0223C4CC * ov104_0223C2D4(UnkStruct_0209B75C * param0);
void ov104_0223C4CC(UnkStruct_ov104_0223C4CC * param0);
static void ov104_0223C8E8(UnkStruct_ov104_0223C4CC * param0);
static void ov104_0223CC10(UnkStruct_ov104_0223C4CC * param0);
-static UnkStruct_0207C690 * ov104_0223CF4C(int param0);
+static GenericPointerData * ov104_0223CF4C(int param0);
static void ov104_0223CF68(void);
-static void ov104_0223CFEC(UnkStruct_0207C690 * param0);
+static void ov104_0223CFEC(GenericPointerData * param0);
static void ov104_0223D3B0(UnkStruct_ov104_0223C4CC * param0);
static void ov104_0223D498(UnkStruct_ov104_0223C4CC * param0);
static void ov104_0223D570(UnkStruct_ov104_0223C634 * param0, UnkStruct_ov104_0223D570 * param1);
@@ -131,8 +131,8 @@ UnkStruct_ov104_0223C4CC * ov104_0223C2D4 (UnkStruct_0209B75C * param0)
v4 = sub_02025E38(v3->unk_08);
v2 = v3->unk_24;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -195,7 +195,7 @@ UnkStruct_ov104_0223C4CC * ov104_0223C2D4 (UnkStruct_0209B75C * param0)
sub_02002AC8(0);
sub_02002B20(0);
- sub_02017798(ov104_0223C6EC, v0);
+ SetMainCallback(ov104_0223C6EC, v0);
v0->unk_A0 = sub_0200DA04(ov104_0223C71C, v0, 10);
ov104_0222EB8C(v0, &v0->unk_90, v0->unk_C1);
sub_02039734();
@@ -247,8 +247,8 @@ void ov104_0223C4CC (UnkStruct_ov104_0223C4CC * param0)
GX_SetVisibleWnd(GX_WNDMASK_NONE);
GXS_SetVisibleWnd(GX_WNDMASK_NONE);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
Heap_Destroy(94);
sub_02002AC8(0);
@@ -784,9 +784,9 @@ static void ov104_0223CEEC (UnkStruct_ov104_0223C4CC * param0)
ov63_0222D7B4(param0->unk_30);
}
-static UnkStruct_0207C690 * ov104_0223CF4C (int param0)
+static GenericPointerData * ov104_0223CF4C (int param0)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(param0, 0, 1, 0, 1, ov104_0223CF68);
return v0;
@@ -807,7 +807,7 @@ static void ov104_0223CF68 (void)
G3_ViewPort(0, 0, 255, 191);
}
-static void ov104_0223CFEC (UnkStruct_0207C690 * param0)
+static void ov104_0223CFEC (GenericPointerData * param0)
{
sub_020242C4(param0);
}
diff --git a/src/overlay104/ov104_0223D768.c b/src/overlay104/ov104_0223D768.c
index 24bf7923bc..7d1ab6718f 100644
--- a/src/overlay104/ov104_0223D768.c
+++ b/src/overlay104/ov104_0223D768.c
@@ -63,7 +63,7 @@ static const UnkStruct_ov104_0223F9E0 Unk_ov104_022417D8[] = {
}
};
-void ov104_0223D768 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, PaletteSys * param3, u16 param4)
+void ov104_0223D768 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, PaletteSys * param3, u16 param4)
{
const UnkStruct_ov104_0223F9E0 * v0;
@@ -76,7 +76,7 @@ void ov104_0223D768 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, N
sub_0200CE54(param0, param1, param2, v0->unk_14[3], 1, v0->unk_14[3]);
}
-void ov104_0223D7EC (UnkStruct_0200C704 * param0, u16 param1)
+void ov104_0223D7EC (AnimationResourceCollection * param0, u16 param1)
{
const UnkStruct_ov104_0223F9E0 * v0;
@@ -89,7 +89,7 @@ void ov104_0223D7EC (UnkStruct_0200C704 * param0, u16 param1)
sub_0200D0A0(param0, v0->unk_14[3]);
}
-CellActorData * ov104_0223D828 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u16 param2)
+CellActorData * ov104_0223D828 (CellTransferStateData * param0, AnimationResourceCollection * param1, u16 param2)
{
CellActorData * v0;
diff --git a/src/overlay104/ov104_0223DC7C.c b/src/overlay104/ov104_0223DC7C.c
index d189780056..b39df4b65c 100644
--- a/src/overlay104/ov104_0223DC7C.c
+++ b/src/overlay104/ov104_0223DC7C.c
@@ -75,8 +75,8 @@ typedef struct {
int unk_08;
void * unk_0C;
BGL * unk_10;
- UnkStruct_0200C6E4 * unk_14;
- UnkStruct_0200C704 * unk_18;
+ CellTransferStateData * unk_14;
+ AnimationResourceCollection * unk_18;
PaletteSys * unk_1C;
u16 * unk_20;
NARC * unk_24;
@@ -130,7 +130,7 @@ typedef struct {
u8 unk_0B;
} UnkStruct_ov104_0224191C;
-void ov104_0223DC7C(int param0, BGL * param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, PaletteSys * param4, u16 * param5, s16 param6, s16 param7);
+void ov104_0223DC7C(int param0, BGL * param1, CellTransferStateData * param2, AnimationResourceCollection * param3, PaletteSys * param4, u16 * param5, s16 param6, s16 param7);
static void ov104_0223DD30(UnkStruct_ov104_0223DD30 * param0, SysTask * param1);
static void ov104_0223DD5C(SysTask * param0, void * param1);
static void ov104_0223DDB4(SysTask * param0, void * param1);
@@ -186,7 +186,7 @@ static const UnkStruct_ov104_0223F9E0 Unk_ov104_022418E8 = {
0x0
};
-void ov104_0223DC7C (int param0, BGL * param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, PaletteSys * param4, u16 * param5, s16 param6, s16 param7)
+void ov104_0223DC7C (int param0, BGL * param1, CellTransferStateData * param2, AnimationResourceCollection * param3, PaletteSys * param4, u16 * param5, s16 param6, s16 param7)
{
SysTask * v0;
UnkStruct_ov104_0223DD30 * v1;
@@ -435,7 +435,7 @@ static void ov104_0223E29C (UnkStruct_ov104_0223DD30 * param0, UnkStruct_ov104_0
int v3;
FontOAM * v4;
BGL * v5;
- UnkStruct_0200C704 * v6;
+ AnimationResourceCollection * v6;
int v7, v8;
GF_ASSERT(param1->unk_00 == NULL);
diff --git a/src/overlay105/ov105_02241AE0.c b/src/overlay105/ov105_02241AE0.c
index 478aa4513e..c1b886a6c9 100644
--- a/src/overlay105/ov105_02241AE0.c
+++ b/src/overlay105/ov105_02241AE0.c
@@ -114,13 +114,13 @@ struct UnkStruct_ov105_02241FF4_t {
BGL * unk_4C;
Window unk_50[10];
UnkStruct_02081CF4 unk_F0;
- UnkStruct_02001AF4 * unk_FC;
- UnkStruct_02013A04 unk_100[4];
+ UIControlData * unk_FC;
+ ResourceMetadata unk_100[4];
PaletteSys * unk_120;
- UnkStruct_0207C690 * unk_124;
+ GenericPointerData * unk_124;
UnkStruct_02007768 * unk_128;
Sprite * unk_12C[3];
- UnkStruct_020279FC * unk_138;
+ AnimationControlFlags * unk_138;
SaveData * unk_13C;
UnkStruct_02098D38 * unk_140;
UnkStruct_ov105_02245AAC unk_144;
@@ -614,7 +614,7 @@ int ov105_02241F54 (UnkStruct_020067E8 * param0, int * param1)
ov105_022451B4(v1);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(93);
Overlay_UnloadByID(FS_OVERLAY_ID(overlay104));
@@ -2830,8 +2830,8 @@ static void ov105_022452A0 (UnkStruct_ov105_02241FF4 * param0)
static void ov105_022452E4 (void)
{
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -2880,7 +2880,7 @@ static void ov105_0224531C (UnkStruct_ov105_02241FF4 * param0)
}
GXLayers_TurnBothDispOn();
- sub_02017798(ov105_0224451C, (void *)param0);
+ SetMainCallback(ov105_0224451C, (void *)param0);
return;
}
diff --git a/src/overlay105/ov105_02245AAC.c b/src/overlay105/ov105_02245AAC.c
index a24cabcf08..0a8cbeffcc 100644
--- a/src/overlay105/ov105_02245AAC.c
+++ b/src/overlay105/ov105_02245AAC.c
@@ -19,7 +19,7 @@
#include "overlay105/ov105_02245AAC.h"
void ov105_02245AAC(UnkStruct_ov105_02245AAC * param0);
-UnkStruct_02022550 * ov105_02245BA4(UnkStruct_ov105_02245AAC * param0, u32 param1, u32 param2, u32 param3, int param4, u8 param5);
+GraphicElementData * ov105_02245BA4(UnkStruct_ov105_02245AAC * param0, u32 param1, u32 param2, u32 param3, int param4, u8 param5);
void ov105_02245C50(UnkStruct_ov105_02245AAC * param0);
static void ov105_02245C98(void);
@@ -60,11 +60,11 @@ void ov105_02245AAC (UnkStruct_ov105_02245AAC * param0)
return;
}
-UnkStruct_02022550 * ov105_02245BA4 (UnkStruct_ov105_02245AAC * param0, u32 param1, u32 param2, u32 param3, int param4, u8 param5)
+GraphicElementData * ov105_02245BA4 (UnkStruct_ov105_02245AAC * param0, u32 param1, u32 param2, u32 param3, int param4, u8 param5)
{
int v0;
UnkStruct_ov19_021DA864 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
sub_020093B4(&v1, param1, param1, param1, param1, 0xffffffff, 0xffffffff, 0, param4, param0->unk_190[0], param0->unk_190[1], param0->unk_190[2], param0->unk_190[3], NULL, NULL);
diff --git a/src/overlay105/ov105_02245DC4.c b/src/overlay105/ov105_02245DC4.c
index 0adf218fe0..09bcfaaa0b 100644
--- a/src/overlay105/ov105_02245DC4.c
+++ b/src/overlay105/ov105_02245DC4.c
@@ -14,7 +14,7 @@
struct UnkStruct_ov105_02245E1C_t {
int unk_00;
int unk_04;
- UnkStruct_02022550 * unk_08;
+ GraphicElementData * unk_08;
};
UnkStruct_ov105_02245E1C * ov105_02245DC4(UnkStruct_ov105_02245AAC * param0, u32 param1, int param2, int param3, u32 param4);
diff --git a/src/overlay105/ov105_02245E54.c b/src/overlay105/ov105_02245E54.c
index 8133082b10..554948a650 100644
--- a/src/overlay105/ov105_02245E54.c
+++ b/src/overlay105/ov105_02245E54.c
@@ -16,7 +16,7 @@ struct UnkStruct_ov105_02245EA8_t {
u16 unk_02;
int unk_04;
int unk_08;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
};
UnkStruct_ov105_02245EA8 * ov105_02245E54(UnkStruct_ov105_02245AAC * param0, int param1, int param2, u32 param3);
diff --git a/src/overlay105/ov105_02245FB8.c b/src/overlay105/ov105_02245FB8.c
index a5d4b18d02..0ea339f997 100644
--- a/src/overlay105/ov105_02245FB8.c
+++ b/src/overlay105/ov105_02245FB8.c
@@ -21,7 +21,7 @@ struct UnkStruct_ov105_02246060_t {
u8 unk_03;
const UnkStruct_ov105_02246394 * unk_04;
const u8 * unk_08;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
u8 unk_10;
};
diff --git a/src/overlay106/ov106_02241AE0.c b/src/overlay106/ov106_02241AE0.c
index 8996424a91..15bd9e4802 100644
--- a/src/overlay106/ov106_02241AE0.c
+++ b/src/overlay106/ov106_02241AE0.c
@@ -105,11 +105,11 @@ struct UnkStruct_ov106_02243118_t {
BGL * unk_48;
Window unk_4C[4];
UnkStruct_02081CF4 unk_8C;
- UnkStruct_02001AF4 * unk_98;
- UnkStruct_02013A04 unk_9C[2];
+ UIControlData * unk_98;
+ ResourceMetadata unk_9C[2];
PaletteSys * unk_AC;
UnkStruct_0200C440 * unk_B0;
- UnkStruct_020279FC * unk_B4;
+ AnimationControlFlags * unk_B4;
SaveData * unk_B8;
UnkStruct_02098D38 * unk_BC;
UnkStruct_ov106_02243310 unk_C0;
@@ -328,7 +328,7 @@ int ov106_02241CF0 (UnkStruct_020067E8 * param0, int * param1)
ov106_022423E8(v1);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(98);
Overlay_UnloadByID(FS_OVERLAY_ID(overlay104));
@@ -796,8 +796,8 @@ static void ov106_0224248C (UnkStruct_ov106_02243118 * param0)
static void ov106_022424C8 (void)
{
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -847,7 +847,7 @@ static void ov106_02242500 (UnkStruct_ov106_02243118 * param0)
sub_02039734();
}
- sub_02017798(ov106_022426E0, (void *)param0);
+ SetMainCallback(ov106_022426E0, (void *)param0);
return;
}
diff --git a/src/overlay106/ov106_02243310.c b/src/overlay106/ov106_02243310.c
index 78d4f03606..d2e1e20b9e 100644
--- a/src/overlay106/ov106_02243310.c
+++ b/src/overlay106/ov106_02243310.c
@@ -23,7 +23,7 @@
#include "overlay106/ov106_02243310.h"
void ov106_02243310(UnkStruct_ov106_02243310 * param0, Pokemon * param1);
-UnkStruct_02022550 * ov106_022434BC(UnkStruct_ov106_02243310 * param0, u32 param1, u32 param2, u32 param3, u8 param4);
+GraphicElementData * ov106_022434BC(UnkStruct_ov106_02243310 * param0, u32 param1, u32 param2, u32 param3, u8 param4);
void ov106_02243570(UnkStruct_ov106_02243310 * param0);
static void ov106_022435C8(void);
@@ -73,11 +73,11 @@ void ov106_02243310 (UnkStruct_ov106_02243310 * param0, Pokemon * param1)
return;
}
-UnkStruct_02022550 * ov106_022434BC (UnkStruct_ov106_02243310 * param0, u32 param1, u32 param2, u32 param3, u8 param4)
+GraphicElementData * ov106_022434BC (UnkStruct_ov106_02243310 * param0, u32 param1, u32 param2, u32 param3, u8 param4)
{
int v0;
UnkStruct_ov19_021DA864 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
sub_020093B4(&v1, param1, param1, param1, param1, 0xffffffff, 0xffffffff, 0, 1, param0->unk_190[0], param0->unk_190[1], param0->unk_190[2], param0->unk_190[3], NULL, NULL);
diff --git a/src/overlay106/ov106_022435FC.c b/src/overlay106/ov106_022435FC.c
index 804c3fe0f8..2f84feaab3 100644
--- a/src/overlay106/ov106_022435FC.c
+++ b/src/overlay106/ov106_022435FC.c
@@ -18,7 +18,7 @@ struct UnkStruct_ov106_02243650_t {
u32 unk_04;
u32 unk_08;
const u8 * unk_0C;
- UnkStruct_02022550 * unk_10;
+ GraphicElementData * unk_10;
};
UnkStruct_ov106_02243650 * ov106_022435FC(UnkStruct_ov106_02243310 * param0, u32 param1, u32 param2, u16 param3, u16 param4, const u8 * param5);
diff --git a/src/overlay107/ov107_02241AE0.c b/src/overlay107/ov107_02241AE0.c
index f3bae312f2..23e216892c 100644
--- a/src/overlay107/ov107_02241AE0.c
+++ b/src/overlay107/ov107_02241AE0.c
@@ -263,14 +263,14 @@ struct UnkStruct_ov107_02241D6C_t {
BGL * unk_4C;
Window unk_50[18];
UnkStruct_02081CF4 unk_170;
- UnkStruct_02001AF4 * unk_17C;
- UnkStruct_02013A04 unk_180[3];
+ UIControlData * unk_17C;
+ ResourceMetadata unk_180[3];
UnkStruct_0200112C * unk_198;
- UnkStruct_02013A04 * unk_19C;
+ ResourceMetadata * unk_19C;
UnkStruct_ov84_02240FA8 unk_1A0;
PaletteSys * unk_1C0;
UnkStruct_0200C440 * unk_1C4;
- UnkStruct_020279FC * unk_1C8;
+ AnimationControlFlags * unk_1C8;
SaveData * unk_1CC;
UnkStruct_020302DC * unk_1D0;
UnkStruct_0203041C * unk_1D4;
@@ -605,7 +605,7 @@ int ov107_02241D2C (UnkStruct_020067E8 * param0, int * param1)
ov107_02242E14(v1);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(100);
Overlay_UnloadByID(FS_OVERLAY_ID(overlay104));
@@ -1433,8 +1433,8 @@ static void ov107_02242E14 (UnkStruct_ov107_02241D6C * param0)
static void ov107_02242F24 (void)
{
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -1539,7 +1539,7 @@ static void ov107_02242F5C (UnkStruct_ov107_02241D6C * param0)
sub_02039734();
}
- sub_02017798(ov107_022433EC, (void *)param0);
+ SetMainCallback(ov107_022433EC, (void *)param0);
return;
}
@@ -3564,7 +3564,7 @@ void ov107_02245438 (int param0, int param1, void * param2, void * param3)
static void ov107_02245454 (Pokemon * param0, u16 param1)
{
- sub_02096954(param0, param1, 0, 0, 100);
+ ApplyItemEffectsToPokemon(param0, param1, 0, 0, 100);
return;
}
diff --git a/src/overlay107/ov107_02245EB0.c b/src/overlay107/ov107_02245EB0.c
index 625043938d..fc6e64b5e5 100644
--- a/src/overlay107/ov107_02245EB0.c
+++ b/src/overlay107/ov107_02245EB0.c
@@ -118,13 +118,13 @@ struct UnkStruct_ov107_02246170_t {
BGL * unk_4C;
Window unk_50[12];
UnkStruct_02081CF4 unk_110;
- UnkStruct_02001AF4 * unk_11C;
- UnkStruct_02013A04 unk_120[3];
+ UIControlData * unk_11C;
+ ResourceMetadata unk_120[3];
UnkStruct_0200112C * unk_138;
- UnkStruct_02013A04 * unk_13C;
+ ResourceMetadata * unk_13C;
PaletteSys * unk_140;
UnkStruct_0200C440 * unk_144;
- UnkStruct_020279FC * unk_148;
+ AnimationControlFlags * unk_148;
SaveData * unk_14C;
UnkStruct_020302DC * unk_150;
UnkStruct_0203041C * unk_154;
@@ -399,7 +399,7 @@ int ov107_02246130 (UnkStruct_020067E8 * param0, int * param1)
ov107_02246D84(v1);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(100);
Overlay_UnloadByID(FS_OVERLAY_ID(overlay104));
@@ -1109,8 +1109,8 @@ static void ov107_02246D84 (UnkStruct_ov107_02246170 * param0)
static void ov107_02246EAC (void)
{
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -1206,7 +1206,7 @@ static void ov107_02246EE4 (UnkStruct_ov107_02246170 * param0)
sub_02039734();
}
- sub_02017798(ov107_022472E8, (void *)param0);
+ SetMainCallback(ov107_022472E8, (void *)param0);
return;
}
diff --git a/src/overlay107/ov107_02249604.c b/src/overlay107/ov107_02249604.c
index 8f404f1562..2d05ac2d7d 100644
--- a/src/overlay107/ov107_02249604.c
+++ b/src/overlay107/ov107_02249604.c
@@ -29,7 +29,7 @@
#include "overlay107/ov107_02249604.h"
void ov107_02249604(UnkStruct_ov107_02249954 * param0, Party * param1, u8 param2);
-UnkStruct_02022550 * ov107_022498A4(UnkStruct_ov107_02249954 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7);
+GraphicElementData * ov107_022498A4(UnkStruct_ov107_02249954 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7);
void ov107_02249954(UnkStruct_ov107_02249954 * param0);
void ov107_022499BC(UnkStruct_ov107_02249954 * param0, u16 param1);
void ov107_022499FC(UnkStruct_ov107_02249954 * param0, u16 param1);
@@ -112,11 +112,11 @@ void ov107_02249604 (UnkStruct_ov107_02249954 * param0, Party * param1, u8 param
return;
}
-UnkStruct_02022550 * ov107_022498A4 (UnkStruct_ov107_02249954 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7)
+GraphicElementData * ov107_022498A4 (UnkStruct_ov107_02249954 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7)
{
int v0;
UnkStruct_ov19_021DA864 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
sub_020093B4(&v1, param1, param2, param3, param3, 0xffffffff, 0xffffffff, 0, param6, param0->unk_190[0], param0->unk_190[1], param0->unk_190[2], param0->unk_190[3], NULL, NULL);
diff --git a/src/overlay107/ov107_02249B1C.c b/src/overlay107/ov107_02249B1C.c
index 692d69e797..7fd244c3bf 100644
--- a/src/overlay107/ov107_02249B1C.c
+++ b/src/overlay107/ov107_02249B1C.c
@@ -18,7 +18,7 @@
struct UnkStruct_ov107_02249B8C_t {
s16 unk_00;
s16 unk_02;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
};
UnkStruct_ov107_02249B8C * ov107_02249B1C(UnkStruct_ov107_02249954 * param0, u32 param1, u32 param2, u32 param3, u32 param4, s16 param5, s16 param6, int param7, const u8 * param8);
diff --git a/src/overlay108/ov108_02241AE0.c b/src/overlay108/ov108_02241AE0.c
index a79c5a3f33..c6ed4c9a39 100644
--- a/src/overlay108/ov108_02241AE0.c
+++ b/src/overlay108/ov108_02241AE0.c
@@ -209,10 +209,10 @@ struct UnkStruct_ov108_02241DB0_t {
BGL * unk_90;
Window unk_94[2];
UnkStruct_02081CF4 unk_B4;
- UnkStruct_02001AF4 * unk_C0;
- UnkStruct_02013A04 unk_C4[2];
+ UIControlData * unk_C0;
+ ResourceMetadata unk_C4[2];
PaletteSys * unk_D4;
- UnkStruct_020279FC * unk_D8;
+ AnimationControlFlags * unk_D8;
SaveData * unk_DC;
UnkStruct_020304A0 * unk_E0;
UnkStruct_020305B8 * unk_E4;
@@ -427,7 +427,7 @@ int ov108_02241D70 (UnkStruct_020067E8 * param0, int * param1)
sub_0201DC3C();
ov108_02242238(v1);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(103);
Overlay_UnloadByID(FS_OVERLAY_ID(overlay104));
@@ -802,8 +802,8 @@ static void ov108_02242238 (UnkStruct_ov108_02241DB0 * param0)
static void ov108_02242344 (void)
{
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -880,7 +880,7 @@ static void ov108_0224237C (UnkStruct_ov108_02241DB0 * param0)
sub_02039734();
}
- sub_02017798(ov108_02242708, (void *)param0);
+ SetMainCallback(ov108_02242708, (void *)param0);
return;
}
diff --git a/src/overlay108/ov108_02243030.c b/src/overlay108/ov108_02243030.c
index 99c7de2ebd..62beecaec9 100644
--- a/src/overlay108/ov108_02243030.c
+++ b/src/overlay108/ov108_02243030.c
@@ -31,7 +31,7 @@ static const u8 Unk_ov108_02243760[4] = {
};
void ov108_02243030(UnkStruct_ov108_02243030 * param0, Party * param1, Party * param2, u8 param3);
-UnkStruct_02022550 * ov108_022430F0(UnkStruct_ov108_02243030 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7);
+GraphicElementData * ov108_022430F0(UnkStruct_ov108_02243030 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7);
void ov108_02243194(UnkStruct_ov108_02243030 * param0);
static void ov108_022431FC(void);
static void ov108_02243230(UnkStruct_ov108_02243030 * param0);
@@ -74,11 +74,11 @@ void ov108_02243030 (UnkStruct_ov108_02243030 * param0, Party * param1, Party *
return;
}
-UnkStruct_02022550 * ov108_022430F0 (UnkStruct_ov108_02243030 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7)
+GraphicElementData * ov108_022430F0 (UnkStruct_ov108_02243030 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u32 param5, int param6, u8 param7)
{
int v0;
UnkStruct_ov19_021DA864 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
sub_020093B4(&v1, param1, param2, param3, param3, 0xffffffff, 0xffffffff, 0, param6, param0->unk_190[0], param0->unk_190[1], param0->unk_190[2], param0->unk_190[3], NULL, NULL);
diff --git a/src/overlay108/ov108_0224351C.c b/src/overlay108/ov108_0224351C.c
index b0603736ef..8456eb474e 100644
--- a/src/overlay108/ov108_0224351C.c
+++ b/src/overlay108/ov108_0224351C.c
@@ -21,7 +21,7 @@ struct UnkStruct_ov108_02243594_t {
u8 unk_0B;
u16 unk_0C;
u16 unk_0E;
- UnkStruct_02022550 * unk_10;
+ GraphicElementData * unk_10;
};
UnkStruct_ov108_02243594 * ov108_0224351C(UnkStruct_ov108_02243030 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u16 param5, u16 param6, u32 param7, int param8, u8 param9);
diff --git a/src/overlay109/ov109_021D0D80.c b/src/overlay109/ov109_021D0D80.c
index 771b3ef650..87f0aec82b 100644
--- a/src/overlay109/ov109_021D0D80.c
+++ b/src/overlay109/ov109_021D0D80.c
@@ -307,8 +307,8 @@ typedef struct UnkStruct_ov109_021D0F70_t {
NNSG2dScreenData * unk_D88;
NNSG2dCharacterData * unk_D8C;
NNSG2dPaletteData * unk_D90;
- UnkStruct_0200C6E4 * unk_D94;
- UnkStruct_0200C704 * unk_D98;
+ CellTransferStateData * unk_D94;
+ AnimationResourceCollection * unk_D98;
PaletteSys * unk_D9C;
GXRgb unk_DA0[8];
SysTask * unk_DB0;
@@ -447,9 +447,9 @@ int ov109_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_0209C194 * v1 = sub_02006840(param0);
sub_020388F4(1, 1);
- sub_02017798(NULL, NULL);
- sub_020177A4();
- sub_02017DE0(2);
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
+ ResetLock(2);
Heap_Create(3, 95, 0x80000);
v0 = sub_0200681C(param0, sizeof(UnkStruct_ov109_021D0F70), 95);
@@ -465,7 +465,7 @@ int ov109_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
sub_0201E3D8();
sub_0201E450(4);
ov109_021D1C28(v0);
- sub_02017798(ov109_021D1C00, v0);
+ SetMainCallback(ov109_021D1C00, v0);
ov109_021D29CC(v0);
ov109_021D2AF0(v0);
@@ -520,12 +520,12 @@ int ov109_021D0EB4 (UnkStruct_020067E8 * param0, int * param1)
ov109_021D2AF8(v0);
ov109_021D1C68(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_0201DC3C();
NARC_dtor(v0->unk_D80);
sub_02006830(param0);
Heap_Destroy(95);
- sub_02017DF0(2);
+ ResetUnlock(2);
return 1;
}
@@ -1369,7 +1369,7 @@ static int ov109_021D1A14 (UnkStruct_ov109_021D0F70 * param0)
ov109_021D2634(param0, 11);
sub_020364F0(202);
- gCoreSys.unk_68 = 1;
+ gCoreSys.inhibitReset = 1;
param0->unk_00 = 44;
return 0;
@@ -1393,7 +1393,7 @@ static int ov109_021D1AA8 (UnkStruct_ov109_021D0F70 * param0)
param0->unk_CC->unk_14.unk_08, 2, ¶m0->unk_04);
if (v0) {
- gCoreSys.unk_68 = 0;
+ gCoreSys.inhibitReset = 0;
sub_0200EBA0(param0->unk_DC8);
param0->unk_00 = 48;
}
@@ -1963,8 +1963,8 @@ static void ov109_021D2368 (UnkStruct_ov109_021D0F70 * param0)
static void ov109_021D2408 (UnkStruct_ov109_021D0F70 * param0)
{
- UnkStruct_0200C6E4 * v0 = param0->unk_D94;
- UnkStruct_0200C704 * v1 = param0->unk_D98;
+ CellTransferStateData * v0 = param0->unk_D94;
+ AnimationResourceCollection * v1 = param0->unk_D98;
PaletteSys * v2 = param0->unk_D9C;
NARC * v3 = param0->unk_D80;
diff --git a/src/overlay109/ov109_021D3D50.c b/src/overlay109/ov109_021D3D50.c
index f050ba55fc..6a02f28b49 100644
--- a/src/overlay109/ov109_021D3D50.c
+++ b/src/overlay109/ov109_021D3D50.c
@@ -179,8 +179,8 @@ int ov109_021D3D50 (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -207,7 +207,7 @@ int ov109_021D3D50 (UnkStruct_020067E8 * param0, int * param1)
ov109_021D40F0(v0->unk_14);
sub_0200F174(0, 17, 17, 0x0, 16, 1, 95);
ov109_021D4300(v0, v1);
- sub_02017798(ov109_021D40A8, v0);
+ SetMainCallback(ov109_021D40A8, v0);
ov109_021D41F8(v0, v1);
ov109_021D43EC();
ov109_021D441C(v0, v1);
@@ -322,7 +322,7 @@ int ov109_021D3F9C (UnkStruct_020067E8 * param0, int * param1)
GX_SetDispSelect(GX_DISP_SELECT_MAIN_SUB);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
v1->unk_0C->unk_10 = v1->unk_08;
v1->unk_0C->unk_08 = ov109_021D548C();
@@ -1061,7 +1061,7 @@ static int ov109_021D4CC8 (UnkStruct_ov109_021D5140 * param0, int param1)
{
void * v0;
- gCoreSys.unk_68 = 1;
+ gCoreSys.inhibitReset = 1;
v0 = sub_0202C1B4(95);
sub_0202B758(param0->unk_0C->unk_14.unk_18, v0, 4);
@@ -1088,7 +1088,7 @@ static int ov109_021D4D20 (UnkStruct_ov109_021D5140 * param0, int param1)
param0->unk_1C.unk_00 = 0;
param0->unk_3C4 = 0;
- gCoreSys.unk_68 = 0;
+ gCoreSys.inhibitReset = 0;
param0->unk_10->unk_24 = 0;
}
diff --git a/src/overlay110/ov110_021D0D80.c b/src/overlay110/ov110_021D0D80.c
index b4789b2783..c5ede4e7b6 100644
--- a/src/overlay110/ov110_021D0D80.c
+++ b/src/overlay110/ov110_021D0D80.c
@@ -62,7 +62,7 @@ typedef struct {
Strbuf* unk_118;
Strbuf* unk_11C;
PaletteSys * unk_120;
- const UnkStruct_020279FC * unk_124;
+ const AnimationControlFlags * unk_124;
SaveData * unk_128;
UnkStruct_0203068C * unk_12C;
} UnkStruct_ov110_021D0F78;
@@ -106,8 +106,8 @@ int ov110_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_ov110_021D0F78 * v1;
UnkStruct_0203E564 * v2;
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -141,7 +141,7 @@ int ov110_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
sub_02002E7C(0, 13 * 32, 114);
sub_02002E98(0, 12 * 32, 114);
ov110_021D2124(v1->unk_0C, v1->unk_10, ov110_021D1208(v1->unk_06));
- sub_02017798(ov110_021D1048, (void *)v1);
+ SetMainCallback(ov110_021D1048, (void *)v1);
(*param1) = 0;
return 1;
@@ -191,7 +191,7 @@ int ov110_021D0EF0 (UnkStruct_020067E8 * param0, int * param1)
ov110_021D11CC(v1->unk_0C);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(114);
return 1;
diff --git a/src/overlay111/ov111_021D0D80.c b/src/overlay111/ov111_021D0D80.c
index a615ee9214..a2aa1156cf 100644
--- a/src/overlay111/ov111_021D0D80.c
+++ b/src/overlay111/ov111_021D0D80.c
@@ -94,7 +94,7 @@ struct UnkStruct_ov111_021D0F7C_t {
Window unk_5C[16];
PaletteSys * unk_15C;
UnkStruct_0200C440 * unk_160;
- UnkStruct_020279FC * unk_164;
+ AnimationControlFlags * unk_164;
SaveData * unk_168;
UnkStruct_ov111_021D2F80 unk_16C;
UnkStruct_ov111_021D33F4 * unk_35C[4];
@@ -444,7 +444,7 @@ int ov111_021D0F40 (UnkStruct_020067E8 * param0, int * param1)
ov111_021D1C0C(v1);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(115);
return 1;
@@ -1139,8 +1139,8 @@ static void ov111_021D1C0C (UnkStruct_ov111_021D0F7C * param0)
static void ov111_021D1D30 (void)
{
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -1206,7 +1206,7 @@ static void ov111_021D1D68 (UnkStruct_ov111_021D0F7C * param0)
sub_0201E3D8();
sub_0201E450(1);
- sub_02017798(ov111_021D2090, (void *)param0);
+ SetMainCallback(ov111_021D2090, (void *)param0);
return;
}
diff --git a/src/overlay111/ov111_021D2F80.c b/src/overlay111/ov111_021D2F80.c
index 4d4f1c51fb..232057927c 100644
--- a/src/overlay111/ov111_021D2F80.c
+++ b/src/overlay111/ov111_021D2F80.c
@@ -22,7 +22,7 @@
#include "overlay111/ov111_021D2F80.h"
void ov111_021D2F80(UnkStruct_ov111_021D2F80 * param0);
-UnkStruct_02022550 * ov111_021D3280(UnkStruct_ov111_021D2F80 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u8 param5);
+GraphicElementData * ov111_021D3280(UnkStruct_ov111_021D2F80 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u8 param5);
void ov111_021D3320(UnkStruct_ov111_021D2F80 * param0);
void ov111_021D33B0(UnkStruct_ov111_021D2F80 * param0, int param1);
static void ov111_021D3378(void);
@@ -113,11 +113,11 @@ static void ov111_021D31F4 (UnkStruct_ov111_021D2F80 * param0, int param1)
return;
}
-UnkStruct_02022550 * ov111_021D3280 (UnkStruct_ov111_021D2F80 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u8 param5)
+GraphicElementData * ov111_021D3280 (UnkStruct_ov111_021D2F80 * param0, u32 param1, u32 param2, u32 param3, u32 param4, u8 param5)
{
int v0;
UnkStruct_ov19_021DA864 v1;
- UnkStruct_02022550 * v2;
+ GraphicElementData * v2;
sub_020093B4(&v1, param1, param1, param1, param1, 0xffffffff, 0xffffffff, 0, param3, param0->unk_190[0], param0->unk_190[1], param0->unk_190[2], param0->unk_190[3], NULL, NULL);
diff --git a/src/overlay111/ov111_021D33F4.c b/src/overlay111/ov111_021D33F4.c
index f68cb39052..46308b1dc8 100644
--- a/src/overlay111/ov111_021D33F4.c
+++ b/src/overlay111/ov111_021D33F4.c
@@ -17,7 +17,7 @@ struct UnkStruct_ov111_021D33F4_t {
u8 unk_03;
u32 unk_04;
u32 unk_08;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
};
UnkStruct_ov111_021D33F4 * ov111_021D33F4(UnkStruct_ov111_021D2F80 * param0, u32 param1, u32 param2, u16 param3, u16 param4, u8 param5, u32 param6, u32 param7);
diff --git a/src/overlay112/ov112_0225C700.c b/src/overlay112/ov112_0225C700.c
index 2cd2f6b41f..c375415911 100644
--- a/src/overlay112/ov112_0225C700.c
+++ b/src/overlay112/ov112_0225C700.c
@@ -125,7 +125,7 @@ typedef struct {
typedef struct {
BGL * unk_00;
- UnkStruct_020218BC * unk_04;
+ GraphicElementManager * unk_04;
UnkStruct_0200C738 unk_08;
UnkStruct_02009714 * unk_194[4];
NARC * unk_1A4;
@@ -364,8 +364,8 @@ int ov112_0225C700 (UnkStruct_020067E8 * param0, int * param1)
ov112_0225D1EC(&v0->unk_1C8, &v0->unk_08, 107);
ov112_0225D57C(&v0->unk_264, &v0->unk_08, 107);
- sub_02017798(ov112_0225C964, v0);
- sub_020177A4();
+ SetMainCallback(ov112_0225C964, v0);
+ DisableHBlank();
return 1;
}
@@ -450,8 +450,8 @@ int ov112_0225C8FC (UnkStruct_020067E8 * param0, int * param1)
ov112_0225D2D0(&v0->unk_1C8);
ov112_0225CC84(&v0->unk_1B0);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
ov112_0225C9F4(&v0->unk_08);
diff --git a/src/overlay113/ov113_0225C700.c b/src/overlay113/ov113_0225C700.c
index 6df4af976e..2c7f3a43ca 100644
--- a/src/overlay113/ov113_0225C700.c
+++ b/src/overlay113/ov113_0225C700.c
@@ -107,10 +107,10 @@ typedef struct UnkStruct_ov113_0225DBCC_t {
BGL * unk_08;
PaletteSys * unk_0C;
UnkStruct_02012744 * unk_10;
- UnkStruct_0207C690 * unk_14;
+ GenericPointerData * unk_14;
SysTask * unk_18;
- UnkStruct_0200C6E4 * unk_1C;
- UnkStruct_0200C704 * unk_20;
+ CellTransferStateData * unk_1C;
+ AnimationResourceCollection * unk_20;
UnkStruct_02015920 * unk_24;
u8 unk_28;
u8 unk_29;
@@ -157,9 +157,9 @@ static void ov113_0225D12C(BGL * param0);
static void ov113_0225D160(UnkStruct_ov113_0225DBCC * param0, NARC * param1);
static void ov113_0225DBCC(UnkStruct_ov113_0225DBCC * param0);
static void ov113_0225DC4C(UnkStruct_ov113_0225DBCC * param0);
-static UnkStruct_0207C690 * ov113_0225DC6C(int param0);
+static GenericPointerData * ov113_0225DC6C(int param0);
static void ov113_0225DC88(void);
-static void ov113_0225DD0C(UnkStruct_0207C690 * param0);
+static void ov113_0225DD0C(GenericPointerData * param0);
static void ov113_0225D9FC(UnkStruct_ov113_0225DBCC * param0);
static void ov113_0225DA9C(UnkStruct_ov113_0225DBCC * param0);
static void ov113_0225DAA8(UnkStruct_ov113_0225DBCC * param0, NARC * param1);
@@ -354,8 +354,8 @@ int ov113_0225C700 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov113_0225DBCC * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -460,7 +460,7 @@ int ov113_0225C700 (UnkStruct_020067E8 * param0, int * param1)
v0->unk_18 = SysTask_Start(ov113_0225CEF0, v0, 60000);
- sub_02017798(ov113_0225CF18, v0);
+ SetMainCallback(ov113_0225CF18, v0);
return 1;
}
@@ -671,8 +671,8 @@ int ov113_0225CDFC (UnkStruct_020067E8 * param0, int * param1)
NARC_dtor(v0->unk_160);
NARC_dtor(v0->unk_164);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0201DC3C();
sub_0201E530();
sub_02002AC8(0);
@@ -1282,9 +1282,9 @@ static void ov113_0225DC4C (UnkStruct_ov113_0225DBCC * param0)
}
}
-static UnkStruct_0207C690 * ov113_0225DC6C (int param0)
+static GenericPointerData * ov113_0225DC6C (int param0)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(param0, 0, 2, 0, 2, ov113_0225DC88);
return v0;
@@ -1305,7 +1305,7 @@ static void ov113_0225DC88 (void)
G3_ViewPort(0, 0, 255, 191);
}
-static void ov113_0225DD0C (UnkStruct_0207C690 * param0)
+static void ov113_0225DD0C (GenericPointerData * param0)
{
sub_020242C4(param0);
}
@@ -1521,7 +1521,7 @@ static void ov113_0225E15C (UnkStruct_ov113_0225DBCC * param0, UnkStruct_ov113_0
int v3;
FontOAM * v4;
BGL * v5;
- UnkStruct_0200C704 * v6;
+ AnimationResourceCollection * v6;
int v7, v8;
GF_ASSERT(param1->unk_00 == NULL);
diff --git a/src/overlay114/ov114_0225C700.c b/src/overlay114/ov114_0225C700.c
index d21226363a..4b1d6722d1 100644
--- a/src/overlay114/ov114_0225C700.c
+++ b/src/overlay114/ov114_0225C700.c
@@ -97,7 +97,7 @@ typedef struct {
} UnkStruct_ov114_0225CCD0;
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_0200C738 unk_04;
} UnkStruct_ov114_0225CFCC;
@@ -135,8 +135,8 @@ typedef struct {
typedef struct {
Window unk_00;
- UnkStruct_02022550 * unk_10;
- UnkStruct_02022550 * unk_14;
+ GraphicElementData * unk_10;
+ GraphicElementData * unk_14;
u16 unk_18;
u8 unk_1A;
u8 unk_1B;
@@ -206,7 +206,7 @@ typedef struct {
typedef struct {
void * unk_00;
NNSG2dScreenData * unk_04;
- UnkStruct_02022550 * unk_08[15];
+ GraphicElementData * unk_08[15];
UnkStruct_ov114_0225CDB4 * unk_44;
u8 unk_48;
u8 unk_49;
@@ -252,7 +252,7 @@ typedef struct UnkStruct_ov114_0225E854_t {
} UnkStruct_ov114_0225E854;
typedef struct {
- UnkStruct_02022550 * unk_00[2];
+ GraphicElementData * unk_00[2];
s16 unk_08;
s16 unk_0A;
u8 unk_0C[2][192];
@@ -266,12 +266,12 @@ typedef struct UnkStruct_ov114_02025CAD4_t {
u32 unk_00;
u16 unk_04;
s16 unk_06;
- UnkStruct_020218BC * unk_08;
+ GraphicElementManager * unk_08;
NARC * unk_0C;
UnkStruct_ov114_0225CCD0 unk_10;
UnkStruct_ov114_0225CDB4 * unk_28;
SysTask * unk_2C;
- UnkStruct_02022550 * unk_30;
+ GraphicElementData * unk_30;
UnkStruct_ov114_0225FAB8 unk_34;
} UnkStruct_ov114_0225CAD4;
@@ -286,7 +286,7 @@ static void ov114_0225CCB0(NNSG2dScreenData * param0, u32 param1);
static void ov114_0225CCD0(UnkStruct_ov114_0225CCD0 * param0, u32 param1, u32 param2);
static void ov114_0225CD10(UnkStruct_ov114_0225CCD0 * param0);
static UnkStruct_ov114_0225CDB4 * ov114_0225CD54(UnkStruct_ov114_0225CCD0 * param0, NARC * param1, u32 param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8);
-static UnkStruct_02022550 * ov114_0225CDB4(UnkStruct_ov114_0225CDB4 * param0, UnkStruct_020218BC * param1, s16 param2, s16 param3, u16 param4, u32 param5);
+static GraphicElementData * ov114_0225CDB4(UnkStruct_ov114_0225CDB4 * param0, GraphicElementManager * param1, s16 param2, s16 param3, u16 param4, u32 param5);
static void ov114_0225CDE0(UnkStruct_ov114_0225CCD0 * param0, UnkStruct_ov114_0225CDB4 * param1, NARC * param2, u32 param3, u32 param4, u32 param5, u32 param6, u32 param7, u32 param8, u32 param9);
static void ov114_0225CEB8(UnkStruct_ov114_0225CCD0 * param0, UnkStruct_ov114_0225CDB4 * param1);
static void ov114_0225CEF0(UnkStruct_ov114_0225CEF0 * param0, const UnkStruct_ov84_0223BA5C * param1, const UnkStruct_ov114_02260284 * param2, u32 param3, u32 param4);
@@ -383,7 +383,7 @@ static BOOL ov114_0225F7D8(UnkStruct_ov114_0225E854 * param0);
static void ov114_0225F83C(UnkStruct_ov114_0225E854 * param0);
static BOOL ov114_0225F860(UnkStruct_ov114_0225E854 * param0);
static void ov114_0225F890(UnkStruct_ov114_0225E854 * param0);
-static void ov114_0225F9B8(UnkStruct_ov114_0225FAB8 * param0, UnkStruct_ov114_0225CDB4 * param1, UnkStruct_020218BC * param2, u32 param3);
+static void ov114_0225F9B8(UnkStruct_ov114_0225FAB8 * param0, UnkStruct_ov114_0225CDB4 * param1, GraphicElementManager * param2, u32 param3);
static BOOL ov114_0225FAB8(UnkStruct_ov114_0225FAB8 * param0);
static BOOL ov114_0225FAD8(UnkStruct_ov114_0225FAB8 * param0);
static void ov114_0225FB10(UnkStruct_ov114_0225FAB8 * param0, s32 param1);
@@ -1109,7 +1109,7 @@ BOOL ov114_0225CA98 (const UnkStruct_ov114_0225C76C * param0)
return 0;
}
-UnkStruct_ov114_0225CAD4 * ov114_0225CAD4 (UnkStruct_020218BC * param0, u32 param1)
+UnkStruct_ov114_0225CAD4 * ov114_0225CAD4 (GraphicElementManager * param0, u32 param1)
{
UnkStruct_ov114_0225CAD4 * v0;
@@ -1285,7 +1285,7 @@ static UnkStruct_ov114_0225CDB4 * ov114_0225CD54 (UnkStruct_ov114_0225CCD0 * par
return v1;
}
-static UnkStruct_02022550 * ov114_0225CDB4 (UnkStruct_ov114_0225CDB4 * param0, UnkStruct_020218BC * param1, s16 param2, s16 param3, u16 param4, u32 param5)
+static GraphicElementData * ov114_0225CDB4 (UnkStruct_ov114_0225CDB4 * param0, GraphicElementManager * param1, s16 param2, s16 param3, u16 param4, u32 param5)
{
UnkStruct_ov83_0223D9A8 v0;
@@ -2192,13 +2192,13 @@ static void ov114_0225DF7C (UnkStruct_ov114_0225DFFC * param0, UnkStruct_ov114_0
param0->unk_304 = sub_02013B10(param2, ¶m0->unk_04[0], ¶m0->unk_04[1]);
sub_02013B80(param0->unk_304, 0);
- sub_020177BC(ov114_0225E0AC, param0);
+ SetHBlankCallback(ov114_0225E0AC, param0);
}
static void ov114_0225DFFC (UnkStruct_ov114_0225DFFC * param0)
{
if (param0->unk_304 != NULL) {
- sub_020177BC(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
sub_02013B40(param0->unk_304);
param0->unk_304 = NULL;
}
@@ -3654,7 +3654,7 @@ static void ov114_0225F988 (UnkStruct_ov114_0225E854 * param0)
}
}
-static void ov114_0225F9B8 (UnkStruct_ov114_0225FAB8 * param0, UnkStruct_ov114_0225CDB4 * param1, UnkStruct_020218BC * param2, u32 param3)
+static void ov114_0225F9B8 (UnkStruct_ov114_0225FAB8 * param0, UnkStruct_ov114_0225CDB4 * param1, GraphicElementManager * param2, u32 param3)
{
int v0;
int v1;
@@ -3684,7 +3684,7 @@ static void ov114_0225F9B8 (UnkStruct_ov114_0225FAB8 * param0, UnkStruct_ov114_0
param0->battlerType.planeMask = GX_WND_PLANEMASK_BG0 | GX_WND_PLANEMASK_BG1 | GX_WND_PLANEMASK_BG2 | GX_WND_PLANEMASK_BG3;
param0->battlerType.effect = 1;
- sub_020177BC(ov114_0225FCF0, param0);
+ SetHBlankCallback(ov114_0225FCF0, param0);
sub_02021D0C(param0->unk_00[1], 2);
ov114_0225FC6C(param0);
@@ -3770,7 +3770,7 @@ static void ov114_0225FBF0 (UnkStruct_ov114_0225FAB8 * param0)
}
}
- sub_020177A4();
+ DisableHBlank();
GX_SetVisibleWnd(param0->unk_194);
G2_SetWndOutsidePlane(param0->unk_190.planeMask, param0->unk_190.effect);
diff --git a/src/overlay115/ov115_02260440.c b/src/overlay115/ov115_02260440.c
index 850956de1c..c846f4e55a 100644
--- a/src/overlay115/ov115_02260440.c
+++ b/src/overlay115/ov115_02260440.c
@@ -136,8 +136,8 @@ int ov115_0226048C (UnkStruct_020067E8 * param0, int * param1)
break;
}
- sub_02017798(ov115_02260A50, v0);
- sub_020177A4();
+ SetMainCallback(ov115_02260A50, v0);
+ DisableHBlank();
v0->unk_38 = 0;
v0->unk_3C = 0;
@@ -332,8 +332,8 @@ int ov115_0226048C (UnkStruct_020067E8 * param0, int * param1)
ov115_02260D78(v0->unk_34);
v0->unk_34 = NULL;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0201DC3C();
(*param1)++;
break;
@@ -551,8 +551,8 @@ static void ov115_02260B30 (UnkStruct_ov115_0226095C * param0)
static void ov115_02260B44 (UnkStruct_ov115_0226095C * param0, UnkStruct_ov115_02260440 * param1)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
if (param0->unk_00 != NULL) {
ov114_0225C838(param0->unk_00);
diff --git a/src/overlay115/ov115_02260CEC.c b/src/overlay115/ov115_02260CEC.c
index 7fbafefc8c..e6ddaded71 100644
--- a/src/overlay115/ov115_02260CEC.c
+++ b/src/overlay115/ov115_02260CEC.c
@@ -174,7 +174,7 @@ typedef struct {
} UnkStruct_ov115_02264A40;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
UnkStruct_02017294 unk_04;
UnkStruct_02017294 unk_7C;
BOOL unk_F4;
@@ -188,12 +188,12 @@ typedef struct {
typedef struct {
BOOL unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
} UnkStruct_ov115_02264BA0;
typedef struct {
BOOL unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_04;
VecFx32 unk_08;
s32 unk_14;
BOOL unk_18;
@@ -204,7 +204,7 @@ typedef struct {
} UnkStruct_ov115_02264C90;
typedef struct {
- UnkStruct_02022550 * unk_00[3];
+ GraphicElementData * unk_00[3];
u32 unk_0C[3];
VecFx32 unk_18[3];
BOOL unk_3C;
@@ -250,7 +250,7 @@ typedef struct {
typedef struct {
UnkStruct_02009DC8 * unk_00[4];
UnkStruct_ov19_021DA864 unk_10;
- UnkStruct_02022550 * unk_34;
+ GraphicElementData * unk_34;
u8 unk_38;
u8 unk_39;
u8 unk_3A;
@@ -267,7 +267,7 @@ typedef struct {
typedef struct {
UnkStruct_02009DC8 * unk_00[4];
UnkStruct_ov19_021DA864 unk_10;
- UnkStruct_02022550 * unk_34;
+ GraphicElementData * unk_34;
Window unk_38;
FontOAM * unk_48;
UnkStruct_02012B20 * unk_4C;
@@ -297,8 +297,8 @@ typedef struct {
Strbuf* unk_10;
u16 unk_14;
u16 unk_16;
- UnkStruct_0207C690 * unk_18;
- UnkStruct_020218BC * unk_1C;
+ GenericPointerData * unk_18;
+ GraphicElementManager * unk_1C;
UnkStruct_0200C738 unk_20;
UnkStruct_02009714 * unk_1AC[4];
UnkStruct_ov19_021DA864 unk_1BC;
diff --git a/src/overlay116/ov116_022604C4.c b/src/overlay116/ov116_022604C4.c
index 17cdf4a462..09a108fdb7 100644
--- a/src/overlay116/ov116_022604C4.c
+++ b/src/overlay116/ov116_022604C4.c
@@ -66,8 +66,8 @@ static void ov116_022604C4 (UnkStruct_ov116_0226139C * param0)
param0->unk_78 = LCRNG_GetSeed();
ov116_022612CC(param0);
- sub_02017798(ov116_02261794, param0);
- sub_020177A4();
+ SetMainCallback(ov116_02261794, param0);
+ DisableHBlank();
sub_0201DBEC(32, 106);
sub_0200966C(NNS_G2D_VRAM_TYPE_2DMAIN, GX_OBJVRAMMODE_CHAR_1D_128K);
sub_02009704(NNS_G2D_VRAM_TYPE_2DMAIN);
@@ -671,8 +671,8 @@ int ov116_02260CF4 (UnkStruct_020067E8 * param0, int * param1)
static void ov116_022610FC (UnkStruct_ov116_0226139C * param0)
{
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0201DC3C();
{
diff --git a/src/overlay116/ov116_02261870.c b/src/overlay116/ov116_02261870.c
index b01380629f..d97c7d46ee 100644
--- a/src/overlay116/ov116_02261870.c
+++ b/src/overlay116/ov116_02261870.c
@@ -232,8 +232,8 @@ static const s16 Unk_ov116_02267A78[][3] = {
void ov116_02261D08 (UnkStruct_ov116_02262A8C * param0)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1 = param0->unk_14->unk_08;
- UnkStruct_0200C704 * v2 = param0->unk_14->unk_0C;
+ CellTransferStateData * v1 = param0->unk_14->unk_08;
+ AnimationResourceCollection * v2 = param0->unk_14->unk_0C;
PaletteSys * v3 = param0->unk_14->unk_14;
int v4;
@@ -250,8 +250,8 @@ void ov116_02261D08 (UnkStruct_ov116_02262A8C * param0)
void ov116_02261D70 (UnkStruct_ov116_02262A8C * param0)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1 = param0->unk_14->unk_08;
- UnkStruct_0200C704 * v2 = param0->unk_14->unk_0C;
+ CellTransferStateData * v1 = param0->unk_14->unk_08;
+ AnimationResourceCollection * v2 = param0->unk_14->unk_0C;
PaletteSys * v3 = param0->unk_14->unk_14;
int v4;
s16 v5[] = {72, 180, 24, 232};
@@ -577,8 +577,8 @@ void ov116_022622C8 (UnkStruct_ov116_0226139C * param0)
NARC * v0 = param0->unk_48.unk_00;
NARC * v1 = param0->unk_48.unk_04;
BGL * v2 = param0->unk_48.unk_10;
- UnkStruct_0200C6E4 * v3 = param0->unk_48.unk_08;
- UnkStruct_0200C704 * v4 = param0->unk_48.unk_0C;
+ CellTransferStateData * v3 = param0->unk_48.unk_08;
+ AnimationResourceCollection * v4 = param0->unk_48.unk_0C;
PaletteSys * v5 = param0->unk_48.unk_14;
NARC * v6;
int v7;
@@ -682,8 +682,8 @@ void ov116_022622C8 (UnkStruct_ov116_0226139C * param0)
void ov116_022625A8 (UnkStruct_ov116_0226139C * param0, UnkStruct_ov116_02262A8C * param1)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1 = param1->unk_14->unk_08;
- UnkStruct_0200C704 * v2 = param1->unk_14->unk_0C;
+ CellTransferStateData * v1 = param1->unk_14->unk_08;
+ AnimationResourceCollection * v2 = param1->unk_14->unk_0C;
PaletteSys * v3 = param1->unk_14->unk_14;
int v4;
int v5 = 0;
@@ -723,8 +723,8 @@ CellActorData * ov116_022626E8 (UnkStruct_ov116_02262A8C * param0, s16 param1, s
{
CellActorData * v0;
UnkStruct_ov104_0223F9E0 v1;
- UnkStruct_0200C6E4 * v2 = param0->unk_14->unk_08;
- UnkStruct_0200C704 * v3 = param0->unk_14->unk_0C;
+ CellTransferStateData * v2 = param0->unk_14->unk_08;
+ AnimationResourceCollection * v3 = param0->unk_14->unk_0C;
PaletteSys * v4 = param0->unk_14->unk_14;
ov116_02261CD8(&v1, param1, param2, 1, 0, 9003);
@@ -743,8 +743,8 @@ void ov116_02262724 (UnkStruct_ov116_02262A8C * param0)
int v0;
CellActorData * v1;
UnkStruct_ov104_0223F9E0 v2;
- UnkStruct_0200C6E4 * v3 = param0->unk_14->unk_08;
- UnkStruct_0200C704 * v4 = param0->unk_14->unk_0C;
+ CellTransferStateData * v3 = param0->unk_14->unk_08;
+ AnimationResourceCollection * v4 = param0->unk_14->unk_0C;
PaletteSys * v5 = param0->unk_14->unk_14;
for (v0 = 0; v0 < 2; v0++) {
@@ -789,8 +789,8 @@ void ov116_02262840 (UnkStruct_ov116_02262A8C * param0)
int v0;
CellActorData * v1;
UnkStruct_ov104_0223F9E0 v2;
- UnkStruct_0200C6E4 * v3 = param0->unk_14->unk_08;
- UnkStruct_0200C704 * v4 = param0->unk_14->unk_0C;
+ CellTransferStateData * v3 = param0->unk_14->unk_08;
+ AnimationResourceCollection * v4 = param0->unk_14->unk_0C;
PaletteSys * v5 = param0->unk_14->unk_14;
ov116_02261CD8(&v2, 128, 128, 1, 7, 9007);
@@ -815,8 +815,8 @@ void ov116_022628B8 (UnkStruct_ov116_0226139C * param0)
NARC * v0 = param0->unk_48.unk_00;
NARC * v1 = param0->unk_48.unk_04;
BGL * v2 = param0->unk_48.unk_10;
- UnkStruct_0200C6E4 * v3 = param0->unk_48.unk_08;
- UnkStruct_0200C704 * v4 = param0->unk_48.unk_0C;
+ CellTransferStateData * v3 = param0->unk_48.unk_08;
+ AnimationResourceCollection * v4 = param0->unk_48.unk_0C;
PaletteSys * v5 = param0->unk_48.unk_14;
NARC * v6 = v0;
diff --git a/src/overlay117/ov117_02260668.c b/src/overlay117/ov117_02260668.c
index 0919d626aa..36a3bd805b 100644
--- a/src/overlay117/ov117_02260668.c
+++ b/src/overlay117/ov117_02260668.c
@@ -69,9 +69,9 @@
#include "overlay117/ov117_022666C0.h"
static void ov117_02260DA0(void * param0);
-static UnkStruct_0207C690 * ov117_02260E14(int param0);
+static GenericPointerData * ov117_02260E14(int param0);
static void ov117_02260E34(void);
-static void ov117_02260EB8(UnkStruct_0207C690 * param0);
+static void ov117_02260EB8(GenericPointerData * param0);
static void ov117_02260F7C(SysTask * param0, void * param1);
static void ov117_022610D8(BGL * param0);
static void ov117_02261280(UnkStruct_ov117_02261280 * param0);
@@ -189,7 +189,7 @@ int ov117_02260668 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov117_02261280 * v0;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
GX_SetVisiblePlane(0);
@@ -289,7 +289,7 @@ int ov117_02260668 (UnkStruct_020067E8 * param0, int * param1)
sub_02003070(v0->unk_8C, 2, v2 * 16, 3 * 0x20);
}
- sub_02017798(ov117_02260DA0, v0);
+ SetMainCallback(ov117_02260DA0, v0);
if (v0->unk_00->unk_3C) {
ov4_021D1E74(110);
@@ -442,7 +442,7 @@ int ov117_02260C10 (UnkStruct_020067E8 * param0, int * param1)
ov117_022641E4(v0);
ov117_02264508(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
ov117_022615E0(v0);
ov117_022618E8(v0);
@@ -517,9 +517,9 @@ static void ov117_02260DA0 (void * param0)
OS_SetIrqCheckFlag(OS_IE_V_BLANK);
}
-static UnkStruct_0207C690 * ov117_02260E14 (int param0)
+static GenericPointerData * ov117_02260E14 (int param0)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(param0, 0, 1, 0, 2, ov117_02260E34);
return v0;
@@ -540,7 +540,7 @@ static void ov117_02260E34 (void)
G3_ViewPort(0, 0, 255, 191);
}
-static void ov117_02260EB8 (UnkStruct_0207C690 * param0)
+static void ov117_02260EB8 (GenericPointerData * param0)
{
sub_020242C4(param0);
}
diff --git a/src/overlay117/ov117_02263AF0.c b/src/overlay117/ov117_02263AF0.c
index eb1882ea27..2ea967dbf7 100644
--- a/src/overlay117/ov117_02263AF0.c
+++ b/src/overlay117/ov117_02263AF0.c
@@ -2012,7 +2012,7 @@ static BOOL ov117_02265C3C (UnkStruct_ov117_02265C3C * param0, UnkStruct_ov117_0
return 1;
}
-void ov117_02265DB8 (BGL * param0, UnkStruct_0200C704 * param1, UnkStruct_02012744 * param2, UnkStruct_ov117_02265EB0 * param3, const Strbuf *param4, int param5, u32 param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14)
+void ov117_02265DB8 (BGL * param0, AnimationResourceCollection * param1, UnkStruct_02012744 * param2, UnkStruct_ov117_02265EB0 * param3, const Strbuf *param4, int param5, u32 param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14)
{
UnkStruct_020127E8 v0;
Window v1;
diff --git a/src/overlay118/ov118_021D0D80.c b/src/overlay118/ov118_021D0D80.c
index 1abe9739fa..69e4aa9b18 100644
--- a/src/overlay118/ov118_021D0D80.c
+++ b/src/overlay118/ov118_021D0D80.c
@@ -31,7 +31,7 @@
#include "unk_02082C2C.h"
#include "overlay118/ov118_021D0D80.h"
-typedef struct UnkStruct_ov118_021D0FDC_t {
+typedef struct OverlayMetadata_t {
int unk_00;
int unk_04;
int unk_08;
@@ -39,15 +39,15 @@ typedef struct UnkStruct_ov118_021D0FDC_t {
u32 unk_10;
int unk_14;
UnkStruct_02014014 * unk_18;
-} UnkStruct_ov118_021D0FDC;
+} OverlayMetadata;
-static void ov118_021D0F70(UnkStruct_0207F248 * param0);
-static void ov118_021D0F88(UnkStruct_0207F248 * param0);
-static void ov118_021D0FB8(UnkStruct_0207F248 * param0);
-static void ov118_021D0FDC(UnkStruct_ov118_021D0FDC * param0);
-static void ov118_021D1028(UnkStruct_ov118_021D0FDC * param0);
+static void ov118_021D0F70(GameWindowLayout * param0);
+static void ov118_021D0F88(GameWindowLayout * param0);
+static void ov118_021D0FB8(GameWindowLayout * param0);
+static void ov118_021D0FDC(OverlayMetadata * param0);
+static void ov118_021D1028(OverlayMetadata * param0);
static int ov118_021D10E8(void);
-static void ov118_021D110C(UnkStruct_ov118_021D0FDC * param0);
+static void ov118_021D110C(OverlayMetadata * param0);
static u32 ov118_021D1128(u32 param0, BOOL param1);
static u32 ov118_021D114C(u32 param0, BOOL param1);
static void ov118_021D10B0(UnkSPLStruct6 * param0);
@@ -61,18 +61,18 @@ static const fx32 Unk_ov118_021D1170[][2] = {
{0x1388, 0xFFFFFFFFFFFFEE6C}
};
-void ov118_021D0D80 (UnkStruct_0207F248 * param0)
+void ov118_021D0D80 (GameWindowLayout * param0)
{
GF_ASSERT(param0->unk_B24 == NULL);
- param0->unk_B24 = Heap_AllocFromHeap(12, sizeof(UnkStruct_ov118_021D0FDC));
- MI_CpuClear8(param0->unk_B24, sizeof(UnkStruct_ov118_021D0FDC));
+ param0->unk_B24 = Heap_AllocFromHeap(12, sizeof(OverlayMetadata));
+ MI_CpuClear8(param0->unk_B24, sizeof(OverlayMetadata));
param0->unk_B24->unk_14 = param0->unk_B11;
}
-int ov118_021D0DBC (UnkStruct_0207F248 * param0)
+int ov118_021D0DBC (GameWindowLayout * param0)
{
- UnkStruct_ov118_021D0FDC * v0 = param0->unk_B24;
+ OverlayMetadata * v0 = param0->unk_B24;
Pokemon * v1 = Party_GetPokemonBySlotIndex(param0->unk_5A4->unk_00, param0->unk_B11);
switch (v0->unk_00) {
@@ -132,7 +132,7 @@ int ov118_021D0DBC (UnkStruct_0207F248 * param0)
v0->unk_00++;
break;
case 7:
- sub_02077E3C(v1);
+ Pokemon_IsEligibleForAction(v1);
v0->unk_00++;
break;
case 8:
@@ -166,13 +166,13 @@ int ov118_021D0DBC (UnkStruct_0207F248 * param0)
return 0;
}
-static void ov118_021D0F70 (UnkStruct_0207F248 * param0)
+static void ov118_021D0F70 (GameWindowLayout * param0)
{
Heap_FreeToHeap(param0->unk_B24);
param0->unk_B24 = NULL;
}
-static void ov118_021D0F88 (UnkStruct_0207F248 * param0)
+static void ov118_021D0F88 (GameWindowLayout * param0)
{
sub_0207EA74(param0, 0);
ov118_021D0FDC(param0->unk_B24);
@@ -180,7 +180,7 @@ static void ov118_021D0F88 (UnkStruct_0207F248 * param0)
G2_SetBlendAlpha(GX_BLEND_PLANEMASK_NONE, GX_BLEND_ALL, 31, 0);
}
-static void ov118_021D0FB8 (UnkStruct_0207F248 * param0)
+static void ov118_021D0FB8 (GameWindowLayout * param0)
{
ov118_021D110C(param0->unk_B24);
sub_0207EA74(param0, 1);
@@ -188,7 +188,7 @@ static void ov118_021D0FB8 (UnkStruct_0207F248 * param0)
G2_BlendNone();
}
-static void ov118_021D0FDC (UnkStruct_ov118_021D0FDC * param0)
+static void ov118_021D0FDC (OverlayMetadata * param0)
{
void * v0;
UnkStruct_020203AC * v1;
@@ -202,7 +202,7 @@ static void ov118_021D0FDC (UnkStruct_ov118_021D0FDC * param0)
sub_020206BC((FX32_ONE), (FX32_ONE * 900), v1);
}
-static void ov118_021D1028 (UnkStruct_ov118_021D0FDC * param0)
+static void ov118_021D1028 (OverlayMetadata * param0)
{
void * v0;
@@ -226,7 +226,7 @@ static void ov118_021D1028 (UnkStruct_ov118_021D0FDC * param0)
static void ov118_021D10B0 (UnkSPLStruct6 * param0)
{
- UnkStruct_ov118_021D0FDC * v0;
+ OverlayMetadata * v0;
v0 = sub_02014764();
@@ -252,7 +252,7 @@ static int ov118_021D10E8 (void)
return v0;
}
-static void ov118_021D110C (UnkStruct_ov118_021D0FDC * param0)
+static void ov118_021D110C (OverlayMetadata * param0)
{
void * v0;
diff --git a/src/overlay119/ov119_021D0D80.c b/src/overlay119/ov119_021D0D80.c
index 0a165b4545..e3d4a91a81 100644
--- a/src/overlay119/ov119_021D0D80.c
+++ b/src/overlay119/ov119_021D0D80.c
@@ -57,7 +57,7 @@
void ov119_021D0D80(void);
void ov119_021D0DA8(void);
-UnkStruct_0207C690 * ov119_021D0DD4(void);
+GenericPointerData * ov119_021D0DD4(void);
void ov119_021D0DF4(void);
void ov119_021D0E78(void);
static u32 ov119_021D13B4(u32 param0, BOOL param1);
@@ -81,9 +81,9 @@ void ov119_021D0DA8 (void)
G2S_SetBlendAlpha(GX_BLEND_PLANEMASK_NONE, GX_BLEND_PLANEMASK_BG1 | GX_BLEND_PLANEMASK_BG2 | GX_BLEND_PLANEMASK_BG3, 7, 8);
}
-UnkStruct_0207C690 * ov119_021D0DD4 (void)
+GenericPointerData * ov119_021D0DD4 (void)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(71, 0, 2, 0, 2, ov119_021D0DF4);
return v0;
@@ -536,8 +536,8 @@ void ov119_021D150C (UnkStruct_ov119_021D14DC * param0)
void ov119_021D1514 (UnkStruct_ov119_021D0FD0 * param0)
{
- UnkStruct_0200C6E4 * v0;
- UnkStruct_0200C704 * v1;
+ CellTransferStateData * v0;
+ AnimationResourceCollection * v1;
PaletteSys * v2;
int v3[][4] = {
{4, 9, 3, 2},
diff --git a/src/overlay120/ov120_021D0D80.c b/src/overlay120/ov120_021D0D80.c
index 79cc0e95b0..8f56dda9c8 100644
--- a/src/overlay120/ov120_021D0D80.c
+++ b/src/overlay120/ov120_021D0D80.c
@@ -69,8 +69,8 @@ int ov120_021D0DB0 (UnkStruct_020067E8 * param0, int * param1)
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -83,7 +83,7 @@ int ov120_021D0DB0 (UnkStruct_020067E8 * param0, int * param1)
ov120_021D0F24(v0);
ov120_021D114C(v0);
- sub_02017798(ov120_021D0F18, (void *)v0);
+ SetMainCallback(ov120_021D0F18, (void *)v0);
GXLayers_TurnBothDispOn();
v0->unk_24 = 0;
@@ -131,7 +131,7 @@ int ov120_021D0DB0 (UnkStruct_020067E8 * param0, int * param1)
if (ScreenWipe_Done() == 1) {
ov120_021D116C(v0);
ov120_021D10D4(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
v1 = 1;
}
break;
diff --git a/src/overlay121/ov121_021D0D80.c b/src/overlay121/ov121_021D0D80.c
index cb557d7f1a..fa92e90d46 100644
--- a/src/overlay121/ov121_021D0D80.c
+++ b/src/overlay121/ov121_021D0D80.c
@@ -32,7 +32,7 @@
#include "overlay121/ov121_021D0D80.h"
typedef struct {
- UnkStruct_0207C690 * unk_00;
+ GenericPointerData * unk_00;
UnkStruct_020203AC * unk_04;
SysTask * unk_08;
int unk_0C;
@@ -57,17 +57,17 @@ static void ov121_021D1068(UnkStruct_ov121_021D0FF4 * param0);
static void ov121_021D1074(UnkStruct_ov121_021D0FF4 * param0);
static void ov121_021D1184(UnkStruct_ov121_021D0FF4 * param0);
static void ov121_021D11A8(UnkStruct_ov121_021D0FF4 * param0);
-static UnkStruct_0207C690 * ov121_021D1270(int param0);
+static GenericPointerData * ov121_021D1270(int param0);
static void ov121_021D128C(void);
-static void ov121_021D1310(UnkStruct_0207C690 * param0);
+static void ov121_021D1310(GenericPointerData * param0);
static void ov121_021D1318(UnkStruct_ov121_021D0FF4 * param0);
int ov121_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_ov121_021D0FF4 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -102,7 +102,7 @@ int ov121_021D0D80 (UnkStruct_020067E8 * param0, int * param1)
sub_02002B20(0);
v0->unk_08 = SysTask_Start(ov121_021D0F68, v0, 60000);
- sub_02017798(ov121_021D0F7C, v0);
+ SetMainCallback(ov121_021D0F7C, v0);
return 1;
}
@@ -155,8 +155,8 @@ int ov121_021D0F14 (UnkStruct_020067E8 * param0, int * param1)
ov121_021D1068(v0);
ov121_021D1310(v0->unk_00);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
sub_0201E530();
sub_02002AC8(0);
sub_02002AE4(0);
@@ -326,9 +326,9 @@ static void ov121_021D11A8 (UnkStruct_ov121_021D0FF4 * param0)
NNS_G3dGePopMtx(1);
}
-static UnkStruct_0207C690 * ov121_021D1270 (int param0)
+static GenericPointerData * ov121_021D1270 (int param0)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(param0, 0, 2, 0, 2, ov121_021D128C);
return v0;
@@ -350,7 +350,7 @@ static void ov121_021D128C (void)
G3_ViewPort(0, 0, 255, 191);
}
-static void ov121_021D1310 (UnkStruct_0207C690 * param0)
+static void ov121_021D1310 (GenericPointerData * param0)
{
sub_020242C4(param0);
}
diff --git a/src/pokemon.c b/src/pokemon.c
index 736dec94f7..a2e4b7d35e 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -1,6 +1,15 @@
#include
#include
+#include "consts/generated/c/gender.h"
+
+#include "constants/items.h"
+#include "constants/moves.h"
+#include "constants/narc.h"
+#include "constants/pokemon.h"
+#include "constants/sound.h"
+#include "constants/species.h"
+
#include "inlines.h"
#include "struct_decls/struct_02002F38_decl.h"
@@ -10,7 +19,7 @@
#include "struct_decls/struct_0200C704_decl.h"
#include "struct_decls/pokemon_animation_sys_decl.h"
#include "struct_decls/struct_02023790_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_defs/sprite_animation_frame.h"
@@ -31,7 +40,7 @@
#include "message.h"
#include "unk_0200B29C.h"
#include "unk_0200C6E4.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02015F84.h"
#include "unk_02017038.h"
#include "heap.h"
@@ -49,12 +58,6 @@
#include "unk_02092494.h"
#include "flags.h"
-#include "consts/generated/c/gender.h"
-#include "constants/pokemon.h"
-#include "constants/species.h"
-#include "constants/items.h"
-#include "constants/moves.h"
-
// Columns: Spicy, Dry, Sweet, Bitter, Sour
// TODO enum here?
static const s8 sNatureFlavorAffinities[][5] = {
@@ -123,11 +126,11 @@ static void BoxPokemon_ReplaceMove(BoxPokemon *boxMon, u16 moveID);
static void BoxPokemon_SetMoveSlot(BoxPokemon *boxMon, u16 moveID, u8 moveSlot);
static BOOL Pokemon_HasMove(Pokemon *mon, u16 moveID);
static s8 BoxPokemon_GetFlavorAffinity(BoxPokemon *boxMon, int flavor);
-static BOOL sub_020778E0(BoxPokemon *boxMon);
-static BOOL sub_02077900(BoxPokemon *boxMon);
-static void sub_02077EA4(BoxPokemon *boxMon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5);
-static void sub_02077EF8(BoxPokemon *boxMon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5);
-static BOOL BoxPokemon_CanLearnTM(BoxPokemon *boxMon, u8 tmID);
+static BOOL IsBoxPokemonInfectedWithPokerus(BoxPokemon *boxMon);
+static BOOL CanBoxPokemonSpreadPokerus(BoxPokemon *boxMon);
+static void InitializeBoxPokemonAfterCapture(BoxPokemon *boxMon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5);
+static void PostCaptureBoxPokemonProcessing(BoxPokemon *boxMon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5);
+static BOOL CanBoxPokemonLearnTM(BoxPokemon *boxMon, u8 tmID);
static void BoxPokemon_CalcAbility(BoxPokemon *boxMon);
static void PokemonPersonalData_LoadSpecies(int monSpecies, PokemonPersonalData *monPersonalData);
static void PokemonPersonalData_LoadForm(int monSpecies, int monForm, PokemonPersonalData *monPersonalData);
@@ -538,34 +541,34 @@ static u32 Pokemon_GetDataInternal(Pokemon *mon, enum PokemonDataParam param, vo
switch (param) {
case MON_DATA_STATUS_CONDITION:
- result = mon->party.unk_00;
+ result = mon->party.status;
break;
case MON_DATA_LEVEL:
result = mon->party.level;
break;
case MON_DATA_162:
- result = mon->party.unk_05;
+ result = mon->party.mail;
break;
case MON_DATA_CURRENT_HP:
- result = mon->party.unk_06;
+ result = mon->party.hp;
break;
case MON_DATA_MAX_HP:
- result = mon->party.unk_08;
+ result = mon->party.maxHP;
break;
case MON_DATA_ATK:
- result = mon->party.unk_0A;
+ result = mon->party.attack;
break;
case MON_DATA_DEF:
- result = mon->party.unk_0C;
+ result = mon->party.defense;
break;
case MON_DATA_SPEED:
- result = mon->party.unk_0E;
+ result = mon->party.speed;
break;
case MON_DATA_SP_ATK:
- result = mon->party.unk_10;
+ result = mon->party.spAtk;
break;
case MON_DATA_SP_DEF:
- result = mon->party.unk_12;
+ result = mon->party.spDef;
break;
case MON_DATA_170:
sub_020281A0(&mon->party.unk_14, dest);
@@ -1046,34 +1049,34 @@ static void Pokemon_SetDataInternal(Pokemon *mon, enum PokemonDataParam param, c
switch (param) {
case MON_DATA_STATUS_CONDITION:
- mon->party.unk_00 = u32Value[0];
+ mon->party.status = u32Value[0];
break;
case MON_DATA_LEVEL:
mon->party.level = u8Value[0];
break;
case MON_DATA_162:
- mon->party.unk_05 = u8Value[0];
+ mon->party.mail = u8Value[0];
break;
case MON_DATA_CURRENT_HP:
- mon->party.unk_06 = u16Value[0];
+ mon->party.hp = u16Value[0];
break;
case MON_DATA_MAX_HP:
- mon->party.unk_08 = u16Value[0];
+ mon->party.maxHP = u16Value[0];
break;
case MON_DATA_ATK:
- mon->party.unk_0A = u16Value[0];
+ mon->party.attack = u16Value[0];
break;
case MON_DATA_DEF:
- mon->party.unk_0C = u16Value[0];
+ mon->party.defense = u16Value[0];
break;
case MON_DATA_SPEED:
- mon->party.unk_0E = u16Value[0];
+ mon->party.speed = u16Value[0];
break;
case MON_DATA_SP_ATK:
- mon->party.unk_10 = u16Value[0];
+ mon->party.spAtk = u16Value[0];
break;
case MON_DATA_SP_DEF:
- mon->party.unk_12 = u16Value[0];
+ mon->party.spDef = u16Value[0];
break;
case MON_DATA_170:
sub_020281A0(value, &mon->party.unk_14);
@@ -1521,10 +1524,10 @@ static void Pokemon_IncreaseDataInternal(Pokemon *mon, enum PokemonDataParam par
{
switch (param) {
case MON_DATA_CURRENT_HP:
- if (mon->party.unk_06 + value > mon->party.unk_08) {
- mon->party.unk_06 = mon->party.unk_08;
+ if (mon->party.hp + value > mon->party.maxHP) {
+ mon->party.hp = mon->party.maxHP;
} else {
- mon->party.unk_06 += value;
+ mon->party.hp += value;
}
break;
case MON_DATA_STATUS_CONDITION:
@@ -2974,7 +2977,7 @@ static const int Unk_020F0588[] = {
0x1
};
-CellActorData *sub_02076994(UnkStruct_0200C6E4 *param0, UnkStruct_0200C704 *param1, PaletteSys *param2, int param3, int param4, int param5, int param6, int param7, int heapID)
+CellActorData *sub_02076994(CellTransferStateData *param0, AnimationResourceCollection *param1, PaletteSys *param2, int param3, int param4, int param5, int param6, int param7, int heapID)
{
UnkStruct_ov104_0223F9E0 v0;
CellActorData *v1;
@@ -3136,13 +3139,13 @@ u16 sub_02076B94(Party *party, Pokemon *mon, u8 evoTypeList, u16 evoParam, int *
}
break;
case 2: // high friendship && daytime
- if (sub_02013948() == 0 && 220 <= monFriendship) {
+ if (IsNight() == 0 && 220 <= monFriendship) {
targetSpecies = monEvolutionData->methods[i].targetSpecies;
evoTypeResult[0] = 2;
}
break;
case 3: // high friendship && nighttime
- if (sub_02013948() == 1 && 220 <= monFriendship) {
+ if (IsNight() == 1 && 220 <= monFriendship) {
targetSpecies = monEvolutionData->methods[i].targetSpecies;
evoTypeResult[0] = 3;
}
@@ -3209,13 +3212,13 @@ u16 sub_02076B94(Party *party, Pokemon *mon, u8 evoTypeList, u16 evoParam, int *
}
break;
case 18: // happiny evo: hold param && daytime
- if (sub_02013948() == 0 && monEvolutionData->methods[i].param == monHeldItem) {
+ if (IsNight() == 0 && monEvolutionData->methods[i].param == monHeldItem) {
targetSpecies = monEvolutionData->methods[i].targetSpecies;
evoTypeResult[0] = 18;
}
break;
case 19: // sneasel and gligar evo: hold param && nighttime
- if (sub_02013948() == 1 && monEvolutionData->methods[i].param == monHeldItem) {
+ if (IsNight() == 1 && monEvolutionData->methods[i].param == monHeldItem) {
targetSpecies = monEvolutionData->methods[i].targetSpecies;
evoTypeResult[0] = 19;
}
@@ -3782,7 +3785,7 @@ u8 Pokemon_HasPokerus(Party *party, u8 param1)
return result;
}
-void sub_020777B4(Party *party, s32 param1)
+void Party_UpdatePokerusStatus(Party *party, s32 param1)
{
int currentPartyCount = Party_GetCurrentCount(party);
@@ -3843,22 +3846,22 @@ void Pokemon_ValidatePokerus(Party *party)
}
}
-BOOL sub_020778D8(Pokemon *mon)
+BOOL Pokemon_InfectedWithPokerus(Pokemon *mon)
{
- return sub_020778E0(&mon->box);
+ return IsBoxPokemonInfectedWithPokerus(&mon->box);
}
-static BOOL sub_020778E0(BoxPokemon *boxMon)
+static BOOL IsBoxPokemonInfectedWithPokerus(BoxPokemon *boxMon)
{
return (BoxPokemon_GetValue(boxMon, MON_DATA_POKERUS, NULL) & 0xf) != 0;
}
-BOOL sub_020778F8(Pokemon *mon)
+BOOL Pokemon_CanSpreadPokerus(Pokemon *mon)
{
- return sub_02077900(&mon->box);
+ return CanBoxPokemonSpreadPokerus(&mon->box);
}
-static BOOL sub_02077900(BoxPokemon *boxMon)
+static BOOL CanBoxPokemonSpreadPokerus(BoxPokemon *boxMon)
{
u8 monPokerus = BoxPokemon_GetValue(boxMon, MON_DATA_POKERUS, NULL);
@@ -4033,7 +4036,7 @@ BOOL Pokemon_CanShayminSkyForm(Pokemon *mon)
u32 monFatefulEncounter = Pokemon_GetValue(mon, MON_DATA_FATEFUL_ENCOUNTER, NULL);
RTCTime rtcTime;
- sub_02013880(&rtcTime);
+ GetCurrentTime(&rtcTime);
return (monSpecies == SPECIES_SHAYMIN
&& monForm == 0
@@ -4172,43 +4175,47 @@ void Pokemon_LoadLevelUpMovesOf(int monSpecies, int monForm, u16 *monLevelUpMove
NARC_ReadWholeMemberByIndexPair(monLevelUpMoves, NARC_INDEX_POKETOOL__PERSONAL__WOTBL, monSpecies);
}
-void sub_02077D3C(UnkStruct_0202CC84 *param0, int param1, u16 monSpecies, int param3, int param4, int param5, int param6, int param7)
+void Pokemon_PlayCry(ChatotCry *chatotCry, enum PokemonCryMod crymod, u16 species, int form, int pan, int volume, int forceDefaultChatot, int heapID)
{
- if (monSpecies == SPECIES_CHATOT) {
- if (sub_020064C8(param1) == 0) {
- sub_020063D4(1);
- sub_020059D0(param1, monSpecies, param4, param5, param7, param3);
+ if (species == SPECIES_CHATOT) {
+ if (Sound_CanPlayChatotCry(crymod) == FALSE) {
+ Sound_FlagDefaultChatotCry(TRUE);
+ Sound_PlayPokemonCry(crymod, species, pan, volume, heapID, form);
} else {
- if (param6) {
- sub_020063D4(1);
+ if (forceDefaultChatot) {
+ Sound_FlagDefaultChatotCry(TRUE);
}
- sub_020063E4(param0, NULL, param5, param4);
+ Sound_PlayChatotCry(chatotCry, NULL, volume, pan);
}
- } else {
- sub_020059D0(param1, monSpecies, param4, param5, param7, param3);
+
+ return;
}
+
+ Sound_PlayPokemonCry(crymod, species, pan, volume, heapID, form);
}
-void sub_02077DB4(UnkStruct_0202CC84 *param0, int param1, u16 monSpecies, int param3, int param4, int param5, int param6, int param7, u8 param8)
+void Pokemon_PlayDelayedCry(ChatotCry *chatotCry, enum PokemonCryMod crymod, u16 species, int form, int pan, int volume, int forceDefaultChatot, int heapID, u8 delay)
{
- if (monSpecies == SPECIES_CHATOT) {
- if (sub_020064C8(param1) == 0) {
- sub_020063D4(1);
- sub_02005F4C(param1, monSpecies, param4, param5, param7, param8, param3);
+ if (species == SPECIES_CHATOT) {
+ if (Sound_CanPlayChatotCry(crymod) == FALSE) {
+ Sound_FlagDefaultChatotCry(TRUE);
+ Sound_PlayDelayedPokemonCry(crymod, species, pan, volume, heapID, delay, form);
} else {
- if (param6) {
- sub_020063D4(1);
+ if (forceDefaultChatot) {
+ Sound_FlagDefaultChatotCry(TRUE);
}
- sub_02006438(param0, NULL, param5, param4, param8);
+ Sound_PlayDelayedChatotCry(chatotCry, NULL, volume, pan, delay);
}
- } else {
- sub_02005F4C(param1, monSpecies, param4, param5, param7, param8, param3);
+
+ return;
}
+
+ Sound_PlayDelayedPokemonCry(crymod, species, pan, volume, heapID, delay, form);
}
-BOOL sub_02077E3C(Pokemon *mon)
+BOOL Pokemon_IsEligibleForAction(Pokemon *mon)
{
int monSpecies = Pokemon_GetValue(mon, MON_DATA_SPECIES, NULL);
int monForm = Pokemon_GetValue(mon, MON_DATA_FORM, NULL);
@@ -4218,7 +4225,7 @@ BOOL sub_02077E3C(Pokemon *mon)
void Pokemon_SetCatchData(Pokemon *mon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5)
{
- sub_02077EA4(&mon->box, param1, monPokeball, param3, param4, param5);
+ InitializeBoxPokemonAfterCapture(&mon->box, param1, monPokeball, param3, param4, param5);
if (monPokeball == ITEM_HEAL_BALL) {
int monMaxHP = Pokemon_GetValue(mon, MON_DATA_MAX_HP, NULL);
@@ -4229,22 +4236,22 @@ void Pokemon_SetCatchData(Pokemon *mon, TrainerInfo *param1, int monPokeball, in
}
}
-static void sub_02077EA4(BoxPokemon *boxMon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5)
+static void InitializeBoxPokemonAfterCapture(BoxPokemon *boxMon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5)
{
- sub_0209305C(boxMon, param1, 0, param3, param5);
+ UpdateBoxMonStatusAndTrainerInfo(boxMon, param1, 0, param3, param5);
BoxPokemon_SetValue(boxMon, MON_DATA_MET_GAME, &Unk_020E4C40);
BoxPokemon_SetValue(boxMon, MON_DATA_POKEBALL, &monPokeball);
BoxPokemon_SetValue(boxMon, MON_DATA_158, ¶m4);
}
-void sub_02077EE4(Pokemon *mon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5)
+void Pokemon_UpdateAfterCatch(Pokemon *mon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5)
{
- sub_02077EF8(&mon->box, param1, monPokeball, param3, param4, param5);
+ PostCaptureBoxPokemonProcessing(&mon->box, param1, monPokeball, param3, param4, param5);
}
-static void sub_02077EF8(BoxPokemon *boxMon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5)
+static void PostCaptureBoxPokemonProcessing(BoxPokemon *boxMon, TrainerInfo *param1, int monPokeball, int param3, int param4, int param5)
{
- sub_02077EA4(boxMon, param1, monPokeball, param3, param4, param5);
+ InitializeBoxPokemonAfterCapture(boxMon, param1, monPokeball, param3, param4, param5);
}
static const u16 sHeldItemChance[][2] = {
@@ -4252,7 +4259,7 @@ static const u16 sHeldItemChance[][2] = {
{20, 80}
};
-void sub_02077F0C(Pokemon *mon, u32 param1, int param2)
+void Pokemon_GiveHeldItem(Pokemon *mon, u32 param1, int param2)
{
if (param1 & (0x1 | 0x80)) {
return;
@@ -4280,18 +4287,18 @@ void sub_02077F0C(Pokemon *mon, u32 param1, int param2)
BOOL Pokemon_CanLearnTM(Pokemon *mon, u8 tmID)
{
- return BoxPokemon_CanLearnTM(&mon->box, tmID);
+ return CanBoxPokemonLearnTM(&mon->box, tmID);
}
-static BOOL BoxPokemon_CanLearnTM(BoxPokemon *boxMon, u8 tmID)
+static BOOL CanBoxPokemonLearnTM(BoxPokemon *boxMon, u8 tmID)
{
u16 monSpeciesEgg = BoxPokemon_GetValue(boxMon, MON_DATA_SPECIES_EGG, NULL);
int monForm = BoxPokemon_GetValue(boxMon, MON_DATA_FORM, NULL);
- return Pokemon_CanFormLearnTM(monSpeciesEgg, monForm, tmID);
+ return CanPokemonFormLearnTM(monSpeciesEgg, monForm, tmID);
}
-BOOL Pokemon_CanFormLearnTM(u16 monSpecies, int monForm, u8 tmID)
+BOOL CanPokemonFormLearnTM(u16 monSpecies, int monForm, u8 tmID)
{
if (monSpecies == SPECIES_EGG) {
return FALSE;
@@ -4846,16 +4853,16 @@ void sub_02078B40(Pokemon *mon, UnkStruct_02078B40 *param1)
param1->pokeball = monDataBlockD->pokeball;
- param1->unk_5C = mon->party.unk_00;
+ param1->unk_5C = mon->party.status;
param1->level = mon->party.level;
- param1->unk_61 = mon->party.unk_05;
- param1->unk_62 = mon->party.unk_06;
- param1->unk_64 = mon->party.unk_08;
- param1->unk_66 = mon->party.unk_0A;
- param1->unk_68 = mon->party.unk_0C;
- param1->unk_6A = mon->party.unk_0E;
- param1->unk_6C = mon->party.unk_10;
- param1->unk_6E = mon->party.unk_12;
+ param1->unk_61 = mon->party.mail;
+ param1->unk_62 = mon->party.hp;
+ param1->unk_64 = mon->party.maxHP;
+ param1->unk_66 = mon->party.attack;
+ param1->unk_68 = mon->party.defense;
+ param1->unk_6A = mon->party.speed;
+ param1->unk_6C = mon->party.spAtk;
+ param1->unk_6E = mon->party.spDef;
if (mon->box.partyDecrypted == FALSE) {
Pokemon_EncryptData(&mon->party, sizeof(PartyPokemon), mon->box.personality);
@@ -4922,16 +4929,16 @@ void sub_02078E0C(UnkStruct_02078B40 *param0, Pokemon *mon)
monDataBlockD->pokeball = param0->pokeball;
- mon->party.unk_00 = param0->unk_5C;
+ mon->party.status = param0->unk_5C;
mon->party.level = param0->level;
- mon->party.unk_05 = param0->unk_61;
- mon->party.unk_06 = param0->unk_62;
- mon->party.unk_08 = param0->unk_64;
- mon->party.unk_0A = param0->unk_66;
- mon->party.unk_0C = param0->unk_68;
- mon->party.unk_0E = param0->unk_6A;
- mon->party.unk_10 = param0->unk_6C;
- mon->party.unk_12 = param0->unk_6E;
+ mon->party.mail = param0->unk_61;
+ mon->party.hp = param0->unk_62;
+ mon->party.maxHP = param0->unk_64;
+ mon->party.attack = param0->unk_66;
+ mon->party.defense = param0->unk_68;
+ mon->party.speed = param0->unk_6A;
+ mon->party.spAtk = param0->unk_6C;
+ mon->party.spDef = param0->unk_6E;
Pokemon_EncryptData(&mon->party, sizeof(PartyPokemon), mon->box.personality);
mon->box.checksum = Pokemon_GetDataChecksum(&mon->box.dataBlocks, sizeof(PokemonDataBlock) * 4);
diff --git a/src/rtc.c b/src/rtc.c
new file mode 100644
index 0000000000..6b40d23997
--- /dev/null
+++ b/src/rtc.c
@@ -0,0 +1,192 @@
+#include
+#include
+#include
+
+#include "inlines.h"
+
+#include "rtc.h"
+
+typedef struct {
+ BOOL valid;
+ BOOL readInProgress;
+ int framesSinceRead;
+ RTCResult status;
+ RTCDate date;
+ RTCTime time;
+ RTCDate tempDate;
+ RTCTime tempTime;
+} RTCState;
+
+static void GetTimeCallback(RTCResult param0, void * param1);
+static void StartRTCRead(RTCState * param0);
+
+static RTCState sRTCState;
+
+void InitRTC (void)
+{
+ RTC_Init();
+ memset(&sRTCState, 0, sizeof(sRTCState));
+ sRTCState.valid = 0;
+ sRTCState.readInProgress = 0;
+ sRTCState.framesSinceRead = 0;
+ StartRTCRead(&sRTCState);
+}
+
+void UpdateRTC (void)
+{
+ if (sRTCState.readInProgress) {
+ return;
+ }
+
+ sRTCState.framesSinceRead++;
+
+ if (sRTCState.framesSinceRead > 10) {
+ sRTCState.framesSinceRead = 0;
+ StartRTCRead(&sRTCState);
+ }
+}
+
+static void GetTimeCallback (RTCResult result, void * data)
+{
+ RTCState * state = data;
+
+ state->status = result;
+
+ GF_ASSERT(result == RTC_RESULT_SUCCESS);
+
+ state->valid = 1;
+ state->date = state->tempDate;
+ state->time = state->tempTime;
+ state->readInProgress = 0;
+}
+
+static void StartRTCRead (RTCState * param0)
+{
+ param0->readInProgress = 1;
+ param0->status = RTC_GetDateTimeAsync(¶m0->tempDate, ¶m0->tempTime, GetTimeCallback, param0);
+ GF_ASSERT(param0->status == RTC_RESULT_SUCCESS);
+}
+
+void GetCurrentDateTime (RTCDate * date, RTCTime * time)
+{
+ GF_ASSERT(sRTCState.valid == 1);
+
+ *date = sRTCState.date;
+ *time = sRTCState.time;
+}
+
+void GetCurrentTime (RTCTime * time)
+{
+ GF_ASSERT(sRTCState.valid == 1);
+ *time = sRTCState.time;
+}
+
+void GetCurrentDate (RTCDate * date)
+{
+ GF_ASSERT(sRTCState.valid == 1);
+ *date = sRTCState.date;
+}
+
+int GetSecondsSinceMidnight (void)
+{
+ RTCTime * time = &sRTCState.time;
+
+ return time->hour * 60 * 60 + time->minute * 60 + time->second;
+}
+
+s64 GetTimestamp (void)
+{
+ return RTC_ConvertDateTimeToSecond(&sRTCState.date, &sRTCState.time);
+}
+
+int DayNumberForDate (const RTCDate * date)
+{
+ int year, days;
+ static const u16 monthStart[12] = {
+ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
+ };
+
+ days = date->day;
+ days += monthStart[date->month - 1];
+
+ if (date->month >= 3) {
+ year = date->year;
+
+ if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
+ days++;
+ }
+ }
+
+ return days;
+}
+
+BOOL IsNight (void)
+{
+ switch (GetTimeOfDay()) {
+ case TOD_LATE_NIGHT:
+ case TOD_NIGHT:
+ return 1;
+ }
+
+ return 0;
+}
+
+enum TimeOfDay GetTimeOfDay (void)
+{
+ RTCTime time;
+
+ GetCurrentTime(&time);
+ return TimeOfDayForHour(time.hour);
+}
+
+enum TimeOfDay TimeOfDayForHour (int hour)
+{
+ static const u8 lookup[24] = {
+ TOD_LATE_NIGHT,
+ TOD_LATE_NIGHT,
+ TOD_LATE_NIGHT,
+ TOD_LATE_NIGHT,
+ TOD_MORNING,
+ TOD_MORNING,
+ TOD_MORNING,
+ TOD_MORNING,
+ TOD_MORNING,
+ TOD_MORNING,
+ TOD_DAY,
+ TOD_DAY,
+ TOD_DAY,
+ TOD_DAY,
+ TOD_DAY,
+ TOD_DAY,
+ TOD_DAY,
+ TOD_TWILIGHT,
+ TOD_TWILIGHT,
+ TOD_TWILIGHT,
+ TOD_NIGHT,
+ TOD_NIGHT,
+ TOD_NIGHT,
+ TOD_NIGHT,
+ };
+
+ GF_ASSERT(0 <= hour && hour < 24);
+ return lookup[hour];
+}
+
+#define MAX_TIMESTAMP 3155759999
+
+s64 TimeElapsed (s64 since, s64 until)
+{
+ RTCDate maxDate = {99, 12, 31, 0};
+ RTCTime maxTime = {23, 59, 59};
+ s64 maxTimestamp = RTC_ConvertDateTimeToSecond(&maxDate, &maxTime);
+
+ GF_ASSERT(maxTimestamp == MAX_TIMESTAMP);
+
+ if (since < until) {
+ return until - since;
+ } else {
+ // BUG: This loses one second when rolling over.
+ // e.g. TimeElapsed(MAX_TIMESTAMP, 0) == 0
+ return until + (MAX_TIMESTAMP - since);
+ }
+}
diff --git a/src/unk_0200112C.c b/src/unk_0200112C.c
index 669777c83d..b71aa19355 100644
--- a/src/unk_0200112C.c
+++ b/src/unk_0200112C.c
@@ -309,7 +309,7 @@ u32 sub_02001504 (UnkStruct_0200112C * param0, u8 param1)
return v0;
}
-void sub_020015CC (UnkStruct_0200112C * param0, UnkStruct_02013A04 * param1)
+void sub_020015CC (UnkStruct_0200112C * param0, ResourceMetadata * param1)
{
param0->unk_00.unk_00 = param1;
}
diff --git a/src/unk_02001AF4.c b/src/unk_02001AF4.c
index d0944b1efd..f1adc1865f 100644
--- a/src/unk_02001AF4.c
+++ b/src/unk_02001AF4.c
@@ -24,7 +24,7 @@
#include "unk_02018340.h"
#include "unk_0201D670.h"
-typedef struct UnkStruct_02001AF4_t {
+typedef struct UIControlData_t {
UnkStruct_02081CF4 unk_00;
UnkStruct_020149F0 * unk_0C;
u32 unk_10;
@@ -37,20 +37,20 @@ typedef struct UnkStruct_02001AF4_t {
u8 unk_1A;
u8 unk_1B;
u8 unk_1C;
-} UnkStruct_02001AF4;
+} UIControlData;
static void sub_0200DB10(BGL * param0, u8 param1, u8 param2, u8 param3, u8 param4, u8 param5, u8 param6, u16 param7);
static void sub_0200DD7C(BGL * param0, u8 param1, u8 param2, u8 param3, u8 param4, u8 param5, u8 param6, u16 param7);
-static BOOL sub_02001DCC(UnkStruct_02001AF4 * param0, u8 param1, u16 param2);
-static u8 sub_02001E24(UnkStruct_02001AF4 * param0, u8 param1);
-static u8 sub_02001F1C(UnkStruct_02001AF4 * param0);
-static void sub_02001F5C(UnkStruct_02001AF4 * param0);
-static void sub_02001FE8(UnkStruct_02001AF4 * param0);
-static void sub_02002018(UnkStruct_02001AF4 * param0, u8 * param1, u8 * param2, u8 param3);
+static BOOL sub_02001DCC(UIControlData * param0, u8 param1, u16 param2);
+static u8 sub_02001E24(UIControlData * param0, u8 param1);
+static u8 sub_02001F1C(UIControlData * param0);
+static void sub_02001F5C(UIControlData * param0);
+static void sub_02001FE8(UIControlData * param0);
+static void sub_02002018(UIControlData * param0, u8 * param1, u8 * param2, u8 param3);
-UnkStruct_02001AF4 * sub_02001AF4 (const UnkStruct_02081CF4 * param0, u8 param1, u8 param2, u8 param3, u8 param4, u32 param5)
+UIControlData * sub_02001AF4 (const UnkStruct_02081CF4 * param0, u8 param1, u8 param2, u8 param3, u8 param4, u32 param5)
{
- UnkStruct_02001AF4 * v0 = (UnkStruct_02001AF4 *)Heap_AllocFromHeap(param4, sizeof(UnkStruct_02001AF4));
+ UIControlData * v0 = (UIControlData *)Heap_AllocFromHeap(param4, sizeof(UIControlData));
v0->unk_00 = *param0;
v0->unk_0C = sub_020149F0(param4);
@@ -69,20 +69,20 @@ UnkStruct_02001AF4 * sub_02001AF4 (const UnkStruct_02081CF4 * param0, u8 param1,
return v0;
}
-UnkStruct_02001AF4 * sub_02001B7C (const UnkStruct_02081CF4 * param0, u8 param1, u8 param2, u8 param3, u8 param4, u32 param5)
+UIControlData * sub_02001B7C (const UnkStruct_02081CF4 * param0, u8 param1, u8 param2, u8 param3, u8 param4, u32 param5)
{
- UnkStruct_02001AF4 * v0 = sub_02001AF4(param0, param1, param2, param3, param4, param5);
+ UIControlData * v0 = sub_02001AF4(param0, param1, param2, param3, param4, param5);
sub_0201A954(v0->unk_00.unk_04);
return v0;
}
-UnkStruct_02001AF4 * sub_02001B9C (const UnkStruct_02081CF4 * param0, u8 param1, u8 param2)
+UIControlData * sub_02001B9C (const UnkStruct_02081CF4 * param0, u8 param1, u8 param2)
{
return sub_02001B7C(param0, sub_02002DF8(param0->unk_08, 0), 0, param1, param2, PAD_BUTTON_B);
}
-void sub_02001BC4 (UnkStruct_02001AF4 * param0, u8 * param1)
+void sub_02001BC4 (UIControlData * param0, u8 * param1)
{
if (param1 != NULL) {
*param1 = param0->unk_15;
@@ -92,7 +92,7 @@ void sub_02001BC4 (UnkStruct_02001AF4 * param0, u8 * param1)
Heap_FreeToHeapExplicit(param0->unk_1C, param0);
}
-u32 sub_02001BE0 (UnkStruct_02001AF4 * param0)
+u32 sub_02001BE0 (UIControlData * param0)
{
param0->unk_1B = 0;
@@ -141,7 +141,7 @@ u32 sub_02001BE0 (UnkStruct_02001AF4 * param0)
return 0xffffffff;
}
-u32 sub_02001C94 (UnkStruct_02001AF4 * param0, u16 param1)
+u32 sub_02001C94 (UIControlData * param0, u16 param1)
{
param0->unk_1B = 0;
@@ -190,7 +190,7 @@ u32 sub_02001C94 (UnkStruct_02001AF4 * param0, u16 param1)
return 0xffffffff;
}
-u32 sub_02001D44 (UnkStruct_02001AF4 * param0, u8 param1)
+u32 sub_02001D44 (UIControlData * param0, u8 param1)
{
switch (param1) {
case 0:
@@ -216,17 +216,17 @@ u32 sub_02001D44 (UnkStruct_02001AF4 * param0, u8 param1)
return 0xffffffff;
}
-u8 sub_02001DC4 (UnkStruct_02001AF4 * param0)
+u8 sub_02001DC4 (UIControlData * param0)
{
return param0->unk_15;
}
-u8 sub_02001DC8 (UnkStruct_02001AF4 * param0)
+u8 sub_02001DC8 (UIControlData * param0)
{
return param0->unk_1B;
}
-static BOOL sub_02001DCC (UnkStruct_02001AF4 * param0, u8 param1, u16 param2)
+static BOOL sub_02001DCC (UIControlData * param0, u8 param1, u16 param2)
{
u8 v0 = param0->unk_15;
@@ -250,7 +250,7 @@ static BOOL sub_02001DCC (UnkStruct_02001AF4 * param0, u8 param1, u16 param2)
return 1;
}
-static u8 sub_02001E24 (UnkStruct_02001AF4 * param0, u8 param1)
+static u8 sub_02001E24 (UIControlData * param0, u8 param1)
{
s8 v0;
@@ -320,7 +320,7 @@ static u8 sub_02001E24 (UnkStruct_02001AF4 * param0, u8 param1)
return 1;
}
-static u8 sub_02001F1C (UnkStruct_02001AF4 * param0)
+static u8 sub_02001F1C (UIControlData * param0)
{
u8 v0 = 0;
u8 v1, v2;
@@ -336,7 +336,7 @@ static u8 sub_02001F1C (UnkStruct_02001AF4 * param0)
return v0;
}
-static void sub_02001F5C (UnkStruct_02001AF4 * param0)
+static void sub_02001F5C (UIControlData * param0)
{
const void * v0;
u8 v1, v2, v3;
@@ -359,7 +359,7 @@ static void sub_02001F5C (UnkStruct_02001AF4 * param0)
}
}
-static void sub_02001FE8 (UnkStruct_02001AF4 * param0)
+static void sub_02001FE8 (UIControlData * param0)
{
u8 v0, v1;
@@ -371,17 +371,17 @@ static void sub_02001FE8 (UnkStruct_02001AF4 * param0)
sub_02014A58(param0->unk_0C, param0->unk_00.unk_04, v0, v1);
}
-static void sub_02002018 (UnkStruct_02001AF4 * param0, u8 * param1, u8 * param2, u8 param3)
+static void sub_02002018 (UIControlData * param0, u8 * param1, u8 * param2, u8 param3)
{
*param1 = (param3 / param0->unk_00.unk_0A) * (param0->unk_16 + param0->unk_19 * 2);
*param2 = (param3 % param0->unk_00.unk_0A) * (param0->unk_1A + param0->unk_00.unk_0B_0) + param0->unk_18;
}
-UnkStruct_02001AF4 * sub_02002054 (BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u8 param4, u32 param5)
+UIControlData * sub_02002054 (BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u8 param4, u32 param5)
{
UnkStruct_02081CF4 v0;
MessageLoader * v1;
- UnkStruct_02013A04 * v2;
+ ResourceMetadata * v2;
v1 = MessageLoader_Init(1, 26, 361, param5);
v2 = sub_02013A04(2, param5);
@@ -405,12 +405,12 @@ UnkStruct_02001AF4 * sub_02002054 (BGL * param0, const UnkStruct_ov61_0222C884 *
return sub_02001B7C(&v0, 8, 0, param4, param5, PAD_BUTTON_B);
}
-UnkStruct_02001AF4 * sub_02002100 (BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u32 param4)
+UIControlData * sub_02002100 (BGL * param0, const UnkStruct_ov61_0222C884 * param1, u16 param2, u8 param3, u32 param4)
{
return sub_02002054(param0, param1, param2, param3, 0, param4);
}
-u32 sub_02002114 (UnkStruct_02001AF4 * param0, u32 param1)
+u32 sub_02002114 (UIControlData * param0, u32 param1)
{
u32 v0 = sub_02001BE0(param0);
@@ -421,7 +421,7 @@ u32 sub_02002114 (UnkStruct_02001AF4 * param0, u32 param1)
return v0;
}
-u32 sub_02002134 (UnkStruct_02001AF4 * param0, u8 param1, u32 param2)
+u32 sub_02002134 (UIControlData * param0, u8 param1, u32 param2)
{
u32 v0 = sub_02001D44(param0, param1);
@@ -432,12 +432,12 @@ u32 sub_02002134 (UnkStruct_02001AF4 * param0, u8 param1, u32 param2)
return v0;
}
-void sub_02002154 (UnkStruct_02001AF4 * param0, u32 param1)
+void sub_02002154 (UIControlData * param0, u32 param1)
{
Window_Clear(param0->unk_00.unk_04, 0);
BGL_DeleteWindow(param0->unk_00.unk_04);
Heap_FreeToHeapExplicit(param1, param0->unk_00.unk_04);
- sub_02013A3C((UnkStruct_02013A04 *)param0->unk_00.unk_00);
+ sub_02013A3C((ResourceMetadata *)param0->unk_00.unk_00);
sub_02001BC4(param0, NULL);
}
diff --git a/src/unk_02003B60.c b/src/unk_02003B60.c
index 4076d7b04b..da55b42272 100644
--- a/src/unk_02003B60.c
+++ b/src/unk_02003B60.c
@@ -3,7 +3,7 @@
#include "struct_decls/struct_02003D54_decl.h"
#include "struct_decls/sys_task.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_defs/struct_020052C8.h"
#include "struct_defs/struct_020279FC.h"
@@ -49,8 +49,8 @@ struct UnkStruct_02003D54_t {
void * unk_BCD8C;
int unk_BCD90;
SysTask * unk_BCD94;
- UnkStruct_0202CC84 * unk_BCD98;
- UnkStruct_0202CC84 * unk_BCD9C[4];
+ ChatotCry * unk_BCD98;
+ ChatotCry * unk_BCD9C[4];
int unk_BCDAC[2];
int unk_BCDB4[2];
int unk_BCDBC[2];
@@ -61,20 +61,6 @@ struct UnkStruct_02003D54_t {
u8 unk_BCDD3;
};
-void sub_02003B60(UnkStruct_0202CC84 * param0, UnkStruct_020279FC * param1);
-void sub_02003BD8(void);
-void sub_02003D0C(int param0);
-UnkStruct_02003D54 * sub_02003D54(void);
-void * sub_02003D5C(int param0);
-int sub_02004014(int * param0);
-void sub_0200403C(int param0);
-BOOL sub_02004050(u16 param0);
-BOOL sub_02004068(u16 param0);
-BOOL sub_02004080(u16 param0, u32 param1);
-BOOL sub_0200409C(u16 param0);
-BOOL sub_020040B4(u16 param0);
-NNSSndHandle * sub_020040CC(int param0);
-int sub_020040F0(int param0);
static void sub_0200413C(UnkStruct_02003D54 * param0);
static void sub_02004160(UnkStruct_02003D54 * param0);
static void sub_0200417C(UnkStruct_02003D54 * param0);
@@ -87,7 +73,7 @@ static UnkStruct_02003D54 Unk_02101DF8;
static int Unk_02101DF0;
static NNSSndCaptureOutputEffectType Unk_02101DF4;
-void sub_02003B60 (UnkStruct_0202CC84 * param0, UnkStruct_020279FC * param1)
+void sub_02003B60 (ChatotCry * param0, AnimationControlFlags * param1)
{
UnkStruct_02003D54 * v0 = sub_02003D54();
@@ -112,7 +98,7 @@ void sub_02003B60 (UnkStruct_0202CC84 * param0, UnkStruct_020279FC * param1)
return;
}
-void sub_02003BD8 (void)
+void UpdateSound (void)
{
int v0;
UnkStruct_02003D54 * v1 = sub_02003D54();
@@ -125,14 +111,14 @@ void sub_02003BD8 (void)
sub_02003C64();
}
- sub_02006224();
+ CheckMicRecordingStatus();
for (v0 = 0; v0 < 2; v0++) {
if (v1->unk_BCDD0[v0] != 0) {
v1->unk_BCDD0[v0]--;
if (v1->unk_BCDD0[v0] == 0) {
- sub_020059D0(v1->unk_BCDAC[v0], v1->unk_BCDCC[v0], v1->unk_BCDB4[v0], v1->unk_BCDBC[v0], v1->unk_BCDC4[v0], 0);
+ Sound_PlayPokemonCry(v1->unk_BCDAC[v0], v1->unk_BCDCC[v0], v1->unk_BCDB4[v0], v1->unk_BCDBC[v0], v1->unk_BCDC4[v0], 0);
}
}
}
diff --git a/src/unk_02005474.c b/src/unk_02005474.c
index 43884cd274..bbfe614b9e 100644
--- a/src/unk_02005474.c
+++ b/src/unk_02005474.c
@@ -1,8 +1,10 @@
#include
#include
+#include "constants/species.h"
+
#include "struct_decls/sys_task.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "unk_02003B60.h"
#include "unk_020041CC.h"
@@ -46,11 +48,11 @@ BOOL sub_02005844(u16 param0, u8 param1);
BOOL sub_0200590C(u16 param0, u8 param1, u8 param2);
void sub_0200592C(int param0);
int sub_0200598C(void);
-BOOL sub_020059D0(int param0, u16 param1, int param2, int param3, int param4, u8 param5);
+BOOL Sound_PlayPokemonCry(int param0, u16 param1, int param2, int param3, int param4, u8 param5);
void sub_02005E64(int param0, int param1);
static void sub_02005EB0(SysTask * param0, void * param1);
void sub_02005F24(void);
-void sub_02005F4C(int param0, u16 param1, int param2, int param3, int param4, u8 param5, u8 param6);
+void Sound_PlayDelayedPokemonCry(int param0, u16 param1, int param2, int param3, int param4, u8 param5, u8 param6);
static BOOL sub_02006038(u16 param0, u8 param1);
void sub_0200605C(void);
static BOOL sub_020060EC(u16 param0, s8 param1, u8 param2);
@@ -407,7 +409,7 @@ BOOL sub_02005844 (u16 param0, u8 param1)
u16 v0;
int v1;
u8 * v2 = sub_02003D5C(18);
- UnkStruct_0202CC84 ** v3 = sub_02003D5C(36);
+ ChatotCry ** v3 = sub_02003D5C(36);
u8 * v4 = sub_02003D5C(53);
v0 = param0;
@@ -423,8 +425,8 @@ BOOL sub_02005844 (u16 param0, u8 param1)
}
if (v0 == 441) {
- if (sub_0200629C(*v3, 0, 127, 0) == 1) {
- sub_020063D4(0);
+ if (ProcessAudioInput(*v3, 0, 127, 0) == 1) {
+ Sound_FlagDefaultChatotCry(0);
return 1;
}
}
@@ -441,7 +443,7 @@ BOOL sub_02005844 (u16 param0, u8 param1)
sub_02004AA0(v0, 8);
}
- sub_020063D4(0);
+ Sound_FlagDefaultChatotCry(0);
if (v1 == 0) {
(void)0;
@@ -452,7 +454,7 @@ BOOL sub_02005844 (u16 param0, u8 param1)
BOOL sub_0200590C (u16 param0, u8 param1, u8 param2)
{
- sub_02005F4C(0, param0, 0, 127, 11, param1, param2);
+ Sound_PlayDelayedPokemonCry(0, param0, 0, 127, 11, param1, param2);
return 1;
}
@@ -475,7 +477,7 @@ void sub_0200592C (int param0)
sub_02004C4C(15);
}
- sub_02006350();
+ ResetMicStatusFlags();
sub_0200605C();
return;
@@ -499,7 +501,7 @@ int sub_0200598C (void)
return sub_02004B04(0);
}
-BOOL sub_020059D0 (int param0, u16 param1, int param2, int param3, int param4, u8 param5)
+BOOL Sound_PlayPokemonCry (int param0, u16 param1, int param2, int param3, int param4, u8 param5)
{
int v0, v1;
u16 v2;
@@ -509,7 +511,7 @@ BOOL sub_020059D0 (int param0, u16 param1, int param2, int param3, int param4, u
u8 * v9 = sub_02003D5C(17);
u8 * v10 = sub_02003D5C(18);
u8 * v11 = sub_02003D5C(30);
- UnkStruct_0202CC84 ** v12 = sub_02003D5C(36);
+ ChatotCry ** v12 = sub_02003D5C(36);
v4 = 0;
v5 = 0;
@@ -522,8 +524,8 @@ BOOL sub_020059D0 (int param0, u16 param1, int param2, int param3, int param4, u
}
if (v2 != 494) {
- if ((v2 > 495) || (v2 == 0)) {
- v2 = 1;
+ if ((v2 > MAX_SPECIES) || (v2 == 0)) {
+ v2 = SPECIES_BULBASAUR;
}
}
@@ -552,7 +554,7 @@ BOOL sub_020059D0 (int param0, u16 param1, int param2, int param3, int param4, u
sub_02004C4C(15);
}
- if (v2 == 441) {
+ if (v2 == SPECIES_CHATOT) {
switch (param0) {
case 0:
case 1:
@@ -577,7 +579,7 @@ BOOL sub_020059D0 (int param0, u16 param1, int param2, int param3, int param4, u
return 1;
default:
- sub_020063D4(1);
+ Sound_FlagDefaultChatotCry(1);
break;
}
}
@@ -779,7 +781,7 @@ void sub_02005F24 ()
return;
}
-void sub_02005F4C (int param0, u16 param1, int param2, int param3, int param4, u8 param5, u8 param6)
+void Sound_PlayDelayedPokemonCry (int param0, u16 param1, int param2, int param3, int param4, u8 param5, u8 param6)
{
u16 v0;
int * v1;
@@ -822,7 +824,7 @@ void sub_02005F4C (int param0, u16 param1, int param2, int param3, int param4, u
}
if (param5 == 0) {
- sub_020059D0(param0, v0, param2, param3, param4, param6);
+ Sound_PlayPokemonCry(param0, v0, param2, param3, param4, param6);
return;
}
@@ -890,7 +892,7 @@ static BOOL sub_020060EC (u16 param0, s8 param1, u8 param2)
*v1 = 1;
- sub_020063D4(1);
+ Sound_FlagDefaultChatotCry(1);
v0 = sub_02005844(param0, param2);
sub_02004F68(8, 0xffff, param1);
diff --git a/src/unk_02006224.c b/src/unk_02006224.c
index 148f5796bf..5d5ce66689 100644
--- a/src/unk_02006224.c
+++ b/src/unk_02006224.c
@@ -1,7 +1,7 @@
#include
#include
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_defs/struct_02004CB4.h"
@@ -11,20 +11,20 @@
#include "unk_0201D15C.h"
#include "unk_0202CC64.h"
-BOOL sub_02006224(void);
-BOOL sub_02006260(const UnkStruct_0202CC84 * param0);
-BOOL sub_0200629C(const UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3);
-void sub_02006350(void);
-MICResult sub_0200637C(void);
-MICResult sub_020063B8(void);
-void sub_020063C0(UnkStruct_0202CC84 * param0);
-void sub_020063D4(u8 param0);
-BOOL sub_020063E4(UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3);
-BOOL sub_02006438(UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3, u8 param4);
-int Sound_Chatter(UnkStruct_0202CC84 * param0);
-BOOL sub_020064C8(int param0);
+BOOL CheckMicRecordingStatus(void);
+BOOL IsChatotCryStructReadyForProcessing(const ChatotCry * param0);
+BOOL ProcessAudioInput(const ChatotCry * param0, u32 param1, int param2, int param3);
+void ResetMicStatusFlags(void);
+MICResult StartMicSampling(void);
+MICResult StopMicSampling(void);
+void StoreMicDataInChatotCryStruct(ChatotCry * param0);
+void Sound_FlagDefaultChatotCry(u8 param0);
+BOOL Sound_PlayChatotCry(ChatotCry * param0, u32 param1, int param2, int param3);
+BOOL Sound_PlayDelayedChatotCry(ChatotCry * param0, u32 param1, int param2, int param3, u8 param4);
+int Sound_Chatter(ChatotCry * param0);
+BOOL Sound_CanPlayChatotCry(int param0);
-BOOL sub_02006224 (void)
+BOOL CheckMicRecordingStatus (void)
{
u8 * v0 = sub_02003D5C(16);
u8 * v1 = sub_02003D5C(30);
@@ -32,11 +32,11 @@ BOOL sub_02006224 (void)
if (*v1 == 1) {
if (*v0 == 1) {
if (sub_02004D04(14) == 0) {
- sub_02006350();
+ ResetMicStatusFlags();
return 1;
}
} else {
- sub_02006350();
+ ResetMicStatusFlags();
return 1;
}
}
@@ -44,12 +44,12 @@ BOOL sub_02006224 (void)
return 0;
}
-BOOL sub_02006260 (const UnkStruct_0202CC84 * param0)
+BOOL IsChatotCryStructReadyForProcessing (const ChatotCry * cry)
{
u8 * v0 = sub_02003D5C(31);
u8 * v1 = sub_02003D5C(54);
- if (sub_0202CCA4(param0) == 0) {
+ if (IsChatotCryDataValid(cry) == 0) {
return 0;
}
@@ -64,14 +64,14 @@ BOOL sub_02006260 (const UnkStruct_0202CC84 * param0)
return 1;
}
-BOOL sub_0200629C (const UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3)
+BOOL ProcessAudioInput (const ChatotCry * param0, u32 param1, int param2, int param3)
{
u16 v0;
int v1, v2;
s8 * v3 = sub_02005014();
u8 * v4 = sub_02003D5C(30);
- if (sub_02006260(param0) == 0) {
+ if (IsChatotCryStructReadyForProcessing(param0) == 0) {
return 0;
}
@@ -82,11 +82,11 @@ BOOL sub_0200629C (const UnkStruct_0202CC84 * param0, u32 param1, int param2, in
}
sub_0200592C(0);
- sub_02006350();
+ ResetMicStatusFlags();
sub_02004BCC(14);
v0 = (LCRNG_Next() % 8192);
- sub_0202CCB4(v3, sub_0202CCB0(param0));
+ ProcessChatotCryAudioData(v3, GetChatotCryAudioBuffer(param0));
{
UnkStruct_02004CB4 v5;
@@ -107,12 +107,12 @@ BOOL sub_0200629C (const UnkStruct_0202CC84 * param0, u32 param1, int param2, in
}
*v4 = 1;
- sub_020063D4(0);
+ Sound_FlagDefaultChatotCry(0);
return v1;
}
-void sub_02006350 (void)
+void ResetMicStatusFlags (void)
{
u8 * v0 = sub_02003D5C(16);
u8 * v1 = sub_02003D5C(30);
@@ -126,7 +126,7 @@ void sub_02006350 (void)
return;
}
-MICResult sub_0200637C (void)
+MICResult StartMicSampling (void)
{
MICAutoParam v0;
@@ -146,18 +146,18 @@ MICResult sub_0200637C (void)
return sub_02004B5C(&v0);
}
-MICResult sub_020063B8 (void)
+MICResult StopMicSampling (void)
{
return sub_02004B64();
}
-void sub_020063C0 (UnkStruct_0202CC84 * param0)
+void StoreMicDataInChatotCryStruct (ChatotCry * param0)
{
- sub_0202CCEC(param0, (const s8 *)sub_02005014());
+ StoreProcessedAudioInChatotCryData(param0, (const s8 *)sub_02005014());
return;
}
-void sub_020063D4 (u8 param0)
+void Sound_FlagDefaultChatotCry (u8 param0)
{
u8 * v0 = sub_02003D5C(31);
@@ -165,55 +165,55 @@ void sub_020063D4 (u8 param0)
return;
}
-BOOL sub_020063E4 (UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3)
+BOOL Sound_PlayChatotCry (ChatotCry * param0, u32 param1, int param2, int param3)
{
int v0;
- UnkStruct_0202CC84 ** v1 = sub_02003D5C(36);
+ ChatotCry ** v1 = sub_02003D5C(36);
if (param0 == NULL) {
- v0 = sub_0200629C(*v1, param1, param2, param3);
+ v0 = ProcessAudioInput(*v1, param1, param2, param3);
} else {
- v0 = sub_0200629C(param0, param1, param2, param3);
+ v0 = ProcessAudioInput(param0, param1, param2, param3);
}
if (v0 == 0) {
- sub_020063D4(1);
- v0 = sub_020059D0(0, 441, param3, param2, 11, 0);
+ Sound_FlagDefaultChatotCry(1);
+ v0 = Sound_PlayPokemonCry(0, 441, param3, param2, 11, 0);
}
return v0;
}
-BOOL sub_02006438 (UnkStruct_0202CC84 * param0, u32 param1, int param2, int param3, u8 param4)
+BOOL Sound_PlayDelayedChatotCry (ChatotCry * param0, u32 param1, int param2, int param3, u8 param4)
{
int v0;
- UnkStruct_0202CC84 ** v1 = sub_02003D5C(36);
+ ChatotCry ** v1 = sub_02003D5C(36);
if (param0 == NULL) {
- v0 = sub_0200629C(*v1, param1, param2, param3);
+ v0 = ProcessAudioInput(*v1, param1, param2, param3);
} else {
- v0 = sub_0200629C(param0, param1, param2, param3);
+ v0 = ProcessAudioInput(param0, param1, param2, param3);
}
if (v0 == 0) {
- sub_020063D4(1);
- sub_02005F4C(0, 441, param3, param2, 11, param4, 0);
+ Sound_FlagDefaultChatotCry(1);
+ Sound_PlayDelayedPokemonCry(0, 441, param3, param2, 11, param4, 0);
v0 = 1;
}
return v0;
}
-int Sound_Chatter (UnkStruct_0202CC84 * param0)
+int Sound_Chatter (ChatotCry * param0)
{
const s8 * v0;
s8 v1;
- if (sub_0202CCA4(param0) == 0) {
+ if (IsChatotCryDataValid(param0) == 0) {
return 0;
}
- v0 = sub_0202CCB0(param0);
+ v0 = GetChatotCryAudioBuffer(param0);
v1 = v0[15];
if ((-128 <= v1) && (v1 < -30)) {
@@ -227,7 +227,7 @@ int Sound_Chatter (UnkStruct_0202CC84 * param0)
return 0;
}
-BOOL sub_020064C8 (int param0)
+BOOL Sound_CanPlayChatotCry (int param0)
{
switch (param0) {
case 0:
diff --git a/src/unk_020093B4.c b/src/unk_020093B4.c
index 220af818d9..e40e7cb977 100644
--- a/src/unk_020093B4.c
+++ b/src/unk_020093B4.c
@@ -137,7 +137,7 @@ void sub_020095A8 (UnkStruct_02009508 * param0)
Heap_FreeToHeap(param0);
}
-UnkStruct_020218BC * sub_020095C4 (int param0, UnkStruct_0200C738 * param1, int param2)
+GraphicElementManager * sub_020095C4 (int param0, UnkStruct_0200C738 * param1, int param2)
{
UnkStruct_020095C4 v0;
NNSG2dViewRect v1;
diff --git a/src/unk_0200C6E4.c b/src/unk_0200C6E4.c
index 4497d669b9..2694af9f0f 100644
--- a/src/unk_0200C6E4.c
+++ b/src/unk_0200C6E4.c
@@ -36,36 +36,36 @@
#include "unk_0201F834.h"
#include "unk_020218BC.h"
-typedef struct UnkStruct_0200C6E4_t {
+typedef struct CellTransferStateData_t {
int unk_00;
int unk_04;
int unk_08;
NNSG2dCellTransferState * unk_0C;
UnkStruct_0200C738 unk_10;
-} UnkStruct_0200C6E4;
+} CellTransferStateData;
-typedef struct UnkStruct_0200C704_t {
- UnkStruct_020218BC * unk_00;
+typedef struct AnimationResourceCollection_t {
+ GraphicElementManager * unk_00;
UnkStruct_02009508 * unk_04;
UnkStruct_02009F38 * unk_08;
UnkStruct_02009714 * unk_0C[6];
UnkStruct_02009CFC * unk_24[6];
int unk_3C[6];
int unk_54;
-} UnkStruct_0200C704;
+} AnimationResourceCollection;
-static BOOL sub_0200D11C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5, int param6);
-static BOOL sub_0200D18C(UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5, int param6);
+static BOOL sub_0200D11C(CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5, int param6);
+static BOOL sub_0200D18C(CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5, int param6);
static BOOL sub_0200D1FC(UnkStruct_02009CFC * param0, UnkStruct_02009DC8 * param1);
static BOOL sub_0200D27C(UnkStruct_02009714 * param0, UnkStruct_02009CFC * param1, int param2);
static BOOL sub_0200D2D0(UnkStruct_02009714 * param0, UnkStruct_02009CFC * param1, int param2);
static BOOL sub_0200D230(UnkStruct_02009714 * param0, UnkStruct_02009CFC * param1, int param2);
-UnkStruct_0200C6E4 * sub_0200C6E4 (int param0)
+CellTransferStateData * sub_0200C6E4 (int param0)
{
- UnkStruct_0200C6E4 * v0 = NULL;
+ CellTransferStateData * v0 = NULL;
- v0 = Heap_AllocFromHeap(param0, sizeof(UnkStruct_0200C6E4));
+ v0 = Heap_AllocFromHeap(param0, sizeof(CellTransferStateData));
if (v0 == NULL) {
return NULL;
@@ -78,14 +78,14 @@ UnkStruct_0200C6E4 * sub_0200C6E4 (int param0)
return v0;
}
-UnkStruct_0200C704 * sub_0200C704 (UnkStruct_0200C6E4 * param0)
+AnimationResourceCollection * sub_0200C704 (CellTransferStateData * param0)
{
int v0;
- UnkStruct_0200C704 * v1 = NULL;
+ AnimationResourceCollection * v1 = NULL;
GF_ASSERT(param0 != NULL);
- v1 = Heap_AllocFromHeap(param0->unk_00, sizeof(UnkStruct_0200C704));
+ v1 = Heap_AllocFromHeap(param0->unk_00, sizeof(AnimationResourceCollection));
if (v1 == NULL) {
return NULL;
@@ -100,12 +100,12 @@ UnkStruct_0200C704 * sub_0200C704 (UnkStruct_0200C6E4 * param0)
return v1;
}
-UnkStruct_0200C738 * sub_0200C738 (UnkStruct_0200C6E4 * param0)
+UnkStruct_0200C738 * sub_0200C738 (CellTransferStateData * param0)
{
return ¶m0->unk_10;
}
-BOOL sub_0200C73C (UnkStruct_0200C6E4 * param0, const UnkStruct_ov104_0224133C * param1, const UnkStruct_ov104_022412F4 * param2, int param3)
+BOOL sub_0200C73C (CellTransferStateData * param0, const UnkStruct_ov104_0224133C * param1, const UnkStruct_ov104_022412F4 * param2, int param3)
{
GF_ASSERT(param0 != NULL);
@@ -139,7 +139,7 @@ BOOL sub_0200C73C (UnkStruct_0200C6E4 * param0, const UnkStruct_ov104_0224133C *
return 1;
}
-BOOL sub_0200C7C0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2)
+BOOL sub_0200C7C0 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2)
{
if ((param0 == NULL) || (param1 == NULL)) {
return 0;
@@ -149,12 +149,12 @@ BOOL sub_0200C7C0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int
return 1;
}
-void sub_0200C7E4 (UnkStruct_02022550 * param0)
+void sub_0200C7E4 (GraphicElementData * param0)
{
sub_02021BD4(param0);
}
-void sub_0200C7EC (UnkStruct_0200C704 * param0)
+void sub_0200C7EC (AnimationResourceCollection * param0)
{
GF_ASSERT(param0 != NULL);
sub_020219F8(param0->unk_00);
@@ -170,12 +170,12 @@ void sub_0200C808 (void)
sub_0201DCE8();
}
-void sub_0200C810 (UnkStruct_0200C704 * param0)
+void sub_0200C810 (AnimationResourceCollection * param0)
{
sub_02021964(param0->unk_00);
}
-void sub_0200C81C (UnkStruct_0200C704 * param0)
+void sub_0200C81C (AnimationResourceCollection * param0)
{
if (param0->unk_04 == NULL) {
return;
@@ -184,7 +184,7 @@ void sub_0200C81C (UnkStruct_0200C704 * param0)
sub_020095A8(param0->unk_04);
}
-void sub_0200C82C (UnkStruct_0200C704 * param0)
+void sub_0200C82C (AnimationResourceCollection * param0)
{
int v0;
UnkStruct_02009F38 * v1;
@@ -204,7 +204,7 @@ void sub_0200C82C (UnkStruct_0200C704 * param0)
}
}
-void sub_0200C880 (UnkStruct_0200C6E4 * param0)
+void sub_0200C880 (CellTransferStateData * param0)
{
sub_0201DCF0(param0->unk_0C);
sub_0201E958();
@@ -215,13 +215,13 @@ void sub_0200C880 (UnkStruct_0200C6E4 * param0)
}
}
-void sub_0200C8A0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1)
+void sub_0200C8A0 (CellTransferStateData * param0, AnimationResourceCollection * param1)
{
param0->unk_04--;
Heap_FreeToHeap(param1);
}
-void sub_0200C8B0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1)
+void sub_0200C8B0 (CellTransferStateData * param0, AnimationResourceCollection * param1)
{
sub_0200C810(param1);
sub_0200C81C(param1);
@@ -229,7 +229,7 @@ void sub_0200C8B0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1)
sub_0200C8A0(param0, param1);
}
-void sub_0200C8D4 (UnkStruct_0200C6E4 * param0)
+void sub_0200C8D4 (CellTransferStateData * param0)
{
GF_ASSERT(param0->unk_04 == 0);
@@ -237,7 +237,7 @@ void sub_0200C8D4 (UnkStruct_0200C6E4 * param0)
Heap_FreeToHeap(param0);
}
-BOOL sub_0200C8F0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, const UnkStruct_ov7_0224F2EC * param2)
+BOOL sub_0200C8F0 (CellTransferStateData * param0, AnimationResourceCollection * param1, const UnkStruct_ov7_0224F2EC * param2)
{
int v0;
int v1 = 6;
@@ -290,17 +290,17 @@ BOOL sub_0200C8F0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, con
return 1;
}
-UnkStruct_02022550 * sub_0200CA08 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, const UnkStruct_ov7_0224F358 * param2)
+GraphicElementData * sub_0200CA08 (CellTransferStateData * param0, AnimationResourceCollection * param1, const UnkStruct_ov7_0224F358 * param2)
{
- UnkStruct_02022550 * v0 = NULL;
+ GraphicElementData * v0 = NULL;
v0 = sub_0200CA44(param0, param1, param2->unk_00, param2->unk_04, param2->unk_06, param2->unk_04, param2->unk_0A, param2->unk_0C, param2->unk_10, param2->unk_14, param2->unk_18, param2->unk_1C, param2->unk_20, param2->unk_24);
return v0;
}
-UnkStruct_02022550 * sub_0200CA44 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, s16 param3, s16 param4, s16 param5, u16 param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13)
+GraphicElementData * sub_0200CA44 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, s16 param3, s16 param4, s16 param5, u16 param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13)
{
- UnkStruct_02022550 * v0 = NULL;
+ GraphicElementData * v0 = NULL;
UnkStruct_ov115_02261520 v1;
v1.unk_00 = param1->unk_00;
@@ -331,7 +331,7 @@ UnkStruct_02022550 * sub_0200CA44 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C7
return v0;
}
-BOOL sub_0200CB30 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, const UnkStruct_ov104_02241308 * param2)
+BOOL sub_0200CB30 (CellTransferStateData * param0, AnimationResourceCollection * param1, const UnkStruct_ov104_02241308 * param2)
{
int v0;
int v1;
@@ -371,7 +371,7 @@ BOOL sub_0200CB30 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, con
return 1;
}
-BOOL sub_0200CBDC (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5, int param6)
+BOOL sub_0200CBDC (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5, int param6)
{
UnkStruct_02009DC8 * v0;
@@ -393,7 +393,7 @@ BOOL sub_0200CBDC (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int
return (v0 == NULL) ? 0 : 1;
}
-BOOL sub_0200CC3C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5, int param6)
+BOOL sub_0200CC3C (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5, int param6)
{
UnkStruct_02009DC8 * v0;
@@ -414,7 +414,7 @@ BOOL sub_0200CC3C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NAR
return (v0 == NULL) ? 0 : 1;
}
-s8 sub_0200CC9C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5, int param6, int param7)
+s8 sub_0200CC9C (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5, int param6, int param7)
{
UnkStruct_02009DC8 * v0;
int v1;
@@ -438,7 +438,7 @@ s8 sub_0200CC9C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int p
return -1;
}
-s8 sub_0200CD0C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5, int param6, int param7)
+s8 sub_0200CD0C (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5, int param6, int param7)
{
UnkStruct_02009DC8 * v0;
int v1;
@@ -461,7 +461,7 @@ s8 sub_0200CD0C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC
return -1;
}
-u8 sub_0200CD7C (PaletteSys * param0, int param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, int param4, int param5, int param6, int param7, int param8, int param9)
+u8 sub_0200CD7C (PaletteSys * param0, int param1, CellTransferStateData * param2, AnimationResourceCollection * param3, int param4, int param5, int param6, int param7, int param8, int param9)
{
int v0;
@@ -474,7 +474,7 @@ u8 sub_0200CD7C (PaletteSys * param0, int param1, UnkStruct_0200C6E4 * param2, U
return v0;
}
-u8 sub_0200CDC4 (PaletteSys * param0, int param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, NARC * param4, int param5, int param6, int param7, int param8, int param9)
+u8 sub_0200CDC4 (PaletteSys * param0, int param1, CellTransferStateData * param2, AnimationResourceCollection * param3, NARC * param4, int param5, int param6, int param7, int param8, int param9)
{
int v0;
@@ -487,27 +487,27 @@ u8 sub_0200CDC4 (PaletteSys * param0, int param1, UnkStruct_0200C6E4 * param2, U
return v0;
}
-BOOL sub_0200CE0C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5)
+BOOL sub_0200CE0C (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5)
{
return sub_0200D11C(param0, param1, param2, param3, param4, 2, param5);
}
-BOOL sub_0200CE24 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5)
+BOOL sub_0200CE24 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5)
{
return sub_0200D18C(param0, param1, param2, param3, param4, 2, param5);
}
-BOOL sub_0200CE3C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5)
+BOOL sub_0200CE3C (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5)
{
return sub_0200D11C(param0, param1, param2, param3, param4, 3, param5);
}
-BOOL sub_0200CE54 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5)
+BOOL sub_0200CE54 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5)
{
return sub_0200D18C(param0, param1, param2, param3, param4, 3, param5);
}
-CellActorData * sub_0200CE6C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, const UnkStruct_ov104_0223F9E0 * param2)
+CellActorData * sub_0200CE6C (CellTransferStateData * param0, AnimationResourceCollection * param1, const UnkStruct_ov104_0223F9E0 * param2)
{
int v0;
int v1;
@@ -589,39 +589,39 @@ CellActorData * sub_0200CE6C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 *
return v2;
}
-const NNSG2dImagePaletteProxy * sub_0200D04C (UnkStruct_0200C704 * param0, int param1)
+const NNSG2dImagePaletteProxy * sub_0200D04C (AnimationResourceCollection * param0, int param1)
{
UnkStruct_02009DC8 * v0 = sub_02009DC8(param0->unk_0C[1], param1);
return sub_0200A72C(v0, NULL);
}
-u32 sub_0200D05C (UnkStruct_0200C704 * param0, int param1, NNS_G2D_VRAM_TYPE param2)
+u32 sub_0200D05C (AnimationResourceCollection * param0, int param1, NNS_G2D_VRAM_TYPE param2)
{
UnkStruct_02009DC8 * v0 = sub_02009DC8(param0->unk_0C[1], param1);
return sub_0200A760(v0, param2);
}
-BOOL sub_0200D070 (UnkStruct_0200C704 * param0, int param1)
+BOOL sub_0200D070 (AnimationResourceCollection * param0, int param1)
{
return sub_0200D27C(param0->unk_0C[0], param0->unk_24[0], param1);
}
-BOOL sub_0200D080 (UnkStruct_0200C704 * param0, int param1)
+BOOL sub_0200D080 (AnimationResourceCollection * param0, int param1)
{
return sub_0200D2D0(param0->unk_0C[1], param0->unk_24[1], param1);
}
-BOOL sub_0200D090 (UnkStruct_0200C704 * param0, int param1)
+BOOL sub_0200D090 (AnimationResourceCollection * param0, int param1)
{
return sub_0200D230(param0->unk_0C[2], param0->unk_24[2], param1);
}
-BOOL sub_0200D0A0 (UnkStruct_0200C704 * param0, int param1)
+BOOL sub_0200D0A0 (AnimationResourceCollection * param0, int param1)
{
return sub_0200D230(param0->unk_0C[3], param0->unk_24[3], param1);
}
-void sub_0200D0B0 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1)
+void sub_0200D0B0 (CellTransferStateData * param0, AnimationResourceCollection * param1)
{
int v0;
@@ -648,7 +648,7 @@ void sub_0200D0F4 (CellActorData * param0)
Heap_FreeToHeap(param0);
}
-static BOOL sub_0200D11C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, int param4, int param5, int param6)
+static BOOL sub_0200D11C (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, int param4, int param5, int param6)
{
UnkStruct_02009DC8 * v0;
int v1;
@@ -670,7 +670,7 @@ static BOOL sub_0200D11C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * para
return (v0 == NULL) ? 0 : 1;
}
-static BOOL sub_0200D18C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, int param4, int param5, int param6)
+static BOOL sub_0200D18C (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, int param4, int param5, int param6)
{
UnkStruct_02009DC8 * v0;
int v1;
@@ -788,7 +788,7 @@ static BOOL sub_0200D2D0 (UnkStruct_02009714 * param0, UnkStruct_02009CFC * para
return 0;
}
-void sub_0200D324 (UnkStruct_02022550 * param0)
+void sub_0200D324 (GraphicElementData * param0)
{
sub_02021E2C(param0, FX32_ONE);
}
@@ -828,7 +828,7 @@ u32 sub_0200D37C (CellActorData * param0)
return sub_02021E24(param0->unk_00);
}
-void sub_0200D388 (UnkStruct_02022550 * param0, int param1)
+void sub_0200D388 (GraphicElementData * param0, int param1)
{
sub_02021CC8(param0, param1);
}
@@ -838,7 +838,7 @@ void sub_0200D390 (CellActorData * param0, int param1)
sub_0200D388(param0->unk_00, param1);
}
-void sub_0200D39C (UnkStruct_02022550 * param0, fx32 param1)
+void sub_0200D39C (GraphicElementData * param0, fx32 param1)
{
sub_02021CE4(param0, param1);
}
@@ -848,7 +848,7 @@ void sub_0200D3A4 (CellActorData * param0, fx32 param1)
sub_0200D39C(param0->unk_00, param1);
}
-BOOL sub_0200D3B0 (UnkStruct_02022550 * param0)
+BOOL sub_0200D3B0 (GraphicElementData * param0)
{
return sub_02021FD0(param0);
}
@@ -858,7 +858,7 @@ BOOL sub_0200D3B8 (CellActorData * param0)
return sub_0200D3B0(param0->unk_00);
}
-void sub_0200D3C4 (UnkStruct_02022550 * param0, u16 param1)
+void sub_0200D3C4 (GraphicElementData * param0, u16 param1)
{
sub_02021E50(param0, param1);
}
@@ -868,7 +868,7 @@ void sub_0200D3CC (CellActorData * param0, u16 param1)
sub_0200D3C4(param0->unk_00, param1);
}
-u16 sub_0200D3D8 (UnkStruct_02022550 * param0)
+u16 sub_0200D3D8 (GraphicElementData * param0)
{
return sub_02021E74(param0);
}
@@ -878,7 +878,7 @@ u16 sub_0200D3E0 (CellActorData * param0)
return sub_0200D3D8(param0->unk_00);
}
-void sub_0200D3EC (UnkStruct_02022550 * param0, int param1)
+void sub_0200D3EC (GraphicElementData * param0, int param1)
{
sub_02021CAC(param0, param1);
}
@@ -888,7 +888,7 @@ void sub_0200D3F4 (CellActorData * param0, int param1)
sub_0200D3EC(param0->unk_00, param1);
}
-int sub_0200D400 (UnkStruct_02022550 * param0)
+int sub_0200D400 (GraphicElementData * param0)
{
return sub_02021D34(param0);
}
@@ -898,7 +898,7 @@ int sub_0200D408 (CellActorData * param0)
return sub_0200D400(param0->unk_00);
}
-void sub_0200D414 (UnkStruct_02022550 * param0, int param1)
+void sub_0200D414 (GraphicElementData * param0, int param1)
{
sub_02021E90(param0, param1);
}
@@ -908,7 +908,7 @@ void sub_0200D41C (CellActorData * param0, int param1)
sub_0200D414(param0->unk_00, param1);
}
-void sub_0200D428 (UnkStruct_02022550 * param0, int param1)
+void sub_0200D428 (GraphicElementData * param0, int param1)
{
sub_02021EF0(param0, param1);
}
@@ -923,7 +923,7 @@ int sub_0200D43C (CellActorData * param0)
return sub_02021F48(param0->unk_00);
}
-void sub_0200D448 (UnkStruct_02022550 * param0, int param1)
+void sub_0200D448 (GraphicElementData * param0, int param1)
{
sub_02021E80(param0, param1);
}
@@ -938,7 +938,7 @@ void sub_0200D460 (CellActorData * param0, int param1)
sub_0200D448(param0->unk_00, param1);
}
-void sub_0200D46C (UnkStruct_02022550 * param0, int param1)
+void sub_0200D46C (GraphicElementData * param0, int param1)
{
sub_02021F58(param0, param1);
}
@@ -948,7 +948,7 @@ void sub_0200D474 (CellActorData * param0, int param1)
sub_0200D46C(param0->unk_00, param1);
}
-u32 sub_0200D480 (UnkStruct_02022550 * param0)
+u32 sub_0200D480 (GraphicElementData * param0)
{
return sub_02021F74(param0);
}
@@ -958,7 +958,7 @@ u32 sub_0200D488 (CellActorData * param0)
return sub_0200D480(param0->unk_00);
}
-void sub_0200D494 (UnkStruct_02022550 * param0, s16 param1, s16 param2)
+void sub_0200D494 (GraphicElementData * param0, s16 param1, s16 param2)
{
VecFx32 v0;
@@ -979,7 +979,7 @@ void sub_0200D4C4 (CellActorData * param0, s16 param1, s16 param2)
sub_0200D494(param0->unk_00, param1, param2);
}
-void sub_0200D4D0 (UnkStruct_02022550 * param0, s16 param1, s16 param2, fx32 param3)
+void sub_0200D4D0 (GraphicElementData * param0, s16 param1, s16 param2, fx32 param3)
{
VecFx32 v0;
@@ -1000,7 +1000,7 @@ void sub_0200D500 (CellActorData * param0, s16 param1, s16 param2, fx32 param3)
sub_0200D4D0(param0->unk_00, param1, param2, param3);
}
-void sub_0200D50C (UnkStruct_02022550 * param0, s16 * param1, s16 * param2)
+void sub_0200D50C (GraphicElementData * param0, s16 * param1, s16 * param2)
{
const VecFx32 * v0;
@@ -1019,7 +1019,7 @@ void sub_0200D550 (CellActorData * param0, s16 * param1, s16 * param2)
sub_0200D50C(param0->unk_00, param1, param2);
}
-void sub_0200D55C (UnkStruct_02022550 * param0, s16 * param1, s16 * param2, fx32 param3)
+void sub_0200D55C (GraphicElementData * param0, s16 * param1, s16 * param2, fx32 param3)
{
const VecFx32 * v0;
@@ -1038,7 +1038,7 @@ void sub_0200D5A0 (CellActorData * param0, s16 * param1, s16 * param2, fx32 para
sub_0200D55C(param0->unk_00, param1, param2, param3);
}
-void sub_0200D5AC (UnkStruct_02022550 * param0, s16 param1, s16 param2)
+void sub_0200D5AC (GraphicElementData * param0, s16 param1, s16 param2)
{
const VecFx32 * v0;
VecFx32 v1;
@@ -1114,7 +1114,7 @@ void sub_0200D67C (CellActorData * param0, fx32 * param1, fx32 * param2, fx32 pa
}
}
-void sub_0200D69C (UnkStruct_02022550 * param0, int param1)
+void sub_0200D69C (GraphicElementData * param0, int param1)
{
sub_02021CF8(param0, param1);
}
@@ -1124,7 +1124,7 @@ void sub_0200D6A4 (CellActorData * param0, int param1)
sub_0200D69C(param0->unk_00, param1);
}
-void sub_0200D6B0 (UnkStruct_02022550 * param0, f32 param1, f32 param2)
+void sub_0200D6B0 (GraphicElementData * param0, f32 param1, f32 param2)
{
const VecFx32 * v0;
VecFx32 * v1;
@@ -1143,7 +1143,7 @@ void sub_0200D6E8 (CellActorData * param0, f32 param1, f32 param2)
sub_0200D6B0(param0->unk_00, param1, param2);
}
-void sub_0200D6F4 (UnkStruct_02022550 * param0, f32 param1, f32 param2)
+void sub_0200D6F4 (GraphicElementData * param0, f32 param1, f32 param2)
{
const VecFx32 * v0;
VecFx32 * v1;
@@ -1162,7 +1162,7 @@ void sub_0200D74C (CellActorData * param0, f32 param1, f32 param2)
sub_0200D6F4(param0->unk_00, param1, param2);
}
-void sub_0200D758 (UnkStruct_02022550 * param0, f32 * param1, f32 * param2)
+void sub_0200D758 (GraphicElementData * param0, f32 * param1, f32 * param2)
{
const VecFx32 * v0;
VecFx32 * v1;
@@ -1178,7 +1178,7 @@ void sub_0200D788 (CellActorData * param0, f32 * param1, f32 * param2)
sub_0200D758(param0->unk_00, param1, param2);
}
-void sub_0200D794 (UnkStruct_02022550 * param0, u16 param1)
+void sub_0200D794 (GraphicElementData * param0, u16 param1)
{
sub_02021C94(param0, param1);
}
@@ -1188,7 +1188,7 @@ void sub_0200D79C (CellActorData * param0, u16 param1)
sub_0200D794(param0->unk_00, param1);
}
-void sub_0200D7A8 (UnkStruct_02022550 * param0, s32 param1)
+void sub_0200D7A8 (GraphicElementData * param0, s32 param1)
{
u16 v0;
@@ -1203,7 +1203,7 @@ void sub_0200D7C0 (CellActorData * param0, s32 param1)
sub_0200D7A8(param0->unk_00, param1);
}
-void sub_0200D7CC (UnkStruct_02022550 * param0, int param1)
+void sub_0200D7CC (GraphicElementData * param0, int param1)
{
sub_02021D0C(param0, param1);
}
@@ -1229,7 +1229,7 @@ void sub_0200D7FC (CellActorData * param0, BOOL param1)
sub_02021FA0(param0->unk_00, param1);
}
-void sub_0200D808 (UnkStruct_02022550 * param0, GXOamMode param1)
+void sub_0200D808 (GraphicElementData * param0, GXOamMode param1)
{
sub_02021FE0(param0, param1);
}
@@ -1244,7 +1244,7 @@ u32 sub_0200D81C (CellActorData * param0)
return sub_020220F4(param0->unk_00);
}
-BOOL sub_0200D828 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5, int param6)
+BOOL sub_0200D828 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5, int param6)
{
UnkStruct_02009DC8 * v0;
@@ -1266,7 +1266,7 @@ BOOL sub_0200D828 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int
return (v0 == NULL) ? 0 : 1;
}
-BOOL sub_0200D888 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5, int param6)
+BOOL sub_0200D888 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5, int param6)
{
UnkStruct_02009DC8 * v0;
@@ -1288,7 +1288,7 @@ BOOL sub_0200D888 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int
return (v0 == NULL) ? 0 : 1;
}
-BOOL sub_0200D8E8 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, BOOL param4, int param5, int param6)
+BOOL sub_0200D8E8 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, BOOL param4, int param5, int param6)
{
UnkStruct_02009DC8 * v0;
@@ -1310,7 +1310,7 @@ BOOL sub_0200D8E8 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NAR
return (v0 == NULL) ? 0 : 1;
}
-void sub_0200D948 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5)
+void sub_0200D948 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5)
{
UnkStruct_02009DC8 * v0;
@@ -1320,7 +1320,7 @@ void sub_0200D948 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int
sub_0200A4C0(v0);
}
-void sub_0200D97C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, int param3, BOOL param4, int param5)
+void sub_0200D97C (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, int param3, BOOL param4, int param5)
{
UnkStruct_02009DC8 * v0;
@@ -1330,12 +1330,12 @@ void sub_0200D97C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int
sub_0200A6B8(v0);
}
-UnkStruct_020218BC * sub_0200D9B0 (UnkStruct_0200C704 * param0)
+GraphicElementManager * sub_0200D9B0 (AnimationResourceCollection * param0)
{
return param0->unk_00;
}
-void sub_0200D9B4 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NARC * param2, int param3, BOOL param4, int param5)
+void sub_0200D9B4 (CellTransferStateData * param0, AnimationResourceCollection * param1, NARC * param2, int param3, BOOL param4, int param5)
{
UnkStruct_02009DC8 * v0;
diff --git a/src/unk_0200F174.c b/src/unk_0200F174.c
index 171f418b05..80cda35196 100644
--- a/src/unk_0200F174.c
+++ b/src/unk_0200F174.c
@@ -422,7 +422,7 @@ void sub_0200F634 (UnkStruct_0200F600 * param0, void * param1, UnkFuncPtr_0200F6
GF_ASSERT(param0->unk_08[param3] != NULL);
if ((param0->unk_10[0] == 0) && (param0->unk_10[1] == 0)) {
- v0 = sub_020177BC(sub_0200F61C, param0);
+ v0 = SetHBlankCallback(sub_0200F61C, param0);
}
GF_ASSERT(v0 == 1);
@@ -443,7 +443,7 @@ void sub_0200F6AC (UnkStruct_0200F600 * param0, int param1)
param0->unk_10[param1] = 0;
if ((param0->unk_10[0] == 0) && (param0->unk_10[1] == 0)) {
- sub_020177A4();
+ DisableHBlank();
}
param0->unk_08[param1] = sub_0200F764;
diff --git a/src/unk_02012744.c b/src/unk_02012744.c
index 37f906fdd7..ddf73f1fcb 100644
--- a/src/unk_02012744.c
+++ b/src/unk_02012744.c
@@ -15,7 +15,7 @@
#include "unk_020218BC.h"
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
int unk_04;
int unk_08;
} UnkStruct_02012CE0_sub1;
@@ -23,7 +23,7 @@ typedef struct {
typedef struct FontOAM {
UnkStruct_02012CE0_sub1 * unk_00;
int unk_04;
- const UnkStruct_02022550 * unk_08;
+ const GraphicElementData * unk_08;
int unk_0C;
int unk_10;
} FontOAM;
@@ -70,7 +70,7 @@ static void sub_02012E6C(const Window * param0, const UnkStruct_02013034 * param
static int sub_02012EE0(const Window * param0, const UnkStruct_02013034 * param1, NNSG2dImageProxy * param2, int param3, int param4, int param5, int param6, int param7);
static int sub_02013034(const UnkStruct_02013034 * param0, int param1);
static void sub_02013088(const UnkStruct_020127E8 * param0, const UnkStruct_02013034 * param1, const NNSG2dImageProxy * param2, FontOAM * param3);
-static UnkStruct_02022550 * sub_02013100(const UnkStruct_020127E8 * param0, const UnkStruct_02013034 * param1, const NNSG2dImageProxy * param2);
+static GraphicElementData * sub_02013100(const UnkStruct_020127E8 * param0, const UnkStruct_02013034 * param1, const NNSG2dImageProxy * param2);
static void sub_020130DC(FontOAM * param0);
static UnkStruct_02013034 * sub_02013188(int param0);
static void sub_020131A4(UnkStruct_02013034 * param0);
@@ -396,7 +396,7 @@ void sub_02012BE0 (FontOAM * param0, const UnkStruct_02012B20 * param1, const Wi
int v0;
char * v1;
NNSG2dImageProxy * v2;
- UnkStruct_02022550 * v3 = param0->unk_00[0].unk_00;
+ GraphicElementData * v3 = param0->unk_00[0].unk_00;
int v4;
v4 = sub_02021FC8(v3);
@@ -725,7 +725,7 @@ static void sub_020130DC (FontOAM * param0)
}
}
-static UnkStruct_02022550 * sub_02013100 (const UnkStruct_020127E8 * param0, const UnkStruct_02013034 * param1, const NNSG2dImageProxy * param2)
+static GraphicElementData * sub_02013100 (const UnkStruct_020127E8 * param0, const UnkStruct_02013034 * param1, const NNSG2dImageProxy * param2)
{
UnkStruct_ov83_0223D9A8 v0;
UnkStruct_ov19_021DA864 v1;
@@ -803,7 +803,7 @@ static void sub_020131D0 (UnkStruct_02013034 * param0, UnkStruct_02013034 * para
param1->unk_0C = param0;
}
-void sub_020131E0 (FontOAM * param0, const UnkStruct_02022550 * param1)
+void sub_020131E0 (FontOAM * param0, const GraphicElementData * param1)
{
param0->unk_08 = param1;
sub_02012938(param0);
diff --git a/src/unk_0201378C.c b/src/unk_0201378C.c
deleted file mode 100644
index a6f9bf90a6..0000000000
--- a/src/unk_0201378C.c
+++ /dev/null
@@ -1,212 +0,0 @@
-#include
-#include
-#include
-
-#include "inlines.h"
-
-#include "unk_0201378C.h"
-
-typedef struct {
- BOOL unk_00;
- BOOL unk_04;
- int unk_08;
- RTCResult unk_0C;
- RTCDate unk_10;
- RTCTime unk_20;
- RTCDate unk_2C;
- RTCTime unk_3C;
-} UnkStruct_021BF5C8;
-
-static void sub_020137EC(RTCResult param0, void * param1);
-static void sub_02013824(UnkStruct_021BF5C8 * param0);
-
-static UnkStruct_021BF5C8 Unk_021BF5C8;
-
-void sub_0201378C (void)
-{
- RTC_Init();
- memset(&Unk_021BF5C8, 0, sizeof(Unk_021BF5C8));
- Unk_021BF5C8.unk_00 = 0;
- Unk_021BF5C8.unk_04 = 0;
- Unk_021BF5C8.unk_08 = 0;
- sub_02013824(&Unk_021BF5C8);
-}
-
-void sub_020137C4 (void)
-{
- RTCResult v0;
-
- if (Unk_021BF5C8.unk_04) {
- return;
- }
-
- Unk_021BF5C8.unk_08++;
-
- if (Unk_021BF5C8.unk_08 > 10) {
- Unk_021BF5C8.unk_08 = 0;
- sub_02013824(&Unk_021BF5C8);
- }
-}
-
-static void sub_020137EC (RTCResult param0, void * param1)
-{
- UnkStruct_021BF5C8 * v0 = param1;
-
- v0->unk_0C = param0;
-
- GF_ASSERT(param0 == RTC_RESULT_SUCCESS);
-
- v0->unk_00 = 1;
- v0->unk_10 = v0->unk_2C;
- v0->unk_20 = v0->unk_3C;
- v0->unk_04 = 0;
-}
-
-static void sub_02013824 (UnkStruct_021BF5C8 * param0)
-{
- param0->unk_04 = 1;
- param0->unk_0C = RTC_GetDateTimeAsync(¶m0->unk_2C, ¶m0->unk_3C, sub_020137EC, param0);
- GF_ASSERT(param0->unk_0C == RTC_RESULT_SUCCESS);
-}
-
-static inline RTCDate * inline_0201384C (UnkStruct_021BF5C8 * param0)
-{
- return ¶m0->unk_10;
-}
-
-static inline RTCTime * inline_02013880 (UnkStruct_021BF5C8 * param0)
-{
- return ¶m0->unk_20;
-}
-
-void sub_0201384C (RTCDate * param0, RTCTime * param1)
-{
- GF_ASSERT(Unk_021BF5C8.unk_00 == 1);
-
- *param0 = *inline_0201384C(&Unk_021BF5C8);
- *param1 = *inline_02013880(&Unk_021BF5C8);
-}
-
-void sub_02013880 (RTCTime * param0)
-{
- GF_ASSERT(Unk_021BF5C8.unk_00 == 1);
- *param0 = *inline_02013880(&Unk_021BF5C8);
-}
-
-void sub_020138A4 (RTCDate * param0)
-{
- GF_ASSERT(Unk_021BF5C8.unk_00 == 1);
- *param0 = *inline_0201384C(&Unk_021BF5C8);
-}
-
-int sub_020138C8 (void)
-{
- RTCTime * v0;
-
- v0 = inline_02013880(&Unk_021BF5C8);
- return v0->hour * 60 * 60 + v0->minute * 60 + v0->second;
-}
-
-s64 sub_020138EC (void)
-{
- return RTC_ConvertDateTimeToSecond(inline_0201384C(&Unk_021BF5C8), inline_02013880(&Unk_021BF5C8));
-}
-
-int sub_02013900 (const RTCDate * param0)
-{
- int v0, v1, v2;
- static const u16 v3[12] = {
- 0x0,
- 0x1F,
- 0x3B,
- 0x5A,
- 0x78,
- 0x97,
- 0xB5,
- 0xD4,
- 0xF3,
- 0x111,
- 0x130,
- 0x14E
- };
-
- v1 = param0->day;
- v1 += v3[param0->month - 1];
-
- if (param0->month >= 3) {
- v0 = param0->year;
-
- if (((v0 % 4 == 0) && (v0 % 100 != 0)) || (v0 % 400 == 0)) {
- v1++;
- }
- }
-
- return v1;
-}
-
-BOOL sub_02013948 (void)
-{
- switch (sub_02013960()) {
- case 4:
- case 3:
- return 1;
- }
-
- return 0;
-}
-
-int sub_02013960 (void)
-{
- RTCTime v0;
-
- sub_02013880(&v0);
- return sub_02013974(v0.hour);
-}
-
-int sub_02013974 (int param0)
-{
- static const u8 v0[24] = {
- 0x4,
- 0x4,
- 0x4,
- 0x4,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x0,
- 0x1,
- 0x1,
- 0x1,
- 0x1,
- 0x1,
- 0x1,
- 0x1,
- 0x2,
- 0x2,
- 0x2,
- 0x3,
- 0x3,
- 0x3,
- 0x3
- };
-
- GF_ASSERT(0 <= param0 && param0 < 24);
- return v0[param0];
-}
-
-s64 sub_0201398C (s64 param0, s64 param1)
-{
- RTCDate v0 = {99, 12, 31, 0};
- RTCTime v1 = {23, 59, 59};
- s64 v2 = RTC_ConvertDateTimeToSecond(&v0, &v1);
-
- GF_ASSERT(v2 == 3155759999);
-
- if (param0 < param1) {
- return param1 - param0;
- }
-
- return param1 + (3155759999 - param0);
-}
diff --git a/src/unk_02013A04.c b/src/unk_02013A04.c
index 42b72e7061..333d447cd4 100644
--- a/src/unk_02013A04.c
+++ b/src/unk_02013A04.c
@@ -12,11 +12,11 @@
#include "heap.h"
#include "strbuf.h"
-static UnkStruct_02013A04 * sub_02013AAC(UnkStruct_02013A04 * param0, u32 * param1);
+static ResourceMetadata * sub_02013AAC(ResourceMetadata * param0, u32 * param1);
-UnkStruct_02013A04 * sub_02013A04 (u32 param0, u32 param1)
+ResourceMetadata * sub_02013A04 (u32 param0, u32 param1)
{
- UnkStruct_02013A04 * v0 = Heap_AllocFromHeap(param1, sizeof(UnkStruct_02013A04) * (param0 + 1));
+ ResourceMetadata * v0 = Heap_AllocFromHeap(param1, sizeof(ResourceMetadata) * (param0 + 1));
if (v0) {
u32 v1;
@@ -33,13 +33,13 @@ UnkStruct_02013A04 * sub_02013A04 (u32 param0, u32 param1)
return v0;
}
-void sub_02013A3C (UnkStruct_02013A04 * param0)
+void sub_02013A3C (ResourceMetadata * param0)
{
sub_02013AE8(param0);
Heap_FreeToHeap(param0);
}
-void sub_02013A4C (UnkStruct_02013A04 * param0, const MessageLoader * param1, u32 param2, u32 param3)
+void sub_02013A4C (ResourceMetadata * param0, const MessageLoader * param1, u32 param2, u32 param3)
{
u32 v0;
@@ -51,7 +51,7 @@ void sub_02013A4C (UnkStruct_02013A04 * param0, const MessageLoader * param1, u3
}
}
-void sub_02013A6C (UnkStruct_02013A04 * param0, const Strbuf *param1, u32 param2)
+void sub_02013A6C (ResourceMetadata * param0, const Strbuf *param1, u32 param2)
{
u32 v0;
@@ -63,7 +63,7 @@ void sub_02013A6C (UnkStruct_02013A04 * param0, const Strbuf *param1, u32 param2
}
}
-void sub_02013A90 (UnkStruct_02013A04 * param0, const UnkStruct_02013A04 * param1)
+void sub_02013A90 (ResourceMetadata * param0, const ResourceMetadata * param1)
{
u32 v0;
@@ -75,9 +75,9 @@ void sub_02013A90 (UnkStruct_02013A04 * param0, const UnkStruct_02013A04 * param
}
}
-static UnkStruct_02013A04 * sub_02013AAC (UnkStruct_02013A04 * param0, u32 * param1)
+static ResourceMetadata * sub_02013AAC (ResourceMetadata * param0, u32 * param1)
{
- UnkStruct_02013A04 * v0;
+ ResourceMetadata * v0;
while (param0->unk_00 != NULL) {
if (param0->unk_00 == ((const void *)0xffffffff)) {
@@ -99,9 +99,9 @@ static UnkStruct_02013A04 * sub_02013AAC (UnkStruct_02013A04 * param0, u32 * par
return v0;
}
-void sub_02013AE8 (UnkStruct_02013A04 * param0)
+void sub_02013AE8 (ResourceMetadata * param0)
{
- UnkStruct_02013A04 * v0 = param0;
+ ResourceMetadata * v0 = param0;
while (v0->unk_00 != ((const void *)0xffffffff)) {
if (v0->unk_00 == NULL) {
diff --git a/src/unk_02017498.c b/src/unk_02017498.c
index e9cd447ce0..57c184eea5 100644
--- a/src/unk_02017498.c
+++ b/src/unk_02017498.c
@@ -37,8 +37,8 @@ int sub_02017498 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_02017498 * v0;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
diff --git a/src/unk_02017728.c b/src/unk_02017728.c
index 90c194df29..d572550ff1 100644
--- a/src/unk_02017728.c
+++ b/src/unk_02017728.c
@@ -3,7 +3,6 @@
#include "core_sys.h"
-#include "functypes/funcptr_02017798.h"
#include "struct_defs/struct_02017E74.h"
#include "unk_02017728.h"
@@ -17,7 +16,7 @@ typedef struct {
u32 unk_04;
} UnkStruct_021BF6F0;
-static void sub_02017808(BOOL param0);
+static void SetHBlankEnabled(BOOL param0);
void sub_0201777C(void);
static void ApplyButtonModeToInput(void);
@@ -46,31 +45,31 @@ void sub_0201777C (void)
(void)OS_EnableIrqMask(OS_IE_V_BLANK);
}
-void sub_02017798 (UnkFuncPtr_02017798 param0, void * param1)
+void SetMainCallback (Callback cb, void * data)
{
- gCoreSys.unk_00 = param0;
- gCoreSys.unk_04 = param1;
+ gCoreSys.mainCallback = cb;
+ gCoreSys.mainCallbackData = data;
}
-void sub_020177A4 (void)
+void DisableHBlank (void)
{
- sub_02017808(0);
- gCoreSys.unk_08 = NULL;
- gCoreSys.unk_0C = NULL;
+ SetHBlankEnabled(0);
+ gCoreSys.hblankCallback = NULL;
+ gCoreSys.hblankCallbackData = NULL;
}
-BOOL sub_020177BC (UnkFuncPtr_02017798 param0, void * param1)
+BOOL SetHBlankCallback (Callback cb, void * data)
{
- if (param0 == NULL) {
- sub_02017808(0);
- gCoreSys.unk_08 = NULL;
- gCoreSys.unk_0C = NULL;
+ if (cb == NULL) {
+ SetHBlankEnabled(0);
+ gCoreSys.hblankCallback = NULL;
+ gCoreSys.hblankCallbackData = NULL;
return 1;
} else {
- if (gCoreSys.unk_08 == NULL) {
- gCoreSys.unk_0C = param1;
- gCoreSys.unk_08 = param0;
- sub_02017808(1);
+ if (gCoreSys.hblankCallback == NULL) {
+ gCoreSys.hblankCallbackData = data;
+ gCoreSys.hblankCallback = cb;
+ SetHBlankEnabled(1);
return 1;
} else {
return 0;
@@ -78,29 +77,28 @@ BOOL sub_020177BC (UnkFuncPtr_02017798 param0, void * param1)
}
}
-static void sub_020177F4 (void)
+static void HBlankIntr (void)
{
- if (gCoreSys.unk_08) {
- gCoreSys.unk_08(gCoreSys.unk_0C);
+ if (gCoreSys.hblankCallback) {
+ gCoreSys.hblankCallback(gCoreSys.hblankCallbackData);
}
}
-static void sub_02017808 (BOOL param0)
+static void SetHBlankEnabled (BOOL enabled)
{
- OSIrqMask v0;
+ OSIrqMask savedMask;
OS_DisableIrq( );
- if (param0 == 0) {
- v0 = OS_GetIrqMask();
+ if (!enabled) {
+ savedMask = OS_GetIrqMask();
OS_DisableIrqMask(OS_IE_H_BLANK);
- (void)GX_HBlankIntr(0);
+ GX_HBlankIntr(0);
} else {
- v0 = OS_GetIrqMask();
-
- OS_SetIrqFunction(OS_IE_H_BLANK, sub_020177F4);
+ savedMask = OS_GetIrqMask();
+ OS_SetIrqFunction(OS_IE_H_BLANK, HBlankIntr);
OS_EnableIrqMask(OS_IE_H_BLANK);
- (void)GX_HBlankIntr(1);
+ GX_HBlankIntr(1);
}
OS_EnableIrq( );
@@ -175,12 +173,12 @@ void sub_0201789C (void)
FS_LoadTable(v1, v0);
}
- gCoreSys.unk_00 = NULL;
- gCoreSys.unk_08 = NULL;
+ gCoreSys.mainCallback = NULL;
+ gCoreSys.hblankCallback = NULL;
gCoreSys.unk_10 = NULL;
gCoreSys.unk_14 = NULL;
- gCoreSys.unk_70 = NULL;
- gCoreSys.unk_2C = 0;
+ gCoreSys.heapCanary = NULL;
+ gCoreSys.frameCounter = 0;
gCoreSys.unk_65 = 0;
CARD_SetCacheFlushThreshold(0x500, 0x2400);
@@ -188,12 +186,12 @@ void sub_0201789C (void)
sub_0201D640(0);
}
-void sub_020179E4 (void)
+void InitGraphics (void)
{
GX_SetBankForLCDC(GX_VRAM_LCDC_ALL);
MI_CpuClearFast((void *)HW_LCDC_VRAM, HW_LCDC_VRAM_SIZE);
- (void)GX_DisableBankForLCDC();
+ GX_DisableBankForLCDC();
MI_CpuFillFast((void *)HW_OAM, 192, HW_OAM_SIZE);
MI_CpuFillFast((void *)HW_DB_OAM, 192, HW_DB_OAM_SIZE);
@@ -303,14 +301,14 @@ void sub_02017B70 (int param0)
gCoreSys.unk_66 = param0;
}
-void sub_02017B7C (u8 param0)
+void SleepLock (u8 param0)
{
- gCoreSys.unk_67 |= param0;
+ gCoreSys.inhibitSleep |= param0;
}
-void sub_02017B8C (u8 param0)
+void SleepUnlock (u8 param0)
{
- gCoreSys.unk_67 &= ~(param0);
+ gCoreSys.inhibitSleep &= ~(param0);
}
void ReadKeypadAndTouchpad (void)
@@ -474,36 +472,38 @@ void SetAutorepeat (int rate, int delay)
gCoreSys.autorepeatDelay = delay;
}
-void sub_02017DE0 (u8 param0)
+void ResetLock (u8 param0)
{
- gCoreSys.unk_68 |= param0;
+ gCoreSys.inhibitReset |= param0;
}
-void sub_02017DF0 (u8 param0)
+void ResetUnlock (u8 param0)
{
- gCoreSys.unk_68 &= ~(param0);
+ gCoreSys.inhibitReset &= ~(param0);
}
-void sub_02017E00 (int param0)
-{
- GF_ASSERT(gCoreSys.unk_70 == NULL);
+#define HEAP_CANARY 0x2f93a1bc
- gCoreSys.unk_70 = Heap_AllocFromHeapAtEnd(param0, sizeof(u32));
- *(gCoreSys.unk_70) = 0x2f93a1bc;
+void InitHeapCanary (int heapID)
+{
+ GF_ASSERT(gCoreSys.heapCanary == NULL);
+
+ gCoreSys.heapCanary = Heap_AllocFromHeapAtEnd(heapID, sizeof(u32));
+ *(gCoreSys.heapCanary) = HEAP_CANARY;
}
-void sub_02017E2C (void)
+void FreeHeapCanary (void)
{
- GF_ASSERT(gCoreSys.unk_70 != NULL);
+ GF_ASSERT(gCoreSys.heapCanary != NULL);
- *(gCoreSys.unk_70) = 0;
- Heap_FreeToHeap(gCoreSys.unk_70);
- gCoreSys.unk_70 = NULL;
+ *(gCoreSys.heapCanary) = 0;
+ Heap_FreeToHeap(gCoreSys.heapCanary);
+ gCoreSys.heapCanary = NULL;
}
-BOOL sub_02017E54 (void)
+BOOL HeapCanaryOK (void)
{
- if ((gCoreSys.unk_70 != NULL) && (*(gCoreSys.unk_70) == 0x2f93a1bc)) {
+ if (gCoreSys.heapCanary && *gCoreSys.heapCanary == HEAP_CANARY) {
return 1;
}
diff --git a/src/unk_0201C970.c b/src/unk_0201C970.c
index b49b77f634..99e409da8d 100644
--- a/src/unk_0201C970.c
+++ b/src/unk_0201C970.c
@@ -92,7 +92,7 @@ void sub_0201CAB0 (NNSG3dRenderObj * param0, const VecFx32 * param1, const MtxFx
NNS_G3dGeFlushBuffer();
}
-static UnkStruct_0207C690 * Unk_021BFB0C = NULL;
+static GenericPointerData * Unk_021BFB0C = NULL;
void sub_0201CAF4 (const u8 param0)
{
diff --git a/src/unk_0201E010.c b/src/unk_0201E010.c
index 97aabf87b8..8f68bcbaec 100644
--- a/src/unk_0201E010.c
+++ b/src/unk_0201E010.c
@@ -5,19 +5,19 @@
#include "unk_0201E010.h"
-void sub_0201E010 (const UnkStruct_020F1DB8 * param0, u8 * param1, u8 * param2)
+void sub_0201E010 (const ByteFlagSet * param0, u8 * param1, u8 * param2)
{
*param1 = param0->unk_00;
*param2 = param0->unk_01;
}
-void sub_0201E01C (const UnkStruct_020F1DB8 * param0, u8 * param1, u8 * param2)
+void sub_0201E01C (const ByteFlagSet * param0, u8 * param1, u8 * param2)
{
*param1 = param0->unk_02;
*param2 = param0->unk_03;
}
-u8 sub_0201E028 (const UnkStruct_020F1DB8 * param0, u8 * param1, u8 * param2, u8 * param3, u8 * param4, u8 param5, u8 param6)
+u8 sub_0201E028 (const ByteFlagSet * param0, u8 * param1, u8 * param2, u8 * param3, u8 * param4, u8 param5, u8 param6)
{
u8 v0 = param5;
diff --git a/src/unk_0201E3D8.c b/src/unk_0201E3D8.c
index c1b9c87f90..247031d2e7 100644
--- a/src/unk_0201E3D8.c
+++ b/src/unk_0201E3D8.c
@@ -193,7 +193,7 @@ void sub_0201E5C0 (TPData * param0, u32 param1)
}
}
-void sub_0201E5FC (void)
+void AfterSleep (void)
{
u32 v0;
@@ -211,7 +211,7 @@ void sub_0201E5FC (void)
Unk_021C0704.unk_5A = 0;
}
-void sub_0201E630 (void)
+void BeforeSleep (void)
{
u32 v0;
diff --git a/src/unk_020218BC.c b/src/unk_020218BC.c
index 9384e9d2e8..e52f8e7041 100644
--- a/src/unk_020218BC.c
+++ b/src/unk_020218BC.c
@@ -14,14 +14,14 @@ typedef struct {
const NNSG2dCellDataBank * unk_00;
const NNSG2dCellAnimBankData * unk_04;
NNSG2dCellAnimation unk_08;
-} UnkStruct_02021D44;
+} CellAnimationData;
typedef struct {
NNSG2dCellDataBank * unk_00;
const NNSG2dCellAnimBankData * unk_04;
NNSG2dCellAnimation unk_08;
u32 unk_60;
-} UnkStruct_02021BD4;
+} CellDataAnimationWrapper;
typedef struct {
const NNSG2dCellDataBank * unk_00;
@@ -31,9 +31,9 @@ typedef struct {
const NNSG2dMultiCellAnimBankData * unk_70;
NNSG2dNode * unk_74;
NNSG2dCellAnimation * unk_78;
-} UnkStruct_02021E2C;
+} MultiCellAnimationData;
-typedef struct UnkStruct_02022550_t {
+typedef struct GraphicElementData_t {
VecFx32 unk_00;
VecFx32 unk_0C;
VecFx32 unk_18;
@@ -48,7 +48,7 @@ typedef struct UnkStruct_02022550_t {
u8 unk_34;
u8 unk_35;
fx32 unk_38;
- UnkStruct_020218BC * unk_3C;
+ GraphicElementManager * unk_3C;
u32 unk_40[29];
NNSG2dImageProxy unk_B4;
NNSG2dImagePaletteProxy unk_D8;
@@ -57,64 +57,64 @@ typedef struct UnkStruct_02022550_t {
u8 unk_F2;
u16 unk_F4;
NNS_G2D_VRAM_TYPE unk_F8;
- struct UnkStruct_02022550_t * unk_FC;
- struct UnkStruct_02022550_t * unk_100;
-} UnkStruct_02022550;
+ struct GraphicElementData_t * unk_FC;
+ struct GraphicElementData_t * unk_100;
+} GraphicElementData;
-typedef struct UnkStruct_020218BC_t {
- UnkStruct_02022550 * unk_00;
+typedef struct GraphicElementManager_t {
+ GraphicElementData * unk_00;
int unk_04;
- UnkStruct_02022550 ** unk_08;
+ GraphicElementData ** unk_08;
int unk_0C;
- UnkStruct_02022550 unk_10;
+ GraphicElementData unk_10;
NNSG2dRendererInstance * unk_110;
void * unk_114;
NNSG2dCellAnimBankData * unk_118;
u32 unk_11C;
-} UnkStruct_020218BC;
+} GraphicElementManager;
-typedef void (* UnkFuncPtr_020219F8)(const UnkStruct_020218BC *, UnkStruct_02022550 *);
-typedef void (* UnkFuncPtr_020219F8_1)(UnkStruct_02022550 *);
+typedef void (* GraphicElementUpdateFunc)(const GraphicElementManager *, GraphicElementData *);
+typedef void (* GraphicElementInitializeFunc)(GraphicElementData *);
-static void sub_02021A50(UnkStruct_020218BC * param0);
+static void sub_02021A50(GraphicElementManager * param0);
static u32 sub_020221B8(const UnkStruct_ov19_021DA864 * param0);
-static void sub_020221D0(const NNSG2dCellDataBank * param0, UnkStruct_02022550 * param1);
-static void sub_020221D4(const NNSG2dCellAnimBankData * param0, UnkStruct_02022550 * param1);
-static void sub_020221D8(const NNSG2dMultiCellDataBank * param0, UnkStruct_02022550 * param1);
-static void sub_020221E0(const NNSG2dMultiCellAnimBankData * param0, UnkStruct_02022550 * param1);
-static void sub_020221E8(UnkStruct_02022550 * param0, int param1);
-static void sub_02022208(const UnkStruct_ov19_021DA864 * param0, UnkStruct_02022550 * param1, int param2);
-static void sub_02022264(UnkStruct_02022550 * param0, int param1);
-static BOOL sub_02022110(const UnkStruct_020218BC * param0, const UnkStruct_ov19_021DA864 * param1, UnkStruct_02022550 * param2, int param3);
+static void sub_020221D0(const NNSG2dCellDataBank * param0, GraphicElementData * param1);
+static void sub_020221D4(const NNSG2dCellAnimBankData * param0, GraphicElementData * param1);
+static void sub_020221D8(const NNSG2dMultiCellDataBank * param0, GraphicElementData * param1);
+static void sub_020221E0(const NNSG2dMultiCellAnimBankData * param0, GraphicElementData * param1);
+static void sub_020221E8(GraphicElementData * param0, int param1);
+static void sub_02022208(const UnkStruct_ov19_021DA864 * param0, GraphicElementData * param1, int param2);
+static void sub_02022264(GraphicElementData * param0, int param1);
+static BOOL sub_02022110(const GraphicElementManager * param0, const UnkStruct_ov19_021DA864 * param1, GraphicElementData * param2, int param3);
static u32 sub_020222C4(const NNSG2dImagePaletteProxy * param0, u32 param1);
-static void sub_020222F4(const UnkStruct_020218BC * param0, UnkStruct_02022550 * param1);
-static void sub_02022450(const UnkStruct_020218BC * param0, UnkStruct_02022550 * param1);
-static void sub_02022454(UnkStruct_02022550 * param0);
-static void sub_02022460(UnkStruct_02022550 * param0);
-static void sub_02022464(UnkStruct_020218BC * param0, UnkStruct_02022550 * param1);
-static void sub_020224FC(UnkStruct_02022550 * param0);
-static void sub_02022518(UnkStruct_020218BC * param0);
-static UnkStruct_02022550 * sub_02022550(UnkStruct_020218BC * param0);
-static BOOL sub_0202256C(UnkStruct_020218BC * param0, UnkStruct_02022550 * param1);
+static void sub_020222F4(const GraphicElementManager * param0, GraphicElementData * param1);
+static void sub_02022450(const GraphicElementManager * param0, GraphicElementData * param1);
+static void sub_02022454(GraphicElementData * param0);
+static void sub_02022460(GraphicElementData * param0);
+static void sub_02022464(GraphicElementManager * param0, GraphicElementData * param1);
+static void sub_020224FC(GraphicElementData * param0);
+static void sub_02022518(GraphicElementManager * param0);
+static GraphicElementData * sub_02022550(GraphicElementManager * param0);
+static BOOL sub_0202256C(GraphicElementManager * param0, GraphicElementData * param1);
-UnkStruct_020218BC * sub_020218BC (const UnkStruct_020095C4 * param0)
+GraphicElementManager * sub_020218BC (const UnkStruct_020095C4 * param0)
{
- UnkStruct_020218BC * v0;
+ GraphicElementManager * v0;
int v1;
GF_ASSERT(param0);
GF_ASSERT(param0->unk_04);
- v0 = Heap_AllocFromHeap(param0->unk_08, sizeof(UnkStruct_020218BC));
+ v0 = Heap_AllocFromHeap(param0->unk_08, sizeof(GraphicElementManager));
GF_ASSERT(v0);
sub_02021A50(v0);
- v0->unk_00 = Heap_AllocFromHeap(param0->unk_08, sizeof(UnkStruct_02022550) * param0->unk_00);
+ v0->unk_00 = Heap_AllocFromHeap(param0->unk_08, sizeof(GraphicElementData) * param0->unk_00);
GF_ASSERT(v0->unk_00);
v0->unk_04 = param0->unk_00;
- v0->unk_08 = Heap_AllocFromHeap(param0->unk_08, sizeof(UnkStruct_02022550 *) * param0->unk_00);
+ v0->unk_08 = Heap_AllocFromHeap(param0->unk_08, sizeof(GraphicElementData *) * param0->unk_00);
GF_ASSERT(v0->unk_08);
sub_02022518(v0);
@@ -131,7 +131,7 @@ UnkStruct_020218BC * sub_020218BC (const UnkStruct_020095C4 * param0)
return v0;
}
-BOOL sub_02021964 (UnkStruct_020218BC * param0)
+BOOL sub_02021964 (GraphicElementManager * param0)
{
if (param0 == NULL) {
return 0;
@@ -155,7 +155,7 @@ BOOL sub_02021964 (UnkStruct_020218BC * param0)
return 1;
}
-BOOL sub_020219A4 (UnkStruct_020218BC * param0, u8 param1)
+BOOL sub_020219A4 (GraphicElementManager * param0, u8 param1)
{
if (param0 == NULL) {
return 0;
@@ -170,10 +170,10 @@ BOOL sub_020219A4 (UnkStruct_020218BC * param0, u8 param1)
return 1;
}
-BOOL sub_020219C0 (UnkStruct_020218BC * param0)
+BOOL sub_020219C0 (GraphicElementManager * param0)
{
- UnkStruct_02022550 * v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v0;
+ GraphicElementData * v1;
if (param0 == NULL) {
return 0;
@@ -194,14 +194,14 @@ BOOL sub_020219C0 (UnkStruct_020218BC * param0)
return 1;
}
-void sub_020219F8 (const UnkStruct_020218BC * param0)
+void sub_020219F8 (const GraphicElementManager * param0)
{
- UnkStruct_02022550 * v0;
- static const UnkFuncPtr_020219F8 v1[] = {
+ GraphicElementData * v0;
+ static const GraphicElementUpdateFunc v1[] = {
sub_02022450,
sub_020222F4
};
- static const UnkFuncPtr_020219F8_1 v2[] = {
+ static const GraphicElementInitializeFunc v2[] = {
sub_02022460,
sub_02022454
};
@@ -221,7 +221,7 @@ void sub_020219F8 (const UnkStruct_020218BC * param0)
}
}
-static void sub_02021A50 (UnkStruct_020218BC * param0)
+static void sub_02021A50 (GraphicElementManager * param0)
{
param0->unk_00 = NULL;
param0->unk_04 = 0;
@@ -233,12 +233,12 @@ static void sub_02021A50 (UnkStruct_020218BC * param0)
param0->unk_11C = 0;
}
-void sub_02021A78 (UnkStruct_02022550 * param0)
+void sub_02021A78 (GraphicElementData * param0)
{
int v0;
param0->unk_3C = NULL;
- memset(param0, 0, sizeof(UnkStruct_02022550));
+ memset(param0, 0, sizeof(GraphicElementData));
NNS_G2dInitImageProxy(¶m0->unk_B4);
NNS_G2dInitImagePaletteProxy(¶m0->unk_D8);
@@ -246,9 +246,9 @@ void sub_02021A78 (UnkStruct_02022550 * param0)
param0->unk_30 = GX_OAM_MODE_NORMAL;
}
-UnkStruct_02022550 * sub_02021AA0 (const UnkStruct_ov115_02261520 * param0)
+GraphicElementData * sub_02021AA0 (const UnkStruct_ov115_02261520 * param0)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
v0 = sub_02022550(param0->unk_00);
@@ -289,7 +289,7 @@ UnkStruct_02022550 * sub_02021AA0 (const UnkStruct_ov115_02261520 * param0)
return v0;
}
-UnkStruct_02022550 * sub_02021B90 (const UnkStruct_ov83_0223D9A8 * param0)
+GraphicElementData * sub_02021B90 (const UnkStruct_ov83_0223D9A8 * param0)
{
UnkStruct_ov115_02261520 v0;
@@ -307,19 +307,19 @@ UnkStruct_02022550 * sub_02021B90 (const UnkStruct_ov83_0223D9A8 * param0)
return sub_02021AA0(&v0);
}
-void sub_02021BD4 (UnkStruct_02022550 * param0)
+void sub_02021BD4 (GraphicElementData * param0)
{
- UnkStruct_020218BC * v0;
+ GraphicElementManager * v0;
if (param0->unk_EC != 0) {
- UnkStruct_02021D44 * v1 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v1 = (CellAnimationData *)¶m0->unk_40;
if (param0->unk_FC != NULL) {
sub_020224FC(param0);
}
if (param0->unk_EC == 3) {
- UnkStruct_02021BD4 * v2 = (UnkStruct_02021BD4 *)¶m0->unk_40;
+ CellDataAnimationWrapper * v2 = (CellDataAnimationWrapper *)¶m0->unk_40;
if (NNS_G2dGetImageLocation(¶m0->unk_B4, param0->unk_F8) != NNS_G2D_VRAM_ADDR_NONE) {
NNS_G2dFreeCellTransferStateHandle(v2->unk_60);
@@ -327,7 +327,7 @@ void sub_02021BD4 (UnkStruct_02022550 * param0)
}
if (param0->unk_EC == 2) {
- UnkStruct_02021E2C * v3 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v3 = (MultiCellAnimationData *)¶m0->unk_40;
if (v3->unk_74 != NULL) {
Heap_FreeToHeap(v3->unk_74);
@@ -340,44 +340,44 @@ void sub_02021BD4 (UnkStruct_02022550 * param0)
param0->unk_EC = 0;
- v0 = (UnkStruct_020218BC *)param0->unk_3C;
+ v0 = (GraphicElementManager *)param0->unk_3C;
sub_0202256C(v0, param0);
}
}
-void sub_02021C50 (UnkStruct_02022550 * param0, const VecFx32 * param1)
+void sub_02021C50 (GraphicElementData * param0, const VecFx32 * param1)
{
param0->unk_00 = *param1;
}
-void sub_02021C60 (UnkStruct_02022550 * param0, const VecFx32 * param1)
+void sub_02021C60 (GraphicElementData * param0, const VecFx32 * param1)
{
param0->unk_0C = *param1;
}
-void sub_02021C70 (UnkStruct_02022550 * param0, const VecFx32 * param1)
+void sub_02021C70 (GraphicElementData * param0, const VecFx32 * param1)
{
param0->unk_18 = *param1;
}
-void sub_02021C80 (UnkStruct_02022550 * param0, const VecFx32 * param1, int param2)
+void sub_02021C80 (GraphicElementData * param0, const VecFx32 * param1, int param2)
{
sub_02021C70(param0, param1);
sub_02021CF8(param0, param2);
}
-void sub_02021C94 (UnkStruct_02022550 * param0, u16 param1)
+void sub_02021C94 (GraphicElementData * param0, u16 param1)
{
param0->unk_24 = param1;
}
-void sub_02021C98 (UnkStruct_02022550 * param0, u16 param1, int param2)
+void sub_02021C98 (GraphicElementData * param0, u16 param1, int param2)
{
sub_02021C94(param0, param1);
sub_02021CF8(param0, param2);
}
-void sub_02021CAC (UnkStruct_02022550 * param0, int param1)
+void sub_02021CAC (GraphicElementData * param0, int param1)
{
GF_ASSERT(param0);
GF_ASSERT(param1 < 2);
@@ -385,7 +385,7 @@ void sub_02021CAC (UnkStruct_02022550 * param0, int param1)
param0->unk_34 = param1;
}
-void sub_02021CC8 (UnkStruct_02022550 * param0, int param1)
+void sub_02021CC8 (GraphicElementData * param0, int param1)
{
GF_ASSERT(param0);
GF_ASSERT(param1 < 2);
@@ -393,21 +393,21 @@ void sub_02021CC8 (UnkStruct_02022550 * param0, int param1)
param0->unk_35 = param1;
}
-void sub_02021CE4 (UnkStruct_02022550 * param0, fx32 param1)
+void sub_02021CE4 (GraphicElementData * param0, fx32 param1)
{
GF_ASSERT(param0);
param0->unk_38 = param1;
}
-void sub_02021CF8 (UnkStruct_02022550 * param0, int param1)
+void sub_02021CF8 (GraphicElementData * param0, int param1)
{
GF_ASSERT(param0);
param0->unk_26 = param1;
}
-void sub_02021D0C (UnkStruct_02022550 * param0, int param1)
+void sub_02021D0C (GraphicElementData * param0, int param1)
{
GF_ASSERT(param0);
@@ -415,49 +415,49 @@ void sub_02021D0C (UnkStruct_02022550 * param0, int param1)
param0->unk_26 = 0;
}
-const VecFx32 * sub_02021D28 (const UnkStruct_02022550 * param0)
+const VecFx32 * sub_02021D28 (const GraphicElementData * param0)
{
return ¶m0->unk_00;
}
-const VecFx32 * sub_02021D2C (const UnkStruct_02022550 * param0)
+const VecFx32 * sub_02021D2C (const GraphicElementData * param0)
{
return ¶m0->unk_18;
}
-u16 sub_02021D30 (const UnkStruct_02022550 * param0)
+u16 sub_02021D30 (const GraphicElementData * param0)
{
return param0->unk_24;
}
-int sub_02021D34 (const UnkStruct_02022550 * param0)
+int sub_02021D34 (const GraphicElementData * param0)
{
return param0->unk_34;
}
-int sub_02021D3C (const UnkStruct_02022550 * param0)
+int sub_02021D3C (const GraphicElementData * param0)
{
return param0->unk_35;
}
-u32 sub_02021D44 (const UnkStruct_02022550 * param0)
+u32 sub_02021D44 (const GraphicElementData * param0)
{
u32 v0;
GF_ASSERT(param0);
if ((param0->unk_EC == 1) || (param0->unk_EC == 3)) {
- UnkStruct_02021D44 * v1 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v1 = (CellAnimationData *)¶m0->unk_40;
v0 = v1->unk_04->numSequences;
} else {
- UnkStruct_02021E2C * v2 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v2 = (MultiCellAnimationData *)¶m0->unk_40;
v0 = v2->unk_70->numSequences;
}
return v0;
}
-void sub_02021D6C (UnkStruct_02022550 * param0, u32 param1)
+void sub_02021D6C (GraphicElementData * param0, u32 param1)
{
const NNSG2dAnimSequence * v0;
@@ -465,13 +465,13 @@ void sub_02021D6C (UnkStruct_02022550 * param0, u32 param1)
param0->unk_F0 = param1;
if ((param0->unk_EC == 1) || (param0->unk_EC == 3)) {
- UnkStruct_02021D44 * v1 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v1 = (CellAnimationData *)¶m0->unk_40;
v0 = NNS_G2dGetAnimSequenceByIdx(v1->unk_04, param1);
NNS_G2dSetCellAnimationSequence(&v1->unk_08, v0);
NNS_G2dStartAnimCtrl(&v1->unk_08.animCtrl);
} else {
- UnkStruct_02021E2C * v2 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v2 = (MultiCellAnimationData *)¶m0->unk_40;
v0 = NNS_G2dGetAnimSequenceByIdx(v2->unk_70, param1);
NNS_G2dSetAnimSequenceToMCAnimation(&v2->unk_08, v0);
@@ -479,23 +479,23 @@ void sub_02021D6C (UnkStruct_02022550 * param0, u32 param1)
}
}
-void sub_02021DCC (UnkStruct_02022550 * param0, u32 param1)
+void sub_02021DCC (GraphicElementData * param0, u32 param1)
{
if (param0->unk_F0 != param1) {
sub_02021D6C(param0, param1);
}
}
-void sub_02021DE0 (UnkStruct_02022550 * param0)
+void sub_02021DE0 (GraphicElementData * param0)
{
if ((param0->unk_EC == 1) || (param0->unk_EC == 3)) {
- UnkStruct_02021D44 * v0 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v0 = (CellAnimationData *)¶m0->unk_40;
NNS_G2dResetAnimCtrlState(&v0->unk_08.animCtrl);
NNS_G2dStartAnimCtrl(&v0->unk_08.animCtrl);
sub_02021E50(param0, 0);
} else {
- UnkStruct_02021E2C * v1 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v1 = (MultiCellAnimationData *)¶m0->unk_40;
NNS_G2dResetAnimCtrlState(&v1->unk_08.animCtrl);
NNS_G2dStartAnimCtrl(&v1->unk_08.animCtrl);
@@ -503,59 +503,59 @@ void sub_02021DE0 (UnkStruct_02022550 * param0)
}
}
-u32 sub_02021E24 (const UnkStruct_02022550 * param0)
+u32 sub_02021E24 (const GraphicElementData * param0)
{
return param0->unk_F0;
}
-void sub_02021E2C (UnkStruct_02022550 * param0, fx32 param1)
+void sub_02021E2C (GraphicElementData * param0, fx32 param1)
{
if ((param0->unk_EC == 1) || (param0->unk_EC == 3)) {
- UnkStruct_02021D44 * v0 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v0 = (CellAnimationData *)¶m0->unk_40;
NNS_G2dTickCellAnimation(&v0->unk_08, param1);
} else {
- UnkStruct_02021E2C * v1 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v1 = (MultiCellAnimationData *)¶m0->unk_40;
NNS_G2dTickMCAnimation(&v1->unk_08, param1);
}
}
-void sub_02021E50 (UnkStruct_02022550 * param0, u16 param1)
+void sub_02021E50 (GraphicElementData * param0, u16 param1)
{
if ((param0->unk_EC == 1) || (param0->unk_EC == 3)) {
- UnkStruct_02021D44 * v0 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v0 = (CellAnimationData *)¶m0->unk_40;
NNS_G2dSetCellAnimationCurrentFrame(&v0->unk_08, param1);
} else {
- UnkStruct_02021E2C * v1 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v1 = (MultiCellAnimationData *)¶m0->unk_40;
NNS_G2dSetMCAnimationCurrentFrame(&v1->unk_08, param1);
}
}
-u16 sub_02021E74 (const UnkStruct_02022550 * param0)
+u16 sub_02021E74 (const GraphicElementData * param0)
{
NNSG2dAnimController * v0;
if ((param0->unk_EC == 1) || (param0->unk_EC == 3)) {
- UnkStruct_02021D44 * v1 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v1 = (CellAnimationData *)¶m0->unk_40;
v0 = NNS_G2dGetCellAnimationAnimCtrl(&v1->unk_08);
} else {
- UnkStruct_02021E2C * v2 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v2 = (MultiCellAnimationData *)¶m0->unk_40;
v0 = NNS_G2dGetMCAnimAnimCtrl(&v2->unk_08);
}
return NNS_G2dGetAnimCtrlCurrentFrame(v0);
}
-void sub_02021E80 (UnkStruct_02022550 * param0, u8 param1)
+void sub_02021E80 (GraphicElementData * param0, u8 param1)
{
param0->unk_F2 = param1;
}
-u8 sub_02021E88 (const UnkStruct_02022550 * param0)
+u8 sub_02021E88 (const GraphicElementData * param0)
{
return param0->unk_F2;
}
-void sub_02021E90 (UnkStruct_02022550 * param0, u32 param1)
+void sub_02021E90 (GraphicElementData * param0, u32 param1)
{
GF_ASSERT(param0);
@@ -564,18 +564,18 @@ void sub_02021E90 (UnkStruct_02022550 * param0, u32 param1)
param0->unk_28 &= ~NNS_G2D_RND_OVERWRITE_PLTTNO_OFFS;
}
-void sub_02021EC4 (UnkStruct_02022550 * param0, u32 param1)
+void sub_02021EC4 (GraphicElementData * param0, u32 param1)
{
sub_02021E90(param0, param1);
param0->unk_29 += sub_020222C4(¶m0->unk_D8, param0->unk_F8);
}
-u32 sub_02021EE8 (const UnkStruct_02022550 * param0)
+u32 sub_02021EE8 (const GraphicElementData * param0)
{
return param0->unk_29;
}
-void sub_02021EF0 (UnkStruct_02022550 * param0, u32 param1)
+void sub_02021EF0 (GraphicElementData * param0, u32 param1)
{
GF_ASSERT(param0);
@@ -584,21 +584,21 @@ void sub_02021EF0 (UnkStruct_02022550 * param0, u32 param1)
param0->unk_28 &= ~NNS_G2D_RND_OVERWRITE_PLTTNO;
}
-void sub_02021F24 (UnkStruct_02022550 * param0, u32 param1)
+void sub_02021F24 (GraphicElementData * param0, u32 param1)
{
sub_02021EF0(param0, param1);
param0->unk_2A += sub_020222C4(¶m0->unk_D8, param0->unk_F8);
}
-u32 sub_02021F48 (const UnkStruct_02022550 * param0)
+u32 sub_02021F48 (const GraphicElementData * param0)
{
GF_ASSERT(param0);
return param0->unk_2A;
}
-void sub_02021F58 (UnkStruct_02022550 * param0, u32 param1)
+void sub_02021F58 (GraphicElementData * param0, u32 param1)
{
- UnkStruct_020218BC * v0 = (UnkStruct_020218BC *)param0->unk_3C;
+ GraphicElementManager * v0 = (GraphicElementManager *)param0->unk_3C;
param0->unk_F4 = param1;
@@ -606,27 +606,27 @@ void sub_02021F58 (UnkStruct_02022550 * param0, u32 param1)
sub_02022464(v0, param0);
}
-u32 sub_02021F74 (const UnkStruct_02022550 * param0)
+u32 sub_02021F74 (const GraphicElementData * param0)
{
return param0->unk_F4;
}
-void sub_02021F7C (UnkStruct_02022550 * param0, const NNSG2dImageProxy * param1)
+void sub_02021F7C (GraphicElementData * param0, const NNSG2dImageProxy * param1)
{
param0->unk_B4 = *param1;
}
-NNSG2dImageProxy * sub_02021F98 (UnkStruct_02022550 * param0)
+NNSG2dImageProxy * sub_02021F98 (GraphicElementData * param0)
{
return ¶m0->unk_B4;
}
-NNSG2dImagePaletteProxy * sub_02021F9C (UnkStruct_02022550 * param0)
+NNSG2dImagePaletteProxy * sub_02021F9C (GraphicElementData * param0)
{
return ¶m0->unk_D8;
}
-void sub_02021FA0 (UnkStruct_02022550 * param0, BOOL param1)
+void sub_02021FA0 (GraphicElementData * param0, BOOL param1)
{
param0->unk_2C = param1;
@@ -637,25 +637,25 @@ void sub_02021FA0 (UnkStruct_02022550 * param0, BOOL param1)
}
}
-NNS_G2D_VRAM_TYPE sub_02021FC8 (const UnkStruct_02022550 * param0)
+NNS_G2D_VRAM_TYPE sub_02021FC8 (const GraphicElementData * param0)
{
return param0->unk_F8;
}
-BOOL sub_02021FD0 (UnkStruct_02022550 * param0)
+BOOL sub_02021FD0 (GraphicElementData * param0)
{
GF_ASSERT(param0);
if ((param0->unk_EC == 1) || (param0->unk_EC == 3)) {
- UnkStruct_02021D44 * v0 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v0 = (CellAnimationData *)¶m0->unk_40;
return NNS_G2dIsAnimCtrlActive(&v0->unk_08.animCtrl);
} else {
- UnkStruct_02021E2C * v1 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v1 = (MultiCellAnimationData *)¶m0->unk_40;
return NNS_G2dIsAnimCtrlActive(&v1->unk_08.animCtrl);
}
}
-void sub_02021FE0 (UnkStruct_02022550 * param0, GXOamMode param1)
+void sub_02021FE0 (GraphicElementData * param0, GXOamMode param1)
{
GF_ASSERT(param0);
@@ -693,7 +693,7 @@ void sub_0202204C (int param0)
Heap_FreeToHeap(v0);
}
-u32 sub_0202207C (const UnkStruct_02022550 * param0, u32 param1, u32 param2)
+u32 sub_0202207C (const GraphicElementData * param0, u32 param1, u32 param2)
{
const NNSG2dAnimBankData * v0;
const NNSG2dUserExAnimAttrBank * v1;
@@ -701,10 +701,10 @@ u32 sub_0202207C (const UnkStruct_02022550 * param0, u32 param1, u32 param2)
const NNSG2dUserExAnimFrameAttr * v3;
if ((param0->unk_EC == 1) || (param0->unk_EC == 3)) {
- UnkStruct_02021D44 * v4 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ CellAnimationData * v4 = (CellAnimationData *)¶m0->unk_40;
v0 = v4->unk_04;
} else {
- UnkStruct_02021E2C * v5 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ MultiCellAnimationData * v5 = (MultiCellAnimationData *)¶m0->unk_40;
v0 = v5->unk_70;
}
@@ -725,7 +725,7 @@ u32 sub_0202207C (const UnkStruct_02022550 * param0, u32 param1, u32 param2)
return 0;
}
-u32 sub_020220F4 (const UnkStruct_02022550 * param0)
+u32 sub_020220F4 (const GraphicElementData * param0)
{
u32 v0;
u32 v1;
@@ -736,7 +736,7 @@ u32 sub_020220F4 (const UnkStruct_02022550 * param0)
return sub_0202207C(param0, v0, v1);
}
-static BOOL sub_02022110 (const UnkStruct_020218BC * param0, const UnkStruct_ov19_021DA864 * param1, UnkStruct_02022550 * param2, int param3)
+static BOOL sub_02022110 (const GraphicElementManager * param0, const UnkStruct_ov19_021DA864 * param1, GraphicElementData * param2, int param3)
{
param2->unk_EC = sub_020221B8(param1);
param2->unk_B4 = *param1->unk_00;
@@ -756,7 +756,7 @@ static BOOL sub_02022110 (const UnkStruct_020218BC * param0, const UnkStruct_ov1
sub_02022264(param2, param3);
} else {
if (param2->unk_EC == 3) {
- UnkStruct_02021BD4 * v0 = (UnkStruct_02021BD4 *)¶m2->unk_40;
+ CellDataAnimationWrapper * v0 = (CellDataAnimationWrapper *)¶m2->unk_40;
sub_02022208(param1, param2, param3);
} else {
sub_020221E8(param2, param3);
@@ -781,65 +781,65 @@ static u32 sub_020221B8 (const UnkStruct_ov19_021DA864 * param0)
return 1;
}
-static void sub_020221D0 (const NNSG2dCellDataBank * param0, UnkStruct_02022550 * param1)
+static void sub_020221D0 (const NNSG2dCellDataBank * param0, GraphicElementData * param1)
{
- UnkStruct_02021D44 * v0;
+ CellAnimationData * v0;
- v0 = (UnkStruct_02021D44 *)¶m1->unk_40;
+ v0 = (CellAnimationData *)¶m1->unk_40;
v0->unk_00 = param0;
}
-static void sub_020221D4 (const NNSG2dCellAnimBankData * param0, UnkStruct_02022550 * param1)
+static void sub_020221D4 (const NNSG2dCellAnimBankData * param0, GraphicElementData * param1)
{
- UnkStruct_02021D44 * v0;
+ CellAnimationData * v0;
- v0 = (UnkStruct_02021D44 *)¶m1->unk_40;
+ v0 = (CellAnimationData *)¶m1->unk_40;
v0->unk_04 = param0;
}
-static void sub_020221D8 (const NNSG2dMultiCellDataBank * param0, UnkStruct_02022550 * param1)
+static void sub_020221D8 (const NNSG2dMultiCellDataBank * param0, GraphicElementData * param1)
{
- UnkStruct_02021E2C * v0;
+ MultiCellAnimationData * v0;
- v0 = (UnkStruct_02021E2C *)¶m1->unk_40;
+ v0 = (MultiCellAnimationData *)¶m1->unk_40;
v0->unk_6C = param0;
}
-static void sub_020221E0 (const NNSG2dMultiCellAnimBankData * param0, UnkStruct_02022550 * param1)
+static void sub_020221E0 (const NNSG2dMultiCellAnimBankData * param0, GraphicElementData * param1)
{
- UnkStruct_02021E2C * v0;
+ MultiCellAnimationData * v0;
- v0 = (UnkStruct_02021E2C *)¶m1->unk_40;
+ v0 = (MultiCellAnimationData *)¶m1->unk_40;
v0->unk_70 = param0;
}
-static void sub_020221E8 (UnkStruct_02022550 * param0, int param1)
+static void sub_020221E8 (GraphicElementData * param0, int param1)
{
- UnkStruct_02021D44 * v0;
+ CellAnimationData * v0;
- v0 = (UnkStruct_02021D44 *)¶m0->unk_40;
+ v0 = (CellAnimationData *)¶m0->unk_40;
NNS_G2dInitCellAnimation((NNSG2dCellAnimation *)&v0->unk_08, NNS_G2dGetAnimSequenceByIdx(v0->unk_04, 0), v0->unk_00);
}
-static void sub_02022208 (const UnkStruct_ov19_021DA864 * param0, UnkStruct_02022550 * param1, int param2)
+static void sub_02022208 (const UnkStruct_ov19_021DA864 * param0, GraphicElementData * param1, int param2)
{
- UnkStruct_02021BD4 * v0;
+ CellDataAnimationWrapper * v0;
const NNSG2dCharacterData * v1;
- v0 = (UnkStruct_02021BD4 *)¶m1->unk_40;
+ v0 = (CellDataAnimationWrapper *)¶m1->unk_40;
v0->unk_60 = NNS_G2dGetNewCellTransferStateHandle();
v1 = param0->unk_04;
NNS_G2dInitCellAnimationVramTransfered((NNSG2dCellAnimation *)&v0->unk_08, NNS_G2dGetAnimSequenceByIdx(v0->unk_04, 0), v0->unk_00, v0->unk_60, NNS_G2D_VRAM_ADDR_NONE, NNS_G2dGetImageLocation(¶m1->unk_B4, NNS_G2D_VRAM_TYPE_2DMAIN), NNS_G2dGetImageLocation(¶m1->unk_B4, NNS_G2D_VRAM_TYPE_2DSUB), v1->pRawData, NULL, v1->szByte);
}
-static void sub_02022264 (UnkStruct_02022550 * param0, int param1)
+static void sub_02022264 (GraphicElementData * param0, int param1)
{
- UnkStruct_02021E2C * v0;
+ MultiCellAnimationData * v0;
const NNSG2dMultiCellAnimSequence * v1;
u16 v2;
- v0 = (UnkStruct_02021E2C *)¶m0->unk_40;
+ v0 = (MultiCellAnimationData *)¶m0->unk_40;
v1 = NNS_G2dGetAnimSequenceByIdx(v0->unk_70, 0);
v2 = NNS_G2dGetMCBankNumNodesRequired(v0->unk_6C);
@@ -875,7 +875,7 @@ static u32 sub_020222C4 (const NNSG2dImagePaletteProxy * param0, u32 param1)
return v1;
}
-static void sub_020222F4 (const UnkStruct_020218BC * param0, UnkStruct_02022550 * param1)
+static void sub_020222F4 (const GraphicElementManager * param0, GraphicElementData * param1)
{
VecFx32 v0 = param1->unk_00;
@@ -910,10 +910,10 @@ static void sub_020222F4 (const UnkStruct_020218BC * param0, UnkStruct_02022550
NNS_G2dSetRendererOverwritePriority(param0->unk_110, param1->unk_F2);
if ((param1->unk_EC == 1) || (param1->unk_EC == 3)) {
- UnkStruct_02021D44 * v1 = (UnkStruct_02021D44 *)¶m1->unk_40;
+ CellAnimationData * v1 = (CellAnimationData *)¶m1->unk_40;
NNS_G2dDrawCellAnimation(&v1->unk_08);
} else {
- UnkStruct_02021E2C * v2 = (UnkStruct_02021E2C *)¶m1->unk_40;
+ MultiCellAnimationData * v2 = (MultiCellAnimationData *)¶m1->unk_40;
NNS_G2dDrawMultiCellAnimation(&v2->unk_08);
}
}
@@ -922,24 +922,24 @@ static void sub_020222F4 (const UnkStruct_020218BC * param0, UnkStruct_02022550
NNS_G2dEndRendering();
}
-static void sub_02022450 (const UnkStruct_020218BC * param0, UnkStruct_02022550 * param1)
+static void sub_02022450 (const GraphicElementManager * param0, GraphicElementData * param1)
{
return;
}
-static void sub_02022454 (UnkStruct_02022550 * param0)
+static void sub_02022454 (GraphicElementData * param0)
{
sub_02021E2C(param0, param0->unk_38);
}
-static void sub_02022460 (UnkStruct_02022550 * param0)
+static void sub_02022460 (GraphicElementData * param0)
{
return;
}
-static void sub_02022464 (UnkStruct_020218BC * param0, UnkStruct_02022550 * param1)
+static void sub_02022464 (GraphicElementManager * param0, GraphicElementData * param1)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
if (param0->unk_10.unk_100 == ¶m0->unk_10) {
param0->unk_10.unk_100 = param1;
@@ -970,13 +970,13 @@ static void sub_02022464 (UnkStruct_020218BC * param0, UnkStruct_02022550 * para
}
}
-static void sub_020224FC (UnkStruct_02022550 * param0)
+static void sub_020224FC (GraphicElementData * param0)
{
param0->unk_FC->unk_100 = param0->unk_100;
param0->unk_100->unk_FC = param0->unk_FC;
}
-static void sub_02022518 (UnkStruct_020218BC * param0)
+static void sub_02022518 (GraphicElementManager * param0)
{
int v0;
@@ -988,9 +988,9 @@ static void sub_02022518 (UnkStruct_020218BC * param0)
param0->unk_0C = 0;
}
-static UnkStruct_02022550 * sub_02022550 (UnkStruct_020218BC * param0)
+static GraphicElementData * sub_02022550 (GraphicElementManager * param0)
{
- UnkStruct_02022550 * v0;
+ GraphicElementData * v0;
if (param0->unk_0C >= param0->unk_04) {
return NULL;
@@ -1002,7 +1002,7 @@ static UnkStruct_02022550 * sub_02022550 (UnkStruct_020218BC * param0)
return v0;
}
-static BOOL sub_0202256C (UnkStruct_020218BC * param0, UnkStruct_02022550 * param1)
+static BOOL sub_0202256C (GraphicElementManager * param0, GraphicElementData * param1)
{
if (param0->unk_0C <= 0) {
return 0;
diff --git a/src/unk_02024220.c b/src/unk_02024220.c
index f6ec1c8d05..98090c7a9f 100644
--- a/src/unk_02024220.c
+++ b/src/unk_02024220.c
@@ -10,10 +10,10 @@
static void sub_020242DC(void);
-UnkStruct_0207C690 * sub_02024220 (u32 param0, int param1, int param2, int param3, int param4, UnkFuncPtr_02024220 param5)
+GenericPointerData * sub_02024220 (u32 param0, int param1, int param2, int param3, int param4, UnkFuncPtr_02024220 param5)
{
int v0, v1;
- UnkStruct_0207C690 * v2 = Heap_AllocFromHeap(param0, sizeof(UnkStruct_0207C690));
+ GenericPointerData * v2 = Heap_AllocFromHeap(param0, sizeof(GenericPointerData));
v2->unk_00 = param0;
@@ -47,7 +47,7 @@ UnkStruct_0207C690 * sub_02024220 (u32 param0, int param1, int param2, int param
return v2;
}
-void sub_020242C4 (UnkStruct_0207C690 * param0)
+void sub_020242C4 (GenericPointerData * param0)
{
Heap_FreeToHeap(param0->unk_04);
Heap_FreeToHeap(param0->unk_08);
diff --git a/src/unk_0202440C.c b/src/unk_0202440C.c
index a14501debf..e95464c879 100644
--- a/src/unk_0202440C.c
+++ b/src/unk_0202440C.c
@@ -76,7 +76,7 @@ const SaveTableEntry gSaveTable[] = {
{ SAVE_TABLE_ENTRY_RANDOM_GROUP, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)RandomGroup_SaveSize, (SaveEntryInitFunc)RandomGroup_Init },
{ SAVE_TABLE_ENTRY_JOURNAL, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)Journal_SaveSize, (SaveEntryInitFunc)Journal_Init },
{ SAVE_TABLE_ENTRY_TRAINER_CARD, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)TrainerCard_SaveSize, (SaveEntryInitFunc)TrainerCard_Init },
- { SAVE_TABLE_ENTRY_GAME_RECORDS, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)GameRecord_SaveSize, (SaveEntryInitFunc)GameRecord_Init },
+ { SAVE_TABLE_ENTRY_GAME_RECORDS, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)GameRecord_SaveSize, (SaveEntryInitFunc)GameRecord_Init },
{ SAVE_TABLE_ENTRY_BALL_SEALS, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)BallSeal_SaveSize, (SaveEntryInitFunc)BallSeal_Init },
{ SAVE_TABLE_ENTRY_CHATOT, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)ChatotCry_SaveSize, (SaveEntryInitFunc)ChatotCry_Init },
{ SAVE_TABLE_ENTRY_FRONTIER, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)Frontier_SaveSize, (SaveEntryInitFunc)Frontier_Init },
@@ -93,7 +93,7 @@ const SaveTableEntry gSaveTable[] = {
{ SAVE_TABLE_ENTRY_SENTENCE, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)Sentence_SaveSize, (SaveEntryInitFunc)Sentence_Init },
{ SAVE_TABLE_ENTRY_EMAIL, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)Email_SaveSize, (SaveEntryInitFunc)Email_Init },
{ SAVE_TABLE_ENTRY_WIFI_QUESTIONS, SAVE_BLOCK_ID_NORMAL, (SaveEntrySizeFunc)WiFiQuestion_SaveSize, (SaveEntryInitFunc)WiFiQuestion_Init },
- { SAVE_TABLE_ENTRY_PC_BOXES, SAVE_BLOCK_ID_BOXES, (SaveEntrySizeFunc)PCBoxes_SaveSize, (SaveEntryInitFunc)PCBoxes_Init },
+ { SAVE_TABLE_ENTRY_PC_BOXES, SAVE_BLOCK_ID_BOXES, (SaveEntrySizeFunc)PCBoxes_SaveSize, (SaveEntryInitFunc)PCBoxes_Init },
};
const int gSaveTableSize = NELEMS(gSaveTable);
diff --git a/src/unk_020244AC.c b/src/unk_020244AC.c
index d9e7beebbc..911e1f08a9 100644
--- a/src/unk_020244AC.c
+++ b/src/unk_020244AC.c
@@ -193,7 +193,7 @@ BOOL sub_020245E8 (SaveData * param0)
int v0, v1;
u8 * v2 = Heap_AllocFromHeapAtEnd(3, 0x1000);
- sub_02017B7C(1);
+ SleepLock(1);
sub_0202516C(param0, 0, !param0->unk_20020[0]);
sub_0202516C(param0, 1, !param0->unk_20020[1]);
@@ -211,7 +211,7 @@ BOOL sub_020245E8 (SaveData * param0)
sub_0202479C(param0);
param0->unk_04 = 0;
- sub_02017B8C(1);
+ SleepUnlock(1);
return 1;
}
@@ -251,14 +251,14 @@ int sub_020246E0 (SaveData * param0)
}
if (param0->unk_08) {
- sub_02017B7C(1);
+ SleepLock(1);
sub_0202516C(param0, 0, !param0->unk_20020[0]);
sub_0202516C(param0, 1, !param0->unk_20020[1]);
sub_0202516C(param0, 0, param0->unk_20020[0]);
sub_0202516C(param0, 1, param0->unk_20020[1]);
- sub_02017B8C(1);
+ SleepUnlock(1);
}
v0 = sub_0202513C(param0);
@@ -778,7 +778,7 @@ static void sub_02024EC8 (SaveData * param0, UnkStruct_020250DC * param1, int pa
param1->unk_0C = param2 + 1;
}
- sub_02017B7C(1);
+ SleepLock(1);
}
static int sub_02024F44 (SaveData * param0, UnkStruct_020250DC * param1)
@@ -872,7 +872,7 @@ static void sub_0202506C (SaveData * param0, UnkStruct_020250DC * param1, int pa
param0->unk_0C = 0;
}
- sub_02017B8C(1);
+ SleepUnlock(1);
}
static void sub_020250DC (SaveData * param0, UnkStruct_020250DC * param1)
@@ -897,7 +897,7 @@ static void sub_020250DC (SaveData * param0, UnkStruct_020250DC * param1)
param1->unk_24 = 0;
}
- sub_02017B8C(1);
+ SleepUnlock(1);
}
BOOL sub_0202513C (SaveData * param0)
@@ -1101,7 +1101,7 @@ int SaveDataExtra_Save (const SaveData * param0, int param1, void * param2)
u32 v1;
BOOL v2;
- sub_02017B7C(1);
+ SleepLock(1);
GF_ASSERT(param1 < gExtraSaveTableSize);
v0 = &gExtraSaveTable[param1];
@@ -1130,10 +1130,10 @@ int SaveDataExtra_Save (const SaveData * param0, int param1, void * param2)
}
if (v2 == 1) {
- sub_02017B8C(1);
+ SleepUnlock(1);
return 2;
} else {
- sub_02017B8C(1);
+ SleepUnlock(1);
return 3;
}
}
@@ -1146,7 +1146,7 @@ int SaveDataExtra_SaveMirror (SaveData * param0, int param1, void * param2)
u32 v3, v4, v5;
u8 v6;
- sub_02017B7C(1);
+ SleepLock(1);
GF_ASSERT(param1 < gExtraSaveTableSize);
v0 = &gExtraSaveTable[param1];
@@ -1175,10 +1175,10 @@ int SaveDataExtra_SaveMirror (SaveData * param0, int param1, void * param2)
}
if (v2 == 1) {
- sub_02017B8C(1);
+ SleepUnlock(1);
return 2;
} else {
- sub_02017B8C(1);
+ SleepUnlock(1);
return 3;
}
}
diff --git a/src/unk_02025CB0.c b/src/unk_02025CB0.c
index 8d472f3ca4..38e313373d 100644
--- a/src/unk_02025CB0.c
+++ b/src/unk_02025CB0.c
@@ -4,7 +4,7 @@
#include "struct_decls/struct_021C0794_decl.h"
#include "struct_defs/struct_02055BA8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_020244AC.h"
#include "unk_02025CB0.h"
@@ -113,7 +113,7 @@ void sub_02025D78 (UnkStruct_02025CCC * param0, s32 param1)
void sub_02025D84 (UnkStruct_02055BA8 * param0)
{
param0->unk_00 = 1;
- sub_0201384C(¶m0->unk_04, ¶m0->unk_14);
+ GetCurrentDateTime(¶m0->unk_04, ¶m0->unk_14);
param0->unk_20 = RTC_ConvertDateToDay(¶m0->unk_04);
param0->unk_24 = RTC_ConvertDateTimeToSecond(¶m0->unk_04, ¶m0->unk_14);
param0->unk_2C = 0;
@@ -145,6 +145,6 @@ void sub_02025DC8 (UnkStruct_02055BA8 * param0, int param1)
void sub_02025DE8 (UnkStruct_02055BA8 * param0)
{
param0->unk_34 = 60 * 24;
- sub_0201384C(¶m0->unk_04, ¶m0->unk_14);
+ GetCurrentDateTime(¶m0->unk_04, ¶m0->unk_14);
param0->unk_20 = RTC_ConvertDateToDay(¶m0->unk_04);
}
diff --git a/src/unk_02025E08.c b/src/unk_02025E08.c
index b293abe879..cfb034d297 100644
--- a/src/unk_02025E08.c
+++ b/src/unk_02025E08.c
@@ -15,7 +15,7 @@
#include "unk_0202CBE4.h"
struct UnkStruct_02025E0C_t {
- UnkStruct_020279FC unk_00;
+ AnimationControlFlags unk_00;
TrainerInfo unk_04;
u16 unk_24;
UnkStruct_02025E5C unk_26;
@@ -44,7 +44,7 @@ TrainerInfo * sub_02025E38 (SaveData * param0)
return &v0->unk_04;
}
-UnkStruct_020279FC * sub_02025E44 (SaveData * param0)
+AnimationControlFlags * sub_02025E44 (SaveData * param0)
{
UnkStruct_02025E0C * v0;
diff --git a/src/unk_020279FC.c b/src/unk_020279FC.c
index 8449ac65f6..371856f3e0 100644
--- a/src/unk_020279FC.c
+++ b/src/unk_020279FC.c
@@ -11,24 +11,24 @@
#include "unk_02025E08.h"
#include "unk_020279FC.h"
-UnkStruct_020279FC * sub_020279FC (u32 param0)
+AnimationControlFlags * sub_020279FC (u32 param0)
{
- UnkStruct_020279FC * v0;
+ AnimationControlFlags * v0;
- v0 = Heap_AllocFromHeap(param0, sizeof(UnkStruct_020279FC));
+ v0 = Heap_AllocFromHeap(param0, sizeof(AnimationControlFlags));
sub_02027A1C(v0);
return v0;
}
-void sub_02027A10 (const UnkStruct_020279FC * param0, UnkStruct_020279FC * param1)
+void sub_02027A10 (const AnimationControlFlags * param0, AnimationControlFlags * param1)
{
- MI_CpuCopy8(param0, param1, sizeof(UnkStruct_020279FC));
+ MI_CpuCopy8(param0, param1, sizeof(AnimationControlFlags));
}
-void sub_02027A1C (UnkStruct_020279FC * param0)
+void sub_02027A1C (AnimationControlFlags * param0)
{
- MI_CpuFill8(param0, 0, sizeof(UnkStruct_020279FC));
+ MI_CpuFill8(param0, 0, sizeof(AnimationControlFlags));
param0->unk_00_0 = 1;
param0->unk_00_4 = 0;
@@ -40,7 +40,7 @@ void sub_02027A1C (UnkStruct_020279FC * param0)
void sub_02027A68 (SaveData * param0, int param1)
{
- UnkStruct_020279FC * v0;
+ AnimationControlFlags * v0;
if (param0 != NULL) {
param1 = sub_02027B30(sub_02025E44(param0));
@@ -60,17 +60,17 @@ void sub_02027A68 (SaveData * param0, int param1)
}
}
-int sub_02027AA4 (const UnkStruct_020279FC * param0)
+int sub_02027AA4 (const AnimationControlFlags * param0)
{
return param0->unk_00_0;
}
-void sub_02027AAC (UnkStruct_020279FC * param0, int param1)
+void sub_02027AAC (AnimationControlFlags * param0, int param1)
{
param0->unk_00_0 = param1;
}
-u8 sub_02027AC0 (const UnkStruct_020279FC * param0)
+u8 sub_02027AC0 (const AnimationControlFlags * param0)
{
int v0 = sub_02027AA4(param0);
@@ -83,52 +83,52 @@ u8 sub_02027AC0 (const UnkStruct_020279FC * param0)
}
}
-int sub_02027ADC (const UnkStruct_020279FC * param0)
+int sub_02027ADC (const AnimationControlFlags * param0)
{
return param0->unk_00_4;
}
-void sub_02027AE4 (UnkStruct_020279FC * param0, int param1)
+void sub_02027AE4 (AnimationControlFlags * param0, int param1)
{
param0->unk_00_4 = param1;
}
-int GameConfig_BattleAnimations (const UnkStruct_020279FC * param0)
+int GameConfig_BattleAnimations (const AnimationControlFlags * param0)
{
return param0->unk_00_7;
}
-void sub_02027B00 (UnkStruct_020279FC * param0, int param1)
+void sub_02027B00 (AnimationControlFlags * param0, int param1)
{
param0->unk_00_7 = param1;
}
-int sub_02027B14 (const UnkStruct_020279FC * param0)
+int sub_02027B14 (const AnimationControlFlags * param0)
{
return param0->unk_00_6;
}
-void sub_02027B1C (UnkStruct_020279FC * param0, int param1)
+void sub_02027B1C (AnimationControlFlags * param0, int param1)
{
param0->unk_00_6 = param1;
}
-int sub_02027B30 (const UnkStruct_020279FC * param0)
+int sub_02027B30 (const AnimationControlFlags * param0)
{
return param0->unk_02_0;
}
-void sub_02027B38 (UnkStruct_020279FC * param0, int param1)
+void sub_02027B38 (AnimationControlFlags * param0, int param1)
{
param0->unk_02_0 = param1;
}
-int sub_02027B50 (const UnkStruct_020279FC * param0)
+int sub_02027B50 (const AnimationControlFlags * param0)
{
return param0->unk_02_2;
}
-void sub_02027B58 (UnkStruct_020279FC * param0, int param1)
+void sub_02027B58 (AnimationControlFlags * param0, int param1)
{
param0->unk_02_2 = param1;
}
diff --git a/src/unk_0202854C.c b/src/unk_0202854C.c
index ebc56ac334..818f42eb62 100644
--- a/src/unk_0202854C.c
+++ b/src/unk_0202854C.c
@@ -12,7 +12,7 @@
#include "struct_defs/struct_02029894_sub2.h"
#include "struct_defs/struct_020298B0.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_0201D15C.h"
#include "unk_020244AC.h"
@@ -103,8 +103,8 @@ void Underground_Init (UnkStruct_020298B0 * param0)
RTCDate v1;
RTCTime v2;
- sub_0201384C(&v1, &v2);
- v0 = (((((((u32)v1.year * 32ULL + v1.month) * 32ULL) + v1.day) * 32ULL + v2.hour) * 32ULL + v2.minute) * 32ULL + (v2.second + gCoreSys.unk_2C));
+ GetCurrentDateTime(&v1, &v2);
+ v0 = (((((((u32)v1.year * 32ULL + v1.month) * 32ULL) + v1.day) * 32ULL + v2.hour) * 32ULL + v2.minute) * 32ULL + (v2.second + gCoreSys.frameCounter));
MI_CpuFill8(param0, 0, sizeof(UnkStruct_020298B0));
diff --git a/src/unk_0202ACE0.c b/src/unk_0202ACE0.c
index 65e81eae0a..a7554f3029 100644
--- a/src/unk_0202ACE0.c
+++ b/src/unk_0202ACE0.c
@@ -10,7 +10,7 @@
#include "struct_defs/struct_0202B370.h"
#include "struct_defs/struct_0202B370_sub1.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "strbuf.h"
#include "unk_020244AC.h"
#include "unk_0202ACE0.h"
@@ -251,7 +251,7 @@ void sub_0202B13C (UnkStruct_0202B370 * param0, int param1)
{
RTCDate v0;
- sub_020138A4(&v0);
+ GetCurrentDate(&v0);
param0->unk_1C0[param1].unk_2A = v0.year + 2000;
param0->unk_1C0[param1].unk_2C = v0.month;
diff --git a/src/unk_0202B604.c b/src/unk_0202B604.c
index c4ee52a541..0494274dc2 100644
--- a/src/unk_0202B604.c
+++ b/src/unk_0202B604.c
@@ -11,7 +11,7 @@
#include "struct_defs/struct_0202BF4C.h"
#include "struct_defs/struct_0202BFCC.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_020244AC.h"
#include "trainer_info.h"
@@ -146,7 +146,7 @@ UnkStruct_0202B628 * sub_0202B634 (UnkStruct_0202B628 * param0, BOOL param1)
return NULL;
}
- sub_020138A4(&v0);
+ GetCurrentDate(&v0);
if ((param0[0].unk_00.unk_00_7 != 0) && ((param0[0].unk_00.unk_00_0 != v0.year) || (param0[0].unk_00.unk_00_7 != v0.month) || (param0[0].unk_00.unk_00_14 != v0.day) || (param0[0].unk_00.unk_00_11 != v0.week))) {
for (v1 = 10 - 1; v1 >= 1; v1--) {
@@ -169,14 +169,14 @@ BOOL sub_0202B6A4 (UnkStruct_0202B628 * param0, BOOL param1)
return 0;
}
- sub_020138A4(&v1);
+ GetCurrentDate(&v1);
v0.year = param0[0].unk_00.unk_00_0;
v0.month = param0[0].unk_00.unk_00_7;
v0.day = param0[0].unk_00.unk_00_14;
v0.week = param0[0].unk_00.unk_00_11;
- v2 = sub_02013900(&v1) - sub_02013900(&v0);
+ v2 = DayNumberForDate(&v1) - DayNumberForDate(&v0);
if (((v1.month == 12) && (v1.day == 31) && (v0.month == 1) && (v0.day == 1)) || ((v1.month == 1) && (v1.day == 1) && (v0.month == 12) && (v0.day == 31))) {
s32 v3 = (s32)v1.year - (s32)v0.year;
@@ -580,7 +580,7 @@ void * sub_0202BC58 (u16 param0, u32 param1)
RTCDate v1;
v0 = Heap_AllocFromHeap(param1, sizeof(UnkStruct_0202BC58));
- sub_020138A4(&v1);
+ GetCurrentDate(&v1);
v0->unk_00_0 = v1.year;
v0->unk_00_7 = v1.month;
diff --git a/src/unk_0202CC64.c b/src/unk_0202CC64.c
index 07c4b7d0ef..d14217ffba 100644
--- a/src/unk_0202CC64.c
+++ b/src/unk_0202CC64.c
@@ -2,56 +2,52 @@
#include
#include "struct_decls/struct_021C0794_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "heap.h"
#include "unk_020244AC.h"
#include "unk_0202CC64.h"
-typedef struct UnkStruct_0202CC84_t {
- BOOL unk_00;
- s8 unk_04[1000];
-} UnkStruct_0202CC84;
-
int ChatotCry_SaveSize (void)
{
- return sizeof(UnkStruct_0202CC84);
+ return sizeof(ChatotCry);
}
-void ChatotCry_Init (UnkStruct_0202CC84 * param0)
+void ChatotCry_Init (ChatotCry * param0)
{
- MI_CpuClear32(param0, sizeof(UnkStruct_0202CC84));
- param0->unk_00 = 0;
+ MI_CpuClear32(param0, sizeof(ChatotCry));
+ param0->exists = FALSE;
}
-UnkStruct_0202CC84 * sub_0202CC84 (int param0)
+ChatotCry * AllocateAndInitializeChatotCryData (int param0)
{
- UnkStruct_0202CC84 * v0 = Heap_AllocFromHeap(param0, sizeof(UnkStruct_0202CC84));
+ ChatotCry * v0 = Heap_AllocFromHeap(param0, sizeof(ChatotCry));
ChatotCry_Init(v0);
return v0;
}
-UnkStruct_0202CC84 * sub_0202CC98 (SaveData * param0)
+ChatotCry * GetChatotCryDataFromSave (SaveData * param0)
{
- return (UnkStruct_0202CC84 *)SaveData_Get(param0, 22);
+ return (ChatotCry *)SaveData_Get(param0, 22);
}
-BOOL sub_0202CCA4 (const UnkStruct_0202CC84 * param0)
+BOOL IsChatotCryDataValid (const ChatotCry * param0)
{
- return param0->unk_00;
+ return param0->exists;
}
-void sub_0202CCA8 (UnkStruct_0202CC84 * param0)
+void ResetChatotCryDataStatus (ChatotCry * param0)
{
- param0->unk_00 = 0;
+ param0->exists = FALSE;
}
-const void * sub_0202CCB0 (const UnkStruct_0202CC84 * param0)
+const void * GetChatotCryAudioBuffer (const ChatotCry * param0)
{
- return param0->unk_04;
+ return param0->data;
}
-void sub_0202CCB4 (s8 * param0, const s8 * param1)
+void ProcessChatotCryAudioData (s8 * param0, const s8 * param1)
{
int v0, v1 = 0;
s8 v2;
@@ -72,31 +68,31 @@ void sub_0202CCB4 (s8 * param0, const s8 * param1)
}
}
-void sub_0202CCEC (UnkStruct_0202CC84 * param0, const s8 * param1)
+void StoreProcessedAudioInChatotCryData (ChatotCry * param0, const s8 * param1)
{
int v0, v1;
s8 v2;
u8 v3;
- param0->unk_00 = 1;
+ param0->exists = TRUE;
v1 = 0;
for (v0 = 0; v0 < 1000 * 2; v0 += 2) {
v2 = (param1[v0] / 16);
v3 = v2 + 8;
- param0->unk_04[v1] = v3;
+ param0->data[v1] = v3;
v2 = (param1[v0 + 1] / 16);
v3 = v2 + 8;
- param0->unk_04[v1] |= (v3 << 4);
+ param0->data[v1] |= (v3 << 4);
v1++;
}
}
-void sub_0202CD3C (UnkStruct_0202CC84 * param0, const UnkStruct_0202CC84 * param1)
+void CopyChatotCryData (ChatotCry * param0, const ChatotCry * param1)
{
- MI_CpuCopyFast(param1, param0, sizeof(UnkStruct_0202CC84));
+ MI_CpuCopyFast(param1, param0, sizeof(ChatotCry));
}
diff --git a/src/unk_0202E2CC.c b/src/unk_0202E2CC.c
index 527c546b2b..b70e1c14cf 100644
--- a/src/unk_0202E2CC.c
+++ b/src/unk_0202E2CC.c
@@ -17,7 +17,7 @@
#include "struct_defs/struct_0202E828.h"
#include "struct_defs/struct_0202E834.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_020244AC.h"
#include "unk_0202E2CC.h"
@@ -144,7 +144,7 @@ static void sub_0202E3F4 (UnkStruct_0202E4D4 * param0, int param1, const u8 * pa
{
RTCDate v0;
- sub_020138A4(&v0);
+ GetCurrentDate(&v0);
param0->unk_04 = inline_0202D4B0(&v0);
param0->unk_00 = param1;
diff --git a/src/unk_0202EEC0.c b/src/unk_0202EEC0.c
index 7301143ba3..253ebf3826 100644
--- a/src/unk_0202EEC0.c
+++ b/src/unk_0202EEC0.c
@@ -3,7 +3,7 @@
#include "pokemon.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_0202EEC0.h"
#include "pokemon.h"
@@ -83,7 +83,7 @@ void sub_0202EFB8 (PalParkTransfer * param0, u32 param1)
int v0 = sub_0202EF40(param0, param1);
param0->unk_288[v0] = param1;
- param0->unk_2D8[v0] = sub_020138EC();
+ param0->unk_2D8[v0] = GetTimestamp();
param0->unk_378 = OS_GetOwnerRtcOffset();
OS_GetMacAddress(param0->unk_380);
@@ -111,7 +111,7 @@ int sub_0202F028 (const PalParkTransfer * param0)
int sub_0202F050 (const PalParkTransfer * param0, u32 param1)
{
int v0;
- s64 v1 = sub_020138EC();
+ s64 v1 = GetTimestamp();
for (v0 = 0; v0 < 20; v0++) {
if (param0->unk_288[v0] == param1) {
diff --git a/src/unk_0202F1D4.c b/src/unk_0202F1D4.c
index 0629403b8f..4792fd2ba8 100644
--- a/src/unk_0202F1D4.c
+++ b/src/unk_0202F1D4.c
@@ -176,8 +176,8 @@ int sub_0202F3AC (SaveData * param0, BattleRecording * param1, int param2, u16 *
switch (*param3) {
case 0:
- sub_02017DE0(8);
- sub_02017E00(11);
+ ResetLock(8);
+ InitHeapCanary(11);
v0 = SaveData_SaveBattleRecording(param0, param1, param2);
@@ -187,15 +187,15 @@ int sub_0202F3AC (SaveData * param0, BattleRecording * param1, int param2, u16 *
return 0;
}
- sub_02017DF0(8);
+ ResetUnlock(8);
return v0;
case 1:
v0 = sub_02024828(param0);
if ((v0 == 2) || (v0 == 3)) {
(*param3) = 0;
- sub_02017E2C();
- sub_02017DF0(8);
+ FreeHeapCanary();
+ ResetUnlock(8);
}
return v0;
diff --git a/src/unk_02033200.c b/src/unk_02033200.c
index d77624b166..091ef6296a 100644
--- a/src/unk_02033200.c
+++ b/src/unk_02033200.c
@@ -201,12 +201,12 @@ static void sub_0203344C (void * param0, WVRResult param1)
static void sub_02033464 (void * param0, WVRResult param1)
{
Unk_021C07BC = 0;
- sub_02017B8C(4);
+ SleepUnlock(4);
}
void sub_02033478 (void)
{
- sub_02017B7C(4);
+ SleepLock(4);
Unk_021C07BC = 1;
diff --git a/src/unk_02034198.c b/src/unk_02034198.c
index b38c38a95b..8650988c3f 100644
--- a/src/unk_02034198.c
+++ b/src/unk_02034198.c
@@ -12,7 +12,7 @@
#include "struct_defs/struct_0203233C.h"
#include "unk_0200D9E8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_02030EE0.h"
#include "unk_02032188.h"
@@ -1876,8 +1876,8 @@ void sub_020361BC (MATHRandContext32 * param0)
RTCDate v1;
RTCTime v2;
- sub_0201384C(&v1, &v2);
- v0 = (((((((u64)v1.year * 16ULL + v1.month) * 32ULL) + v1.day) * 32ULL + v2.hour) * 64ULL + v2.minute) * 64ULL + (v2.second + gCoreSys.unk_2C));
+ GetCurrentDateTime(&v1, &v2);
+ v0 = (((((((u64)v1.year * 16ULL + v1.month) * 32ULL) + v1.day) * 32ULL + v2.hour) * 64ULL + v2.minute) * 64ULL + (v2.second + gCoreSys.frameCounter));
MATH_InitRand32(param0, v0);
}
diff --git a/src/unk_020366A0.c b/src/unk_020366A0.c
index c855df2325..313d6fc93a 100644
--- a/src/unk_020366A0.c
+++ b/src/unk_020366A0.c
@@ -2005,7 +2005,7 @@ void sub_02038350 (void)
return;
}
- sub_02017DF0(1);
+ ResetUnlock(1);
sub_02032A70();
sub_02036C94(sub_020373B8, 5);
}
@@ -2075,14 +2075,14 @@ void sub_02038438 (SaveData * param0)
Unk_021C07D4->unk_51 = 1;
Unk_021C07D4->unk_28 = param0;
sub_020388F4(0, 1);
- sub_02017DE0(1);
+ ResetLock(1);
}
}
void sub_0203848C (void)
{
if (Unk_021C07D4) {
- sub_02017DF0(1);
+ ResetUnlock(1);
sub_020388F4(0, 0);
Heap_FreeToHeap(Unk_021C07D4);
Unk_021C07D4 = NULL;
@@ -2100,14 +2100,14 @@ void sub_020384C0 (SaveData * param0)
Unk_021C07D4->unk_51 = 1;
Unk_021C07D4->unk_28 = param0;
sub_020388F4(0, 1);
- sub_02017DE0(1);
+ ResetLock(1);
}
}
void sub_02038514 (void)
{
if (Unk_021C07D4) {
- sub_02017DF0(1);
+ ResetUnlock(1);
sub_020388F4(0, 0);
Heap_FreeToHeap(Unk_021C07D4);
Unk_021C07D4 = NULL;
@@ -2125,14 +2125,14 @@ void sub_02038548 (SaveData * param0)
Unk_021C07D4->unk_51 = 1;
Unk_021C07D4->unk_28 = param0;
sub_020388F4(0, 1);
- sub_02017DE0(1);
+ ResetLock(1);
}
}
void sub_0203859C (void)
{
if (Unk_021C07D4) {
- sub_02017DF0(1);
+ ResetUnlock(1);
sub_020388F4(0, 0);
Heap_FreeToHeap(Unk_021C07D4);
Unk_021C07D4 = NULL;
@@ -2230,7 +2230,7 @@ void * sub_0203871C (SaveData * param0, int param1)
return NULL;
}
- sub_02017DE0(1);
+ ResetLock(1);
Heap_CreateAtEnd(3, 15, 0x7080);
sub_020366A0(param0, 23);
Unk_021C07D4->unk_00 = Heap_AllocFromHeap(15, param1);
@@ -2252,7 +2252,7 @@ void sub_0203878C (SaveData * param0, const void * param1)
return;
}
- sub_02017DE0(1);
+ ResetLock(1);
Heap_CreateAtEnd(3, 15, 0x7080);
sub_020366A0(param0, 33);
@@ -2416,7 +2416,7 @@ void sub_020389C4 (u8 param0)
u8 sub_020389D8 (void)
{
- if (sub_02017E54()) {
+ if (HeapCanaryOK()) {
return 0;
}
@@ -2459,7 +2459,7 @@ void sub_02038A20 (int param0)
if (sub_02038938()) {
if (sub_020360F0() || sub_020383E8() || sub_020385D0()
|| (Unk_021C07D4->unk_59 != 0) || sub_0203881C()) {
- if (!sub_02017E54()) {
+ if (!HeapCanaryOK()) {
if (!sub_020389D8()) {
sub_0200569C();
sub_02024850(Unk_021C07D4->unk_28);
@@ -2701,7 +2701,7 @@ static void sub_02038D94 (void)
v0 = ov66_02232854();
if (v0) {
- sub_02017DF0(1);
+ ResetUnlock(1);
sub_02032A70();
sub_02036C94(sub_020373B8, 5);
sub_020362B4(0);
diff --git a/src/unk_02039814.c b/src/unk_02039814.c
index ac56e2cf0d..e9decd2e7d 100644
--- a/src/unk_02039814.c
+++ b/src/unk_02039814.c
@@ -124,8 +124,8 @@ void sub_02039834 (int param0, int param1, int param2)
OS_SetIrqFunction(OS_IE_V_BLANK, sub_02039814);
(void)OS_EnableIrqMask(OS_IE_V_BLANK);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
diff --git a/src/unk_02039A64.c b/src/unk_02039A64.c
index 7b3b6fd135..61261662cf 100644
--- a/src/unk_02039A64.c
+++ b/src/unk_02039A64.c
@@ -88,8 +88,8 @@ void sub_02039A64 (int param0, int param1)
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -134,7 +134,7 @@ void sub_02039A64 (int param0, int param1)
while (TRUE) {
int v5 = PAD_Read();
- sub_0200106C();
+ HandleConsoleFold();
if (v5 & PAD_BUTTON_A) {
break;
diff --git a/src/unk_0203A944.c b/src/unk_0203A944.c
index 784e96024d..6b339dc7df 100644
--- a/src/unk_0203A944.c
+++ b/src/unk_0203A944.c
@@ -6,7 +6,7 @@
#include "struct_defs/struct_0203CDB0.h"
#include "struct_defs/struct_02055BA8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02025CB0.h"
#include "map_header.h"
#include "unk_0203A944.h"
@@ -1860,7 +1860,7 @@ int sub_0203A944 (UnkStruct_0203CDB0 * param0, int param1)
int v1;
UnkStruct_02055BA8 * v2 = sub_02025CD8(param0->unk_0C);
- v1 = sub_02013900(&v2->unk_04) - 1;
+ v1 = DayNumberForDate(&v2->unk_04) - 1;
GF_ASSERT(v1 >= 0 && v1 < 366);
if ((v2->unk_04.month > 2) && !inline_0203A944(v2->unk_04.year)) {
diff --git a/src/unk_0203A9C8.c b/src/unk_0203A9C8.c
index 767c34f2f7..883780df48 100644
--- a/src/unk_0203A9C8.c
+++ b/src/unk_0203A9C8.c
@@ -140,10 +140,10 @@ static u32 sub_0203AC3C(UnkStruct_0203CDB0 * param0);
static void sub_0203B318(UnkStruct_020708E0 * param0, u8 * param1, u32 param2, u8 param3);
static void sub_0203B4E8(UnkStruct_020708E0 * param0);
static void sub_0203B520(UnkStruct_020708E0 * param0);
-static void sub_0203B558(UnkStruct_02022550 * param0, u32 param1);
-static void sub_0203B588(UnkStruct_02022550 * param0, u16 param1, u16 param2);
+static void sub_0203B558(GraphicElementData * param0, u32 param1);
+static void sub_0203B588(GraphicElementData * param0, u16 param1, u16 param2);
static void sub_0203B5B4(UnkStruct_020708E0 * param0, u16 param1, u16 param2);
-static void sub_0203B5E8(UnkStruct_02022550 * param0);
+static void sub_0203B5E8(GraphicElementData * param0);
static BOOL sub_0203AC44(UnkStruct_020508D4 * param0);
static void sub_0203ADFC(UnkStruct_020508D4 * param0);
static BOOL sub_0203B244(UnkStruct_020508D4 * param0);
@@ -840,7 +840,7 @@ static void sub_0203B520 (UnkStruct_020708E0 * param0)
}
}
-static void sub_0203B558 (UnkStruct_02022550 * param0, u32 param1)
+static void sub_0203B558 (GraphicElementData * param0, u32 param1)
{
VecFx32 v0;
@@ -850,7 +850,7 @@ static void sub_0203B558 (UnkStruct_02022550 * param0, u32 param1)
sub_02021C50(param0, &v0);
}
-static void sub_0203B588 (UnkStruct_02022550 * param0, u16 param1, u16 param2)
+static void sub_0203B588 (GraphicElementData * param0, u16 param1, u16 param2)
{
u32 v0 = sub_02021E24(param0);
@@ -864,7 +864,7 @@ static void sub_0203B5B4 (UnkStruct_020708E0 * param0, u16 param1, u16 param2)
sub_0203B588(param0->unk_200[1 + param2]->unk_00, 1, 1);
}
-static void sub_0203B5E8 (UnkStruct_02022550 * param0)
+static void sub_0203B5E8 (GraphicElementData * param0)
{
if ((sub_02021E24(param0) % 3) != 1) {
return;
@@ -1014,13 +1014,13 @@ BOOL sub_0203B7C0 (UnkStruct_020508D4 * param0)
{
UnkStruct_0203CDB0 * v0;
UnkStruct_020708E0 * v1;
- UnkStruct_02098C44 * v2;
+ PartyManagementData * v2;
v0 = sub_02050A60(param0);
v1 = sub_02050A64(param0);
- v2 = (UnkStruct_02098C44 *)Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
+ v2 = (PartyManagementData *)Heap_AllocFromHeap(11, sizeof(PartyManagementData));
- memcpy(v2, v1->unk_25C, sizeof(UnkStruct_02098C44));
+ memcpy(v2, v1->unk_25C, sizeof(PartyManagementData));
Heap_FreeToHeap(v1->unk_25C);
switch (v2->unk_23) {
@@ -1307,10 +1307,10 @@ static BOOL sub_0203BC5C (UnkStruct_020508D4 * param0)
break;
case 2:
{
- UnkStruct_02098C44 * v6;
+ PartyManagementData * v6;
- v6 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
- memset(v6, 0, sizeof(UnkStruct_02098C44));
+ v6 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
+ memset(v6, 0, sizeof(PartyManagementData));
v6->unk_00 = Party_GetFromSavedata(v0->unk_0C);
v6->unk_04 = sub_0207D990(v0->unk_0C);
@@ -1350,10 +1350,10 @@ static BOOL sub_0203BC5C (UnkStruct_020508D4 * param0)
v1->unk_260 = sub_0203C540(v10, 0, (u8)v9);
sub_0203B674(v1, sub_0203C558);
} else {
- UnkStruct_02098C44 * v13;
+ PartyManagementData * v13;
- v13 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
- memset(v13, 0, sizeof(UnkStruct_02098C44));
+ v13 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
+ memset(v13, 0, sizeof(PartyManagementData));
v13->unk_00 = v7;
v13->unk_04 = sub_0207D990(v0->unk_0C);
@@ -1636,13 +1636,13 @@ static BOOL sub_0203C1C8 (UnkStruct_020508D4 * param0)
switch (v2->unk_12) {
case 2:
{
- UnkStruct_02098C44 * v3;
+ PartyManagementData * v3;
UnkStruct_0203C1C8 * v4;
- v3 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
+ v3 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
v4 = (UnkStruct_0203C1C8 *)v1->unk_260;
- memset(v3, 0, sizeof(UnkStruct_02098C44));
+ memset(v3, 0, sizeof(PartyManagementData));
v3->unk_00 = Party_GetFromSavedata(v0->unk_0C);
v3->unk_04 = sub_0207D990(v0->unk_0C);
@@ -1862,12 +1862,12 @@ BOOL sub_0203C558 (UnkStruct_020508D4 * param0)
static void sub_0203C668 (UnkStruct_0203CDB0 * param0, UnkStruct_020708E0 * param1, u8 param2)
{
UnkStruct_0203C540 * v0;
- UnkStruct_02098C44 * v1;
+ PartyManagementData * v1;
v0 = param1->unk_260;
- v1 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
+ v1 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
- memset(v1, 0, sizeof(UnkStruct_02098C44));
+ memset(v1, 0, sizeof(PartyManagementData));
v1->unk_00 = Party_GetFromSavedata(param0->unk_0C);
v1->unk_04 = sub_0207D990(param0->unk_0C);
v1->unk_08 = sub_02028430(param0->unk_0C);
diff --git a/src/unk_0203D1B8.c b/src/unk_0203D1B8.c
index f98e101fbf..49188aff32 100644
--- a/src/unk_0203D1B8.c
+++ b/src/unk_0203D1B8.c
@@ -67,7 +67,7 @@
#include "overlay088/struct_ov88_0223C370.h"
#include "overlay090/struct_ov90_021D0D80.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02017498.h"
#include "heap.h"
#include "unk_0201D15C.h"
@@ -197,7 +197,7 @@ FS_EXTERN_OVERLAY(overlay121);
typedef struct {
int unk_00;
- UnkStruct_02098C44 * unk_04;
+ PartyManagementData * unk_04;
UnkStruct_02098D38 * unk_08;
} UnkStruct_0203D444;
@@ -392,11 +392,11 @@ void sub_0203D334 (UnkStruct_0203CDB0 * param0, void * param1)
sub_0203CD84(param0, &Unk_020F410C, param1);
}
-static UnkStruct_02098C44 * sub_0203D344 (int param0, UnkStruct_0203CDB0 * param1, int param2, int param3)
+static PartyManagementData * sub_0203D344 (int param0, UnkStruct_0203CDB0 * param1, int param2, int param3)
{
- UnkStruct_02098C44 * v0 = Heap_AllocFromHeap(param0, sizeof(UnkStruct_02098C44));
+ PartyManagementData * v0 = Heap_AllocFromHeap(param0, sizeof(PartyManagementData));
- MI_CpuClearFast(v0, sizeof(UnkStruct_02098C44));
+ MI_CpuClearFast(v0, sizeof(PartyManagementData));
v0->unk_00 = Party_GetFromSavedata(param1->unk_0C);
v0->unk_04 = sub_0207D990(param1->unk_0C);
@@ -411,7 +411,7 @@ static UnkStruct_02098C44 * sub_0203D344 (int param0, UnkStruct_0203CDB0 * param
void * sub_0203D390 (UnkStruct_0203CDB0 * param0, UnkStruct_02070950 * param1, u8 param2)
{
- UnkStruct_02098C44 * v0 = sub_0203D344(11, param0, 0, 0);
+ PartyManagementData * v0 = sub_0203D344(11, param0, 0, 0);
v0->unk_18 = param1;
v0->unk_22 = param2;
@@ -423,7 +423,7 @@ void * sub_0203D390 (UnkStruct_0203CDB0 * param0, UnkStruct_02070950 * param1, u
void * sub_0203D3C0 (int param0, UnkStruct_0203CDB0 * param1)
{
- UnkStruct_02098C44 * v0 = sub_0203D344(11, param1, 0, 3);
+ PartyManagementData * v0 = sub_0203D344(11, param1, 0, 3);
sub_0203CD84(param1, &Unk_020F1E88, v0);
return v0;
@@ -431,7 +431,7 @@ void * sub_0203D3C0 (int param0, UnkStruct_0203CDB0 * param1)
void * sub_0203D3E4 (int param0, UnkStruct_0203CDB0 * param1)
{
- UnkStruct_02098C44 * v0 = sub_0203D344(11, param1, 0, 19);
+ PartyManagementData * v0 = sub_0203D344(11, param1, 0, 19);
sub_0203CD84(param1, &Unk_020F1E88, v0);
return v0;
@@ -439,13 +439,13 @@ void * sub_0203D3E4 (int param0, UnkStruct_0203CDB0 * param1)
int sub_0203D408 (void * param0)
{
- UnkStruct_02098C44 * v0 = param0;
+ PartyManagementData * v0 = param0;
return v0->unk_22;
}
void * sub_0203D410 (int param0, UnkStruct_0203CDB0 * param1, int param2)
{
- UnkStruct_02098C44 * v0 = sub_0203D344(11, param1, 0, 18);
+ PartyManagementData * v0 = sub_0203D344(11, param1, 0, 18);
v0->unk_22 = param2;
sub_0203CD84(param1, &Unk_020F1E88, v0);
@@ -455,7 +455,7 @@ void * sub_0203D410 (int param0, UnkStruct_0203CDB0 * param1, int param2)
int sub_0203D438 (void * param0)
{
- UnkStruct_02098C44 * v0 = param0;
+ PartyManagementData * v0 = param0;
return v0->unk_23;
}
@@ -519,7 +519,7 @@ static BOOL sub_0203D444 (UnkStruct_020508D4 * param0)
void * sub_0203D50C (UnkStruct_020508D4 * param0, int param1)
{
UnkStruct_0203D444 * v0;
- UnkStruct_02098C44 * v1;
+ PartyManagementData * v1;
UnkStruct_0203CDB0 * v2 = sub_02050A60(param0);
v0 = Heap_AllocFromHeap(param1, sizeof(UnkStruct_0203D444));
@@ -538,7 +538,7 @@ void * sub_0203D50C (UnkStruct_020508D4 * param0, int param1)
void * sub_0203D578 (int param0, UnkStruct_0203CDB0 * param1, int param2, int param3, int param4, int param5)
{
- UnkStruct_02098C44 * v0 = sub_0203D344(11, param1, 0, 13);
+ PartyManagementData * v0 = sub_0203D344(11, param1, 0, 13);
v0->unk_22 = param5;
v0->unk_29 = 2;
@@ -580,7 +580,7 @@ void * sub_0203D5C8 (int param0, UnkStruct_0203CDB0 * param1, int param2)
void * sub_0203D644 (UnkStruct_0203CDB0 * param0, int param1)
{
- UnkStruct_02098C44 * v0 = sub_0203D344(11, param0, 0, 21);
+ PartyManagementData * v0 = sub_0203D344(11, param0, 0, 21);
v0->unk_22 = param1;
sub_0203CD84(param0, &Unk_020F1E88, v0);
@@ -773,7 +773,7 @@ void * sub_0203D8AC (UnkStruct_0203CDB0 * param0)
return v0;
}
-static void sub_0203D8DC (UnkStruct_0203CDB0 * param0, UnkStruct_020279FC * param1)
+static void sub_0203D8DC (UnkStruct_0203CDB0 * param0, AnimationControlFlags * param1)
{
FS_EXTERN_OVERLAY(overlay74);
@@ -790,7 +790,7 @@ static void sub_0203D8DC (UnkStruct_0203CDB0 * param0, UnkStruct_020279FC * para
void * sub_0203D8EC (UnkStruct_0203CDB0 * param0)
{
UnkStruct_0203D8EC * v0;
- UnkStruct_020279FC * v1;
+ AnimationControlFlags * v1;
v0 = Heap_AllocFromHeapAtEnd(11, sizeof(UnkStruct_0203D8EC));
v1 = sub_02025E44(sub_0203D174(param0));
@@ -1594,9 +1594,9 @@ static BOOL sub_0203E35C (UnkStruct_020508D4 * param0)
case 1:
if (sub_020509B4(v0) == 0) {
u16 * v5 = sub_02025E50(v0->unk_0C);
- s64 v6 = sub_020138EC();
+ s64 v6 = GetTimestamp();
- sub_0206DD38(v0, Coins_GetValue(v5), v2->unk_00, sub_0201398C(v2->unk_04, v6) / 60);
+ sub_0206DD38(v0, Coins_GetValue(v5), v2->unk_00, TimeElapsed(v2->unk_04, v6) / 60);
Coins_SetValue(sub_02025E50(v0->unk_0C), v2->unk_00);
v4 = sub_0206B394(v1);
@@ -1617,12 +1617,12 @@ static BOOL sub_0203E35C (UnkStruct_020508D4 * param0)
void sub_0203E414 (UnkStruct_020508D4 * param0, int param1)
{
UnkStruct_0203CDB0 * v0 = sub_02050A60(param0);
- UnkStruct_020279FC * v1 = sub_02025E44(v0->unk_0C);
+ AnimationControlFlags * v1 = sub_02025E44(v0->unk_0C);
UnkStruct_0203E35C * v2 = Heap_AllocFromHeap(32, sizeof(UnkStruct_0203E35C));
v2->unk_0C.unk_00 = &v2->unk_00;
v2->unk_00 = Coins_GetValue(sub_02025E50(v0->unk_0C));
- v2->unk_04 = sub_020138EC();
+ v2->unk_04 = GetTimestamp();
v2->unk_0C.unk_08 = sub_0202CD88(v0->unk_0C);
v2->unk_0C.unk_0C = 0;
v2->unk_0C.unk_10 = sub_02027B50(v1);
@@ -1724,12 +1724,12 @@ void * sub_0203E564 (UnkStruct_0203CDB0 * param0, u8 param1, u8 param2, u16 para
return v0;
}
-UnkStruct_02098C44 * sub_0203E598 (UnkStruct_0203CDB0 * param0, int param1, int param2)
+PartyManagementData * sub_0203E598 (UnkStruct_0203CDB0 * param0, int param1, int param2)
{
- UnkStruct_02098C44 * v0;
+ PartyManagementData * v0;
- v0 = Heap_AllocFromHeap(param1, sizeof(UnkStruct_02098C44));
- memset(v0, 0, sizeof(UnkStruct_02098C44));
+ v0 = Heap_AllocFromHeap(param1, sizeof(PartyManagementData));
+ memset(v0, 0, sizeof(PartyManagementData));
v0->unk_00 = Party_GetFromSavedata(param0->unk_0C);
v0->unk_04 = sub_0207D990(param0->unk_0C);
diff --git a/src/unk_0203E880.c b/src/unk_0203E880.c
index 18ac713da3..bd4fd6c2e3 100644
--- a/src/unk_0203E880.c
+++ b/src/unk_0203E880.c
@@ -64,7 +64,7 @@ struct UnkStruct_0203EF60_t {
BOOL unk_0C;
UnkStruct_ov5_021DC1A4 * unk_10;
Window unk_14;
- UnkStruct_02001AF4 * unk_24;
+ UIControlData * unk_24;
int unk_28;
UnkStruct_02061AB4 * unk_2C;
UnkStruct_02061AB4 * unk_30;
diff --git a/src/unk_0203F6C4.c b/src/unk_0203F6C4.c
index 974bfc7404..0c07f53ab1 100644
--- a/src/unk_0203F6C4.c
+++ b/src/unk_0203F6C4.c
@@ -77,7 +77,7 @@
#include "unk_0200D9E8.h"
#include "unk_0200DA60.h"
#include "unk_0200F174.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02014D38.h"
#include "heap.h"
#include "unk_02018340.h"
@@ -2733,7 +2733,7 @@ static BOOL sub_020407B4 (UnkStruct_0203E724 * param0)
static BOOL sub_020407C4 (UnkStruct_0203E724 * param0)
{
UnkStruct_0203CDB0 * v0 = param0->unk_34;
- UnkStruct_02001AF4 ** v1 = sub_0203F098(v0, 2);
+ UIControlData ** v1 = sub_0203F098(v0, 2);
u16 v2 = sub_0203E838(param0);
sub_0200DAA4(v0->unk_08, 3, 1024 - (18 + 12) - 9, 11, 0, 4);
@@ -2750,7 +2750,7 @@ static BOOL sub_02040824 (UnkStruct_0203E724 * param0)
{
u32 v0;
UnkStruct_0203CDB0 * v1 = param0->unk_34;
- UnkStruct_02001AF4 ** v2 = sub_0203F098(v1, 2);
+ UIControlData ** v2 = sub_0203F098(v1, 2);
u16 * v3 = sub_0203F118(v1, param0->unk_18[0]);
v0 = sub_02002114(*v2, 4);
@@ -3697,7 +3697,7 @@ static BOOL sub_02041860 (UnkStruct_0203E724 * param0)
void ** v2;
u16 * v3;
u16 * v4;
- UnkStruct_02098C44 * v5;
+ PartyManagementData * v5;
v3 = inline_0204FCAC(param0);
v4 = inline_0204FCAC(param0);
@@ -3736,7 +3736,7 @@ static BOOL sub_020418E0 (UnkStruct_0203E724 * param0)
u16 * v3;
u16 * v4;
u16 * v5;
- UnkStruct_02098C44 * v6;
+ PartyManagementData * v6;
v3 = inline_0204FCAC(param0);
v4 = inline_0204FCAC(param0);
@@ -3778,7 +3778,7 @@ static BOOL sub_02041984 (UnkStruct_0203E724 * param0)
u16 * v3;
u16 * v4;
u16 * v5;
- UnkStruct_02098C44 * v6;
+ PartyManagementData * v6;
v3 = inline_0204FCAC(param0);
v4 = inline_0204FCAC(param0);
@@ -5038,7 +5038,7 @@ static BOOL sub_02043040 (UnkStruct_0203E724 * param0)
static BOOL sub_0204304C (UnkStruct_0203E724 * param0)
{
- UnkStruct_02098C44 * v0;
+ PartyManagementData * v0;
void ** v1;
v1 = sub_0203F098(param0->unk_34, 19);
@@ -5453,7 +5453,7 @@ static BOOL sub_020437FC (UnkStruct_0203E724 * param0)
static BOOL sub_02043854 (UnkStruct_0203E724 * param0)
{
- UnkStruct_02098C44 * v0;
+ PartyManagementData * v0;
void ** v1;
u16 * v2 = inline_0204FCAC(param0);
@@ -5681,7 +5681,7 @@ static BOOL sub_02043C3C (UnkStruct_0203E724 * param0)
{
UnkStruct_0203CDB0 * v0 = sub_02050A60(param0->unk_28);
- sub_02097284(Party_GetFromSavedata(v0->unk_0C));
+ HealAllPokemonInParty(Party_GetFromSavedata(v0->unk_0C));
return 0;
}
@@ -6750,7 +6750,7 @@ static BOOL sub_02044EDC (UnkStruct_0203E724 * param0)
RTCDate v0;
u16 * v1 = inline_0204FCAC(param0);
- sub_020138A4(&v0);
+ GetCurrentDate(&v0);
*v1 = v0.week;
return 0;
@@ -8435,7 +8435,7 @@ static BOOL sub_0204698C (UnkStruct_0203E724 * param0)
s64 v2;
s64 v3;
- v2 = sub_020138EC();
+ v2 = GetTimestamp();
v3 = v2 - v0->unk_C4.unk_00;
if (v3 >= 120) {
diff --git a/src/unk_02046C7C.c b/src/unk_02046C7C.c
index 5183e5c5fd..d8a271781a 100644
--- a/src/unk_02046C7C.c
+++ b/src/unk_02046C7C.c
@@ -121,7 +121,7 @@ BOOL sub_02046CFC (UnkStruct_0203E724 * param0)
v8.unk_14 = sub_0202A750(param0->unk_34->unk_0C);
v8.unk_18 = sub_02025E44(param0->unk_34->unk_0C);
v8.unk_1C = param0->unk_34->unk_0C;
- v8.unk_20 = sub_0202CC98(param0->unk_34->unk_0C);
+ v8.unk_20 = GetChatotCryDataFromSave(param0->unk_34->unk_0C);
*v2 = sub_02093800(&v8);
diff --git a/src/unk_020482D4.c b/src/unk_020482D4.c
index 31ea8d7d8f..f072e57dde 100644
--- a/src/unk_020482D4.c
+++ b/src/unk_020482D4.c
@@ -223,7 +223,7 @@ BOOL sub_020484F8 (UnkStruct_0203E724 * param0)
{
u16 * v0 = inline_0204FCAC(param0);
- if (sub_02006260(sub_0202CC98(param0->unk_34->unk_0C)) == 1) {
+ if (IsChatotCryStructReadyForProcessing(GetChatotCryDataFromSave(param0->unk_34->unk_0C)) == 1) {
*v0 = 1;
return 0;
}
@@ -236,7 +236,7 @@ BOOL sub_02048530 (UnkStruct_0203E724 * param0)
{
u16 * v0 = inline_0204FCAC(param0);
- if (sub_0200637C() == MIC_RESULT_SUCCESS) {
+ if (StartMicSampling() == MIC_RESULT_SUCCESS) {
*v0 = 1;
return 0;
}
@@ -247,13 +247,13 @@ BOOL sub_02048530 (UnkStruct_0203E724 * param0)
BOOL sub_0204855C (UnkStruct_0203E724 * param0)
{
- sub_020063B8();
+ StopMicSampling();
return 1;
}
BOOL sub_02048568 (UnkStruct_0203E724 * param0)
{
- sub_020063C0(sub_0202CC98(param0->unk_34->unk_0C));
+ StoreMicDataInChatotCryStruct(GetChatotCryDataFromSave(param0->unk_34->unk_0C));
return 1;
}
diff --git a/src/unk_02049D08.c b/src/unk_02049D08.c
index e854e79aa4..53bd8aaa7f 100644
--- a/src/unk_02049D08.c
+++ b/src/unk_02049D08.c
@@ -432,7 +432,7 @@ void sub_0204A358 (UnkStruct_0204AFC4 * param0, UnkStruct_020508D4 * param1, voi
BOOL sub_0204A378 (UnkStruct_0204AFC4 * param0, void ** param1, SaveData * param2)
{
u16 v0 = 0;
- UnkStruct_02098C44 * v1 = *param1;
+ PartyManagementData * v1 = *param1;
Party * v2;
Pokemon * v3;
diff --git a/src/unk_0204F13C.c b/src/unk_0204F13C.c
index 8704f85a3d..0e967b6582 100644
--- a/src/unk_0204F13C.c
+++ b/src/unk_0204F13C.c
@@ -339,8 +339,8 @@ static int sub_0204F50C (UnkStruct_0204F470 * param0, UnkStruct_0203CDB0 * param
{
u8 v0;
- UnkStruct_02098C44 * v1 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
- MI_CpuClearFast(v1, sizeof(UnkStruct_02098C44));
+ PartyManagementData * v1 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
+ MI_CpuClearFast(v1, sizeof(PartyManagementData));
v1->unk_00 = Party_GetFromSavedata(param1->unk_0C);
v1->unk_04 = sub_0207D990(param1->unk_0C);
@@ -378,7 +378,7 @@ static int sub_0204F50C (UnkStruct_0204F470 * param0, UnkStruct_0203CDB0 * param
static int sub_0204F5D8 (UnkStruct_0204F470 * param0, UnkStruct_0203CDB0 * param1)
{
int v0;
- UnkStruct_02098C44 * v1;
+ PartyManagementData * v1;
if (sub_020509B4(param1)) {
return UnkEnum_0204F13C_2;
diff --git a/src/unk_0204FAB4.c b/src/unk_0204FAB4.c
index 6337cd3420..c25baca816 100644
--- a/src/unk_0204FAB4.c
+++ b/src/unk_0204FAB4.c
@@ -257,9 +257,9 @@ static BOOL sub_0204FDE8 (UnkStruct_020508D4 * param0)
static int sub_0204FE50 (UnkStruct_0204FE50 * param0, UnkStruct_0203CDB0 * param1, int param2)
{
u8 v0;
- UnkStruct_02098C44 * v1 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
+ PartyManagementData * v1 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
- MI_CpuClearFast(v1, sizeof(UnkStruct_02098C44));
+ MI_CpuClearFast(v1, sizeof(PartyManagementData));
v1->unk_00 = Party_GetFromSavedata(param1->unk_0C);
v1->unk_04 = sub_0207D990(param1->unk_0C);
@@ -294,7 +294,7 @@ static int sub_0204FE50 (UnkStruct_0204FE50 * param0, UnkStruct_0203CDB0 * param
static int sub_0204FF1C (UnkStruct_0204FE50 * param0, UnkStruct_0203CDB0 * param1)
{
int v0;
- UnkStruct_02098C44 * v1;
+ PartyManagementData * v1;
if (sub_020509B4(param1)) {
return 1;
diff --git a/src/unk_0205003C.c b/src/unk_0205003C.c
index 139e44efe5..620c36e0a1 100644
--- a/src/unk_0205003C.c
+++ b/src/unk_0205003C.c
@@ -249,9 +249,9 @@ static BOOL sub_02050314 (UnkStruct_020508D4 * param0)
static int sub_0205037C (UnkStruct_0205037C * param0, UnkStruct_0203CDB0 * param1, int param2)
{
u8 v0;
- UnkStruct_02098C44 * v1 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
+ PartyManagementData * v1 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
- MI_CpuClearFast(v1, sizeof(UnkStruct_02098C44));
+ MI_CpuClearFast(v1, sizeof(PartyManagementData));
v1->unk_00 = Party_GetFromSavedata(param1->unk_0C);
v1->unk_04 = sub_0207D990(param1->unk_0C);
@@ -284,7 +284,7 @@ static int sub_0205037C (UnkStruct_0205037C * param0, UnkStruct_0203CDB0 * param
static int sub_02050448 (UnkStruct_0205037C * param0, UnkStruct_0203CDB0 * param1)
{
int v0;
- UnkStruct_02098C44 * v1;
+ PartyManagementData * v1;
if (sub_020509B4(param1)) {
return 1;
diff --git a/src/unk_02050A74.c b/src/unk_02050A74.c
index afbc610f51..73ddf4997e 100644
--- a/src/unk_02050A74.c
+++ b/src/unk_02050A74.c
@@ -187,7 +187,7 @@ static BOOL sub_02050B30 (UnkStruct_020508D4 * param0)
}
if (sub_0206A984(sub_020507E4(v0->unk_0C))) {
- sub_02097284(Party_GetFromSavedata(v0->unk_0C));
+ HealAllPokemonInParty(Party_GetFromSavedata(v0->unk_0C));
}
sub_020518B0(v0, v1->unk_10);
@@ -405,7 +405,7 @@ static BOOL sub_02050EE0 (UnkStruct_020508D4 * param0)
}
if (sub_0206A984(sub_020507E4(v0->unk_0C))) {
- sub_02097284(Party_GetFromSavedata(v0->unk_0C));
+ HealAllPokemonInParty(Party_GetFromSavedata(v0->unk_0C));
}
sub_020518B0(v0, v1->unk_10);
diff --git a/src/unk_02051D8C.c b/src/unk_02051D8C.c
index d906dee323..7db11ce554 100644
--- a/src/unk_02051D8C.c
+++ b/src/unk_02051D8C.c
@@ -8,7 +8,7 @@
#include "trainer_info.h"
#include "struct_decls/struct_02026324_decl.h"
#include "struct_decls/struct_0202B628_decl.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_0203A790_decl.h"
#include "pokemon.h"
#include "struct_decls/struct_party_decl.h"
@@ -28,7 +28,7 @@
#include "unk_020021B0.h"
#include "message.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "strbuf.h"
#include "savedata/save_table.h"
@@ -100,7 +100,7 @@ BattleParams * sub_02051D8C (int param0, u32 param1)
}
for (v0 = 0; v0 < 4; v0++) {
- v1->unk_F0[v0] = sub_0202CC84(param0);
+ v1->unk_F0[v0] = AllocateAndInitializeChatotCryData(param0);
}
v1->unk_E0 = sub_0207D3C0(param0);
@@ -119,8 +119,8 @@ BattleParams * sub_02051D8C (int param0, u32 param1)
RTCDate v2;
RTCTime v3;
- sub_0201384C(&v2, &v3);
- v1->unk_174 = v2.year + v2.month * 0x100 * v2.day * 0x10000 + v3.hour * 0x10000 + (v3.minute + v3.second) * 0x1000000 + gCoreSys.unk_2C;
+ GetCurrentDateTime(&v2, &v3);
+ v1->unk_174 = v2.year + v2.month * 0x100 * v2.day * 0x10000 + v3.hour * 0x10000 + (v3.minute + v3.second) * 0x1000000 + gCoreSys.frameCounter;
}
if (sub_02035E38() == 1) {
@@ -158,7 +158,7 @@ BattleParams * sub_02051F38 (int param0, int param1)
BattleParams * sub_02051F4C (int param0, const UnkStruct_0203CDB0 * param1)
{
TrainerInfo * v0 = sub_02025E38(param1->unk_0C);
- UnkStruct_020279FC * v1 = sub_02025E44(param1->unk_0C);
+ AnimationControlFlags * v1 = sub_02025E44(param1->unk_0C);
MessageLoader * v2;
Strbuf* v3;
BattleParams * v4;
@@ -245,9 +245,9 @@ void sub_02052184 (BattleParams * param0, const TrainerInfo * param1, int param2
TrainerInfo_Copy(param1, param0->unk_D0[param2]);
}
-void sub_020521A4 (BattleParams * param0, const UnkStruct_0202CC84 * param1, int param2)
+void sub_020521A4 (BattleParams * param0, const ChatotCry * param1, int param2)
{
- sub_0202CD3C(param0->unk_F0[param2], param1);
+ CopyChatotCryData(param0->unk_F0[param2], param1);
}
void sub_020521B8 (BattleParams * param0, const UnkStruct_0203CDB0 * param1, SaveData * param2, int param3, UnkStruct_0202B628 * param4, UnkStruct_0207D99C * param5, UnkStruct_0209C370 * param6)
@@ -256,8 +256,8 @@ void sub_020521B8 (BattleParams * param0, const UnkStruct_0203CDB0 * param1, Sav
Party * v1 = Party_GetFromSavedata(param2);
UnkStruct_0207D3C0 * v2 = sub_0207D990(param2);
UnkStruct_02026324 * v3 = sub_02027560(param2);
- UnkStruct_0202CC84 * v4 = sub_0202CC98(param2);
- UnkStruct_020279FC * v5 = sub_02025E44(param2);
+ ChatotCry * v4 = GetChatotCryDataFromSave(param2);
+ AnimationControlFlags * v5 = sub_02025E44(param2);
UnkStruct_0203A790 * v6 = sub_0203A790(param2);
if (param1 != NULL) {
@@ -269,7 +269,7 @@ void sub_020521B8 (BattleParams * param0, const UnkStruct_0203CDB0 * param1, Sav
{
UnkStruct_02055BA8 * v7 = sub_02025CD8(param2);
- param0->unk_138 = sub_02013974(v7->unk_14.hour);
+ param0->unk_138 = TimeOfDayForHour(v7->unk_14.hour);
}
}
@@ -311,8 +311,8 @@ void sub_02052348 (BattleParams * param0, const UnkStruct_0203CDB0 * param1, int
Party * v3 = Party_GetFromSavedata(param1->unk_0C);
UnkStruct_0207D3C0 * v4 = sub_0207D990(param1->unk_0C);
UnkStruct_02026324 * v5 = sub_02027560(param1->unk_0C);
- UnkStruct_0202CC84 * v6 = sub_0202CC98(param1->unk_0C);
- UnkStruct_020279FC * v7 = sub_02025E44(param1->unk_0C);
+ ChatotCry * v6 = GetChatotCryDataFromSave(param1->unk_0C);
+ AnimationControlFlags * v7 = sub_02025E44(param1->unk_0C);
Pokemon * v8;
param0->unk_128 = 6;
@@ -361,8 +361,8 @@ void sub_020524E4 (BattleParams * param0, const UnkStruct_0203CDB0 * param1, con
TrainerInfo * v0 = sub_02025E38(param1->unk_0C);
UnkStruct_0207D3C0 * v1 = sub_0207D990(param1->unk_0C);
UnkStruct_02026324 * v2 = sub_02027560(param1->unk_0C);
- UnkStruct_0202CC84 * v3 = sub_0202CC98(param1->unk_0C);
- UnkStruct_020279FC * v4 = sub_02025E44(param1->unk_0C);
+ ChatotCry * v3 = GetChatotCryDataFromSave(param1->unk_0C);
+ AnimationControlFlags * v4 = sub_02025E44(param1->unk_0C);
const UnkStruct_0202610C * v5 = param1->unk_B0;
int v6, v7, v8;
Pokemon * v9;
diff --git a/src/unk_02052C6C.c b/src/unk_02052C6C.c
index 32d14b292d..94e459e590 100644
--- a/src/unk_02052C6C.c
+++ b/src/unk_02052C6C.c
@@ -27,7 +27,7 @@
#include "unk_0200B358.h"
#include "unk_0200DA60.h"
#include "unk_0200F174.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_02018340.h"
#include "gx_layers.h"
@@ -85,7 +85,7 @@ static void sub_02052C6C (UnkStruct_0203CDB0 * param0, BOOL param1)
v1 = Party_GetFromSavedata(param0->unk_0C);
- sub_020138A4(&v2);
+ GetCurrentDate(&v2);
sub_0202DFA8(v0, v1, &v2);
SaveData_SaveHallOfFame(param0->unk_0C, v0);
Heap_FreeToHeap(v0);
@@ -132,7 +132,7 @@ static BOOL sub_02052CBC (UnkStruct_020508D4 * param0)
{
int v6;
- sub_02097284(Party_GetFromSavedata(v2->unk_0C));
+ HealAllPokemonInParty(Party_GetFromSavedata(v2->unk_0C));
sub_02024804();
v6 = sub_020246E0(v2->unk_0C);
sub_02052C6C(v2, v3->unk_00);
@@ -277,7 +277,7 @@ static void sub_02052F28 (UnkStruct_0203CDB0 * param0, UnkStruct_0205300C * para
static void sub_02052FA8 (UnkStruct_0203CDB0 * param0, UnkStruct_0205300C * param1)
{
- UnkStruct_020279FC * v0 = sub_02025E44(param0->unk_0C);
+ AnimationControlFlags * v0 = sub_02025E44(param0->unk_0C);
param1->unk_2C = MessageBank_GetNewStrbufFromNARC(26, 213, 15, 32);
diff --git a/src/unk_020530C8.c b/src/unk_020530C8.c
index cbde79cfae..801cfc273b 100644
--- a/src/unk_020530C8.c
+++ b/src/unk_020530C8.c
@@ -128,7 +128,7 @@ typedef struct {
Window unk_24;
Strbuf* unk_34;
u8 unk_38;
- UnkStruct_02001AF4 * unk_3C;
+ UIControlData * unk_3C;
} UnkStruct_02053FAC;
typedef struct {
diff --git a/src/unk_020553DC.c b/src/unk_020553DC.c
index cbab58dcee..3a59241c4a 100644
--- a/src/unk_020553DC.c
+++ b/src/unk_020553DC.c
@@ -9,7 +9,7 @@
#include "unk_020041CC.h"
#include "unk_02005474.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "map_header.h"
#include "unk_0203A6DC.h"
#include "unk_020507CC.h"
@@ -185,7 +185,7 @@ u16 sub_020554A4 (UnkStruct_0203CDB0 * param0, int param1)
{
u16 v0, v1;
- if (sub_02013948() == 0) {
+ if (IsNight() == 0) {
v0 = MapHeader_GetDayMusicID(param1);
} else {
v0 = MapHeader_GetNightMusicID(param1);
diff --git a/src/unk_020559DC.c b/src/unk_020559DC.c
index c787cdbac2..98ffb99276 100644
--- a/src/unk_020559DC.c
+++ b/src/unk_020559DC.c
@@ -10,7 +10,7 @@
#include "struct_defs/struct_0203CDB0.h"
#include "struct_defs/struct_02055BA8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "savedata/save_table.h"
#include "unk_02025CB0.h"
#include "unk_0202854C.h"
@@ -45,7 +45,7 @@ void sub_020559DC (UnkStruct_0203CDB0 * param0)
return;
}
- sub_0201384C(&v0, &v1);
+ GetCurrentDateTime(&v0, &v1);
sub_02055A14(param0, v2, &v0);
inline_020559DC(param0, v2, &v0, &v1);
@@ -101,7 +101,7 @@ static void sub_02055AC0 (UnkStruct_0203CDB0 * param0, s32 param1)
Party * v0;
v0 = Party_GetFromSavedata(param0->unk_0C);
- sub_020777B4(v0, param1);
+ Party_UpdatePokerusStatus(v0, param1);
}
{
@@ -154,7 +154,7 @@ static void sub_02055B64 (UnkStruct_0203CDB0 * param0, s32 param1, const RTCTime
int sub_02055BA8 (const UnkStruct_0203CDB0 * param0)
{
UnkStruct_02055BA8 * v0 = sub_02025CD8(param0->unk_0C);
- return sub_02013974(v0->unk_14.hour);
+ return TimeOfDayForHour(v0->unk_14.hour);
}
int sub_02055BB8 (const UnkStruct_0203CDB0 * param0)
@@ -203,7 +203,7 @@ void sub_02055C2C (const UnkStruct_0203CDB0 * param0)
{
UnkStruct_02055BA8 * v0 = sub_02025CD8(param0->unk_0C);
- v0->unk_2C = sub_020138EC();
+ v0->unk_2C = GetTimestamp();
}
BOOL sub_02055C40 (UnkStruct_0203CDB0 * param0)
diff --git a/src/unk_020562F8.c b/src/unk_020562F8.c
index ce45053df2..7518dd18fe 100644
--- a/src/unk_020562F8.c
+++ b/src/unk_020562F8.c
@@ -12,7 +12,7 @@
#include "overlay006/battle_params.h"
#include "narc.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "savedata/save_table.h"
#include "unk_0202CD50.h"
@@ -64,15 +64,15 @@ void sub_020562F8 (UnkStruct_0203CDB0 * param0)
sub_0205642C(param0, v1);
sub_020564D0(v1);
- v1->unk_40 = sub_020138EC();
+ v1->unk_40 = GetTimestamp();
}
void sub_02056328 (UnkStruct_0203CDB0 * param0)
{
UnkStruct_020564B4 * v0 = &Unk_021C07FC;
UnkStruct_0202CD88 * v1 = sub_0202CD88(param0->unk_0C);
- s64 v2 = sub_020138EC();
- s64 v3 = sub_0201398C(v0->unk_40, v2);
+ s64 v2 = GetTimestamp();
+ s64 v3 = TimeElapsed(v0->unk_40, v2);
if (v3 < 1000) {
v0->unk_48 = ((1000 - v3) * 2);
diff --git a/src/unk_0205A0D8.c b/src/unk_0205A0D8.c
index 8a3a6de007..6e058edda2 100644
--- a/src/unk_0205A0D8.c
+++ b/src/unk_0205A0D8.c
@@ -59,7 +59,7 @@
typedef struct {
UnkStruct_02098D38 * unk_00;
- UnkStruct_02098C44 * unk_04;
+ PartyManagementData * unk_04;
UnkFuncPtr_0205AB10 * unk_08;
Strbuf* unk_0C;
Strbuf* unk_10;
@@ -158,9 +158,9 @@ static void sub_0205A0D8 (UnkStruct_0205A0D8 * param0, UnkStruct_0203CDB0 * para
static void sub_0205A164 (UnkStruct_0205A0D8 * param0, int param1)
{
int v0;
- UnkStruct_02098C44 * v1 = Heap_AllocFromHeap(param1, sizeof(UnkStruct_02098C44));
+ PartyManagementData * v1 = Heap_AllocFromHeap(param1, sizeof(PartyManagementData));
- MI_CpuClear8(v1, sizeof(UnkStruct_02098C44));
+ MI_CpuClear8(v1, sizeof(PartyManagementData));
v1->unk_0C = sub_02025E44(param0->unk_24->unk_0C);
v1->unk_14 = (void *)param0->unk_24->unk_B0;
diff --git a/src/unk_0205CA94.c b/src/unk_0205CA94.c
index c4a5134c04..549b066b70 100644
--- a/src/unk_0205CA94.c
+++ b/src/unk_0205CA94.c
@@ -34,7 +34,7 @@
#include "unk_02061804.h"
typedef struct {
- UnkStruct_020218BC * unk_00;
+ GraphicElementManager * unk_00;
UnkStruct_02009508 * unk_04;
UnkStruct_02009714 * unk_08[4];
UnkStruct_02009CFC * unk_18[2];
@@ -61,20 +61,20 @@ typedef struct {
typedef struct {
VecFx32 unk_00;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
int unk_10;
} UnkStruct_0205D3C4;
typedef struct {
VecFx32 unk_00;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
int unk_10;
int unk_14;
} UnkStruct_0205D5E0;
typedef struct {
VecFx32 unk_00;
- UnkStruct_02022550 * unk_0C;
+ GraphicElementData * unk_0C;
int unk_10;
} UnkStruct_0205D4A4;
@@ -87,7 +87,7 @@ static void sub_0205D080(SysTask * param0, UnkStruct_0205D274 * param1);
void sub_0205D094(UnkStruct_0205D094 * param0, int param1, u32 param2);
static void sub_0205D0AC(UnkStruct_0205D094 * param0);
static void sub_0205D274(UnkStruct_0205D274 * param0, UnkStruct_0205D3AC * param1, int param2);
-static UnkStruct_02022550 * sub_0205D344(UnkStruct_0205D094 * param0, int param1, VecFx32 * param2, int param3, int param4);
+static GraphicElementData * sub_0205D344(UnkStruct_0205D094 * param0, int param1, VecFx32 * param2, int param3, int param4);
static void sub_0205D3AC(UnkStruct_0205D3AC * param0);
static void sub_0205D0B4(UnkStruct_0205D094 * param0);
static void sub_0205D0D8(UnkStruct_0205D094 * param0, int param1, u32 param2);
@@ -561,10 +561,10 @@ void sub_0205D274 (UnkStruct_0205D274 * param0, UnkStruct_0205D3AC * param1, int
param1->unk_04(¶m0->unk_04, param1);
}
-static UnkStruct_02022550 * sub_0205D344 (UnkStruct_0205D094 * param0, int param1, VecFx32 * param2, int param3, int param4)
+static GraphicElementData * sub_0205D344 (UnkStruct_0205D094 * param0, int param1, VecFx32 * param2, int param3, int param4)
{
UnkStruct_ov115_02261520 v0;
- UnkStruct_02022550 * v1;
+ GraphicElementData * v1;
VecFx32 v2 = {FX32_ONE, FX32_ONE, FX32_ONE};
memset(&v0, 0, sizeof(UnkStruct_ov115_02261520));
diff --git a/src/unk_0205D8CC.c b/src/unk_0205D8CC.c
index 495bd761b7..d245d49be8 100644
--- a/src/unk_0205D8CC.c
+++ b/src/unk_0205D8CC.c
@@ -34,7 +34,7 @@ void sub_0205D8F4 (BGL * param0, Window * param1, u32 param2)
}
}
-void sub_0205D944 (Window * param0, const UnkStruct_020279FC * param1)
+void sub_0205D944 (Window * param0, const AnimationControlFlags * param1)
{
sub_0200DD0C(param0->unk_00, sub_0201C290(param0), 1024 - (18 + 12), 10, sub_02027B50(param1), 4);
sub_0205D988(param0);
@@ -46,7 +46,7 @@ void sub_0205D988 (Window * param0)
BGL_FillWindow(param0, 15);
}
-u8 sub_0205D994 (Window * param0, Strbuf *param1, const UnkStruct_020279FC * param2, u8 param3)
+u8 sub_0205D994 (Window * param0, Strbuf *param1, const AnimationControlFlags * param2, u8 param3)
{
u8 v0;
diff --git a/src/unk_020683F4.c b/src/unk_020683F4.c
index 5b67628f4c..7845839e78 100644
--- a/src/unk_020683F4.c
+++ b/src/unk_020683F4.c
@@ -334,13 +334,13 @@ static void sub_02068630 (UnkStruct_02068630 * param0, const UnkStruct_020684D0
{
UnkStruct_0203CDB0 * v0;
UnkStruct_020708E0 * v1;
- UnkStruct_02098C44 * v2;
+ PartyManagementData * v2;
v0 = sub_02050A60(param0->unk_00);
v1 = sub_02050A64(param0->unk_00);
- v2 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
+ v2 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
- memset(v2, 0, sizeof(UnkStruct_02098C44));
+ memset(v2, 0, sizeof(PartyManagementData));
v2->unk_00 = Party_GetFromSavedata(v0->unk_0C);
v2->unk_04 = sub_0207D990(v0->unk_0C);
@@ -587,13 +587,13 @@ static void sub_02068A34 (UnkStruct_02068630 * param0, const UnkStruct_020684D0
{
UnkStruct_0203CDB0 * v0;
UnkStruct_020708E0 * v1;
- UnkStruct_02098C44 * v2;
+ PartyManagementData * v2;
v0 = sub_02050A60(param0->unk_00);
v1 = sub_02050A64(param0->unk_00);
- v2 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
+ v2 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
- memset(v2, 0, sizeof(UnkStruct_02098C44));
+ memset(v2, 0, sizeof(PartyManagementData));
v2->unk_00 = Party_GetFromSavedata(v0->unk_0C);
v2->unk_04 = sub_0207D990(v0->unk_0C);
@@ -956,7 +956,7 @@ static BOOL sub_02068F48 (UnkStruct_020508D4 * param0)
sub_0205D8F4(v0->unk_08, &v1->unk_00, 3);
{
- const UnkStruct_020279FC * v2 = sub_02025E44(v0->unk_0C);
+ const AnimationControlFlags * v2 = sub_02025E44(v0->unk_0C);
sub_0205D944(&v1->unk_00, v2);
v1->unk_14 = sub_0205D994(&v1->unk_00, v1->unk_10, v2, 1);
@@ -987,13 +987,13 @@ static void sub_02068FEC (UnkStruct_02068630 * param0, const UnkStruct_020684D0
{
UnkStruct_0203CDB0 * v0;
UnkStruct_020708E0 * v1;
- UnkStruct_02098C44 * v2;
+ PartyManagementData * v2;
v0 = sub_02050A60(param0->unk_00);
v1 = sub_02050A64(param0->unk_00);
- v2 = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
+ v2 = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
- memset(v2, 0, sizeof(UnkStruct_02098C44));
+ memset(v2, 0, sizeof(PartyManagementData));
v2->unk_00 = Party_GetFromSavedata(v0->unk_0C);
v2->unk_04 = sub_0207D990(v0->unk_0C);
@@ -1115,7 +1115,7 @@ static void sub_020691E0 (UnkStruct_02068630 * param0, const UnkStruct_020684D0
{
UnkStruct_0203CDB0 * v0;
UnkStruct_020708E0 * v1;
- UnkStruct_02098C44 * v2;
+ PartyManagementData * v2;
v0 = sub_02050A60(param0->unk_00);
v1 = sub_02050A64(param0->unk_00);
diff --git a/src/unk_0206A8DC.c b/src/unk_0206A8DC.c
index 53590996a1..3023485f05 100644
--- a/src/unk_0206A8DC.c
+++ b/src/unk_0206A8DC.c
@@ -3,7 +3,7 @@
#include "struct_decls/struct_020507E4_decl.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_020507CC.h"
#include "unk_0206A8DC.h"
@@ -273,7 +273,7 @@ u16 sub_0206AB68 (UnkStruct_020507E4 * param0, int param1)
case 494:
case 497:
if (sub_0206A8EC(param0, (2400 + 37)) == 1) {
- if (sub_02013948() == 0) {
+ if (IsNight() == 0) {
v0 = 1016;
} else {
v0 = 1045;
@@ -292,7 +292,7 @@ u16 sub_0206AB68 (UnkStruct_020507E4 * param0, int param1)
case 74:
case 75:
if (sub_0206A8EC(param0, (2400 + 39)) == 1) {
- if (sub_02013948() == 0) {
+ if (IsNight() == 0) {
v0 = 1013;
} else {
v0 = 1042;
@@ -301,7 +301,7 @@ u16 sub_0206AB68 (UnkStruct_020507E4 * param0, int param1)
break;
case 201:
if (sub_0206A8EC(param0, (2400 + 40)) == 1) {
- if (sub_02013948() == 0) {
+ if (IsNight() == 0) {
v0 = 1023;
} else {
v0 = 1052;
@@ -310,7 +310,7 @@ u16 sub_0206AB68 (UnkStruct_020507E4 * param0, int param1)
break;
case 256:
if (sub_0206A8EC(param0, (2400 + 41)) == 1) {
- if (sub_02013948() == 0) {
+ if (IsNight() == 0) {
v0 = 1006;
} else {
v0 = 1035;
@@ -319,7 +319,7 @@ u16 sub_0206AB68 (UnkStruct_020507E4 * param0, int param1)
break;
case 399:
if (sub_0206A8EC(param0, (2400 + 42)) == 1) {
- if (sub_02013948() == 0) {
+ if (IsNight() == 0) {
v0 = 1006;
} else {
v0 = 1035;
diff --git a/src/unk_0206B9D8.c b/src/unk_0206B9D8.c
index 10cba43b11..d0cbed2cda 100644
--- a/src/unk_0206B9D8.c
+++ b/src/unk_0206B9D8.c
@@ -69,10 +69,10 @@ static int sub_0206B9D8 (UnkStruct_0206B9D8 * param0, UnkStruct_0203CDB0 * param
{
u8 v0;
SaveData * v1;
- UnkStruct_02098C44 * v2 = Heap_AllocFromHeapAtEnd(param2, sizeof(UnkStruct_02098C44));
+ PartyManagementData * v2 = Heap_AllocFromHeapAtEnd(param2, sizeof(PartyManagementData));
v1 = param1->unk_0C;
- MI_CpuClear8(v2, sizeof(UnkStruct_02098C44));
+ MI_CpuClear8(v2, sizeof(PartyManagementData));
v2->unk_0C = sub_02025E44(v1);
v2->unk_00 = Party_GetFromSavedata(v1);
@@ -97,7 +97,7 @@ static int sub_0206B9D8 (UnkStruct_0206B9D8 * param0, UnkStruct_0203CDB0 * param
static int sub_0206BA84 (UnkStruct_0206B9D8 * param0, UnkStruct_0203CDB0 * param1)
{
int v0;
- UnkStruct_02098C44 * v1;
+ PartyManagementData * v1;
if (sub_020509B4(param1)) {
return 1;
diff --git a/src/unk_0206F314.c b/src/unk_0206F314.c
index 6c67702410..770a40dadf 100644
--- a/src/unk_0206F314.c
+++ b/src/unk_0206F314.c
@@ -105,8 +105,8 @@ typedef struct {
UnkStruct_0206F7F8_sub1 unk_2C;
UnkStruct_ov84_02240FA8 unk_A0;
UnkStruct_0200112C * unk_C0;
- UnkStruct_02013A04 * unk_C4;
- UnkStruct_02001AF4 * unk_C8;
+ ResourceMetadata * unk_C4;
+ UIControlData * unk_C8;
UnkStruct_0203CDB0 * unk_CC;
BGL * unk_D0;
Window unk_D4;
diff --git a/src/unk_020722AC.c b/src/unk_020722AC.c
index 278a63b384..ac37aba3fb 100644
--- a/src/unk_020722AC.c
+++ b/src/unk_020722AC.c
@@ -113,8 +113,8 @@ typedef struct {
u16 unk_13E;
UnkStruct_ov84_02240FA8 unk_140;
UnkStruct_0200112C * unk_160;
- UnkStruct_02013A04 * unk_164;
- UnkStruct_02001AF4 * unk_168;
+ ResourceMetadata * unk_164;
+ UIControlData * unk_168;
UnkStruct_0203CDB0 * unk_16C;
BGL * unk_170;
Window unk_174;
@@ -124,7 +124,7 @@ typedef struct {
UnkStruct_02097728 * unk_1A8;
UnkStruct_02028430 * unk_1AC;
UnkStruct_0207D3C0 * unk_1B0;
- UnkStruct_02098C44 * unk_1B4;
+ PartyManagementData * unk_1B4;
} UnkStruct_02072334;
typedef struct {
@@ -522,7 +522,7 @@ static void sub_020726B4 (SysTask * param0, void * param1)
static void sub_02072754 (SysTask * param0, void * param1)
{
u8 v0;
- UnkStruct_02098C44 * v1;
+ PartyManagementData * v1;
UnkStruct_02072334 * v2 = (UnkStruct_02072334 *)param1;
switch (v2->unk_10) {
@@ -602,7 +602,7 @@ static void sub_02072878 (SysTask * param0, void * param1)
{
int v0;
u8 v1, v2;
- UnkStruct_02098C44 * v3;
+ PartyManagementData * v3;
UnkStruct_02072334 * v4 = (UnkStruct_02072334 *)param1;
switch (v4->unk_10) {
@@ -1218,12 +1218,12 @@ static int sub_020734F4 (UnkStruct_02072334 * param0, u8 param1)
static int sub_02073524 (UnkStruct_02072334 * param0, int param1)
{
- UnkStruct_02098C44 * v0;
+ PartyManagementData * v0;
switch (param0->unk_12) {
case 0:
- v0 = Heap_AllocFromHeap(param0->unk_00, sizeof(UnkStruct_02098C44));
- MI_CpuClear8(v0, sizeof(UnkStruct_02098C44));
+ v0 = Heap_AllocFromHeap(param0->unk_00, sizeof(PartyManagementData));
+ MI_CpuClear8(v0, sizeof(PartyManagementData));
v0->unk_00 = Party_GetFromSavedata(sub_0203D174(param0->unk_16C));
v0->unk_04 = sub_0207D990(sub_0203D174(param0->unk_16C));
diff --git a/src/unk_0207A6DC.c b/src/unk_0207A6DC.c
index 8a869d63b2..6d122f613b 100644
--- a/src/unk_0207A6DC.c
+++ b/src/unk_0207A6DC.c
@@ -5,7 +5,7 @@
#include "struct_decls/sys_task.h"
#include "trainer_info.h"
-#include "struct_decls/struct_0202CC84_decl.h"
+#include "struct_defs/chatot_cry.h"
#include "struct_decls/struct_party_decl.h"
#include "struct_decls/battle_system.h"
@@ -414,14 +414,14 @@ static void sub_0207AA90 (int param0, int param1, void * param2, void * param3)
BOOL sub_0207AAA0 (UnkStruct_0207A778 * param0)
{
- UnkStruct_0202CC84 * v0;
+ ChatotCry * v0;
if (sub_02035B54() != 264) {
return 0;
}
- v0 = (UnkStruct_0202CC84 *)¶m0->unk_20[0];
- sub_0202CD3C(v0, param0->unk_00->unk_F0[0]);
+ v0 = (ChatotCry *)¶m0->unk_20[0];
+ CopyChatotCryData(v0, param0->unk_00->unk_F0[0]);
return 1;
}
diff --git a/src/unk_0207AE68.c b/src/unk_0207AE68.c
index 3f567d1ed5..6a23efd694 100644
--- a/src/unk_0207AE68.c
+++ b/src/unk_0207AE68.c
@@ -68,7 +68,7 @@
#include "unk_0207D3B8.h"
#include "unk_0208C324.h"
-UnkStruct_0207AE68 * sub_0207AE68(Party * param0, Pokemon * param1, int param2, UnkStruct_020279FC * param3, int param4, UnkStruct_02026324 * param5, UnkStruct_0207D3C0 * param6, UnkStruct_0202CD88 * param7, UnkStruct_02056B24 * param8, int param9, int param10, int param11);
+UnkStruct_0207AE68 * sub_0207AE68(Party * param0, Pokemon * param1, int param2, AnimationControlFlags * param3, int param4, UnkStruct_02026324 * param5, UnkStruct_0207D3C0 * param6, UnkStruct_0202CD88 * param7, UnkStruct_02056B24 * param8, int param9, int param10, int param11);
static void sub_0207B0A0(SysTask * param0, void * param1);
BOOL sub_0207B0D0(UnkStruct_0207AE68 * param0);
void sub_0207B0E0(UnkStruct_0207AE68 * param0);
@@ -98,7 +98,7 @@ static const u8 Unk_020F0A2C[] = {
0x8
};
-UnkStruct_0207AE68 * sub_0207AE68 (Party * param0, Pokemon * param1, int param2, UnkStruct_020279FC * param3, int param4, UnkStruct_02026324 * param5, UnkStruct_0207D3C0 * param6, UnkStruct_0202CD88 * param7, UnkStruct_02056B24 * param8, int param9, int param10, int param11)
+UnkStruct_0207AE68 * sub_0207AE68 (Party * param0, Pokemon * param1, int param2, AnimationControlFlags * param3, int param4, UnkStruct_02026324 * param5, UnkStruct_0207D3C0 * param6, UnkStruct_0202CD88 * param7, UnkStruct_02056B24 * param8, int param9, int param10, int param11)
{
UnkStruct_0207AE68 * v0;
ArchivedSprite v1;
@@ -200,7 +200,7 @@ void sub_0207B0E0 (UnkStruct_0207AE68 * param0)
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_0201A928(param0->unk_04, 1);
sub_02002FA0(param0->unk_14, 0);
sub_02002FA0(param0->unk_14, 1);
@@ -931,7 +931,7 @@ static void sub_0207C1CC (UnkStruct_0207AE68 * param0, BGL * param1)
GXLayers_TurnBothDispOn();
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
- sub_02017798(sub_0207C520, param0);
+ SetMainCallback(sub_0207C520, param0);
}
static void sub_0207C460 (BGL * param0)
diff --git a/src/unk_0207C63C.c b/src/unk_0207C63C.c
index 1f67c9494d..64e24b9b28 100644
--- a/src/unk_0207C63C.c
+++ b/src/unk_0207C63C.c
@@ -20,7 +20,7 @@
void sub_0207C63C(void);
void sub_0207C664(void);
-UnkStruct_0207C690 * sub_0207C690(int param0);
+GenericPointerData * sub_0207C690(int param0);
void sub_0207C6AC(void);
void sub_0207C730(void);
void sub_0207C770(void);
@@ -49,9 +49,9 @@ void sub_0207C664 (void)
G2S_SetBlendAlpha(GX_BLEND_PLANEMASK_NONE, GX_BLEND_PLANEMASK_BG1 | GX_BLEND_PLANEMASK_BG2 | GX_BLEND_PLANEMASK_BG3, 7, 8);
}
-UnkStruct_0207C690 * sub_0207C690 (int param0)
+GenericPointerData * sub_0207C690 (int param0)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(param0, 0, 2, 0, 2, sub_0207C6AC);
return v0;
diff --git a/src/unk_0207C908.c b/src/unk_0207C908.c
index b1c2240f71..956378f925 100644
--- a/src/unk_0207C908.c
+++ b/src/unk_0207C908.c
@@ -107,44 +107,44 @@ u32 sub_0207C944 (void)
return 27;
}
-void sub_0207C948 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4)
+void sub_0207C948 (CellTransferStateData * param0, AnimationResourceCollection * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4)
{
sub_0200CBDC(param0, param1, sub_0207C944(), sub_0207C908(param3), 1, param2, param4);
}
-void sub_0207C97C (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NNS_G2D_VRAM_TYPE param2, u32 param3)
+void sub_0207C97C (CellTransferStateData * param0, AnimationResourceCollection * param1, NNS_G2D_VRAM_TYPE param2, u32 param3)
{
sub_0200CC9C(param0, param1, sub_0207C944(), sub_0207C920(), 0, 3, param2, param3);
}
-void sub_0207C9B0 (PaletteSys * param0, int param1, UnkStruct_0200C6E4 * param2, UnkStruct_0200C704 * param3, NNS_G2D_VRAM_TYPE param4, u32 param5)
+void sub_0207C9B0 (PaletteSys * param0, int param1, CellTransferStateData * param2, AnimationResourceCollection * param3, NNS_G2D_VRAM_TYPE param4, u32 param5)
{
sub_0200CD7C(param0, param1, param2, param3, sub_0207C944(), sub_0207C920(), 0, 3, param4, param5);
}
-void sub_0207C9EC (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, u32 param2, u32 param3)
+void sub_0207C9EC (CellTransferStateData * param0, AnimationResourceCollection * param1, u32 param2, u32 param3)
{
sub_0200CE0C(param0, param1, sub_0207C944(), sub_0207C924(), 1, param2);
sub_0200CE3C(param0, param1, sub_0207C944(), sub_0207C928(), 1, param3);
}
-void sub_0207CA34 (UnkStruct_0200C704 * param0, u32 param1)
+void sub_0207CA34 (AnimationResourceCollection * param0, u32 param1)
{
sub_0200D070(param0, param1);
}
-void sub_0207CA3C (UnkStruct_0200C704 * param0, u32 param1)
+void sub_0207CA3C (AnimationResourceCollection * param0, u32 param1)
{
sub_0200D080(param0, param1);
}
-void sub_0207CA44 (UnkStruct_0200C704 * param0, u32 param1, u32 param2)
+void sub_0207CA44 (AnimationResourceCollection * param0, u32 param1, u32 param2)
{
sub_0200D090(param0, param1);
sub_0200D0A0(param0, param2);
}
-CellActorData * sub_0207CA58 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, int param2, const UnkStruct_ov104_0223F9E0 * param3)
+CellActorData * sub_0207CA58 (CellTransferStateData * param0, AnimationResourceCollection * param1, int param2, const UnkStruct_ov104_0223F9E0 * param3)
{
CellActorData * v0;
UnkStruct_ov104_0223F9E0 v1;
@@ -178,12 +178,12 @@ u32 sub_0207CAC0 (void)
return 27;
}
-void sub_0207CAC4 (UnkStruct_0200C6E4 * param0, UnkStruct_0200C704 * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4)
+void sub_0207CAC4 (CellTransferStateData * param0, AnimationResourceCollection * param1, NNS_G2D_VRAM_TYPE param2, int param3, u32 param4)
{
sub_0200CBDC(param0, param1, sub_0207CAC0(), sub_0207CA90(param3), 1, param2, param4);
}
-void sub_0207CAF8 (UnkStruct_0200C704 * param0, u32 param1)
+void sub_0207CAF8 (AnimationResourceCollection * param0, u32 param1)
{
sub_0200D070(param0, param1);
}
diff --git a/src/unk_0207E0B8.c b/src/unk_0207E0B8.c
index f1332890ae..11aa032cbd 100644
--- a/src/unk_0207E0B8.c
+++ b/src/unk_0207E0B8.c
@@ -85,82 +85,82 @@ typedef struct {
static int sub_0207E0B8(UnkStruct_020067E8 * param0, int * param1);
static int sub_0207E2A8(UnkStruct_020067E8 * param0, int * param1);
static int sub_0207E7E0(UnkStruct_020067E8 * param0, int * param1);
-static int sub_0207E490(UnkStruct_0207F248 * param0);
-static int sub_0207E518(UnkStruct_0207F248 * param0);
-static int sub_0207E5B4(UnkStruct_0207F248 * param0);
-static int sub_0207E5F4(UnkStruct_0207F248 * param0);
-static int sub_0207E6C0(UnkStruct_0207F248 * param0);
-static int sub_0207E6E4(UnkStruct_0207F248 * param0);
-static int sub_0207E708(UnkStruct_0207F248 * param0);
-static int sub_0207E714(UnkStruct_0207F248 * param0);
-static int sub_0207E750(UnkStruct_0207F248 * param0);
-static int sub_02080BF4(UnkStruct_0207F248 * param0);
+static int sub_0207E490(GameWindowLayout * param0);
+static int sub_0207E518(GameWindowLayout * param0);
+static int sub_0207E5B4(GameWindowLayout * param0);
+static int sub_0207E5F4(GameWindowLayout * param0);
+static int sub_0207E6C0(GameWindowLayout * param0);
+static int sub_0207E6E4(GameWindowLayout * param0);
+static int sub_0207E708(GameWindowLayout * param0);
+static int sub_0207E714(GameWindowLayout * param0);
+static int sub_0207E750(GameWindowLayout * param0);
+static int ProcessWindowInput(GameWindowLayout * param0);
static void sub_0207E898(void * param0);
static void sub_0207E8C0(void);
static void sub_0207E918(BGL * param0);
static void sub_0207EA24(BGL * param0);
-static void sub_0207EB6C(UnkStruct_0207F248 * param0, NARC * param1);
-static UnkStruct_0207F248 * sub_0207ECC0(UnkStruct_020067E8 * param0);
-static void sub_0207EE14(UnkStruct_0207F248 * param0);
-static void sub_0207F308(UnkStruct_0207F248 * param0);
-static u8 sub_0207F984(UnkStruct_0207F248 * param0, u8 param1);
-static u8 sub_0207FE98(UnkStruct_0207F248 * param0);
-static void sub_02080500(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
-static void sub_0207F9A0(UnkStruct_0207F248 * param0);
-static void sub_0207EDC0(UnkStruct_0207F248 * param0);
-static int sub_02080670(UnkStruct_0207F248 * param0);
-static u8 sub_02080B34(UnkStruct_0207F248 * param0, int * param1);
-static u8 sub_020805E4(UnkStruct_0207F248 * param0);
-static void sub_02080A50(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
-static int sub_02080AD8(UnkStruct_0207F248 * param0);
-static u8 sub_02080FD0(UnkStruct_0207F248 * param0);
-static int sub_0208107C(UnkStruct_0207F248 * param0);
-static u8 sub_020811F4(UnkStruct_0207F248 * param0);
-static int sub_02081224(UnkStruct_0207F248 * param0);
-static int sub_02081408(UnkStruct_0207F248 * param0, Pokemon * param1, int * param2);
-static int sub_0208150C(UnkStruct_0207F248 * param0);
-static int sub_02081594(UnkStruct_0207F248 * param0);
-static int sub_020815B8(UnkStruct_0207F248 * param0);
-static int sub_0207E634(UnkStruct_0207F248 * param0);
-static int sub_0208170C(UnkStruct_0207F248 * param0);
-static int sub_02081760(UnkStruct_0207F248 * param0);
-static void sub_0207F094(UnkStruct_0207F248 * param0, Pokemon * param1, u8 param2);
+static void sub_0207EB6C(GameWindowLayout * param0, NARC * param1);
+static GameWindowLayout * sub_0207ECC0(UnkStruct_020067E8 * param0);
+static void sub_0207EE14(GameWindowLayout * param0);
+static void sub_0207F308(GameWindowLayout * param0);
+static u8 sub_0207F984(GameWindowLayout * param0, u8 param1);
+static u8 sub_0207FE98(GameWindowLayout * param0);
+static void sub_02080500(GameWindowLayout * param0, u8 param1, u8 param2);
+static void sub_0207F9A0(GameWindowLayout * param0);
+static void sub_0207EDC0(GameWindowLayout * param0);
+static int HandleGameWindowEvent(GameWindowLayout * param0);
+static u8 HandleWindowInputEvent(GameWindowLayout * param0, int * param1);
+static u8 sub_020805E4(GameWindowLayout * param0);
+static void UpdateWindowLayout(GameWindowLayout * param0, u8 param1, u8 param2);
+static int GetValidWindowLayout(GameWindowLayout * param0);
+static u8 HandleSpecialInput(GameWindowLayout * param0);
+static int ApplyItemEffectOnPokemon(GameWindowLayout * param0);
+static u8 CheckItemUsageValidity(GameWindowLayout * param0);
+static int ProcessItemApplication(GameWindowLayout * param0);
+static int UpdatePokemonWithItem(GameWindowLayout * param0, Pokemon * param1, int * param2);
+static int HandleMessageCompletion(GameWindowLayout * param0);
+static int FinalizeMessageProcessing(GameWindowLayout * param0);
+static int ProcessPokemonItemSwap(GameWindowLayout * param0);
+static int sub_0207E634(GameWindowLayout * param0);
+static int ResetWindowOnInput(GameWindowLayout * param0);
+static int UpdatePokemonFormWithItem(GameWindowLayout * param0);
+static void sub_0207F094(GameWindowLayout * param0, Pokemon * param1, u8 param2);
static u32 sub_0207F134(Pokemon * param0, u8 param1);
-static void sub_0207FE1C(UnkStruct_0207F248 * param0);
-static void sub_02080AB8(u8 param0, s16 * param1, s16 * param2);
-static int sub_0208188C(UnkStruct_0207F248 * param0);
-static u8 sub_020808CC(UnkStruct_0207F248 * param0);
-static u8 sub_02080968(UnkStruct_0207F248 * param0);
-static u8 sub_020809DC(UnkStruct_0207F248 * param0);
-static BOOL sub_020818F8(UnkStruct_0207F248 * param0);
-static UnkStruct_0207C690 * sub_0207EAD4(int param0);
+static void sub_0207FE1C(GameWindowLayout * param0);
+static void CalculateWindowPosition(u8 param0, s16 * param1, s16 * param2);
+static int CheckForItemApplication(GameWindowLayout * param0);
+static u8 CheckDuplicateValues(GameWindowLayout * param0);
+static u8 CheckUniqueValues(GameWindowLayout * param0);
+static u8 CheckEqualityInArray(GameWindowLayout * param0);
+static BOOL ValidateGameWindowState(GameWindowLayout * param0);
+static GenericPointerData * sub_0207EAD4(int param0);
static void sub_0207EAF4(void);
-static void sub_0207EB64(UnkStruct_0207C690 * param0);
-static int sub_0208153C(UnkStruct_0207F248 * param0);
-static int sub_02081578(UnkStruct_0207F248 * param0);
-static void sub_0207F388(UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1);
-static void sub_0207F4AC(UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1);
-static void sub_0207F5A0(UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1);
-static void sub_0207F694(UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1);
-static void sub_0207F788(UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1);
-static void sub_0207F884(UnkStruct_0207F248 * param0, u8 param1, s16 param2, s16 param3);
-static u8 sub_0207FA24(UnkStruct_0207F248 * param0);
-static u8 sub_0207FBE0(UnkStruct_0207F248 * param0, u8 * param1, u8 * param2, u8 param3);
-static u8 sub_0207FC30(UnkStruct_0207F248 * param0, u8 * param1, u8 * param2, const u8 * param3);
-static u8 sub_0207FC94(UnkStruct_0207F248 * param0);
-static void sub_0207FFC8(UnkStruct_0207F248 * param0);
-static u8 sub_020800B4(UnkStruct_0207F248 * param0, u8 * param1);
-static u8 sub_020801F0(UnkStruct_0207F248 * param0, u8 * param1);
-static u8 sub_0208022C(UnkStruct_0207F248 * param0, u8 * param1);
-static u8 sub_0208027C(UnkStruct_0207F248 * param0, u8 * param1);
-static u8 sub_020802CC(UnkStruct_0207F248 * param0, u8 * param1);
-static u8 sub_0208031C(UnkStruct_0207F248 * param0, u8 * param1);
-static u8 sub_020801AC(UnkStruct_0207F248 * param0, u8 * param1);
-static u8 sub_020801B8(UnkStruct_0207F248 * param0, u8 * param1);
-u8 sub_02080404(UnkStruct_0207F248 * param0, u8 param1);
-u8 sub_02080488(UnkStruct_0207F248 * param0, u8 param1);
-static u8 sub_02080ECC(UnkStruct_0207F248 * param0);
-static BOOL sub_02080F3C(UnkStruct_0207F248 * param0, u8 param1, s8 param2);
+static void sub_0207EB64(GenericPointerData * param0);
+static int ProcessMessageResult(GameWindowLayout * param0);
+static int HandleOverlayCompletion(GameWindowLayout * param0);
+static void sub_0207F388(GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1);
+static void sub_0207F4AC(GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1);
+static void sub_0207F5A0(GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1);
+static void sub_0207F694(GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1);
+static void sub_0207F788(GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1);
+static void sub_0207F884(GameWindowLayout * param0, u8 param1, s16 param2, s16 param3);
+static u8 sub_0207FA24(GameWindowLayout * param0);
+static u8 sub_0207FBE0(GameWindowLayout * param0, u8 * param1, u8 * param2, u8 param3);
+static u8 sub_0207FC30(GameWindowLayout * param0, u8 * param1, u8 * param2, const u8 * param3);
+static u8 sub_0207FC94(GameWindowLayout * param0);
+static void sub_0207FFC8(GameWindowLayout * param0);
+static u8 sub_020800B4(GameWindowLayout * param0, u8 * param1);
+static u8 sub_020801F0(GameWindowLayout * param0, u8 * param1);
+static u8 sub_0208022C(GameWindowLayout * param0, u8 * param1);
+static u8 sub_0208027C(GameWindowLayout * param0, u8 * param1);
+static u8 sub_020802CC(GameWindowLayout * param0, u8 * param1);
+static u8 sub_0208031C(GameWindowLayout * param0, u8 * param1);
+static u8 sub_020801AC(GameWindowLayout * param0, u8 * param1);
+static u8 sub_020801B8(GameWindowLayout * param0, u8 * param1);
+u8 sub_02080404(GameWindowLayout * param0, u8 param1);
+u8 sub_02080488(GameWindowLayout * param0, u8 param1);
+static u8 CheckPokemonCondition(GameWindowLayout * param0);
+static BOOL UpdatePokemonStatus(GameWindowLayout * param0, u8 param1, s8 param2);
const UnkStruct_0208BE5C Unk_020F1E88 = {
sub_0207E0B8,
@@ -188,7 +188,7 @@ static const UnkStruct_020F1DF8 Unk_020F1DF8[2][6] = {
}
};
-static const UnkStruct_020F1DB8 Unk_020F1DB8[] = {
+static const ByteFlagSet Unk_020F1DB8[] = {
{0x40, 0x19, 0x0, 0x0, 0x7, 0x2, 0x7, 0x1},
{0xC0, 0x21, 0x0, 0x0, 0x7, 0x3, 0x0, 0x2},
{0x40, 0x49, 0x0, 0x0, 0x0, 0x4, 0x1, 0x3},
@@ -199,7 +199,7 @@ static const UnkStruct_020F1DB8 Unk_020F1DB8[] = {
{0xE0, 0xA8, 0x0, 0x0, 0x5, 0x1, 0x5, 0x0}
};
-static const UnkStruct_020F1DB8 Unk_020F1CF8[] = {
+static const ByteFlagSet Unk_020F1CF8[] = {
{0x40, 0x19, 0x0, 0x0, 0x4, 0x2, 0x1, 0x1},
{0xC0, 0x19, 0x0, 0x0, 0x7, 0x3, 0x0, 0x0},
{0x40, 0x49, 0x0, 0x0, 0x0, 0x4, 0x3, 0x3},
@@ -210,7 +210,7 @@ static const UnkStruct_020F1DB8 Unk_020F1CF8[] = {
{0xE0, 0xA8, 0x0, 0x0, 0x5, 0x1, 0xFF, 0xFF}
};
-static const UnkStruct_020F1DB8 Unk_020F1D38[] = {
+static const ByteFlagSet Unk_020F1D38[] = {
{0x40, 0x19, 0x0, 0x0, 0x7, 0x2, 0x7, 0x1},
{0xC0, 0x21, 0x0, 0x0, 0x7, 0x3, 0x0, 0x2},
{0x40, 0x49, 0x0, 0x0, 0x0, 0x4, 0x1, 0x3},
@@ -221,7 +221,7 @@ static const UnkStruct_020F1DB8 Unk_020F1D38[] = {
{0xE0, 0xB8, 0x0, 0x0, 0x6, 0x1, 0x6, 0x0}
};
-static const UnkStruct_020F1DB8 Unk_020F1D78[] = {
+static const ByteFlagSet Unk_020F1D78[] = {
{0x40, 0x19, 0x0, 0x0, 0x5, 0x2, 0x5, 0x1},
{0xC0, 0x21, 0x0, 0x0, 0x5, 0x3, 0x0, 0x2},
{0x40, 0x49, 0x0, 0x0, 0x0, 0x4, 0x1, 0x3},
@@ -252,11 +252,11 @@ static const u16 Unk_020F1CB0[] = {
static int sub_0207E0B8 (UnkStruct_020067E8 * param0, int * param1)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
NARC * v1;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -315,11 +315,11 @@ static int sub_0207E0B8 (UnkStruct_020067E8 * param0, int * param1)
sub_02081BC0(v0);
sub_0207F9A0(v0);
- if (sub_020818F8(v0) == 0) {
+ if (ValidateGameWindowState(v0) == 0) {
GXLayers_EngineBToggleLayers(GX_PLANEMASK_BG0, 0);
}
- sub_02017798(sub_0207E898, v0);
+ SetMainCallback(sub_0207E898, v0);
sub_020397E4();
NARC_dtor(v1);
@@ -328,7 +328,7 @@ static int sub_0207E0B8 (UnkStruct_020067E8 * param0, int * param1)
static int sub_0207E2A8 (UnkStruct_020067E8 * param0, int * param1)
{
- UnkStruct_0207F248 * v0 = sub_0200682C(param0);
+ GameWindowLayout * v0 = sub_0200682C(param0);
switch (*param1) {
case 0:
@@ -338,7 +338,7 @@ static int sub_0207E2A8 (UnkStruct_020067E8 * param0, int * param1)
*param1 = sub_0207E518(v0);
break;
case 2:
- if (sub_02080B34(v0, param1) == 1) {
+ if (HandleWindowInputEvent(v0, param1) == 1) {
*param1 = 1;
}
break;
@@ -361,28 +361,28 @@ static int sub_0207E2A8 (UnkStruct_020067E8 * param0, int * param1)
*param1 = sub_0207E5F4(v0);
break;
case 9:
- *param1 = sub_02081594(v0);
+ *param1 = FinalizeMessageProcessing(v0);
break;
case 10:
- *param1 = sub_020815B8(v0);
+ *param1 = ProcessPokemonItemSwap(v0);
break;
case 11:
- *param1 = sub_0208150C(v0);
+ *param1 = HandleMessageCompletion(v0);
break;
case 12:
- *param1 = sub_0208153C(v0);
+ *param1 = ProcessMessageResult(v0);
break;
case 13:
- *param1 = sub_02081578(v0);
+ *param1 = HandleOverlayCompletion(v0);
break;
case 14:
- *param1 = sub_02081760(v0);
+ *param1 = UpdatePokemonFormWithItem(v0);
break;
case 15:
*param1 = sub_0207E634(v0);
break;
case 16:
- *param1 = sub_02081224(v0);
+ *param1 = ProcessItemApplication(v0);
break;
case 17:
*param1 = sub_02083658(v0);
@@ -434,11 +434,11 @@ static int sub_0207E2A8 (UnkStruct_020067E8 * param0, int * param1)
}
break;
case 30:
- *param1 = sub_02080BF4(v0);
+ *param1 = ProcessWindowInput(v0);
break;
case 31:
if (ov118_021D0DBC(v0) == 1) {
- sub_020819CC(v0);
+ UnloadOverlay118(v0);
*param1 = 25;
} else {
*param1 = 31;
@@ -464,7 +464,7 @@ static int sub_0207E2A8 (UnkStruct_020067E8 * param0, int * param1)
return 0;
}
-static int sub_0207E490 (UnkStruct_0207F248 * param0)
+static int sub_0207E490 (GameWindowLayout * param0)
{
if (ScreenWipe_Done() == 1) {
if ((param0->unk_5A4->unk_20 == 5) || (param0->unk_5A4->unk_20 == 16)) {
@@ -494,7 +494,7 @@ static int sub_0207E490 (UnkStruct_0207F248 * param0)
return 0;
}
-static int sub_0207E518 (UnkStruct_0207F248 * param0)
+static int sub_0207E518 (GameWindowLayout * param0)
{
u8 v0 = sub_0207FE98(param0);
@@ -506,12 +506,12 @@ static int sub_0207E518 (UnkStruct_0207F248 * param0)
sub_020868B0(param0);
return 24;
} else if (param0->unk_5A4->unk_20 == 19) {
- return sub_0208188C(param0);
+ return CheckForItemApplication(param0);
} else {
return 2;
}
} else if (v0 == 4) {
- return sub_02080670(param0);
+ return HandleGameWindowEvent(param0);
} else if (v0 == 3) {
param0->unk_5A4->unk_23 = 0;
return 32;
@@ -528,13 +528,13 @@ static int sub_0207E518 (UnkStruct_0207F248 * param0)
return 1;
}
-static int sub_0207E5B4 (UnkStruct_0207F248 * param0)
+static int sub_0207E5B4 (GameWindowLayout * param0)
{
- u8 v0 = sub_02080FD0(param0);
+ u8 v0 = HandleSpecialInput(param0);
if ((v0 == 0) || (v0 == 2)) {
sub_0200D414(param0->unk_5B0[6], 1);
- return sub_0208107C(param0);
+ return ApplyItemEffectOnPokemon(param0);
} else if (v0 == 3) {
param0->unk_5A4->unk_23 = 0;
return 32;
@@ -543,13 +543,13 @@ static int sub_0207E5B4 (UnkStruct_0207F248 * param0)
return 4;
}
-static int sub_0207E5F4 (UnkStruct_0207F248 * param0)
+static int sub_0207E5F4 (GameWindowLayout * param0)
{
- u8 v0 = sub_02080FD0(param0);
+ u8 v0 = HandleSpecialInput(param0);
if ((v0 == 0) || (v0 == 2)) {
sub_0200D414(param0->unk_5B0[6], 1);
- return sub_02081224(param0);
+ return ProcessItemApplication(param0);
} else if (v0 == 3) {
param0->unk_5A4->unk_23 = 0;
return 32;
@@ -558,7 +558,7 @@ static int sub_0207E5F4 (UnkStruct_0207F248 * param0)
return 8;
}
-static int sub_0207E634 (UnkStruct_0207F248 * param0)
+static int sub_0207E634 (GameWindowLayout * param0)
{
u32 v0 = sub_02001BE0(param0->unk_700);
@@ -589,7 +589,7 @@ static int sub_0207E634 (UnkStruct_0207F248 * param0)
return 15;
}
-static int sub_0207E6C0 (UnkStruct_0207F248 * param0)
+static int sub_0207E6C0 (GameWindowLayout * param0)
{
if (Message_Printing(param0->unk_B10) == 0) {
return param0->unk_B0E;
@@ -598,7 +598,7 @@ static int sub_0207E6C0 (UnkStruct_0207F248 * param0)
return 24;
}
-static int sub_0207E6E4 (UnkStruct_0207F248 * param0)
+static int sub_0207E6E4 (GameWindowLayout * param0)
{
if (gCoreSys.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
Sound_PlayEffect(1500);
@@ -608,13 +608,13 @@ static int sub_0207E6E4 (UnkStruct_0207F248 * param0)
return 25;
}
-static int sub_0207E708 (UnkStruct_0207F248 * param0)
+static int sub_0207E708 (GameWindowLayout * param0)
{
sub_020827EC(param0);
return 27;
}
-static int sub_0207E714 (UnkStruct_0207F248 * param0)
+static int sub_0207E714 (GameWindowLayout * param0)
{
switch (sub_02002114(param0->unk_700, 12)) {
case 0:
@@ -626,9 +626,9 @@ static int sub_0207E714 (UnkStruct_0207F248 * param0)
return 27;
}
-static int sub_0207E750 (UnkStruct_0207F248 * param0)
+static int sub_0207E750 (GameWindowLayout * param0)
{
- u8 v0 = sub_02080FD0(param0);
+ u8 v0 = HandleSpecialInput(param0);
if ((v0 == 0) || (v0 == 2)) {
sub_0200D414(param0->unk_5B0[6], 1);
@@ -652,10 +652,10 @@ static int sub_0207E750 (UnkStruct_0207F248 * param0)
static int sub_0207E7E0 (UnkStruct_020067E8 * param0, int * param1)
{
- UnkStruct_0207F248 * v0 = sub_0200682C(param0);
+ GameWindowLayout * v0 = sub_0200682C(param0);
u32 v1;
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_02082FF4(v0);
sub_02081B90(v0);
sub_0207EA24(v0->unk_00);
@@ -689,7 +689,7 @@ static int sub_0207E7E0 (UnkStruct_020067E8 * param0, int * param1)
static void sub_0207E898 (void * param0)
{
- UnkStruct_0207F248 * v0 = param0;
+ GameWindowLayout * v0 = param0;
sub_0201C2B8(v0->unk_00);
sub_0201DCAC();
@@ -875,7 +875,7 @@ static void sub_0207EA24 (BGL * param0)
Heap_FreeToHeapExplicit(12, param0);
}
-void sub_0207EA74 (UnkStruct_0207F248 * param0, int param1)
+void sub_0207EA74 (GameWindowLayout * param0, int param1)
{
if (param1 == 0) {
sub_02019120(0, 0);
@@ -894,9 +894,9 @@ void sub_0207EA74 (UnkStruct_0207F248 * param0, int param1)
}
}
-static UnkStruct_0207C690 * sub_0207EAD4 (int param0)
+static GenericPointerData * sub_0207EAD4 (int param0)
{
- UnkStruct_0207C690 * v0;
+ GenericPointerData * v0;
v0 = sub_02024220(param0, 0, 1, 0, 2, sub_0207EAF4);
return v0;
@@ -914,12 +914,12 @@ static void sub_0207EAF4 (void)
G3_ViewPort(0, 0, 255, 191);
}
-static void sub_0207EB64 (UnkStruct_0207C690 * param0)
+static void sub_0207EB64 (GenericPointerData * param0)
{
sub_020242C4(param0);
}
-static void sub_0207EB6C (UnkStruct_0207F248 * param0, NARC * param1)
+static void sub_0207EB6C (GameWindowLayout * param0, NARC * param1)
{
sub_020070E8(param1, 15, param0->unk_00, 3, 0, 0, 0, 12);
sub_0200710C(param1, 17, param0->unk_00, 3, 0, 0, 0, 12);
@@ -946,18 +946,18 @@ static void sub_0207EB6C (UnkStruct_0207F248 * param0, NARC * param1)
sub_020070E8(param1, 12, param0->unk_00, 5, 0, 0, 0, 12);
sub_0200710C(param1, 14, param0->unk_00, 5, 0, 0, 0, 12);
sub_02007130(param1, 13, 4, 0, 0x20, 12);
- sub_02081940(12, param0->unk_264, param0->unk_324, param0->unk_3E4);
+ LoadScreenDataFromNARC(12, param0->unk_264, param0->unk_324, param0->unk_3E4);
sub_0201975C(0, 0);
sub_0201975C(4, 0);
}
-static UnkStruct_0207F248 * sub_0207ECC0 (UnkStruct_020067E8 * param0)
+static GameWindowLayout * sub_0207ECC0 (UnkStruct_020067E8 * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
u32 v1;
- v0 = sub_0200681C(param0, sizeof(UnkStruct_0207F248), 12);
- memset(v0, 0, sizeof(UnkStruct_0207F248));
+ v0 = sub_0200681C(param0, sizeof(GameWindowLayout), 12);
+ memset(v0, 0, sizeof(GameWindowLayout));
v0->unk_5A4 = sub_02006840(param0);
v0->unk_00 = sub_02018340(12);
@@ -989,7 +989,7 @@ static UnkStruct_0207F248 * sub_0207ECC0 (UnkStruct_020067E8 * param0)
return v0;
}
-static void sub_0207EDC0 (UnkStruct_0207F248 * param0)
+static void sub_0207EDC0 (GameWindowLayout * param0)
{
if ((param0->unk_5A4->unk_20 & 0x80) != 0) {
param0->unk_B0F_7 = 1;
@@ -1001,7 +1001,7 @@ static void sub_0207EDC0 (UnkStruct_0207F248 * param0)
}
}
-static void sub_0207EE14 (UnkStruct_0207F248 * param0)
+static void sub_0207EE14 (GameWindowLayout * param0)
{
u8 v0 = 3;
@@ -1037,12 +1037,12 @@ static void sub_0207EE14 (UnkStruct_0207F248 * param0)
sub_020825B4(param0, v0);
}
-u8 sub_0207EF04 (UnkStruct_0207F248 * param0, u8 param1)
+u8 sub_0207EF04 (GameWindowLayout * param0, u8 param1)
{
return param0->unk_704[param1].unk_29;
}
-u8 sub_0207EF14 (UnkStruct_0207F248 * param0, u8 param1)
+u8 sub_0207EF14 (GameWindowLayout * param0, u8 param1)
{
Pokemon * v0;
u32 v1;
@@ -1087,7 +1087,7 @@ u8 sub_0207EF14 (UnkStruct_0207F248 * param0, u8 param1)
return 1;
}
-static void sub_0207F094 (UnkStruct_0207F248 * param0, Pokemon * param1, u8 param2)
+static void sub_0207F094 (GameWindowLayout * param0, Pokemon * param1, u8 param2)
{
u32 v0;
u32 v1;
@@ -1155,12 +1155,12 @@ static u32 sub_0207F134 (Pokemon * param0, u8 param1)
return v0;
}
-const u16 * sub_0207F248 (UnkStruct_0207F248 * param0)
+const u16 * sub_0207F248 (GameWindowLayout * param0)
{
return ¶m0->unk_324[3 * 16 + 6];
}
-static void sub_0207F250 (UnkStruct_0207F248 * param0, u8 param1, u8 param2, u8 param3, u8 param4)
+static void sub_0207F250 (GameWindowLayout * param0, u8 param1, u8 param2, u8 param3, u8 param4)
{
const u16 * v0;
@@ -1184,7 +1184,7 @@ static void sub_0207F250 (UnkStruct_0207F248 * param0, u8 param1, u8 param2, u8
sub_0207F8F8(param0, param1);
}
-static void sub_0207F308 (UnkStruct_0207F248 * param0)
+static void sub_0207F308 (GameWindowLayout * param0)
{
const UnkStruct_020F1DF8 * v0;
@@ -1210,7 +1210,7 @@ static void sub_0207F308 (UnkStruct_0207F248 * param0)
sub_0201C3C0(param0->unk_00, 4);
}
-static void sub_0207F388 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1)
+static void sub_0207F388 (GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1)
{
u8 v0;
NARC * v1;
@@ -1233,7 +1233,7 @@ static void sub_0207F388 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
sub_02083104(param0, v0);
sub_020830D4(param0, v0);
sub_02083014(param0, v0, param0->unk_704[v0].unk_0E_0);
- sub_02080A50(param0, v0, 0);
+ UpdateWindowLayout(param0, v0, 0);
} else {
sub_0207F884(param0, v0, param1[v0].unk_00, param1[v0].unk_02);
}
@@ -1242,7 +1242,7 @@ static void sub_0207F388 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
NARC_dtor(v1);
}
-static void sub_0207F4AC (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1)
+static void sub_0207F4AC (GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1)
{
u8 v0;
NARC * v1;
@@ -1260,7 +1260,7 @@ static void sub_0207F4AC (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
sub_02083104(param0, v0);
sub_020830D4(param0, v0);
sub_02083014(param0, v0, param0->unk_704[v0].unk_0E_0);
- sub_02080A50(param0, v0, 0);
+ UpdateWindowLayout(param0, v0, 0);
} else {
sub_0207F884(param0, v0, param1[v0].unk_00, param1[v0].unk_02);
}
@@ -1269,7 +1269,7 @@ static void sub_0207F4AC (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
NARC_dtor(v1);
}
-static void sub_0207F5A0 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1)
+static void sub_0207F5A0 (GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1)
{
u8 v0;
NARC * v1;
@@ -1287,7 +1287,7 @@ static void sub_0207F5A0 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
sub_02083104(param0, v0);
sub_020830D4(param0, v0);
sub_02083014(param0, v0, param0->unk_704[v0].unk_0E_0);
- sub_02080A50(param0, v0, 0);
+ UpdateWindowLayout(param0, v0, 0);
} else {
sub_0207F884(param0, v0, param1[v0].unk_00, param1[v0].unk_02);
}
@@ -1296,7 +1296,7 @@ static void sub_0207F5A0 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
NARC_dtor(v1);
}
-static void sub_0207F694 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1)
+static void sub_0207F694 (GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1)
{
u8 v0;
NARC * v1;
@@ -1314,7 +1314,7 @@ static void sub_0207F694 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
sub_02083104(param0, v0);
sub_020830D4(param0, v0);
sub_02083014(param0, v0, param0->unk_704[v0].unk_0E_0);
- sub_02080A50(param0, v0, 0);
+ UpdateWindowLayout(param0, v0, 0);
} else {
sub_0207F884(param0, v0, param1[v0].unk_00, param1[v0].unk_02);
}
@@ -1323,7 +1323,7 @@ static void sub_0207F694 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
NARC_dtor(v1);
}
-static void sub_0207F788 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8 * param1)
+static void sub_0207F788 (GameWindowLayout * param0, const UnkStruct_020F1DF8 * param1)
{
u8 v0;
NARC * v1;
@@ -1342,7 +1342,7 @@ static void sub_0207F788 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
sub_02083104(param0, v0);
sub_020830D4(param0, v0);
sub_02083014(param0, v0, param0->unk_704[v0].unk_0E_0);
- sub_02080A50(param0, v0, 0);
+ UpdateWindowLayout(param0, v0, 0);
} else {
sub_0207F884(param0, v0, param1[v0].unk_00, param1[v0].unk_02);
}
@@ -1351,7 +1351,7 @@ static void sub_0207F788 (UnkStruct_0207F248 * param0, const UnkStruct_020F1DF8
NARC_dtor(v1);
}
-static void sub_0207F884 (UnkStruct_0207F248 * param0, u8 param1, s16 param2, s16 param3)
+static void sub_0207F884 (GameWindowLayout * param0, u8 param1, s16 param2, s16 param3)
{
sub_020198E8(param0->unk_00, 2, param2, param3, 16, 6, (const void *)param0->unk_3E4, 0, 0, 16, 6);
sub_02019E2C(param0->unk_00, 2, param2, param3, 16, 6, 1);
@@ -1360,7 +1360,7 @@ static void sub_0207F884 (UnkStruct_0207F248 * param0, u8 param1, s16 param2, s1
sub_02083104(param0, param1);
}
-void sub_0207F8F8 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_0207F8F8 (GameWindowLayout * param0, u8 param1)
{
Pokemon * v0;
u8 v1;
@@ -1388,7 +1388,7 @@ void sub_0207F8F8 (UnkStruct_0207F248 * param0, u8 param1)
sub_0201972C(2, ¶m0->unk_4A4[v1 * 16], 8 * 2, (3 + param1) * 32);
}
-static u8 sub_0207F984 (UnkStruct_0207F248 * param0, u8 param1)
+static u8 sub_0207F984 (GameWindowLayout * param0, u8 param1)
{
if ((param0->unk_5A4->unk_21 == 2) && ((param1 & 1) != 0)) {
return 1;
@@ -1397,7 +1397,7 @@ static u8 sub_0207F984 (UnkStruct_0207F248 * param0, u8 param1)
return 0;
}
-static void sub_0207F9A0 (UnkStruct_0207F248 * param0)
+static void sub_0207F9A0 (GameWindowLayout * param0)
{
u8 v0, v1;
@@ -1413,7 +1413,7 @@ static const u8 Unk_020F1BD4[][6] = {
{0x5, 0x3, 0x1, 0x4, 0x2, 0x0}
};
-static u8 sub_0207FA00 (UnkStruct_0207F248 * param0)
+static u8 sub_0207FA00 (GameWindowLayout * param0)
{
if (sub_0207FA24(param0) == 1) {
return 1;
@@ -1426,7 +1426,7 @@ static u8 sub_0207FA00 (UnkStruct_0207F248 * param0)
return 5;
}
-static u8 sub_0207FA24 (UnkStruct_0207F248 * param0)
+static u8 sub_0207FA24 (GameWindowLayout * param0)
{
u8 v0;
u8 v1;
@@ -1486,7 +1486,7 @@ static u8 sub_0207FA24 (UnkStruct_0207F248 * param0)
Sound_PlayEffect(1500);
if (v4 < 6) {
- sub_02080A50(param0, v4, 0);
+ UpdateWindowLayout(param0, v4, 0);
sub_0201C3C0(param0->unk_00, 4);
}
@@ -1501,7 +1501,7 @@ static u8 sub_0207FA24 (UnkStruct_0207F248 * param0)
return 0;
}
-static u8 sub_0207FBE0 (UnkStruct_0207F248 * param0, u8 * param1, u8 * param2, u8 param3)
+static u8 sub_0207FBE0 (GameWindowLayout * param0, u8 * param1, u8 * param2, u8 param3)
{
u8 v0 = param0->unk_B11;
@@ -1520,7 +1520,7 @@ static u8 sub_0207FBE0 (UnkStruct_0207F248 * param0, u8 * param1, u8 * param2, u
return v0;
}
-static u8 sub_0207FC30 (UnkStruct_0207F248 * param0, u8 * param1, u8 * param2, const u8 * param3)
+static u8 sub_0207FC30 (GameWindowLayout * param0, u8 * param1, u8 * param2, const u8 * param3)
{
u8 v0 = 0;
@@ -1541,9 +1541,9 @@ static u8 sub_0207FC30 (UnkStruct_0207F248 * param0, u8 * param1, u8 * param2, c
return 0;
}
-static u8 sub_0207FC94 (UnkStruct_0207F248 * param0)
+static u8 sub_0207FC94 (GameWindowLayout * param0)
{
- int v0 = sub_02080AD8(param0);
+ int v0 = GetValidWindowLayout(param0);
if (v0 != 0xffffffff) {
u8 v1, v2;
@@ -1556,7 +1556,7 @@ static u8 sub_0207FC94 (UnkStruct_0207F248 * param0)
sub_02080500(param0, param0->unk_B11, 1);
if (v3 < 6) {
- sub_02080A50(param0, v3, 0);
+ UpdateWindowLayout(param0, v3, 0);
}
sub_0201E028(param0->unk_7F4, &v1, &v2, NULL, NULL, param0->unk_B11, 4);
@@ -1579,7 +1579,7 @@ static u8 sub_0207FC94 (UnkStruct_0207F248 * param0)
return 0;
}
-void sub_0207FD68 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_0207FD68 (GameWindowLayout * param0, u8 param1)
{
if ((param1 == 6) || (param1 == 7)) {
sub_02021CAC(param0->unk_5B0[6], 0);
@@ -1600,13 +1600,13 @@ void sub_0207FD68 (UnkStruct_0207F248 * param0, u8 param1)
sub_02080500(param0, param0->unk_B11, 1);
if (v2 < 6) {
- sub_02080A50(param0, v2, 0);
+ UpdateWindowLayout(param0, v2, 0);
sub_0201C3C0(param0->unk_00, 4);
}
}
}
-static void sub_0207FE1C (UnkStruct_0207F248 * param0)
+static void sub_0207FE1C (GameWindowLayout * param0)
{
switch (param0->unk_B0C) {
case 0:
@@ -1616,22 +1616,22 @@ static void sub_0207FE1C (UnkStruct_0207F248 * param0)
{
s16 v0, v1;
- sub_02080AB8(param0->unk_B0D, &v0, &v1);
+ CalculateWindowPosition(param0->unk_B0D, &v0, &v1);
sub_020832E4(param0, v0, v1);
}
- sub_02080A50(param0, param0->unk_B0D, 2);
+ UpdateWindowLayout(param0, param0->unk_B0D, 2);
sub_0201C3C0(param0->unk_00, 4);
param0->unk_B0C++;
break;
case 2:
- sub_02080A50(param0, param0->unk_B0D, 1);
+ UpdateWindowLayout(param0, param0->unk_B0D, 1);
sub_0201C3C0(param0->unk_00, 4);
param0->unk_B0C = 0;
break;
}
}
-static u8 sub_0207FE98 (UnkStruct_0207F248 * param0)
+static u8 sub_0207FE98 (GameWindowLayout * param0)
{
u8 v0;
@@ -1697,7 +1697,7 @@ static u8 sub_0207FE98 (UnkStruct_0207F248 * param0)
return v0;
}
-static void sub_0207FFC8 (UnkStruct_0207F248 * param0)
+static void sub_0207FFC8 (GameWindowLayout * param0)
{
u8 * v0;
u8 v1;
@@ -1740,7 +1740,7 @@ static void sub_0207FFC8 (UnkStruct_0207F248 * param0)
sub_0200D414(param0->unk_5B0[6], 1);
}
-static u8 sub_020800B4 (UnkStruct_0207F248 * param0, u8 * param1)
+static u8 sub_020800B4 (GameWindowLayout * param0, u8 * param1)
{
Pokemon * v0 = Party_GetPokemonBySlotIndex(param0->unk_5A4->unk_00, param0->unk_B11);
u16 v1;
@@ -1758,7 +1758,7 @@ static u8 sub_020800B4 (UnkStruct_0207F248 * param0, u8 * param1)
break;
}
- v5 = sub_02080BCC(v1);
+ v5 = GetElementIndex(v1);
if (v5 != 0xff) {
param1[v4] = v5;
@@ -1790,7 +1790,7 @@ static u8 sub_020800B4 (UnkStruct_0207F248 * param0, u8 * param1)
return v4;
}
-static u8 sub_020801AC (UnkStruct_0207F248 * param0, u8 * param1)
+static u8 sub_020801AC (GameWindowLayout * param0, u8 * param1)
{
param1[0] = 14;
param1[1] = 9;
@@ -1798,7 +1798,7 @@ static u8 sub_020801AC (UnkStruct_0207F248 * param0, u8 * param1)
return 2;
}
-static u8 sub_020801B8 (UnkStruct_0207F248 * param0, u8 * param1)
+static u8 sub_020801B8 (GameWindowLayout * param0, u8 * param1)
{
if (param0->unk_704[param0->unk_B11].unk_10 == 0) {
param1[0] = 8;
@@ -1814,7 +1814,7 @@ static u8 sub_020801B8 (UnkStruct_0207F248 * param0, u8 * param1)
return 2;
}
-static u8 sub_020801F0 (UnkStruct_0207F248 * param0, u8 * param1)
+static u8 sub_020801F0 (GameWindowLayout * param0, u8 * param1)
{
if (param0->unk_704[param0->unk_B11].unk_0E_15 == 1) {
param1[0] = 13;
@@ -1830,7 +1830,7 @@ static u8 sub_020801F0 (UnkStruct_0207F248 * param0, u8 * param1)
return 2;
}
-static u8 sub_0208022C (UnkStruct_0207F248 * param0, u8 * param1)
+static u8 sub_0208022C (GameWindowLayout * param0, u8 * param1)
{
switch (sub_02080354(param0, param0->unk_B11)) {
case 0:
@@ -1852,7 +1852,7 @@ static u8 sub_0208022C (UnkStruct_0207F248 * param0, u8 * param1)
return 0;
}
-static u8 sub_0208027C (UnkStruct_0207F248 * param0, u8 * param1)
+static u8 sub_0208027C (GameWindowLayout * param0, u8 * param1)
{
switch (sub_02080404(param0, param0->unk_B11)) {
case 0:
@@ -1874,7 +1874,7 @@ static u8 sub_0208027C (UnkStruct_0207F248 * param0, u8 * param1)
return 0;
}
-static u8 sub_020802CC (UnkStruct_0207F248 * param0, u8 * param1)
+static u8 sub_020802CC (GameWindowLayout * param0, u8 * param1)
{
switch (sub_02080488(param0, param0->unk_B11)) {
case 0:
@@ -1896,7 +1896,7 @@ static u8 sub_020802CC (UnkStruct_0207F248 * param0, u8 * param1)
return 0;
}
-static u8 sub_0208031C (UnkStruct_0207F248 * param0, u8 * param1)
+static u8 sub_0208031C (GameWindowLayout * param0, u8 * param1)
{
if (param0->unk_704[param0->unk_B11].unk_10 == 1) {
param1[0] = 1;
@@ -1911,7 +1911,7 @@ static u8 sub_0208031C (UnkStruct_0207F248 * param0, u8 * param1)
return 2;
}
-u8 sub_02080354 (UnkStruct_0207F248 * param0, u8 param1)
+u8 sub_02080354 (GameWindowLayout * param0, u8 param1)
{
u8 v0;
@@ -1942,7 +1942,7 @@ u8 sub_02080354 (UnkStruct_0207F248 * param0, u8 param1)
return 1;
}
-u8 sub_02080404 (UnkStruct_0207F248 * param0, u8 param1)
+u8 sub_02080404 (GameWindowLayout * param0, u8 param1)
{
u8 v0;
@@ -1965,7 +1965,7 @@ u8 sub_02080404 (UnkStruct_0207F248 * param0, u8 param1)
return 1;
}
-u8 sub_02080488 (UnkStruct_0207F248 * param0, u8 param1)
+u8 sub_02080488 (GameWindowLayout * param0, u8 param1)
{
u8 v0;
@@ -1988,7 +1988,7 @@ u8 sub_02080488 (UnkStruct_0207F248 * param0, u8 param1)
return 1;
}
-static void sub_02080500 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+static void sub_02080500 (GameWindowLayout * param0, u8 param1, u8 param2)
{
if (param1 == 6) {
u8 v0 = sub_02021E24(param0->unk_5B0[8]);
@@ -2040,7 +2040,7 @@ u8 sub_020805D0 (u8 param0, u8 param1)
return 0;
}
-static u8 sub_020805E4 (UnkStruct_0207F248 * param0)
+static u8 sub_020805E4 (GameWindowLayout * param0)
{
u8 v0;
@@ -2077,7 +2077,7 @@ static u8 sub_020805E4 (UnkStruct_0207F248 * param0)
return v0;
}
-static int sub_02080670 (UnkStruct_0207F248 * param0)
+static int HandleGameWindowEvent (GameWindowLayout * param0)
{
u8 v0;
@@ -2145,7 +2145,7 @@ static int sub_02080670 (UnkStruct_0207F248 * param0)
}
if (param0->unk_5A4->unk_20 == 17) {
- switch (sub_020808CC(param0)) {
+ switch (CheckDuplicateValues(param0)) {
case 0:
break;
case 1:
@@ -2162,7 +2162,7 @@ static int sub_02080670 (UnkStruct_0207F248 * param0)
}
if (param0->unk_5A4->unk_20 == 22) {
- switch (sub_02080968(param0)) {
+ switch (CheckUniqueValues(param0)) {
case 0:
break;
case 1:
@@ -2174,7 +2174,7 @@ static int sub_02080670 (UnkStruct_0207F248 * param0)
}
if (param0->unk_5A4->unk_20 == 23) {
- switch (sub_020809DC(param0)) {
+ switch (CheckEqualityInArray(param0)) {
case 0:
break;
case 1:
@@ -2190,7 +2190,7 @@ static int sub_02080670 (UnkStruct_0207F248 * param0)
return 32;
}
-static u8 sub_020808CC (UnkStruct_0207F248 * param0)
+static u8 CheckDuplicateValues (GameWindowLayout * param0)
{
u8 v0, v1;
@@ -2217,7 +2217,7 @@ static u8 sub_020808CC (UnkStruct_0207F248 * param0)
return 0;
}
-static u8 sub_02080968 (UnkStruct_0207F248 * param0)
+static u8 CheckUniqueValues (GameWindowLayout * param0)
{
u8 v0, v1;
@@ -2240,7 +2240,7 @@ static u8 sub_02080968 (UnkStruct_0207F248 * param0)
return 0;
}
-static u8 sub_020809DC (UnkStruct_0207F248 * param0)
+static u8 CheckEqualityInArray (GameWindowLayout * param0)
{
u8 v0, v1;
@@ -2282,7 +2282,7 @@ static const UnkUnion_02022594 Unk_020F1C94[] = {
{0xFF, 0x0, 0x0, 0x0}
};
-static void sub_02080A50 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+static void UpdateWindowLayout (GameWindowLayout * param0, u8 param1, u8 param2)
{
u16 * v0;
u16 v1;
@@ -2301,17 +2301,17 @@ static void sub_02080A50 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
}
}
-static void sub_02080AB8 (u8 param0, s16 * param1, s16 * param2)
+static void CalculateWindowPosition (u8 param0, s16 * param1, s16 * param2)
{
*param1 = Unk_020F1BB8[param0][0] * 8 + ((5 * 8) >> 1);
*param2 = Unk_020F1BB8[param0][1] * 8 + ((5 * 8) >> 1);
}
-static int sub_02080AD8 (UnkStruct_0207F248 * param0)
+static int GetValidWindowLayout (GameWindowLayout * param0)
{
int v0;
- if (sub_020818F8(param0) == 0) {
+ if (ValidateGameWindowState(param0) == 0) {
return 0xffffffff;
}
@@ -2328,7 +2328,7 @@ static int sub_02080AD8 (UnkStruct_0207F248 * param0)
return v0;
}
-static u8 sub_02080B34 (UnkStruct_0207F248 * param0, int * param1)
+static u8 HandleWindowInputEvent (GameWindowLayout * param0, int * param1)
{
u32 v0 = sub_02001BE0(param0->unk_700);
@@ -2359,7 +2359,7 @@ static u8 sub_02080B34 (UnkStruct_0207F248 * param0, int * param1)
return 0;
}
-u8 sub_02080BCC (u16 param0)
+u8 GetElementIndex (u16 param0)
{
u8 v0;
@@ -2372,7 +2372,7 @@ u8 sub_02080BCC (u16 param0)
return 0xff;
}
-static int sub_02080BF4 (UnkStruct_0207F248 * param0)
+static int ProcessWindowInput (GameWindowLayout * param0)
{
switch (param0->unk_B14[1]) {
case 0:
@@ -2382,7 +2382,7 @@ static int sub_02080BF4 (UnkStruct_0207F248 * param0)
sub_02083B88(param0);
return 1;
} else {
- switch (sub_02080ECC(param0)) {
+ switch (CheckPokemonCondition(param0)) {
case 0:
Sound_PlayEffect(1516);
sub_0200D414(param0->unk_5B0[6], 1);
@@ -2416,7 +2416,7 @@ static int sub_02080BF4 (UnkStruct_0207F248 * param0)
sub_02083B88(param0);
return 1;
} else {
- switch (sub_02080ECC(param0)) {
+ switch (CheckPokemonCondition(param0)) {
case 0:
Sound_PlayEffect(1516);
sub_0200D414(param0->unk_5B0[6], 1);
@@ -2448,14 +2448,14 @@ static int sub_02080BF4 (UnkStruct_0207F248 * param0)
}
break;
case 2:
- if (sub_02080F3C(param0, param0->unk_B0F_0, -1) == 1) {
+ if (UpdatePokemonStatus(param0, param0->unk_B0F_0, -1) == 1) {
Sound_PlayEffect(1516);
param0->unk_B14[1] = 3;
param0->unk_B14[2] = 0;
}
break;
case 3:
- if (sub_02080F3C(param0, param0->unk_B11, 1) == 1) {
+ if (UpdatePokemonStatus(param0, param0->unk_B11, 1) == 1) {
Pokemon * v0;
Strbuf* v1;
void * v2;
@@ -2492,7 +2492,7 @@ static int sub_02080BF4 (UnkStruct_0207F248 * param0)
return 30;
}
-static u8 sub_02080ECC (UnkStruct_0207F248 * param0)
+static u8 CheckPokemonCondition (GameWindowLayout * param0)
{
if (param0->unk_704[param0->unk_B11].unk_10 != 0) {
return 2;
@@ -2511,30 +2511,30 @@ static u8 sub_02080ECC (UnkStruct_0207F248 * param0)
return 0;
}
-static BOOL sub_02080F3C (UnkStruct_0207F248 * param0, u8 param1, s8 param2)
+static BOOL UpdatePokemonStatus (GameWindowLayout * param0, u8 slot, s8 param2)
{
- param0->unk_704[param1].unk_06 += param2;
+ param0->unk_704[slot].unk_06 += param2;
param0->unk_B14[2]++;
- sub_02082098(param0, param1);
- BGL_FillWindow(¶m0->unk_04[3 + param1 * 5], 0);
- sub_02082058(param0, param1);
- sub_02082104(param0, param1);
+ sub_02082098(param0, slot);
+ BGL_FillWindow(¶m0->unk_04[3 + slot * 5], 0);
+ sub_02082058(param0, slot);
+ sub_02082104(param0, slot);
- if ((param0->unk_B14[0] == param0->unk_B14[2]) || (param0->unk_704[param1].unk_06 == param0->unk_704[param1].unk_08)) {
- Pokemon * v0;
- u32 v1;
+ if ((param0->unk_B14[0] == param0->unk_B14[2]) || (param0->unk_704[slot].unk_06 == param0->unk_704[slot].unk_08)) {
+ Pokemon * mon;
+ u32 v1;
- v0 = Party_GetPokemonBySlotIndex(param0->unk_5A4->unk_00, param1);
- v1 = param0->unk_704[param1].unk_06;
- Pokemon_SetValue(v0, 163, &v1);
+ mon = Party_GetPokemonBySlotIndex(param0->unk_5A4->unk_00, slot);
+ v1 = param0->unk_704[slot].unk_06;
+ Pokemon_SetValue(mon, 163, &v1);
return 1;
}
return 0;
}
-static u8 sub_02080FD0 (UnkStruct_0207F248 * param0)
+static u8 HandleSpecialInput (GameWindowLayout * param0)
{
u8 v0;
@@ -2578,7 +2578,7 @@ static u8 sub_02080FD0 (UnkStruct_0207F248 * param0)
return v0;
}
-static int sub_0208107C (UnkStruct_0207F248 * param0)
+static int ApplyItemEffectOnPokemon (GameWindowLayout * param0)
{
ItemData * v0;
@@ -2587,7 +2587,7 @@ static int sub_0208107C (UnkStruct_0207F248 * param0)
if ((param0->unk_5A4->unk_24 == 466) && (Pokemon_CanShayminSkyForm(Party_GetPokemonBySlotIndex(param0->unk_5A4->unk_00, param0->unk_B11)) == 1)) {
param0->unk_5A4->unk_38 = 1;
Heap_FreeToHeap(v0);
- sub_020819B4(param0);
+ LoadOverlay118(param0);
return 31;
}
@@ -2603,7 +2603,7 @@ static int sub_0208107C (UnkStruct_0207F248 * param0)
return 6;
}
- if (sub_0209693C(param0->unk_5A4->unk_00, param0->unk_5A4->unk_24, param0->unk_B11, 0, 12) == 1) {
+ if (CheckItemEffectsOnPartyMember(param0->unk_5A4->unk_00, param0->unk_5A4->unk_24, param0->unk_B11, 0, 12) == 1) {
Bag_SubtractItem(param0->unk_5A4->unk_04, param0->unk_5A4->unk_24, 1, 12);
if (Item_Get(v0, 26) != 0) {
@@ -2631,7 +2631,7 @@ static int sub_0208107C (UnkStruct_0207F248 * param0)
return 5;
}
-static u8 sub_020811F4 (UnkStruct_0207F248 * param0)
+static u8 CheckItemUsageValidity (GameWindowLayout * param0)
{
if (param0->unk_704[param0->unk_B11].unk_0C == 0) {
return 0;
@@ -2642,7 +2642,7 @@ static u8 sub_020811F4 (UnkStruct_0207F248 * param0)
return 1;
}
-static int sub_02081224 (UnkStruct_0207F248 * param0)
+static int ProcessItemApplication (GameWindowLayout * param0)
{
Pokemon * v0;
Window * v1;
@@ -2671,14 +2671,14 @@ static int sub_02081224 (UnkStruct_0207F248 * param0)
}
if (v2 == -1) {
- switch (sub_020811F4(param0)) {
+ switch (CheckItemUsageValidity(param0)) {
case 0:
if (Item_IsMail(param0->unk_5A4->unk_24) == 1) {
param0->unk_5A4->unk_23 = 6;
return 32;
}
- v2 = sub_02081408(param0, v0, &v3);
+ v2 = UpdatePokemonWithItem(param0, v0, &v3);
MessageLoader_GetStrbuf(param0->unk_69C, 118, param0->unk_6A8);
sub_0200B5CC(param0->unk_6A0, 0, Pokemon_GetBoxPokemon(v0));
@@ -2706,7 +2706,7 @@ static int sub_02081224 (UnkStruct_0207F248 * param0)
return v2;
}
-static int sub_02081408 (UnkStruct_0207F248 * param0, Pokemon * param1, int * param2)
+static int UpdatePokemonWithItem (GameWindowLayout * param0, Pokemon * param1, int * param2)
{
u32 v0 = param0->unk_5A4->unk_24;
UnkStruct_0203CDB0 * v1;
@@ -2733,7 +2733,7 @@ static int sub_02081408 (UnkStruct_0207F248 * param0, Pokemon * param1, int * pa
return 11;
}
-static void sub_020814A8 (UnkStruct_0207F248 * param0, Pokemon * param1, u32 param2, u32 param3)
+static void SwapPokemonItem (GameWindowLayout * param0, Pokemon * param1, u32 param2, u32 param3)
{
sub_0207D570(param0->unk_5A4->unk_04, (u16)param2, 1, 12);
Pokemon_SetValue(param1, 6, ¶m3);
@@ -2743,23 +2743,23 @@ static void sub_020814A8 (UnkStruct_0207F248 * param0, Pokemon * param1, u32 par
sub_02083040(param0, param0->unk_B11, param0->unk_704[param0->unk_B11].unk_0C);
}
-static int sub_0208150C (UnkStruct_0207F248 * param0)
+static int HandleMessageCompletion (GameWindowLayout * param0)
{
if (Message_Printing(param0->unk_B10) == 0) {
if (gCoreSys.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
- return sub_0208170C(param0);
+ return ResetWindowOnInput(param0);
}
}
return 11;
}
-static int sub_0208153C (UnkStruct_0207F248 * param0)
+static int ProcessMessageResult (GameWindowLayout * param0)
{
if (Message_Printing(param0->unk_B10) == 0) {
if (gCoreSys.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
sub_0200E084(¶m0->unk_04[34], 1);
- sub_020819B4(param0);
+ LoadOverlay118(param0);
return 13;
}
}
@@ -2767,10 +2767,10 @@ static int sub_0208153C (UnkStruct_0207F248 * param0)
return 12;
}
-static int sub_02081578 (UnkStruct_0207F248 * param0)
+static int HandleOverlayCompletion (GameWindowLayout * param0)
{
if (ov118_021D0DBC(param0) == 1) {
- sub_020819CC(param0);
+ UnloadOverlay118(param0);
return 11;
}
@@ -2778,7 +2778,7 @@ static int sub_02081578 (UnkStruct_0207F248 * param0)
return 13;
}
-static int sub_02081594 (UnkStruct_0207F248 * param0)
+static int FinalizeMessageProcessing (GameWindowLayout * param0)
{
if (Message_Printing(param0->unk_B10) == 0) {
sub_020827EC(param0);
@@ -2788,7 +2788,7 @@ static int sub_02081594 (UnkStruct_0207F248 * param0)
return 9;
}
-static int sub_020815B8 (UnkStruct_0207F248 * param0)
+static int ProcessPokemonItemSwap (GameWindowLayout * param0)
{
int v0, v1;
@@ -2804,16 +2804,16 @@ static int sub_020815B8 (UnkStruct_0207F248 * param0)
v3 = ¶m0->unk_04[34];
v4 = param0->unk_5A4->unk_24;
v5 = param0->unk_704[param0->unk_B11].unk_0C;
- v0 = sub_02081408(param0, v2, &v1);
+ v0 = UpdatePokemonWithItem(param0, v2, &v1);
if (sub_0207D570(param0->unk_5A4->unk_04, (u16)v5, 1, 12) == 0) {
- sub_020814A8(param0, v2, v4, v5);
+ SwapPokemonItem(param0, v2, v4, v5);
MessageLoader_GetStrbuf(param0->unk_69C, 83, param0->unk_6A4);
v0 = 11;
} else {
if (Item_IsMail(param0->unk_5A4->unk_24) == 1) {
Bag_SubtractItem(param0->unk_5A4->unk_04, (u16)v5, 1, 12);
- sub_020814A8(param0, v2, v4, v5);
+ SwapPokemonItem(param0, v2, v4, v5);
param0->unk_5A4->unk_23 = 6;
return 32;
}
@@ -2835,13 +2835,13 @@ static int sub_020815B8 (UnkStruct_0207F248 * param0)
}
return v0;
case 0xfffffffe:
- return sub_0208170C(param0);
+ return ResetWindowOnInput(param0);
}
return 10;
}
-static int sub_0208170C (UnkStruct_0207F248 * param0)
+static int ResetWindowOnInput (GameWindowLayout * param0)
{
if (param0->unk_5A4->unk_20 == 10) {
sub_0200E084(¶m0->unk_04[34], 1);
@@ -2855,7 +2855,7 @@ static int sub_0208170C (UnkStruct_0207F248 * param0)
return 32;
}
-static int sub_02081760 (UnkStruct_0207F248 * param0)
+static int UpdatePokemonFormWithItem (GameWindowLayout * param0)
{
Pokemon * v0;
Window * v1;
@@ -2867,7 +2867,7 @@ static int sub_02081760 (UnkStruct_0207F248 * param0)
v1 = ¶m0->unk_04[34];
v2 = param0->unk_5A4->unk_24;
v3 = param0->unk_704[param0->unk_B11].unk_0C;
- v4 = sub_02081408(param0, v0, &v5);
+ v4 = UpdatePokemonWithItem(param0, v0, &v5);
if ((v3 == 112) && (v4 == 11) && (v5 == 0)) {
v4 = 12;
@@ -2897,7 +2897,7 @@ static int sub_02081760 (UnkStruct_0207F248 * param0)
return v4;
}
-static int sub_0208188C (UnkStruct_0207F248 * param0)
+static int CheckForItemApplication (GameWindowLayout * param0)
{
if (param0->unk_704[param0->unk_B11].unk_12 == 0) {
param0->unk_5A4->unk_23 = 0;
@@ -2912,7 +2912,7 @@ static int sub_0208188C (UnkStruct_0207F248 * param0)
return 24;
}
-static BOOL sub_020818F8 (UnkStruct_0207F248 * param0)
+static BOOL ValidateGameWindowState (GameWindowLayout * param0)
{
if ((param0->unk_5A4->unk_20 == 5) || (param0->unk_5A4->unk_20 == 6) || (param0->unk_5A4->unk_20 == 7) || (param0->unk_5A4->unk_20 == 8) || (param0->unk_5A4->unk_20 == 9) || (param0->unk_5A4->unk_20 == 11) || (param0->unk_5A4->unk_20 == 14) || (param0->unk_5A4->unk_20 == 16) || (param0->unk_5A4->unk_20 == 20)) {
return 0;
@@ -2941,7 +2941,7 @@ u32 sub_0208193C (void)
return 18;
}
-void sub_02081940 (u32 param0, u16 * param1, u16 * param2, u16 * param3)
+void LoadScreenDataFromNARC (u32 param0, u16 * param1, u16 * param2, u16 * param3)
{
NNSG2dScreenData * v0;
void * v1;
@@ -2961,13 +2961,13 @@ void sub_02081940 (u32 param0, u16 * param1, u16 * param2, u16 * param3)
Heap_FreeToHeap(v1);
}
-void sub_020819B4 (UnkStruct_0207F248 * param0)
+void LoadOverlay118 (GameWindowLayout * param0)
{
Overlay_LoadByID(FS_OVERLAY_ID(overlay118), 2);
ov118_021D0D80(param0);
}
-void sub_020819CC (UnkStruct_0207F248 * param0)
+void UnloadOverlay118 (GameWindowLayout * param0)
{
Overlay_UnloadByID(FS_OVERLAY_ID(overlay118));
}
diff --git a/src/unk_020819DC.c b/src/unk_020819DC.c
index 972c251847..a973722e6c 100644
--- a/src/unk_020819DC.c
+++ b/src/unk_020819DC.c
@@ -32,10 +32,10 @@
#include "unk_02084B70.h"
#include "unk_0208C098.h"
-static void sub_02082810(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
-static void sub_02082880(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
-static void sub_02082900(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
-static void sub_02082964(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
+static void sub_02082810(GameWindowLayout * param0, u8 param1, u8 param2);
+static void sub_02082880(GameWindowLayout * param0, u8 param1, u8 param2);
+static void sub_02082900(GameWindowLayout * param0, u8 param1, u8 param2);
+static void sub_02082964(GameWindowLayout * param0, u8 param1, u8 param2);
static BOOL sub_0208279C(UnkStruct_0201D738 * param0, u16 param1);
static const UnkStruct_ov61_0222C884 Unk_020F1F08[] = {
@@ -115,7 +115,7 @@ static void sub_020819DC (BGL * param0, Window * param1, const UnkStruct_ov61_02
sub_0201A8D4(param0, ¶m1[4], ¶m2[4]);
}
-void sub_02081A24 (UnkStruct_0207F248 * param0)
+void sub_02081A24 (GameWindowLayout * param0)
{
const UnkStruct_ov61_0222C884 * v0 = Unk_020F1F08;
u16 v1;
@@ -152,7 +152,7 @@ void sub_02081A24 (UnkStruct_0207F248 * param0)
sub_0201A8D4(param0->unk_00, ¶m0->unk_04[36], &Unk_020F1ED0[6]);
}
-void sub_02081B90 (UnkStruct_0207F248 * param0)
+void sub_02081B90 (GameWindowLayout * param0)
{
u16 v0;
@@ -167,7 +167,7 @@ void sub_02081B90 (UnkStruct_0207F248 * param0)
}
}
-void sub_02081BC0 (UnkStruct_0207F248 * param0)
+void sub_02081BC0 (GameWindowLayout * param0)
{
MessageLoader_GetStrbuf(param0->unk_69C, 145, param0->unk_6AC[0]);
MessageLoader_GetStrbuf(param0->unk_69C, 146, param0->unk_6AC[1]);
@@ -187,7 +187,7 @@ void sub_02081BC0 (UnkStruct_0207F248 * param0)
MessageLoader_GetStrbuf(param0->unk_69C, 200, param0->unk_6AC[15]);
}
-void sub_02081CAC (UnkStruct_0207F248 * param0, u16 param1, u8 param2)
+void sub_02081CAC (GameWindowLayout * param0, u16 param1, u8 param2)
{
Strbuf* v0;
@@ -199,7 +199,7 @@ void sub_02081CAC (UnkStruct_0207F248 * param0, u16 param1, u8 param2)
Strbuf_Free(v0);
}
-void sub_02081CF4 (UnkStruct_0207F248 * param0, const u8 * param1, u8 param2)
+void sub_02081CF4 (GameWindowLayout * param0, const u8 * param1, u8 param2)
{
UnkStruct_02081CF4 v0;
u16 v1, v2;
@@ -236,7 +236,7 @@ void sub_02081CF4 (UnkStruct_0207F248 * param0, const u8 * param1, u8 param2)
param0->unk_700 = sub_02001B7C(&v0, 8, 0, 0, 12, PAD_BUTTON_B);
}
-void sub_02081E08 (UnkStruct_0207F248 * param0)
+void sub_02081E08 (GameWindowLayout * param0)
{
Pokemon * v0;
Strbuf* v1;
@@ -264,12 +264,12 @@ static const u16 Unk_020F1EA0[6][4] = {
{0xD, 0x7, 0x19, 0x13}
};
-static void sub_02081EAC (UnkStruct_0207F248 * param0, u8 param1)
+static void sub_02081EAC (GameWindowLayout * param0, u8 param1)
{
sub_0200C578(param0->unk_698, 0, ¶m0->unk_04[2 + param1 * 5], 28, 2);
}
-void sub_02081ED8 (UnkStruct_0207F248 * param0, Pokemon * param1, u32 param2)
+void sub_02081ED8 (GameWindowLayout * param0, Pokemon * param1, u32 param2)
{
Strbuf* v0;
@@ -280,7 +280,7 @@ void sub_02081ED8 (UnkStruct_0207F248 * param0, Pokemon * param1, u32 param2)
Strbuf_Free(v0);
}
-void sub_02081F2C (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02081F2C (GameWindowLayout * param0, u8 param1)
{
Window * v0;
Pokemon * v1;
@@ -309,7 +309,7 @@ void sub_02081F2C (UnkStruct_0207F248 * param0, u8 param1)
sub_0201A9A4(v0);
}
-void sub_02081FFC (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02081FFC (GameWindowLayout * param0, u8 param1)
{
Window * v0;
Strbuf* v1;
@@ -325,7 +325,7 @@ void sub_02081FFC (UnkStruct_0207F248 * param0, u8 param1)
sub_0201A9A4(v0);
}
-void sub_02082058 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02082058 (GameWindowLayout * param0, u8 param1)
{
Window * v0;
Strbuf* v1;
@@ -337,7 +337,7 @@ void sub_02082058 (UnkStruct_0207F248 * param0, u8 param1)
sub_0201A9A4(v0);
}
-void sub_02082098 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02082098 (GameWindowLayout * param0, u8 param1)
{
Window * v0;
Strbuf* v1;
@@ -349,7 +349,7 @@ void sub_02082098 (UnkStruct_0207F248 * param0, u8 param1)
sub_0201A9A4(v0);
}
-static void sub_020820C4 (UnkStruct_0207F248 * param0, u8 param1)
+static void sub_020820C4 (GameWindowLayout * param0, u8 param1)
{
Window * v0;
Strbuf* v1;
@@ -360,7 +360,7 @@ static void sub_020820C4 (UnkStruct_0207F248 * param0, u8 param1)
sub_0201A9A4(v0);
}
-void sub_02082104 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02082104 (GameWindowLayout * param0, u8 param1)
{
Window * v0;
u8 v1;
@@ -391,7 +391,7 @@ void sub_02082104 (UnkStruct_0207F248 * param0, u8 param1)
sub_0201A9A4(v0);
}
-void sub_020821F8 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_020821F8 (GameWindowLayout * param0, u8 param1)
{
BGL_FillWindow(¶m0->unk_04[0 + param1 * 5], 0);
BGL_FillWindow(¶m0->unk_04[1 + param1 * 5], 0);
@@ -414,7 +414,7 @@ void sub_020821F8 (UnkStruct_0207F248 * param0, u8 param1)
sub_02082104(param0, param1);
}
-void sub_020822BC (UnkStruct_0207F248 * param0, u8 param1)
+void sub_020822BC (GameWindowLayout * param0, u8 param1)
{
sub_0201ACCC(¶m0->unk_04[0 + param1 * 5]);
sub_0201ACCC(¶m0->unk_04[1 + param1 * 5]);
@@ -422,7 +422,7 @@ void sub_020822BC (UnkStruct_0207F248 * param0, u8 param1)
sub_0201ACCC(¶m0->unk_04[3 + param1 * 5]);
}
-void sub_020822F4 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_020822F4 (GameWindowLayout * param0, u8 param1)
{
sub_0201AD10(¶m0->unk_04[0 + param1 * 5]);
sub_0201AD10(¶m0->unk_04[1 + param1 * 5]);
@@ -430,7 +430,7 @@ void sub_020822F4 (UnkStruct_0207F248 * param0, u8 param1)
sub_0201AD10(¶m0->unk_04[3 + param1 * 5]);
}
-void sub_0208232C (UnkStruct_0207F248 * param0, u8 param1)
+void sub_0208232C (GameWindowLayout * param0, u8 param1)
{
Pokemon * v0;
@@ -454,7 +454,7 @@ void sub_0208232C (UnkStruct_0207F248 * param0, u8 param1)
}
}
-void sub_020823C4 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_020823C4 (GameWindowLayout * param0, u8 param1)
{
Pokemon * v0;
u8 v1;
@@ -482,7 +482,7 @@ void sub_020823C4 (UnkStruct_0207F248 * param0, u8 param1)
}
}
-void sub_0208245C (UnkStruct_0207F248 * param0, u8 param1)
+void sub_0208245C (GameWindowLayout * param0, u8 param1)
{
Pokemon * v0;
u8 v1;
@@ -498,7 +498,7 @@ void sub_0208245C (UnkStruct_0207F248 * param0, u8 param1)
sub_02082900(param0, param1, (u8)param0->unk_704[param1].unk_0E_15);
}
-void sub_020824C0 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_020824C0 (GameWindowLayout * param0, u8 param1)
{
Pokemon * v0;
u8 v1;
@@ -512,7 +512,7 @@ void sub_020824C0 (UnkStruct_0207F248 * param0, u8 param1)
}
}
-void sub_02082508 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02082508 (GameWindowLayout * param0, u8 param1)
{
u8 v0;
@@ -550,7 +550,7 @@ static u32 sub_020825A4 (int param0, const Strbuf *param1, u32 param2)
return (param2 - v0) >> 1;
}
-void sub_020825B4 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_020825B4 (GameWindowLayout * param0, u8 param1)
{
u32 v0;
@@ -572,7 +572,7 @@ void sub_020825B4 (UnkStruct_0207F248 * param0, u8 param1)
}
}
-static void sub_02082680 (UnkStruct_0207F248 * param0, Window * param1, u32 param2, u8 param3)
+static void sub_02082680 (GameWindowLayout * param0, Window * param1, u32 param2, u8 param3)
{
if (param3 == 1) {
sub_0200E060(param1, 1, (1 + 9), 15);
@@ -588,17 +588,17 @@ static void sub_02082680 (UnkStruct_0207F248 * param0, Window * param1, u32 para
sub_0201A9A4(param1);
}
-void sub_020826E0 (UnkStruct_0207F248 * param0, u32 param1, u8 param2)
+void sub_020826E0 (GameWindowLayout * param0, u32 param1, u8 param2)
{
sub_02082680(param0, ¶m0->unk_04[32], param1, param2);
}
-void sub_020826F4 (UnkStruct_0207F248 * param0, u32 param1, u8 param2)
+void sub_020826F4 (GameWindowLayout * param0, u32 param1, u8 param2)
{
sub_02082680(param0, ¶m0->unk_04[33], param1, param2);
}
-void sub_02082708 (UnkStruct_0207F248 * param0, u32 param1, u8 param2)
+void sub_02082708 (GameWindowLayout * param0, u32 param1, u8 param2)
{
Window * v0 = ¶m0->unk_04[34];
@@ -615,7 +615,7 @@ void sub_02082708 (UnkStruct_0207F248 * param0, u32 param1, u8 param2)
sub_0208274C(param0);
}
-void sub_0208274C (UnkStruct_0207F248 * param0)
+void sub_0208274C (GameWindowLayout * param0)
{
sub_02002AC8(1);
sub_02002AE4(0);
@@ -643,13 +643,13 @@ static BOOL sub_0208279C (UnkStruct_0201D738 * param0, u16 param1)
return 0;
}
-void sub_020827EC (UnkStruct_0207F248 * param0)
+void sub_020827EC (GameWindowLayout * param0)
{
param0->unk_700 = sub_02002100(
param0->unk_00, &Unk_020F1E98, 1, 14, 12);
}
-static void sub_02082810 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+static void sub_02082810 (GameWindowLayout * param0, u8 param1, u8 param2)
{
Window * v0;
Strbuf* v1;
@@ -672,7 +672,7 @@ static void sub_02082810 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
sub_0201A9A4(v0);
}
-static void sub_02082880 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+static void sub_02082880 (GameWindowLayout * param0, u8 param1, u8 param2)
{
Window * v0;
Strbuf* v1;
@@ -698,7 +698,7 @@ static void sub_02082880 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
sub_0201A9A4(v0);
}
-static void sub_02082900 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+static void sub_02082900 (GameWindowLayout * param0, u8 param1, u8 param2)
{
Window * v0;
Strbuf* v1;
@@ -718,7 +718,7 @@ static void sub_02082900 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
sub_0201A9A4(v0);
}
-static void sub_02082964 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+static void sub_02082964 (GameWindowLayout * param0, u8 param1, u8 param2)
{
Window * v0;
Strbuf* v1;
@@ -740,7 +740,7 @@ static void sub_02082964 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
sub_0201A9A4(v0);
}
-void sub_020829DC (UnkStruct_0207F248 * param0)
+void sub_020829DC (GameWindowLayout * param0)
{
Pokemon * v0;
Strbuf* v1;
@@ -782,7 +782,7 @@ void sub_020829DC (UnkStruct_0207F248 * param0)
sub_0201A9A4(¶m0->unk_254[0]);
}
-void sub_02082B58 (UnkStruct_0207F248 * param0)
+void sub_02082B58 (GameWindowLayout * param0)
{
Strbuf* v0;
u32 v1;
@@ -804,7 +804,7 @@ void sub_02082B58 (UnkStruct_0207F248 * param0)
sub_0201A9A4(¶m0->unk_254[0]);
}
-void sub_02082C10 (UnkStruct_0207F248 * param0)
+void sub_02082C10 (GameWindowLayout * param0)
{
Window_Clear(¶m0->unk_254[0], 0);
BGL_DeleteWindow(¶m0->unk_254[0]);
diff --git a/src/unk_02082C2C.c b/src/unk_02082C2C.c
index ebed69e88d..1598025be4 100644
--- a/src/unk_02082C2C.c
+++ b/src/unk_02082C2C.c
@@ -30,7 +30,7 @@
#include "unk_02082C2C.h"
#include "unk_0208C098.h"
-void sub_02082C2C (UnkStruct_0207F248 * param0)
+void sub_02082C2C (GameWindowLayout * param0)
{
GXLayers_EngineAToggleLayers(GX_PLANEMASK_OBJ, 1);
GXLayers_EngineBToggleLayers(GX_PLANEMASK_OBJ, 1);
@@ -71,7 +71,7 @@ void sub_02082C2C (UnkStruct_0207F248 * param0)
}
}
-void sub_02082CEC (UnkStruct_0207F248 * param0, u8 param1, u16 param2, u16 param3, NARC * param4)
+void sub_02082CEC (GameWindowLayout * param0, u8 param1, u16 param2, u16 param3, NARC * param4)
{
Pokemon * v0;
UnkStruct_ov7_0224F358 v1;
@@ -102,7 +102,7 @@ void sub_02082CEC (UnkStruct_0207F248 * param0, u8 param1, u16 param2, u16 param
param0->unk_704[param1].unk_24 = sub_0200CA08(param0->unk_5A8, param0->unk_5AC, &v1);
}
-void sub_02082DA8 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02082DA8 (GameWindowLayout * param0, u8 param1)
{
Pokemon * v0;
NARC * v1;
@@ -156,7 +156,7 @@ static const UnkStruct_ov7_0224F358 Unk_020F20C0[] = {
{0xB, 0xA4, 0x94, 0x0, 0x0, 0x0, 0x0, NNS_G2D_VRAM_TYPE_2DSUB, 0x0, 0x0, 0x0, 0x0}
};
-void sub_02082E58 (UnkStruct_0207F248 * param0)
+void sub_02082E58 (GameWindowLayout * param0)
{
u32 v0;
@@ -179,7 +179,7 @@ void sub_02082E58 (UnkStruct_0207F248 * param0)
sub_02021CAC(param0->unk_5B0[28], 0);
}
-void sub_02082FAC (UnkStruct_0207F248 * param0, u8 param1, u16 param2, u16 param3)
+void sub_02082FAC (GameWindowLayout * param0, u8 param1, u16 param2, u16 param3)
{
UnkStruct_ov7_0224F358 v0;
@@ -199,15 +199,15 @@ void sub_02082FAC (UnkStruct_0207F248 * param0, u8 param1, u16 param2, u16 param
param0->unk_5B0[0 + param1] = sub_0200CA08(param0->unk_5A8, param0->unk_5AC, &v0);
}
-void sub_02082FF4 (UnkStruct_0207F248 * param0)
+void sub_02082FF4 (GameWindowLayout * param0)
{
sub_0200C8B0(param0->unk_5A8, param0->unk_5AC);
sub_0200C8D4(param0->unk_5A8);
}
-void sub_02083014 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+void sub_02083014 (GameWindowLayout * param0, u8 param1, u8 param2)
{
- UnkStruct_02022550 ** v0 = ¶m0->unk_5B0[10 + param1];
+ GraphicElementData ** v0 = ¶m0->unk_5B0[10 + param1];
if (param2 == 7) {
sub_02021CAC(*v0, 0);
@@ -218,9 +218,9 @@ void sub_02083014 (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
sub_02021CAC(*v0, 1);
}
-void sub_02083040 (UnkStruct_0207F248 * param0, u8 param1, u16 param2)
+void sub_02083040 (GameWindowLayout * param0, u8 param1, u16 param2)
{
- UnkStruct_02022550 ** v0 = ¶m0->unk_5B0[16 + param1];
+ GraphicElementData ** v0 = ¶m0->unk_5B0[16 + param1];
if (param2 == 0) {
sub_02021CAC(*v0, 0);
@@ -236,17 +236,17 @@ void sub_02083040 (UnkStruct_0207F248 * param0, u8 param1, u16 param2)
sub_02021CAC(*v0, 1);
}
-void sub_02083080 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02083080 (GameWindowLayout * param0, u8 param1)
{
- UnkStruct_02022550 ** v0 = ¶m0->unk_5B0[16 + param1];
+ GraphicElementData ** v0 = ¶m0->unk_5B0[16 + param1];
sub_02021D6C(*v0, 1);
sub_02021CAC(*v0, 1);
}
-void sub_020830A0 (UnkStruct_0207F248 * param0, u8 param1, s16 param2, s16 param3)
+void sub_020830A0 (GameWindowLayout * param0, u8 param1, s16 param2, s16 param3)
{
- UnkStruct_02022550 ** v0 = ¶m0->unk_5B0[16 + param1];
+ GraphicElementData ** v0 = ¶m0->unk_5B0[16 + param1];
param0->unk_704[param1].unk_1E = param2 + 8;
param0->unk_704[param1].unk_20 = param3 + 8;
@@ -254,14 +254,14 @@ void sub_020830A0 (UnkStruct_0207F248 * param0, u8 param1, s16 param2, s16 param
sub_0200D494(*v0, param0->unk_704[param1].unk_1E, param0->unk_704[param1].unk_20);
}
-void sub_020830D4 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_020830D4 (GameWindowLayout * param0, u8 param1)
{
sub_0200D494(param0->unk_5B0[22 + param1], param0->unk_704[param1].unk_1E + 8, param0->unk_704[param1].unk_20);
}
-void sub_02083104 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_02083104 (GameWindowLayout * param0, u8 param1)
{
- UnkStruct_02022550 ** v0 = ¶m0->unk_5B0[22 + param1];
+ GraphicElementData ** v0 = ¶m0->unk_5B0[22 + param1];
if (param0->unk_704[param1].unk_12 == 0) {
sub_02021CAC(*v0, 0);
@@ -271,7 +271,7 @@ void sub_02083104 (UnkStruct_0207F248 * param0, u8 param1)
sub_02021CAC(*v0, 1);
}
-static void sub_02083138 (UnkStruct_02022550 * param0, u8 param1)
+static void sub_02083138 (GraphicElementData * param0, u8 param1)
{
if (sub_02021E24(param0) == param1) {
return;
@@ -281,7 +281,7 @@ static void sub_02083138 (UnkStruct_02022550 * param0, u8 param1)
sub_02021D6C(param0, param1);
}
-static u8 sub_02083158 (UnkStruct_020831B4 * param0)
+static u8 sub_02083158 (StrBufWrapper * param0)
{
if (param0->unk_06 == 0) {
return 0;
@@ -305,9 +305,9 @@ static u8 sub_02083158 (UnkStruct_020831B4 * param0)
return 0;
}
-void sub_020831B4 (UnkStruct_0207F248 * param0)
+void sub_020831B4 (GameWindowLayout * param0)
{
- UnkStruct_020831B4 * v0;
+ StrBufWrapper * v0;
u16 v1;
u16 v2;
@@ -341,7 +341,7 @@ void sub_020831B4 (UnkStruct_0207F248 * param0)
}
}
-void sub_0208327C (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+void sub_0208327C (GameWindowLayout * param0, u8 param1, u8 param2)
{
u8 v0, v1;
@@ -352,7 +352,7 @@ void sub_0208327C (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
sub_0200D414(param0->unk_5B0[6], param2);
}
-void sub_020832E4 (UnkStruct_0207F248 * param0, s16 param1, s16 param2)
+void sub_020832E4 (GameWindowLayout * param0, s16 param1, s16 param2)
{
VecFx32 v0;
@@ -367,7 +367,7 @@ void sub_020832E4 (UnkStruct_0207F248 * param0, s16 param1, s16 param2)
sub_02021D6C(param0->unk_5B0[28], 0);
}
-void sub_02083334 (UnkStruct_0207F248 * param0)
+void sub_02083334 (GameWindowLayout * param0)
{
if (sub_02021D34(param0->unk_5B0[28]) == 1) {
sub_02021E2C(param0->unk_5B0[28], FX32_ONE);
diff --git a/src/unk_02083370.c b/src/unk_02083370.c
index 82182ee865..b64597bc72 100644
--- a/src/unk_02083370.c
+++ b/src/unk_02083370.c
@@ -35,45 +35,45 @@
#include "unk_02097624.h"
#include "overlay118/ov118_021D0D80.h"
-static void sub_02083AD0(UnkStruct_0207F248 * param0, int * param1);
-static void sub_0208472C(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02084808(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02083E8C(UnkStruct_0207F248 * param0, u8 param1);
-static void sub_02083FDC(UnkStruct_0207F248 * param0, u8 param1, u8 param2);
-static void sub_02084134(UnkStruct_0207F248 * param0);
-static void sub_02084420(UnkStruct_0207F248 * param0, u8 param1);
-static void sub_020848A8(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020848C0(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020848D8(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020848F0(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02084908(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02084920(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02084938(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02084950(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02084968(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02084980(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02084998(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020849B0(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020849C8(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020849E0(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020849FC(UnkStruct_0207F248 * param0, int * param1);
-static int sub_02084A18(UnkStruct_0207F248 * param0);
-static void sub_02084760(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020833BC(UnkStruct_0207F248 * param0, int * param1);
-static void sub_0208347C(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020834B0(UnkStruct_0207F248 * param0, int * param1);
-static void sub_02083700(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020837C0(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020837F4(UnkStruct_0207F248 * param0, int * param1);
+static void sub_02083AD0(GameWindowLayout * param0, int * param1);
+static void sub_0208472C(GameWindowLayout * param0, int * param1);
+static void sub_02084808(GameWindowLayout * param0, int * param1);
+static void sub_02083E8C(GameWindowLayout * param0, u8 param1);
+static void sub_02083FDC(GameWindowLayout * param0, u8 param1, u8 param2);
+static void sub_02084134(GameWindowLayout * param0);
+static void sub_02084420(GameWindowLayout * param0, u8 param1);
+static void sub_020848A8(GameWindowLayout * param0, int * param1);
+static void sub_020848C0(GameWindowLayout * param0, int * param1);
+static void sub_020848D8(GameWindowLayout * param0, int * param1);
+static void sub_020848F0(GameWindowLayout * param0, int * param1);
+static void sub_02084908(GameWindowLayout * param0, int * param1);
+static void sub_02084920(GameWindowLayout * param0, int * param1);
+static void sub_02084938(GameWindowLayout * param0, int * param1);
+static void sub_02084950(GameWindowLayout * param0, int * param1);
+static void sub_02084968(GameWindowLayout * param0, int * param1);
+static void sub_02084980(GameWindowLayout * param0, int * param1);
+static void sub_02084998(GameWindowLayout * param0, int * param1);
+static void sub_020849B0(GameWindowLayout * param0, int * param1);
+static void sub_020849C8(GameWindowLayout * param0, int * param1);
+static void sub_020849E0(GameWindowLayout * param0, int * param1);
+static void sub_020849FC(GameWindowLayout * param0, int * param1);
+static int sub_02084A18(GameWindowLayout * param0);
+static void sub_02084760(GameWindowLayout * param0, int * param1);
+static void sub_020833BC(GameWindowLayout * param0, int * param1);
+static void sub_0208347C(GameWindowLayout * param0, int * param1);
+static void sub_020834B0(GameWindowLayout * param0, int * param1);
+static void sub_02083700(GameWindowLayout * param0, int * param1);
+static void sub_020837C0(GameWindowLayout * param0, int * param1);
+static void sub_020837F4(GameWindowLayout * param0, int * param1);
static int sub_0208384C(void * param0);
static int sub_020838C4(void * param0);
static int sub_020838F4(void * param0);
static int sub_02083990(void * param0);
-static void sub_020846CC(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020844B0(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020845E8(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020846FC(UnkStruct_0207F248 * param0, int * param1);
-static void sub_020839FC(UnkStruct_0207F248 * param0, int * param1);
+static void sub_020846CC(GameWindowLayout * param0, int * param1);
+static void sub_020844B0(GameWindowLayout * param0, int * param1);
+static void sub_020845E8(GameWindowLayout * param0, int * param1);
+static void sub_020846FC(GameWindowLayout * param0, int * param1);
+static void sub_020839FC(GameWindowLayout * param0, int * param1);
static const u32 Unk_020F2458[] = {
(const u32)sub_02083AD0,
@@ -115,7 +115,7 @@ u32 sub_02083370 (u8 param0)
return Unk_020F2458[param0];
}
-void sub_0208337C (UnkStruct_0207F248 * param0)
+void sub_0208337C (GameWindowLayout * param0)
{
Window_Clear(¶m0->unk_254[0], 1);
sub_0201AD10(¶m0->unk_254[0]);
@@ -124,7 +124,7 @@ void sub_0208337C (UnkStruct_0207F248 * param0)
BGL_DeleteWindow(¶m0->unk_254[0]);
}
-static void sub_020833BC (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020833BC (GameWindowLayout * param0, int * param1)
{
UnkStruct_02081CF4 v0;
@@ -152,7 +152,7 @@ static void sub_020833BC (UnkStruct_0207F248 * param0, int * param1)
*param1 = 15;
}
-static void sub_0208347C (UnkStruct_0207F248 * param0, int * param1)
+static void sub_0208347C (GameWindowLayout * param0, int * param1)
{
sub_02001BC4(param0->unk_700, NULL);
sub_02013A3C(param0->unk_6FC);
@@ -161,7 +161,7 @@ static void sub_0208347C (UnkStruct_0207F248 * param0, int * param1)
*param1 = 32;
}
-static void sub_020834B0 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020834B0 (GameWindowLayout * param0, int * param1)
{
Pokemon * v0;
int v1;
@@ -215,7 +215,7 @@ static void sub_020834B0 (UnkStruct_0207F248 * param0, int * param1)
*param1 = v2;
}
-int sub_02083658 (UnkStruct_0207F248 * param0)
+int sub_02083658 (GameWindowLayout * param0)
{
if (Message_Printing(param0->unk_B10) == 0) {
if (gCoreSys.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
@@ -229,12 +229,12 @@ int sub_02083658 (UnkStruct_0207F248 * param0)
return 17;
}
-int sub_020836A8 (UnkStruct_0207F248 * param0)
+int sub_020836A8 (GameWindowLayout * param0)
{
if (Message_Printing(param0->unk_B10) == 0) {
if (gCoreSys.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
sub_0200E084(¶m0->unk_04[34], 1);
- sub_020819B4(param0);
+ LoadOverlay118(param0);
return 19;
}
}
@@ -242,17 +242,17 @@ int sub_020836A8 (UnkStruct_0207F248 * param0)
return 18;
}
-int sub_020836E4 (UnkStruct_0207F248 * param0)
+int sub_020836E4 (GameWindowLayout * param0)
{
if (ov118_021D0DBC(param0) == 1) {
- sub_020819CC(param0);
+ UnloadOverlay118(param0);
return 17;
}
return 19;
}
-static void sub_02083700 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02083700 (GameWindowLayout * param0, int * param1)
{
UnkStruct_02081CF4 v0;
@@ -280,7 +280,7 @@ static void sub_02083700 (UnkStruct_0207F248 * param0, int * param1)
*param1 = 15;
}
-static void sub_020837C0 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020837C0 (GameWindowLayout * param0, int * param1)
{
sub_02001BC4(param0->unk_700, NULL);
sub_02013A3C(param0->unk_6FC);
@@ -289,7 +289,7 @@ static void sub_020837C0 (UnkStruct_0207F248 * param0, int * param1)
*param1 = 32;
}
-static void sub_020837F4 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020837F4 (GameWindowLayout * param0, int * param1)
{
Window_Clear(¶m0->unk_04[35], 1);
sub_02001BC4(param0->unk_700, NULL);
@@ -304,7 +304,7 @@ static void sub_020837F4 (UnkStruct_0207F248 * param0, int * param1)
static int sub_0208384C (void * param0)
{
- UnkStruct_0207F248 * v0 = param0;
+ GameWindowLayout * v0 = param0;
Pokemon * v1;
v0 = param0;
@@ -325,7 +325,7 @@ static int sub_0208384C (void * param0)
static int sub_020838C4 (void * param0)
{
- UnkStruct_0207F248 * v0 = param0;
+ GameWindowLayout * v0 = param0;
sub_02082708(v0, 47, 0);
@@ -338,7 +338,7 @@ static int sub_020838C4 (void * param0)
static int sub_020838F4 (void * param0)
{
- UnkStruct_0207F248 * v0 = param0;
+ GameWindowLayout * v0 = param0;
if (sub_0207D570(v0->unk_5A4->unk_04, v0->unk_704[v0->unk_B11].unk_0C, 1, 12) == 1) {
Pokemon * v1;
@@ -366,7 +366,7 @@ static int sub_020838F4 (void * param0)
static int sub_02083990 (void * param0)
{
- UnkStruct_0207F248 * v0 = param0;
+ GameWindowLayout * v0 = param0;
sub_0200E084(&v0->unk_04[34], 1);
sub_020826E0(v0, 29, 1);
@@ -375,7 +375,7 @@ static int sub_02083990 (void * param0)
return 1;
}
-int sub_020839BC (UnkStruct_0207F248 * param0)
+int sub_020839BC (GameWindowLayout * param0)
{
if (gCoreSys.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
sub_0200E084(¶m0->unk_04[34], 1);
@@ -387,7 +387,7 @@ int sub_020839BC (UnkStruct_0207F248 * param0)
return 20;
}
-static void sub_020839FC (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020839FC (GameWindowLayout * param0, int * param1)
{
if (param0->unk_704[param0->unk_B11].unk_12 == 0) {
sub_02001BC4(param0->unk_700, NULL);
@@ -408,7 +408,7 @@ static void sub_020839FC (UnkStruct_0207F248 * param0, int * param1)
int sub_02083A78 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Pokemon * v1;
v0 = param0;
@@ -422,7 +422,7 @@ int sub_02083A78 (void * param0)
int sub_02083AA4 (void * param0)
{
- UnkStruct_0207F248 * v0 = param0;
+ GameWindowLayout * v0 = param0;
sub_0200E084(&v0->unk_04[34], 1);
sub_020826E0(v0, 29, 1);
@@ -431,7 +431,7 @@ int sub_02083AA4 (void * param0)
return 1;
}
-static void sub_02083AD0 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02083AD0 (GameWindowLayout * param0, int * param1)
{
s16 v0, v1;
@@ -451,7 +451,7 @@ static void sub_02083AD0 (UnkStruct_0207F248 * param0, int * param1)
*param1 = 28;
}
-void sub_02083B88 (UnkStruct_0207F248 * param0)
+void sub_02083B88 (GameWindowLayout * param0)
{
param0->unk_B0F_6 = 0;
sub_02021CAC(param0->unk_5B0[7], 0);
@@ -464,7 +464,7 @@ void sub_02083B88 (UnkStruct_0207F248 * param0)
sub_020826E0(param0, 29, 1);
}
-void sub_02083BD4 (UnkStruct_0207F248 * param0)
+void sub_02083BD4 (GameWindowLayout * param0)
{
u16 * v0;
u16 * v1;
@@ -508,9 +508,9 @@ void sub_02083BD4 (UnkStruct_0207F248 * param0)
sub_02021CAC(param0->unk_5B0[7], 0);
}
-BOOL sub_02083D1C (UnkStruct_0207F248 * param0)
+BOOL sub_02083D1C (GameWindowLayout * param0)
{
- UnkStruct_02083D1C * v0 = ¶m0->unk_7F8;
+ DualArrayShortData * v0 = ¶m0->unk_7F8;
switch (v0->unk_305) {
case 0:
@@ -569,9 +569,9 @@ BOOL sub_02083D1C (UnkStruct_0207F248 * param0)
return 0;
}
-static void sub_02083E8C (UnkStruct_0207F248 * param0, u8 param1)
+static void sub_02083E8C (GameWindowLayout * param0, u8 param1)
{
- UnkStruct_02083D1C * v0;
+ DualArrayShortData * v0;
s8 v1, v2;
u8 v3;
@@ -591,9 +591,9 @@ static void sub_02083E8C (UnkStruct_0207F248 * param0, u8 param1)
}
}
-static void sub_02083FDC (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
+static void sub_02083FDC (GameWindowLayout * param0, u8 param1, u8 param2)
{
- UnkStruct_02083D1C * v0;
+ DualArrayShortData * v0;
s16 v1, v2;
v0 = ¶m0->unk_7F8;
@@ -619,16 +619,16 @@ static void sub_02083FDC (UnkStruct_0207F248 * param0, u8 param1, u8 param2)
sub_0200D494(param0->unk_5B0[0 + v0->unk_300[param1]], v1, v2);
}
-static void sub_02084134 (UnkStruct_0207F248 * param0)
+static void sub_02084134 (GameWindowLayout * param0)
{
- UnkStruct_020831B4 * v0;
- UnkStruct_02083D1C * v1;
+ StrBufWrapper * v0;
+ DualArrayShortData * v1;
CellActorData * v2;
s16 v3;
v1 = ¶m0->unk_7F8;
- v0 = Heap_AllocFromHeap(12, sizeof(UnkStruct_020831B4));
+ v0 = Heap_AllocFromHeap(12, sizeof(StrBufWrapper));
*v0 = param0->unk_704[v1->unk_300[0]];
param0->unk_704[v1->unk_300[0]] = param0->unk_704[v1->unk_300[1]];
@@ -686,9 +686,9 @@ static void sub_02084134 (UnkStruct_0207F248 * param0)
sub_02083104(param0, v1->unk_300[1]);
}
-static void sub_02084420 (UnkStruct_0207F248 * param0, u8 param1)
+static void sub_02084420 (GameWindowLayout * param0, u8 param1)
{
- UnkStruct_02083D1C * v0;
+ DualArrayShortData * v0;
const u16 * v1;
u16 * v2;
u16 v3;
@@ -711,7 +711,7 @@ static void sub_02084420 (UnkStruct_0207F248 * param0, u8 param1)
}
}
-static void sub_020844B0 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020844B0 (GameWindowLayout * param0, int * param1)
{
u8 v0;
@@ -759,7 +759,7 @@ static void sub_020844B0 (UnkStruct_0207F248 * param0, int * param1)
*param1 = 24;
}
-int sub_020845A8 (UnkStruct_0207F248 * param0)
+int sub_020845A8 (GameWindowLayout * param0)
{
if (gCoreSys.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
sub_0200E084(¶m0->unk_04[34], 1);
@@ -771,7 +771,7 @@ int sub_020845A8 (UnkStruct_0207F248 * param0)
return 23;
}
-static void sub_020845E8 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020845E8 (GameWindowLayout * param0, int * param1)
{
u8 v0;
@@ -803,7 +803,7 @@ static void sub_020845E8 (UnkStruct_0207F248 * param0, int * param1)
*param1 = 1;
}
-static void sub_020846CC (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020846CC (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 0;
@@ -813,7 +813,7 @@ static void sub_020846CC (UnkStruct_0207F248 * param0, int * param1)
*param1 = 32;
}
-static void sub_020846FC (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020846FC (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 0;
@@ -823,7 +823,7 @@ static void sub_020846FC (UnkStruct_0207F248 * param0, int * param1)
*param1 = 32;
}
-static void sub_0208472C (UnkStruct_0207F248 * param0, int * param1)
+static void sub_0208472C (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 1;
@@ -833,7 +833,7 @@ static void sub_0208472C (UnkStruct_0207F248 * param0, int * param1)
*param1 = 32;
}
-static void sub_02084760 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084760 (GameWindowLayout * param0, int * param1)
{
sub_0208337C(param0);
sub_0200E084(¶m0->unk_04[33], 1);
@@ -841,7 +841,7 @@ static void sub_02084760 (UnkStruct_0207F248 * param0, int * param1)
*param1 = sub_02084780(param0);
}
-int sub_02084780 (UnkStruct_0207F248 * param0)
+int sub_02084780 (GameWindowLayout * param0)
{
Pokemon * v0 = Party_GetPokemonBySlotIndex(param0->unk_5A4->unk_00, param0->unk_B11);
@@ -861,7 +861,7 @@ int sub_02084780 (UnkStruct_0207F248 * param0)
return 24;
}
-static void sub_02084808 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084808 (GameWindowLayout * param0, int * param1)
{
UnkFuncPtr_02084808 v0;
u32 v1;
@@ -904,85 +904,85 @@ static void sub_02084808 (UnkStruct_0207F248 * param0, int * param1)
*param1 = 24;
}
-static void sub_020848A8 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020848A8 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 11;
sub_02084808(param0, param1);
}
-static void sub_020848C0 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020848C0 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 16;
sub_02084808(param0, param1);
}
-static void sub_020848D8 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020848D8 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 14;
sub_02084808(param0, param1);
}
-static void sub_020848F0 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020848F0 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 13;
sub_02084808(param0, param1);
}
-static void sub_02084908 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084908 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 15;
sub_02084808(param0, param1);
}
-static void sub_02084920 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084920 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 18;
sub_02084808(param0, param1);
}
-static void sub_02084938 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084938 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 12;
sub_02084808(param0, param1);
}
-static void sub_02084950 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084950 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 17;
sub_02084808(param0, param1);
}
-static void sub_02084968 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084968 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 19;
sub_02084808(param0, param1);
}
-static void sub_02084980 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084980 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 20;
sub_02084808(param0, param1);
}
-static void sub_02084998 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_02084998 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 21;
sub_02084808(param0, param1);
}
-static void sub_020849B0 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020849B0 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 22;
sub_02084808(param0, param1);
}
-static void sub_020849C8 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020849C8 (GameWindowLayout * param0, int * param1)
{
param0->unk_5A4->unk_23 = 23;
sub_02084808(param0, param1);
}
-static void sub_020849E0 (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020849E0 (GameWindowLayout * param0, int * param1)
{
*param1 = sub_02084A18(param0);
@@ -991,7 +991,7 @@ static void sub_020849E0 (UnkStruct_0207F248 * param0, int * param1)
}
}
-static void sub_020849FC (UnkStruct_0207F248 * param0, int * param1)
+static void sub_020849FC (GameWindowLayout * param0, int * param1)
{
*param1 = sub_02084A18(param0);
@@ -1000,7 +1000,7 @@ static void sub_020849FC (UnkStruct_0207F248 * param0, int * param1)
}
}
-static int sub_02084A18 (UnkStruct_0207F248 * param0)
+static int sub_02084A18 (GameWindowLayout * param0)
{
sub_0200E084(¶m0->unk_04[33], 1);
sub_0208337C(param0);
@@ -1030,7 +1030,7 @@ static int sub_02084A18 (UnkStruct_0207F248 * param0)
}
}
-int sub_02084B34 (UnkStruct_0207F248 * param0)
+int sub_02084B34 (GameWindowLayout * param0)
{
if (gCoreSys.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
sub_0200E084(¶m0->unk_04[34], 1);
diff --git a/src/unk_02084B70.c b/src/unk_02084B70.c
index 30477838db..a810c9bc40 100644
--- a/src/unk_02084B70.c
+++ b/src/unk_02084B70.c
@@ -39,12 +39,12 @@ static int sub_020855C4(void * param0);
static int sub_02085704(void * param0);
static int sub_02085A70(void * param0);
static int sub_02085C50(void * param0);
-static void sub_02086590(UnkStruct_0207F248 * param0, Pokemon * param1, u32 param2);
+static void sub_02086590(GameWindowLayout * param0, Pokemon * param1, u32 param2);
static int sub_02086438(void * param0);
static int sub_0208648C(void * param0);
static int sub_020864E4(void * param0);
static int sub_02086538(void * param0);
-static u16 sub_02086930(UnkStruct_0207F248 * param0);
+static u16 sub_02086930(GameWindowLayout * param0);
static int sub_02085FB4(void * param0);
static int sub_02086008(void * param0);
static int sub_02086060(void * param0);
@@ -219,7 +219,7 @@ static u8 sub_02084B70 (u16 param0)
return 28;
}
-static void sub_02084E58 (UnkStruct_0207F248 * param0, u16 param1, u32 param2)
+static void sub_02084E58 (GameWindowLayout * param0, u16 param1, u32 param2)
{
Pokemon * v0;
Strbuf* v1;
@@ -355,7 +355,7 @@ static void sub_02084E58 (UnkStruct_0207F248 * param0, u16 param1, u32 param2)
}
}
-void sub_020852B8 (UnkStruct_0207F248 * param0)
+void sub_020852B8 (GameWindowLayout * param0)
{
switch (sub_02084B70(param0->unk_5A4->unk_24)) {
case 0:
@@ -401,7 +401,7 @@ void sub_020852B8 (UnkStruct_0207F248 * param0)
int sub_02085348 (void * param0)
{
- UnkStruct_0207F248 * v0 = (UnkStruct_0207F248 *)param0;
+ GameWindowLayout * v0 = (GameWindowLayout *)param0;
if (Message_Printing(v0->unk_B10) != 0) {
return 5;
@@ -417,7 +417,7 @@ int sub_02085348 (void * param0)
static int sub_02085384 (void * param0)
{
- UnkStruct_0207F248 * v0 = (UnkStruct_0207F248 *)param0;
+ GameWindowLayout * v0 = (GameWindowLayout *)param0;
sub_02096F14(v0->unk_5A4->unk_00, v0->unk_5A4->unk_24, v0->unk_B11, 0, sub_02086930(v0), 12);
sub_0207EF14(v0, v0->unk_B11);
@@ -435,11 +435,11 @@ static int sub_02085384 (void * param0)
static int sub_02085424 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Pokemon * v1;
u8 v2[7];
- v0 = (UnkStruct_0207F248 *)param0;
+ v0 = (GameWindowLayout *)param0;
v1 = Party_GetPokemonBySlotIndex(v0->unk_5A4->unk_00, v0->unk_B11);
v2[0] = Pokemon_GetValue(v1, MON_DATA_HP_EV, NULL);
@@ -474,13 +474,13 @@ static int sub_02085424 (void * param0)
static int sub_020855C4 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Pokemon * v1;
Strbuf* v2;
u32 v3;
u32 v4;
- v0 = (UnkStruct_0207F248 *)param0;
+ v0 = (GameWindowLayout *)param0;
sub_02096F14(v0->unk_5A4->unk_00, v0->unk_5A4->unk_24, v0->unk_B11, 0, sub_02086930(v0), 12);
@@ -517,7 +517,7 @@ static int sub_020855C4 (void * param0)
static int sub_02085704 (void * param0)
{
- UnkStruct_0207F248 * v0 = (UnkStruct_0207F248 *)param0;
+ GameWindowLayout * v0 = (GameWindowLayout *)param0;
Pokemon * v1;
u32 v2;
@@ -550,7 +550,7 @@ BOOL sub_020857A8 (u16 param0)
return 0;
}
-static u8 sub_020857C0 (UnkStruct_0207F248 * param0, u8 param1)
+static u8 sub_020857C0 (GameWindowLayout * param0, u8 param1)
{
u8 v0;
@@ -567,7 +567,7 @@ static u8 sub_020857C0 (UnkStruct_0207F248 * param0, u8 param1)
return 0xff;
}
-int sub_02085804 (UnkStruct_0207F248 * param0)
+int sub_02085804 (GameWindowLayout * param0)
{
Pokemon * v0;
Strbuf* v1;
@@ -594,7 +594,7 @@ int sub_02085804 (UnkStruct_0207F248 * param0)
case 1:
v0 = Party_GetPokemonBySlotIndex(param0->unk_5A4->unk_00, param0->unk_B11);
- sub_02096954(v0, param0->unk_5A4->unk_24, 0, sub_02086930(param0), 12);
+ ApplyItemEffectsToPokemon(v0, param0->unk_5A4->unk_24, 0, sub_02086930(param0), 12);
v2 = Pokemon_GetValue(v0, MON_DATA_CURRENT_HP, NULL);
v1 = MessageLoader_GetNewStrbuf(param0->unk_69C, 70);
@@ -658,13 +658,13 @@ int sub_02085804 (UnkStruct_0207F248 * param0)
static int sub_02085A70 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Pokemon * v1;
Strbuf* v2;
u32 v3;
u32 v4;
- v0 = (UnkStruct_0207F248 *)param0;
+ v0 = (GameWindowLayout *)param0;
v1 = Party_GetPokemonBySlotIndex(v0->unk_5A4->unk_00, v0->unk_B11);
v0->unk_B14[0] = (u16)Pokemon_GetValue(v1, MON_DATA_MAX_HP, NULL);
@@ -711,7 +711,7 @@ static int sub_02085A70 (void * param0)
static int sub_02085C50 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Pokemon * v1;
Strbuf* v2;
@@ -824,7 +824,7 @@ static int sub_02085C50 (void * param0)
return 5;
}
-int sub_02085EF4 (UnkStruct_0207F248 * param0)
+int sub_02085EF4 (GameWindowLayout * param0)
{
Pokemon * v0;
Strbuf* v1;
@@ -854,7 +854,7 @@ int sub_02085EF4 (UnkStruct_0207F248 * param0)
static int sub_02085FB4 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Strbuf* v1;
v0 = param0;
@@ -872,7 +872,7 @@ static int sub_02085FB4 (void * param0)
static int sub_02086008 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Strbuf* v1;
v0 = param0;
@@ -891,7 +891,7 @@ static int sub_02086008 (void * param0)
static int sub_02086060 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Strbuf* v1;
v0 = param0;
@@ -909,7 +909,7 @@ static int sub_02086060 (void * param0)
static int sub_020860AC (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Strbuf* v1;
v0 = param0;
@@ -926,7 +926,7 @@ static int sub_020860AC (void * param0)
return 24;
}
-u8 sub_02086104 (UnkStruct_0207F248 * param0, Pokemon * param1)
+u8 sub_02086104 (GameWindowLayout * param0, Pokemon * param1)
{
u16 v0;
u8 v1;
@@ -954,7 +954,7 @@ u8 sub_02086104 (UnkStruct_0207F248 * param0, Pokemon * param1)
return v1;
}
-int sub_0208615C (UnkStruct_0207F248 * param0)
+int sub_0208615C (GameWindowLayout * param0)
{
Pokemon * v0;
Strbuf* v1;
@@ -1011,7 +1011,7 @@ int sub_0208615C (UnkStruct_0207F248 * param0)
return 24;
}
-int sub_020862F8 (UnkStruct_0207F248 * param0)
+int sub_020862F8 (GameWindowLayout * param0)
{
Pokemon * v0;
Strbuf* v1;
@@ -1034,7 +1034,7 @@ int sub_020862F8 (UnkStruct_0207F248 * param0)
return 24;
}
-int sub_020863A0 (UnkStruct_0207F248 * param0)
+int sub_020863A0 (GameWindowLayout * param0)
{
Pokemon * v0;
Strbuf* v1;
@@ -1060,7 +1060,7 @@ int sub_020863A0 (UnkStruct_0207F248 * param0)
static int sub_02086438 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Strbuf* v1;
v0 = param0;
@@ -1078,7 +1078,7 @@ static int sub_02086438 (void * param0)
static int sub_0208648C (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Strbuf* v1;
v0 = param0;
@@ -1097,7 +1097,7 @@ static int sub_0208648C (void * param0)
static int sub_020864E4 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Strbuf* v1;
v0 = param0;
@@ -1115,7 +1115,7 @@ static int sub_020864E4 (void * param0)
static int sub_02086538 (void * param0)
{
- UnkStruct_0207F248 * v0;
+ GameWindowLayout * v0;
Strbuf* v1;
v0 = param0;
@@ -1132,7 +1132,7 @@ static int sub_02086538 (void * param0)
return 24;
}
-static void sub_02086590 (UnkStruct_0207F248 * param0, Pokemon * param1, u32 param2)
+static void sub_02086590 (GameWindowLayout * param0, Pokemon * param1, u32 param2)
{
u32 v0;
@@ -1154,7 +1154,7 @@ static void sub_02086590 (UnkStruct_0207F248 * param0, Pokemon * param1, u32 par
}
}
-static u8 sub_02086614 (UnkStruct_0207F248 * param0, u8 param1)
+static u8 sub_02086614 (GameWindowLayout * param0, u8 param1)
{
Pokemon * v0;
Strbuf* v1;
@@ -1177,7 +1177,7 @@ static u8 sub_02086614 (UnkStruct_0207F248 * param0, u8 param1)
return 1;
}
-void sub_020866A0 (UnkStruct_0207F248 * param0, u8 param1)
+void sub_020866A0 (GameWindowLayout * param0, u8 param1)
{
UnkStruct_02081CF4 v0;
u8 v1;
@@ -1213,7 +1213,7 @@ void sub_020866A0 (UnkStruct_0207F248 * param0, u8 param1)
param0->unk_700 = sub_02001B7C(&v0, 8, 0, 0, 12, PAD_BUTTON_B);
}
-int sub_02086774 (UnkStruct_0207F248 * param0)
+int sub_02086774 (GameWindowLayout * param0)
{
u32 v0 = sub_02001BE0(param0->unk_700);
@@ -1253,7 +1253,7 @@ int sub_02086774 (UnkStruct_0207F248 * param0)
return 6;
}
-void sub_020868B0 (UnkStruct_0207F248 * param0)
+void sub_020868B0 (GameWindowLayout * param0)
{
sub_0200E084(¶m0->unk_04[32], 1);
@@ -1271,7 +1271,7 @@ void sub_020868B0 (UnkStruct_0207F248 * param0)
param0->unk_B0E = 25;
}
-static u16 sub_02086930 (UnkStruct_0207F248 * param0)
+static u16 sub_02086930 (GameWindowLayout * param0)
{
UnkStruct_0203CDB0 * v0 = param0->unk_5A4->unk_1C;
return (u16)sub_0203A138(v0->unk_1C->unk_00);
diff --git a/src/unk_0208694C.c b/src/unk_0208694C.c
index 48a74a4d60..ad2651e4e5 100644
--- a/src/unk_0208694C.c
+++ b/src/unk_0208694C.c
@@ -85,7 +85,7 @@ struct UnkStruct_02087A10_t {
int unk_0C;
int unk_10;
int unk_14;
- UnkStruct_020279FC * unk_18;
+ AnimationControlFlags * unk_18;
UnkStruct_02087A10_sub1 unk_1C;
u16 unk_38;
u16 unk_3A[6][13];
@@ -104,15 +104,15 @@ struct UnkStruct_02087A10_t {
Strbuf* unk_17C;
Strbuf* unk_180;
Strbuf* unk_184;
- UnkStruct_020218BC * unk_188;
+ GraphicElementManager * unk_188;
UnkStruct_0200C738 unk_18C;
UnkStruct_02009714 * unk_318[4];
UnkStruct_02009DC8 * unk_328[2][4];
UnkStruct_ov19_021DA864 unk_348;
UnkStruct_ov19_021DA864 unk_36C;
- UnkStruct_02022550 * unk_390[14];
- UnkStruct_02022550 * unk_3C8[12];
- UnkStruct_02022550 * unk_3F8[2];
+ GraphicElementData * unk_390[14];
+ GraphicElementData * unk_3C8[12];
+ GraphicElementData * unk_3F8[2];
SysTask * unk_400[7];
Window unk_41C[10];
int unk_4BC;
@@ -138,14 +138,14 @@ struct UnkStruct_02087A10_t {
};
typedef struct {
- UnkStruct_02022550 * unk_00;
- UnkStruct_02022550 * unk_04;
+ GraphicElementData * unk_00;
+ GraphicElementData * unk_04;
int unk_08;
int unk_0C;
} UnkStruct_020879DC;
typedef struct {
- UnkStruct_02022550 * unk_00;
+ GraphicElementData * unk_00;
int unk_04;
int unk_08;
int unk_0C;
@@ -170,7 +170,7 @@ static void sub_020871CC(void);
static void sub_020871EC(BGL * param0);
static void sub_0208765C(BGL * param0, Window * param1);
static void sub_0208769C(UnkStruct_02087A10 * param0, NARC * param1);
-static void sub_02087D64(BGL * param0, Window * param1, int * param2, int param3, int * param4, VecFx32 param5[], UnkStruct_02022550 ** param6, void * param7);
+static void sub_02087D64(BGL * param0, Window * param1, int * param2, int param3, int * param4, VecFx32 param5[], GraphicElementData ** param6, void * param7);
static void sub_0208737C(UnkStruct_02087A10 * param0, UnkStruct_020067E8 * param1);
static void sub_02088240(BGL * param0, int param1, VecFx32 param2[]);
static void sub_02088260(VecFx32 param0[], int param1);
@@ -187,11 +187,11 @@ static void sub_02088754(Window * param0, u16 * param1, int param2, u16 * param3
static int sub_02088898(UnkStruct_02087A10 * param0, u16 param1, int param2);
static int sub_02088D08(int param0, int param1, int param2, int param3, u16 * param4, int param5);
static int sub_02088C9C(int param0, int param1, u16 * param2, int param3);
-static void sub_02088E1C(UnkStruct_02022550 ** param0, int param1, int param2);
+static void sub_02088E1C(GraphicElementData ** param0, int param1, int param2);
static void sub_020871B0(UnkStruct_02087A10 * param0, UnkStruct_0208737C * param1);
static void sub_02088E58(Window * param0, u16 param1, int param2, u32 param3, u8 * param4);
static void sub_02088454(UnkStruct_02087A10 * param0, int param1);
-static void sub_02088F40(int param0[], UnkStruct_02022550 ** param1, int param2);
+static void sub_02088F40(int param0[], GraphicElementData ** param1, int param2);
static void sub_020879DC(SysTask * param0, void * param1);
static void sub_02087CDC(SysTask * param0, void * param1);
static void sub_02086B30(NNSG2dCharacterData * param0, NNSG2dPaletteData * param1, int param2, int param3);
@@ -896,8 +896,8 @@ static int sub_0208694C (UnkStruct_020067E8 * param0, int * param1)
switch (*param1) {
case 0:
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -922,7 +922,7 @@ static int sub_0208694C (UnkStruct_020067E8 * param0, int * param1)
sub_020871B0(v0, (UnkStruct_0208737C *)sub_02006840(param0));
sub_0208769C(v0, v1);
sub_02002BB8(2, 18);
- sub_02017798(sub_02087190, NULL);
+ SetMainCallback(sub_02087190, NULL);
sub_0208737C(v0, param0);
sub_02002BEC(0, 18);
sub_020877C4();
@@ -1199,7 +1199,7 @@ static int sub_02086F3C (UnkStruct_020067E8 * param0, int * param1)
MessageLoader_Free(v0->unk_16C);
sub_0200B3F0(v0->unk_168);
sub_02006830(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
Heap_Destroy(18);
{
@@ -1210,7 +1210,7 @@ static int sub_02086F3C (UnkStruct_020067E8 * param0, int * param1)
return 1;
}
-UnkStruct_0208737C * sub_0208712C (int param0, int param1, int param2, int param3, UnkStruct_020279FC * param4)
+UnkStruct_0208737C * sub_0208712C (int param0, int param1, int param2, int param3, AnimationControlFlags * param4)
{
UnkStruct_0208737C * v0;
@@ -1752,7 +1752,7 @@ static void sub_02087CDC (SysTask * param0, void * param1)
v0->unk_04++;
}
-static void sub_02087D64 (BGL * param0, Window * param1, int * param2, int param3, int * param4, VecFx32 param5[], UnkStruct_02022550 ** param6, void * param7)
+static void sub_02087D64 (BGL * param0, Window * param1, int * param2, int param3, int * param4, VecFx32 param5[], GraphicElementData ** param6, void * param7)
{
int v0 = *param4;
int v1 = v0 ^ 1;
@@ -2443,7 +2443,7 @@ static int sub_02088D08 (int param0, int param1, int param2, int param3, u16 * p
return 0;
}
-static void sub_02088E1C (UnkStruct_02022550 ** param0, int param1, int param2)
+static void sub_02088E1C (GraphicElementData ** param0, int param1, int param2)
{
int v0;
@@ -2488,7 +2488,7 @@ static void sub_02088E58 (Window * param0, u16 param1, int param2, u32 param3, u
sub_0201A954(param0);
}
-static void sub_02088F40 (int param0[], UnkStruct_02022550 ** param1, int param2)
+static void sub_02088F40 (int param0[], GraphicElementData ** param1, int param2)
{
int v0, v1;
diff --git a/src/unk_020890F4.c b/src/unk_020890F4.c
index 6774131b99..aba182261c 100644
--- a/src/unk_020890F4.c
+++ b/src/unk_020890F4.c
@@ -56,8 +56,8 @@ static int sub_020890F4 (UnkStruct_020067E8 * param0, int * param1)
memset(v0, 0, sizeof(UnkStruct_02089688));
v0->unk_38C = *(( UnkStruct_02089438 * )sub_02006840(param0));
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -91,7 +91,7 @@ static int sub_020890F4 (UnkStruct_020067E8 * param0, int * param1)
G2_SetBlendAlpha(GX_BLEND_PLANEMASK_NONE, GX_BLEND_PLANEMASK_BG1 | GX_BLEND_PLANEMASK_BG2, 15, 7);
G2S_SetBlendAlpha(GX_BLEND_PLANEMASK_NONE, GX_BLEND_PLANEMASK_BG1 | GX_BLEND_PLANEMASK_BG2 | GX_BLEND_PLANEMASK_BG3, 7, 8);
- sub_02017798(sub_020895CC, v0);
+ SetMainCallback(sub_020895CC, v0);
return 1;
}
@@ -159,7 +159,7 @@ static int sub_0208927C (UnkStruct_020067E8 * param0, int * param1)
return 1;
}
-UnkStruct_02089438 * sub_020893B4 (int param0, int param1, int param2[], UnkStruct_020279FC * param3, u32 param4, u32 param5)
+UnkStruct_02089438 * sub_020893B4 (int param0, int param1, int param2[], AnimationControlFlags * param3, u32 param4, u32 param5)
{
int v0;
UnkStruct_02089438 * v1 = NULL;
@@ -181,7 +181,7 @@ UnkStruct_02089438 * sub_020893B4 (int param0, int param1, int param2[], UnkStru
return v1;
}
-UnkStruct_02089438 * sub_02089400 (int param0, int param1, int param2[], UnkStruct_020279FC * param3, u32 param4, u32 param5)
+UnkStruct_02089438 * sub_02089400 (int param0, int param1, int param2[], AnimationControlFlags * param3, u32 param4, u32 param5)
{
UnkStruct_02089438 * v0 = sub_020893B4(param0, param1, param2, param3, param4, param5);
@@ -190,7 +190,7 @@ UnkStruct_02089438 * sub_02089400 (int param0, int param1, int param2[], UnkStru
return v0;
}
-UnkStruct_02089438 * sub_0208941C (int param0, int param1, int param2[], UnkStruct_020279FC * param3, u32 param4, u32 param5, u32 param6, u32 param7)
+UnkStruct_02089438 * sub_0208941C (int param0, int param1, int param2[], AnimationControlFlags * param3, u32 param4, u32 param5, u32 param6, u32 param7)
{
UnkStruct_02089438 * v0 = sub_020893B4(param0, param1, param2, param3, param4, param5);
diff --git a/src/unk_0208A3F4.c b/src/unk_0208A3F4.c
index ded4b85c98..1209f3aa1c 100644
--- a/src/unk_0208A3F4.c
+++ b/src/unk_0208A3F4.c
@@ -70,8 +70,8 @@ void sub_0208A490 (UnkStruct_02089688 * param0)
{
NARC * v0;
BGL * v1;
- UnkStruct_0200C6E4 * v2;
- UnkStruct_0200C704 * v3;
+ CellTransferStateData * v2;
+ AnimationResourceCollection * v3;
PaletteSys * v4;
v2 = param0->unk_2C0.unk_04;
@@ -303,8 +303,8 @@ asm void sub_0208A758 (UnkStruct_02089688 * param0)
void sub_0208A8A0 (UnkStruct_02089688 * param0)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
v1 = param0->unk_2C0.unk_04;
@@ -359,8 +359,8 @@ void sub_0208A8A0 (UnkStruct_02089688 * param0)
void sub_0208A9BC (UnkStruct_02089688 * param0)
{
UnkStruct_ov104_0223F9E0 v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
v1 = param0->unk_2C0.unk_04;
diff --git a/src/unk_0208B284.c b/src/unk_0208B284.c
index 4d220a08e2..c9382c89a6 100644
--- a/src/unk_0208B284.c
+++ b/src/unk_0208B284.c
@@ -25,7 +25,7 @@ typedef struct {
static BOOL sub_0208B2DC(s16 param0, s16 param1, f32 param2, f32 param3, f32 * param4, f32 * param5, f32 param6, s16 param7);
static void sub_0208B3D4(SysTask * param0, void * param1);
-UnkStruct_0208B878 * sub_0208B284(UnkStruct_0208B284 param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, PaletteSys * param3);
+UnkStruct_0208B878 * sub_0208B284(UnkStruct_0208B284 param0, CellTransferStateData * param1, AnimationResourceCollection * param2, PaletteSys * param3);
void sub_0208B6B0(UnkStruct_0208B878 * param0, int param1);
void sub_0208B7B4(UnkStruct_0208B878 * param0);
void sub_0208B830(UnkStruct_0208B878 * param0);
@@ -41,7 +41,7 @@ static const int Unk_020F2FB0[] = {
97, 98, 99, 100, 101, 128, 133,
};
-UnkStruct_0208B878 * sub_0208B284 (UnkStruct_0208B284 param0, UnkStruct_0200C6E4 * param1, UnkStruct_0200C704 * param2, PaletteSys * param3)
+UnkStruct_0208B878 * sub_0208B284 (UnkStruct_0208B284 param0, CellTransferStateData * param1, AnimationResourceCollection * param2, PaletteSys * param3)
{
UnkStruct_0208B878 * v0;
@@ -174,8 +174,8 @@ static void sub_0208B3D4 (SysTask * param0, void * param1)
void sub_0208B63C (UnkStruct_0208B878 * param0, int param1)
{
NARC * v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
v1 = param0->unk_00.unk_04;
@@ -192,8 +192,8 @@ void sub_0208B63C (UnkStruct_0208B878 * param0, int param1)
void sub_0208B6B0 (UnkStruct_0208B878 * param0, int param1)
{
NARC * v0;
- UnkStruct_0200C6E4 * v1;
- UnkStruct_0200C704 * v2;
+ CellTransferStateData * v1;
+ AnimationResourceCollection * v2;
PaletteSys * v3;
int v4 = 22222 + param0->unk_10.unk_08;
@@ -228,8 +228,8 @@ void sub_0208B7B4 (UnkStruct_0208B878 * param0)
{
int v0;
UnkStruct_ov104_0223F9E0 v1;
- UnkStruct_0200C6E4 * v2;
- UnkStruct_0200C704 * v3;
+ CellTransferStateData * v2;
+ AnimationResourceCollection * v3;
PaletteSys * v4;
v2 = param0->unk_00.unk_04;
diff --git a/src/unk_0208C324.c b/src/unk_0208C324.c
index c5f5364886..ca66ff223c 100644
--- a/src/unk_0208C324.c
+++ b/src/unk_0208C324.c
@@ -144,8 +144,8 @@ static int sub_0208C330 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_0208D7BC * v0;
NARC * v1;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -189,7 +189,7 @@ static int sub_0208C330 (UnkStruct_020067E8 * param0, int * param1)
sub_0208D678(v0);
sub_020920C0(v0);
sub_020917E0(v0);
- sub_02017798(sub_0208C604, v0);
+ SetMainCallback(sub_0208C604, v0);
GXLayers_TurnBothDispOn();
sub_02004550(61, 0, 0);
sub_020397E4();
@@ -281,7 +281,7 @@ static int sub_0208C5A0 (UnkStruct_020067E8 * param0, int * param1)
{
UnkStruct_0208D7BC * v0 = sub_0200682C(param0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
sub_020917B0(v0);
sub_0208EAF4(v0);
sub_0208FE88(v0);
@@ -1102,9 +1102,9 @@ static void sub_0208D200 (UnkStruct_0208D7BC * param0, Pokemon * param1, UnkStru
param2->unk_4E = Pokemon_GetValue(param1, MON_DATA_FORM, NULL);
param2->unk_50_0 = sub_0208E9F0(param1);
- if (sub_020778F8(param1) == 1) {
+ if (Pokemon_CanSpreadPokerus(param1) == 1) {
param2->unk_50_30 = 2;
- } else if (sub_020778D8(param1) == 1) {
+ } else if (Pokemon_InfectedWithPokerus(param1) == 1) {
param2->unk_50_30 = 1;
if (param2->unk_50_0 == 7) {
@@ -1147,7 +1147,7 @@ static void sub_0208D618 (UnkStruct_0208D7BC * param0)
PokeSprite_LoadCryDelay(param0->unk_6A0, &v0, param0->unk_250.unk_0C, 1);
if (param0->unk_250.unk_0C == 441) {
- sub_02006438(param0->unk_24C->unk_28, 0, 100, 0, v0);
+ Sound_PlayDelayedChatotCry(param0->unk_24C->unk_28, 0, 100, 0, v0);
} else {
sub_0200590C(param0->unk_250.unk_0C, v0, param0->unk_250.unk_4E);
}
diff --git a/src/unk_0208EA44.c b/src/unk_0208EA44.c
index 702dab59d1..67cbb12908 100644
--- a/src/unk_0208EA44.c
+++ b/src/unk_0208EA44.c
@@ -26,7 +26,7 @@
static void sub_0208F194(UnkStruct_0208D7BC * param0, u8 param1, u8 param2, u8 param3);
static void sub_0208EF0C(UnkStruct_0208D7BC * param0);
-static void sub_0208FC30(UnkStruct_02022550 * param0, u32 param1, u32 param2, const s16 * param3);
+static void sub_0208FC30(GraphicElementData * param0, u32 param1, u32 param2, const s16 * param3);
static const UnkStruct_ov7_0224F358 Unk_020F41A8[] = {
{0x1, 0x80, 0x18, 0x0, 0x0, 0x1, 0x1, NNS_G2D_VRAM_TYPE_2DMAIN, 0x0, 0x0, 0x0, 0x0},
@@ -242,7 +242,7 @@ static u8 sub_0208ECB8 (UnkStruct_0208D7BC * param0)
void sub_0208ECF4 (UnkStruct_0208D7BC * param0)
{
- UnkStruct_02022550 ** v0;
+ GraphicElementData ** v0;
s16 v1, v2;
s16 v3;
u16 v4;
@@ -831,7 +831,7 @@ void sub_0208FB54 (UnkStruct_0208D7BC * param0, u8 param1)
}
}
-static void sub_0208FC30 (UnkStruct_02022550 * param0, u32 param1, u32 param2, const s16 * param3)
+static void sub_0208FC30 (GraphicElementData * param0, u32 param1, u32 param2, const s16 * param3)
{
s32 v0, v1;
diff --git a/src/unk_0208FCF8.c b/src/unk_0208FCF8.c
index 13a6988ee2..25f19a52f3 100644
--- a/src/unk_0208FCF8.c
+++ b/src/unk_0208FCF8.c
@@ -535,7 +535,7 @@ static void sub_02090578 (UnkStruct_0208D7BC * param0)
static void sub_02090800 (Window * param0, Pokemon * param1, BOOL param2)
{
- UnkStruct_02090800 * v0 = sub_02092494(param1, param2, 19);
+ PokemonInfoDisplayStruct * v0 = sub_02092494(param1, param2, 19);
if (v0->unk_14.unk_04 != NULL) {
sub_0201D78C(param0, 0, v0->unk_14.unk_04, 0, 0 + (v0->unk_14.unk_00 - 1) * 16, 0xff, ((u32)(((1 & 0xff) << 16) | ((2 & 0xff) << 8) | ((0 & 0xff) << 0))), NULL);
diff --git a/src/unk_02092494.c b/src/unk_02092494.c
index ff00950354..71f54871e3 100644
--- a/src/unk_02092494.c
+++ b/src/unk_02092494.c
@@ -5,7 +5,7 @@
#include "message.h"
#include "unk_0200B358.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "unk_02017038.h"
#include "heap.h"
#include "strbuf.h"
@@ -13,25 +13,25 @@
#include "pokemon.h"
#include "unk_02092494.h"
-static int sub_02092E8C(Pokemon * param0, BOOL param1, int param2);
-static void sub_02092878(UnkStruct_02090800 * param0);
-static void sub_020928A0(UnkStruct_02090800 * param0, int param1);
-static void sub_020929C0(UnkStruct_02090800 * param0, int param1);
-static void sub_02092B1C(UnkStruct_02090800 * param0, int param1, int param2);
-static void sub_02092C24(UnkStruct_02090800 * param0);
-static void sub_02092E10(UnkStruct_02090800 * param0);
-static void sub_02092E4C(UnkStruct_02090800 * param0);
-static void sub_020932A4(BoxPokemon * param0, TrainerInfo * param1, int param2);
-static void sub_020932F0(BoxPokemon * param0, int param1, int param2);
-static void sub_02093368(BoxPokemon * param0, int param1);
-static void sub_020933C8(BoxPokemon * param0);
-static void sub_020933E8(BoxPokemon * param0);
+static int DeterminePokemonStatus(Pokemon * param0, BOOL param1, int param2);
+static void InitializeNatureRelatedStrBuf(PokemonInfoDisplayStruct * param0);
+static void InitializePokemonMetInfoStrBuf(PokemonInfoDisplayStruct * param0, int param1);
+static void InitializeAlternateMetInfoStrBuf(PokemonInfoDisplayStruct * param0, int param1);
+static void InitializeSpecialMetInfoStrBuf(PokemonInfoDisplayStruct * param0, int param1, int param2);
+static void InitializeIVsStrBuf(PokemonInfoDisplayStruct * param0);
+static void InitializeFlavorAffinityStrBuf(PokemonInfoDisplayStruct * param0);
+static void InitializeFriendshipLevelStrBuf(PokemonInfoDisplayStruct * param0);
+static void AssignTrainerInfoToBoxPokemon(BoxPokemon * param0, TrainerInfo * param1, int param2);
+static void SetMetLocationForBoxPokemon(BoxPokemon * param0, int param1, int param2);
+static void ResetBoxPokemonEggStatus(BoxPokemon * param0, int param1);
+static void FinalizeBoxPokemonData(BoxPokemon * param0);
+static void UpdateBoxPokemonAfterCheck(BoxPokemon * param0);
-UnkStruct_02090800 * sub_02092494 (Pokemon * param0, BOOL param1, int param2)
+PokemonInfoDisplayStruct * sub_02092494 (Pokemon * param0, BOOL param1, int param2)
{
- UnkStruct_02090800 * v0;
+ PokemonInfoDisplayStruct * v0;
- v0 = Heap_AllocFromHeap(param2, sizeof(UnkStruct_02090800));
+ v0 = Heap_AllocFromHeap(param2, sizeof(PokemonInfoDisplayStruct));
v0->unk_00 = param2;
v0->unk_04 = MessageLoader_Init(1, 26, 455, v0->unk_00);
v0->unk_08 = sub_0200B368(9, 32, v0->unk_00);
@@ -55,238 +55,238 @@ UnkStruct_02090800 * sub_02092494 (Pokemon * param0, BOOL param1, int param2)
v0->unk_34.unk_04 = NULL;
}
- switch (sub_02092E8C(v0->unk_0C, v0->unk_10, v0->unk_00)) {
+ switch (DeterminePokemonStatus(v0->unk_0C, v0->unk_10, v0->unk_00)) {
case 0:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 49);
+ InitializePokemonMetInfoStrBuf(v0, 49);
v0->unk_24.unk_00 = 6;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 7;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 1:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 50);
+ InitializePokemonMetInfoStrBuf(v0, 50);
v0->unk_24.unk_00 = 6;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 7;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 2:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 51);
+ InitializePokemonMetInfoStrBuf(v0, 51);
v0->unk_24.unk_00 = 6;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 7;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 3:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 52);
+ InitializePokemonMetInfoStrBuf(v0, 52);
v0->unk_24.unk_00 = 8;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 9;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 4:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 53);
+ InitializePokemonMetInfoStrBuf(v0, 53);
v0->unk_24.unk_00 = 8;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 9;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 5:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 54);
+ InitializePokemonMetInfoStrBuf(v0, 54);
v0->unk_24.unk_00 = 8;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 9;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 6:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 55);
+ InitializePokemonMetInfoStrBuf(v0, 55);
v0->unk_24.unk_00 = 8;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 9;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 7:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 56);
+ InitializePokemonMetInfoStrBuf(v0, 56);
v0->unk_24.unk_00 = 7;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 8;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 8:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 57);
+ InitializePokemonMetInfoStrBuf(v0, 57);
v0->unk_24.unk_00 = 7;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 8;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 9:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 58);
+ InitializePokemonMetInfoStrBuf(v0, 58);
v0->unk_24.unk_00 = 9;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
break;
case 10:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 59);
+ InitializePokemonMetInfoStrBuf(v0, 59);
v0->unk_24.unk_00 = 9;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
break;
case 11:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 60);
+ InitializePokemonMetInfoStrBuf(v0, 60);
v0->unk_24.unk_00 = 9;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
break;
case 12:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 61);
+ InitializePokemonMetInfoStrBuf(v0, 61);
v0->unk_24.unk_00 = 9;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
break;
case 13:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 62);
+ InitializePokemonMetInfoStrBuf(v0, 62);
v0->unk_24.unk_00 = 9;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
break;
case 14:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020928A0(v0, 63);
+ InitializePokemonMetInfoStrBuf(v0, 63);
v0->unk_24.unk_00 = 9;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
break;
case 15:
v0->unk_14.unk_00 = 1;
- sub_02092878(v0);
+ InitializeNatureRelatedStrBuf(v0);
v0->unk_1C.unk_00 = 2;
- sub_020929C0(v0, 64);
+ InitializeAlternateMetInfoStrBuf(v0, 64);
v0->unk_24.unk_00 = 6;
- sub_02092C24(v0);
+ InitializeIVsStrBuf(v0);
v0->unk_2C.unk_00 = 7;
- sub_02092E10(v0);
+ InitializeFlavorAffinityStrBuf(v0);
break;
case 16:
v0->unk_1C.unk_00 = 1;
- sub_02092B1C(v0, 101, 0);
+ InitializeSpecialMetInfoStrBuf(v0, 101, 0);
v0->unk_34.unk_00 = 6;
- sub_02092E4C(v0);
+ InitializeFriendshipLevelStrBuf(v0);
break;
case 17:
v0->unk_1C.unk_00 = 1;
- sub_02092B1C(v0, 102, 1);
+ InitializeSpecialMetInfoStrBuf(v0, 102, 1);
v0->unk_34.unk_00 = 6;
- sub_02092E4C(v0);
+ InitializeFriendshipLevelStrBuf(v0);
break;
case 18:
v0->unk_1C.unk_00 = 1;
- sub_02092B1C(v0, 103, 0);
+ InitializeSpecialMetInfoStrBuf(v0, 103, 0);
v0->unk_34.unk_00 = 6;
- sub_02092E4C(v0);
+ InitializeFriendshipLevelStrBuf(v0);
break;
case 19:
v0->unk_1C.unk_00 = 1;
- sub_02092B1C(v0, 103, 1);
+ InitializeSpecialMetInfoStrBuf(v0, 103, 1);
v0->unk_34.unk_00 = 6;
- sub_02092E4C(v0);
+ InitializeFriendshipLevelStrBuf(v0);
break;
case 20:
v0->unk_1C.unk_00 = 1;
- sub_02092B1C(v0, 104, 0);
+ InitializeSpecialMetInfoStrBuf(v0, 104, 0);
v0->unk_34.unk_00 = 6;
- sub_02092E4C(v0);
+ InitializeFriendshipLevelStrBuf(v0);
break;
}
return v0;
}
-void sub_0209282C (UnkStruct_02090800 * param0)
+void sub_0209282C (PokemonInfoDisplayStruct * param0)
{
if (param0->unk_14.unk_04 != NULL) {
Heap_FreeToHeap(param0->unk_14.unk_04);
@@ -313,7 +313,7 @@ void sub_0209282C (UnkStruct_02090800 * param0)
Heap_FreeToHeap(param0);
}
-static void sub_02092878 (UnkStruct_02090800 * param0)
+static void InitializeNatureRelatedStrBuf (PokemonInfoDisplayStruct * param0)
{
int v0 = Pokemon_GetNature(param0->unk_0C);
@@ -325,7 +325,7 @@ static void sub_02092878 (UnkStruct_02090800 * param0)
MessageLoader_GetStrbuf(param0->unk_04, (24 + v0), param0->unk_14.unk_04);
}
-static void sub_020928A0 (UnkStruct_02090800 * param0, int param1)
+static void InitializePokemonMetInfoStrBuf (PokemonInfoDisplayStruct * param0, int param1)
{
Strbuf* v0 = Strbuf_Init((((2 * 18) * 2) * 8), param0->unk_00);
@@ -345,7 +345,7 @@ static void sub_020928A0 (UnkStruct_02090800 * param0, int param1)
Strbuf_Free(v0);
}
-static void sub_020929C0 (UnkStruct_02090800 * param0, int param1)
+static void InitializeAlternateMetInfoStrBuf (PokemonInfoDisplayStruct * param0, int param1)
{
Strbuf* v0 = Strbuf_Init((((2 * 18) * 2) * 4), param0->unk_00);
@@ -388,7 +388,7 @@ static void sub_020929C0 (UnkStruct_02090800 * param0, int param1)
Strbuf_Free(v0);
}
-static void sub_02092B1C (UnkStruct_02090800 * param0, int param1, int param2)
+static void InitializeSpecialMetInfoStrBuf (PokemonInfoDisplayStruct * param0, int param1, int param2)
{
Strbuf* v0 = Strbuf_Init((((2 * 18) * 2) * 5), param0->unk_00);
@@ -421,7 +421,7 @@ static const u16 Unk_020F5578[6][5] = {
{0x60, 0x61, 0x62, 0x63, 0x64}
};
-static void sub_02092C24 (UnkStruct_02090800 * param0)
+static void InitializeIVsStrBuf (PokemonInfoDisplayStruct * param0)
{
int v0[6], v1, v2;
int v3, v4;
@@ -596,7 +596,7 @@ static const u16 Unk_020F556C[6] = {
0x45
};
-static void sub_02092E10 (UnkStruct_02090800 * param0)
+static void InitializeFlavorAffinityStrBuf (PokemonInfoDisplayStruct * param0)
{
int v0, v1, v2;
@@ -613,7 +613,7 @@ static void sub_02092E10 (UnkStruct_02090800 * param0)
MessageLoader_GetStrbuf(param0->unk_04, v2, param0->unk_2C.unk_04);
}
-static void sub_02092E4C (UnkStruct_02090800 * param0)
+static void InitializeFriendshipLevelStrBuf (PokemonInfoDisplayStruct * param0)
{
int v0 = Pokemon_GetValue(param0->unk_0C, MON_DATA_FRIENDSHIP, NULL);
int v1;
@@ -633,7 +633,7 @@ static void sub_02092E4C (UnkStruct_02090800 * param0)
MessageLoader_GetStrbuf(param0->unk_04, v1, param0->unk_34.unk_04);
}
-static int sub_02092E8C (Pokemon * param0, BOOL param1, int param2)
+static int DeterminePokemonStatus (Pokemon * param0, BOOL param1, int param2)
{
int v0 = 0;
@@ -718,124 +718,125 @@ static int sub_02092E8C (Pokemon * param0, BOOL param1, int param2)
void sub_0209304C (Pokemon * param0, TrainerInfo * param1, int param2, int param3, int param4)
{
- sub_0209305C(¶m0->box, param1, param2, param3, param4);
+ UpdateBoxMonStatusAndTrainerInfo(¶m0->box, param1, param2, param3, param4);
}
-void sub_0209305C (BoxPokemon * param0, TrainerInfo * param1, int param2, int param3, int param4)
+void UpdateBoxMonStatusAndTrainerInfo (BoxPokemon * boxMon, TrainerInfo * trainerInfo, int sel, int metLocation, int heapID)
{
- switch (param2) {
+ switch (sel) {
case 0:
- if (param3 > (sub_02017070(1, 0))) {
- param3 = (sub_02017070(2, 2));
+ if (metLocation > (sub_02017070(1, 0))) {
+ metLocation = (sub_02017070(2, 2));
}
- if (BoxPokemon_GetValue(param0, MON_DATA_IS_EGG, NULL) == 0) {
- sub_02093368(param0, 0);
- sub_020932F0(param0, param3, 1);
- sub_020933C8(param0);
+ if (BoxPokemon_GetValue(boxMon, MON_DATA_IS_EGG, NULL) == 0) {
+ ResetBoxPokemonEggStatus(boxMon, 0);
+ SetMetLocationForBoxPokemon(boxMon, metLocation, 1);
+ FinalizeBoxPokemonData(boxMon);
} else {
- sub_020932F0(param0, param3, 0);
- sub_02093368(param0, 1);
+ SetMetLocationForBoxPokemon(boxMon, metLocation, 0);
+ ResetBoxPokemonEggStatus(boxMon, 1);
}
- sub_020932A4(param0, param1, param4);
+ AssignTrainerInfoToBoxPokemon(boxMon, trainerInfo, heapID);
break;
case 1:
- if (BoxPokemon_GetValue(param0, MON_DATA_IS_EGG, NULL) == 0) {
- sub_02093368(param0, 0);
- sub_020932F0(param0, (sub_02017070(1, 1)), 1);
- sub_020933C8(param0);
+ if (BoxPokemon_GetValue(boxMon, MON_DATA_IS_EGG, NULL) == 0) {
+ ResetBoxPokemonEggStatus(boxMon, 0);
+ SetMetLocationForBoxPokemon(boxMon, (sub_02017070(1, 1)), 1);
+ FinalizeBoxPokemonData(boxMon);
} else {
- sub_02093368(param0, 0);
- sub_020932F0(param0, (sub_02017070(1, 1)), 1);
+ ResetBoxPokemonEggStatus(boxMon, 0);
+ SetMetLocationForBoxPokemon(boxMon, (sub_02017070(1, 1)), 1);
}
break;
case 2:
- sub_02093368(param0, 0);
- sub_020932F0(param0, (sub_02017070(0, 55)), 1);
- sub_020933C8(param0);
+ ResetBoxPokemonEggStatus(boxMon, 0);
+ SetMetLocationForBoxPokemon(boxMon, (sub_02017070(0, 55)), 1);
+ FinalizeBoxPokemonData(boxMon);
break;
case 3:
- sub_020932F0(param0, param3, 0);
- sub_02093368(param0, 1);
- sub_020932A4(param0, param1, param4);
+ SetMetLocationForBoxPokemon(boxMon, metLocation, 0);
+ ResetBoxPokemonEggStatus(boxMon, 1);
+ AssignTrainerInfoToBoxPokemon(boxMon, trainerInfo, heapID);
break;
case 4:
- if (sub_0207884C(param0, param1, param4) == 1) {
- if (BoxPokemon_GetValue(param0, MON_DATA_IS_EGG, NULL) == 0) {
- sub_02093368(param0, 0);
- sub_020932F0(param0, param3, 1);
- sub_020933C8(param0);
+ if (sub_0207884C(boxMon, trainerInfo, heapID) == 1) {
+ if (BoxPokemon_GetValue(boxMon, MON_DATA_IS_EGG, NULL) == 0) {
+ ResetBoxPokemonEggStatus(boxMon, 0);
+ SetMetLocationForBoxPokemon(boxMon, metLocation, 1);
+ FinalizeBoxPokemonData(boxMon);
} else {
- sub_020932F0(param0, param3, 0);
- sub_02093368(param0, 1);
+ SetMetLocationForBoxPokemon(boxMon, metLocation, 0);
+ ResetBoxPokemonEggStatus(boxMon, 1);
}
} else {
- if (BoxPokemon_GetValue(param0, MON_DATA_IS_EGG, NULL) == 0) {
- sub_02093368(param0, 0);
- sub_020932F0(param0, param3, 1);
- sub_020933C8(param0);
+ if (BoxPokemon_GetValue(boxMon, MON_DATA_IS_EGG, NULL) == 0) {
+ ResetBoxPokemonEggStatus(boxMon, 0);
+ SetMetLocationForBoxPokemon(boxMon, metLocation, 1);
+ FinalizeBoxPokemonData(boxMon);
} else {
- sub_02093368(param0, 0);
- sub_020932F0(param0, param3, 1);
+ ResetBoxPokemonEggStatus(boxMon, 0);
+ SetMetLocationForBoxPokemon(boxMon, metLocation, 1);
}
}
- sub_020933E8(param0);
+ UpdateBoxPokemonAfterCheck(boxMon);
break;
case 5:
- if (BoxPokemon_GetValue(param0, MON_DATA_IS_EGG, NULL) == 0) {
+ if (BoxPokemon_GetValue(boxMon, MON_DATA_IS_EGG, NULL) == 0) {
(void)0;
} else {
- sub_020932F0(param0, (sub_02017070(1, 2)), 1);
+ SetMetLocationForBoxPokemon(boxMon, (sub_02017070(1, 2)), 1);
}
break;
case 6:
- if (param3 > (sub_02017070(1, 0))) {
- param3 = (sub_02017070(2, 2));
+ if (metLocation > (sub_02017070(1, 0))) {
+ metLocation = (sub_02017070(2, 2));
}
- if (sub_0207884C(param0, param1, param4) == 0) {
+ if (sub_0207884C(boxMon, trainerInfo, heapID) == 0) {
{
int v0;
- v0 = BoxPokemon_GetValue(param0, MON_DATA_153, NULL);
- BoxPokemon_SetValue(param0, 152, &v0);
+ v0 = BoxPokemon_GetValue(boxMon, MON_DATA_153, NULL);
+ BoxPokemon_SetValue(boxMon, 152, &v0);
- v0 = BoxPokemon_GetValue(param0, MON_DATA_149, NULL);
- BoxPokemon_SetValue(param0, 146, &v0);
+ v0 = BoxPokemon_GetValue(boxMon, MON_DATA_149, NULL);
+ BoxPokemon_SetValue(boxMon, 146, &v0);
- v0 = BoxPokemon_GetValue(param0, MON_DATA_150, NULL);
- BoxPokemon_SetValue(param0, 147, &v0);
+ v0 = BoxPokemon_GetValue(boxMon, MON_DATA_150, NULL);
+ BoxPokemon_SetValue(boxMon, 147, &v0);
- v0 = BoxPokemon_GetValue(param0, MON_DATA_151, NULL);
- BoxPokemon_SetValue(param0, 148, &v0);
+ v0 = BoxPokemon_GetValue(boxMon, MON_DATA_151, NULL);
+ BoxPokemon_SetValue(boxMon, 148, &v0);
}
}
- sub_020932F0(param0, param3, 1);
- sub_020932A4(param0, param1, param4);
+ SetMetLocationForBoxPokemon(boxMon, metLocation, 1);
+ AssignTrainerInfoToBoxPokemon(boxMon, trainerInfo, heapID);
break;
}
}
-static void sub_020932A4 (BoxPokemon * param0, TrainerInfo * param1, int param2)
-{
- int v0 = TrainerInfo_ID(param1);
- int v1 = TrainerInfo_Gender(param1);
- Strbuf* v2 = TrainerInfo_NameNewStrbuf(param1, param2);
- BoxPokemon_SetValue(param0, 7, &v0);
- BoxPokemon_SetValue(param0, 157, &v1);
- BoxPokemon_SetValue(param0, 145, v2);
+static void AssignTrainerInfoToBoxPokemon (BoxPokemon * boxMon, TrainerInfo * trainerInfo, int heapID)
+{
+ int v0 = TrainerInfo_ID(trainerInfo);
+ int v1 = TrainerInfo_Gender(trainerInfo);
+ Strbuf* v2 = TrainerInfo_NameNewStrbuf(trainerInfo, heapID);
+
+ BoxPokemon_SetValue(boxMon, 7, &v0);
+ BoxPokemon_SetValue(boxMon, 157, &v1);
+ BoxPokemon_SetValue(boxMon, 145, v2);
Strbuf_Free(v2);
}
-static void sub_020932F0 (BoxPokemon * param0, int param1, int param2)
+static void SetMetLocationForBoxPokemon (BoxPokemon * param0, int param1, int param2)
{
RTCDate v0;
- sub_020138A4(&v0);
+ GetCurrentDate(&v0);
if (param2 == 0) {
BoxPokemon_SetValue(param0, 152, ¶m1);
@@ -850,7 +851,7 @@ static void sub_020932F0 (BoxPokemon * param0, int param1, int param2)
}
}
-static void sub_02093368 (BoxPokemon * param0, int param1)
+static void ResetBoxPokemonEggStatus (BoxPokemon * param0, int param1)
{
int v0 = 0;
@@ -867,13 +868,13 @@ static void sub_02093368 (BoxPokemon * param0, int param1)
}
}
-static void sub_020933C8 (BoxPokemon * param0)
+static void FinalizeBoxPokemonData (BoxPokemon * param0)
{
int v0 = BoxPokemon_GetValue(param0, MON_DATA_LEVEL, NULL);
BoxPokemon_SetValue(param0, 156, &v0);
}
-static void sub_020933E8 (BoxPokemon * param0)
+static void UpdateBoxPokemonAfterCheck (BoxPokemon * param0)
{
int v0 = 1;
BoxPokemon_SetValue(param0, 110, &v0);
diff --git a/src/unk_020933F8.c b/src/unk_020933F8.c
index 69b1f8623a..3d52846b5c 100644
--- a/src/unk_020933F8.c
+++ b/src/unk_020933F8.c
@@ -35,7 +35,7 @@
#include "unk_0200A9DC.h"
#include "unk_0200B358.h"
#include "unk_0200D9E8.h"
-#include "unk_0201378C.h"
+#include "rtc.h"
#include "heap.h"
#include "unk_0201D15C.h"
#include "strbuf.h"
@@ -445,10 +445,10 @@ UnkStruct_02095C48 * sub_02093800 (const UnkStruct_02093800 * param0)
}
for (v2 = 0; v2 < 4; v2++) {
- v0->unk_14C[v2] = sub_0202CC84(20);
+ v0->unk_14C[v2] = AllocateAndInitializeChatotCryData(20);
}
- sub_0202CD3C(v0->unk_14C[0], param0->unk_20);
+ CopyChatotCryData(v0->unk_14C[0], param0->unk_20);
{
Pokemon_Copy(param0->unk_08, v0->unk_00.unk_00[0]);
@@ -1703,7 +1703,7 @@ void sub_02094C44 (UnkStruct_02095C48 * param0, SaveData * param1, u32 param2, U
static void sub_02094E7C (UnkStruct_02095C48 * param0)
{
- LCRNG_SetSeed((sub_020138C8() * (LCRNG_GetSeed() + 10)) & 0xffff);
+ LCRNG_SetSeed((GetSecondsSinceMidnight() * (LCRNG_GetSeed() + 10)) & 0xffff);
}
u16 sub_02094E98 (UnkStruct_02095C48 * param0)
diff --git a/src/unk_02096420.c b/src/unk_02096420.c
index ee5673d008..3373616a07 100644
--- a/src/unk_02096420.c
+++ b/src/unk_02096420.c
@@ -11,15 +11,15 @@
#include "item.h"
#include "unk_02096420.h"
-static u8 sub_02096F34(Pokemon * param0, u32 param1);
-static u8 sub_02096F84(Pokemon * param0, u32 param1, u32 param2);
-static u8 sub_02097004(Pokemon * param0, u32 param1, u32 param2);
-static void sub_020970AC(Pokemon * param0, u32 param1, u32 param2, u32 param3);
-static s32 sub_020970EC(s32 param0, s32 param1, s32 param2);
-static u8 sub_020971D0(Pokemon * param0, s32 param1, s32 param2, u16 param3, u32 param4);
-static u8 sub_02097144(Pokemon * param0, ItemData * param1);
+static u8 CheckMovePPAvailability(Pokemon * param0, u32 param1);
+static u8 UpdatePokemonMovePP(Pokemon * param0, u32 param1, u32 param2);
+static u8 IncreaseMovePPUps(Pokemon * param0, u32 param1, u32 param2);
+static void RestorePokemonHP(Pokemon * param0, u32 param1, u32 param2, u32 param3);
+static s32 CalculateEVUpdate(s32 param0, s32 param1, s32 param2);
+static u8 UpdatePokemonFriendship(Pokemon * param0, s32 param1, s32 param2, u16 param3, u32 param4);
+static u8 CheckFriendshipItemEffect(Pokemon * param0, ItemData * param1);
-u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
+u8 CheckItemEffectsOnPokemon (Pokemon * param0, u16 param1, u16 param2, u32 param3)
{
ItemData * v0;
s32 v1[8];
@@ -104,7 +104,7 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
}
if (Item_Get(v0, 36) != 0) {
- if (sub_02096F34(param0, param2) == 1) {
+ if (CheckMovePPAvailability(param0, param2) == 1) {
Heap_FreeToHeap(v0);
return 1;
}
@@ -112,7 +112,7 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
if (Item_Get(v0, 37) != 0) {
for (v1[0] = 0; v1[0] < 4; v1[0]++) {
- if (sub_02096F34(param0, v1[0]) == 1) {
+ if (CheckMovePPAvailability(param0, v1[0]) == 1) {
Heap_FreeToHeap(v0);
return 1;
}
@@ -141,7 +141,7 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
return 1;
}
- if (sub_02097144(param0, v0) == 1) {
+ if (CheckFriendshipItemEffect(param0, v0) == 1) {
Heap_FreeToHeap(v0);
return 1;
}
@@ -163,7 +163,7 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
return 1;
}
- if (sub_02097144(param0, v0) == 1) {
+ if (CheckFriendshipItemEffect(param0, v0) == 1) {
Heap_FreeToHeap(v0);
return 1;
}
@@ -184,7 +184,7 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
return 1;
}
- if (sub_02097144(param0, v0) == 1) {
+ if (CheckFriendshipItemEffect(param0, v0) == 1) {
Heap_FreeToHeap(v0);
return 1;
}
@@ -205,7 +205,7 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
return 1;
}
- if (sub_02097144(param0, v0) == 1) {
+ if (CheckFriendshipItemEffect(param0, v0) == 1) {
Heap_FreeToHeap(v0);
return 1;
}
@@ -226,7 +226,7 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
return 1;
}
- if (sub_02097144(param0, v0) == 1) {
+ if (CheckFriendshipItemEffect(param0, v0) == 1) {
Heap_FreeToHeap(v0);
return 1;
}
@@ -247,7 +247,7 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
return 1;
}
- if (sub_02097144(param0, v0) == 1) {
+ if (CheckFriendshipItemEffect(param0, v0) == 1) {
Heap_FreeToHeap(v0);
return 1;
}
@@ -259,13 +259,13 @@ u8 sub_02096420 (Pokemon * param0, u16 param1, u16 param2, u32 param3)
return 0;
}
-u8 sub_0209693C (Party * param0, u16 param1, u8 param2, u8 param3, u32 param4)
+u8 CheckItemEffectsOnPartyMember (Party * param0, u16 param1, u8 param2, u8 param3, u32 param4)
{
Pokemon * v0 = Party_GetPokemonBySlotIndex(param0, param2);
- return sub_02096420(v0, param1, param3, param4);
+ return CheckItemEffectsOnPokemon(v0, param1, param3, param4);
}
-u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param4)
+u8 ApplyItemEffectsToPokemon (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param4)
{
ItemData * v0;
s32 v1[8];
@@ -320,14 +320,14 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (((Item_Get(v0, 23) != 0) || (Item_Get(v0, 24) != 0)) && (Item_Get(v0, 25) != 0)) {
if (v1[0] == 0) {
- sub_020970AC(param0, v1[0], v1[1], Item_Get(v0, 54));
+ RestorePokemonHP(param0, v1[0], v1[1], Item_Get(v0, 54));
v2 = 1;
}
v3 = 1;
} else if (Item_Get(v0, 38) != 0) {
if (v1[0] < v1[1]) {
- sub_020970AC(param0, v1[0], v1[1], Item_Get(v0, 54));
+ RestorePokemonHP(param0, v1[0], v1[1], Item_Get(v0, 54));
v2 = 1;
}
@@ -343,7 +343,7 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (v1[0] == 0) {
v1[3] = Pokemon_GetValue(param0, MON_DATA_MAX_HP, NULL);
- sub_020970AC(param0, v1[0], v1[3], v1[3] - v1[1]);
+ RestorePokemonHP(param0, v1[0], v1[3], v1[3] - v1[1]);
}
v2 = 1;
@@ -357,13 +357,13 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
}
if (Item_Get(v0, 34) != 0) {
- if (sub_02097004(param0, param2, 1) == 1) {
+ if (IncreaseMovePPUps(param0, param2, 1) == 1) {
v2 = 1;
}
v3 = 1;
} else if (Item_Get(v0, 35) != 0) {
- if (sub_02097004(param0, param2, 3) == 1) {
+ if (IncreaseMovePPUps(param0, param2, 3) == 1) {
v2 = 1;
}
@@ -371,14 +371,14 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
}
if (Item_Get(v0, 36) != 0) {
- if (sub_02096F84(param0, param2, Item_Get(v0, 55)) == 1) {
+ if (UpdatePokemonMovePP(param0, param2, Item_Get(v0, 55)) == 1) {
v2 = 1;
}
v3 = 1;
} else if (Item_Get(v0, 37) != 0) {
for (v1[0] = 0; v1[0] < 4; v1[0]++) {
- if (sub_02096F84(param0, v1[0], Item_Get(v0, 55)) == 1) {
+ if (UpdatePokemonMovePP(param0, v1[0], Item_Get(v0, 55)) == 1) {
v2 = 1;
}
}
@@ -396,7 +396,7 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (Pokemon_GetValue(param0, MON_DATA_SPECIES, NULL) != 292) {
if (Item_Get(v0, 39) != 0) {
v1[7] = Item_Get(v0, 48);
- v1[6] = sub_020970EC(v1[0], (v1[1] + v1[2] + v1[3] + v1[4] + v1[5]), v1[7]);
+ v1[6] = CalculateEVUpdate(v1[0], (v1[1] + v1[2] + v1[3] + v1[4] + v1[5]), v1[7]);
if (v1[6] != -1) {
v1[0] = v1[6];
@@ -413,7 +413,7 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (Item_Get(v0, 40) != 0) {
v1[7] = Item_Get(v0, 49);
- v1[6] = sub_020970EC(v1[1], (v1[0] + v1[2] + v1[3] + v1[4] + v1[5]), v1[7]);
+ v1[6] = CalculateEVUpdate(v1[1], (v1[0] + v1[2] + v1[3] + v1[4] + v1[5]), v1[7]);
if (v1[6] != -1) {
v1[1] = v1[6];
@@ -429,7 +429,7 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (Item_Get(v0, 41) != 0) {
v1[7] = Item_Get(v0, 50);
- v1[6] = sub_020970EC(v1[2], (v1[0] + v1[1] + v1[3] + v1[4] + v1[5]), v1[7]);
+ v1[6] = CalculateEVUpdate(v1[2], (v1[0] + v1[1] + v1[3] + v1[4] + v1[5]), v1[7]);
if (v1[6] != -1) {
v1[2] = v1[6];
@@ -445,7 +445,7 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (Item_Get(v0, 42) != 0) {
v1[7] = Item_Get(v0, 51);
- v1[6] = sub_020970EC(v1[3], (v1[0] + v1[1] + v1[2] + v1[4] + v1[5]), v1[7]);
+ v1[6] = CalculateEVUpdate(v1[3], (v1[0] + v1[1] + v1[2] + v1[4] + v1[5]), v1[7]);
if (v1[6] != -1) {
v1[3] = v1[6];
@@ -461,7 +461,7 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (Item_Get(v0, 43) != 0) {
v1[7] = Item_Get(v0, 52);
- v1[6] = sub_020970EC(v1[4], (v1[0] + v1[1] + v1[2] + v1[3] + v1[5]), v1[7]);
+ v1[6] = CalculateEVUpdate(v1[4], (v1[0] + v1[1] + v1[2] + v1[3] + v1[5]), v1[7]);
if (v1[6] != -1) {
v1[4] = v1[6];
@@ -477,7 +477,7 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (Item_Get(v0, 44) != 0) {
v1[7] = Item_Get(v0, 53);
- v1[6] = sub_020970EC(v1[5], (v1[0] + v1[1] + v1[2] + v1[3] + v1[4]), v1[7]);
+ v1[6] = CalculateEVUpdate(v1[5], (v1[0] + v1[1] + v1[2] + v1[3] + v1[4]), v1[7]);
if (v1[6] != -1) {
v1[5] = v1[6];
@@ -500,21 +500,21 @@ u8 sub_02096954 (Pokemon * param0, u16 param1, u16 param2, u16 param3, u32 param
if (v1[0] < 100) {
if (Item_Get(v0, 45) != 0) {
- if (sub_020971D0(param0, v1[0], Item_Get(v0, 56), param3, param4) == 0) {
+ if (UpdatePokemonFriendship(param0, v1[0], Item_Get(v0, 56), param3, param4) == 0) {
Heap_FreeToHeap(v0);
return v2;
}
}
} else if ((v1[0] >= 100) && (v1[0] < 200)) {
if (Item_Get(v0, 46) != 0) {
- if (sub_020971D0(param0, v1[0], Item_Get(v0, 57), param3, param4) == 0) {
+ if (UpdatePokemonFriendship(param0, v1[0], Item_Get(v0, 57), param3, param4) == 0) {
Heap_FreeToHeap(v0);
return v2;
}
}
} else if ((v1[0] >= 200) && (v1[0] <= 255)) {
if (Item_Get(v0, 47) != 0) {
- if (sub_020971D0(param0, v1[0], Item_Get(v0, 58), param3, param4) == 0) {
+ if (UpdatePokemonFriendship(param0, v1[0], Item_Get(v0, 58), param3, param4) == 0) {
Heap_FreeToHeap(v0);
return v2;
}
@@ -529,65 +529,65 @@ u8 sub_02096F14 (Party * param0, u16 param1, u8 param2, u8 param3, u16 param4, u
{
Pokemon * v0 = Party_GetPokemonBySlotIndex(param0, param2);
- return sub_02096954(v0, param1, param3, param4, param5);
+ return ApplyItemEffectsToPokemon(v0, param1, param3, param4, param5);
}
-static u8 sub_02096F34 (Pokemon * param0, u32 param1)
+static u8 CheckMovePPAvailability (Pokemon * mon, u32 moveIDX) // param0,1
{
- u16 v0;
- u8 v1;
- u8 v2;
+ u16 move; // v0
+ u8 ppCurr; // v1
+ u8 ppUps; // v2
- v0 = (u16)Pokemon_GetValue(param0, MON_DATA_MOVE1 + param1, NULL);
+ move = (u16)Pokemon_GetValue(mon, MON_DATA_MOVE1 + moveIDX, NULL);
- if (v0 == 0) {
+ if (move == 0) {
return 0;
}
- v1 = (u8)Pokemon_GetValue(param0, MON_DATA_MOVE1_CUR_PP + param1, NULL);
- v2 = (u8)Pokemon_GetValue(param0, MON_DATA_MOVE1_PP_UPS + param1, NULL);
+ ppCurr = (u8)Pokemon_GetValue(mon, MON_DATA_MOVE1_CUR_PP + moveIDX, NULL);
+ ppUps = (u8)Pokemon_GetValue(mon, MON_DATA_MOVE1_PP_UPS + moveIDX, NULL);
- if (v1 < MoveTable_CalcMaxPP(v0, v2)) {
+ if (ppCurr < MoveTable_CalcMaxPP(move, ppUps)) {
return 1;
}
return 0;
}
-static u8 sub_02096F84 (Pokemon * param0, u32 param1, u32 param2)
+static u8 UpdatePokemonMovePP (Pokemon * mon, u32 moveIDX, u32 pp)
{
- u16 v0;
- u8 v1;
- u8 v2;
+ u16 move;
+ u8 ppCurr;
+ u8 ppMax;
- v0 = (u16)Pokemon_GetValue(param0, MON_DATA_MOVE1 + param1, NULL);
+ move = (u16)Pokemon_GetValue(mon, MON_DATA_MOVE1 + moveIDX, NULL);
- if (v0 == 0) {
+ if (move == 0) {
return 0;
}
- v1 = (u8)Pokemon_GetValue(param0, MON_DATA_MOVE1_CUR_PP + param1, NULL);
- v2 = (u8)MoveTable_CalcMaxPP(v0, Pokemon_GetValue(param0, MON_DATA_MOVE1_PP_UPS + param1, NULL));
+ ppCurr = (u8)Pokemon_GetValue(mon, MON_DATA_MOVE1_CUR_PP + moveIDX, NULL);
+ ppMax = (u8)MoveTable_CalcMaxPP(move, Pokemon_GetValue(mon, MON_DATA_MOVE1_PP_UPS + moveIDX, NULL));
- if (v1 < v2) {
- if (param2 == 127) {
- v1 = v2;
+ if (ppCurr < ppMax) {
+ if (pp == 127) { // case from healing function
+ ppCurr = ppMax; // ppCurr = max pp
} else {
- v1 += param2;
+ ppCurr += pp;
- if (v1 > v2) {
- v1 = v2;
+ if (ppCurr > ppMax) {
+ ppCurr = ppMax;
}
}
- Pokemon_SetValue(param0, 58 + param1, &v1);
+ Pokemon_SetValue(mon, 58 + moveIDX, &ppCurr); // set the pp of the move
return 1;
}
return 0;
}
-static u8 sub_02097004 (Pokemon * param0, u32 param1, u32 param2)
+static u8 IncreaseMovePPUps (Pokemon * param0, u32 param1, u32 param2)
{
u16 v0;
u8 v1;
@@ -623,7 +623,7 @@ static u8 sub_02097004 (Pokemon * param0, u32 param1, u32 param2)
return 1;
}
-static void sub_020970AC (Pokemon * param0, u32 param1, u32 param2, u32 param3)
+static void RestorePokemonHP (Pokemon * mon, u32 param1, u32 param2, u32 param3)
{
if (param2 == 1) {
param3 = 1;
@@ -641,10 +641,10 @@ static void sub_020970AC (Pokemon * param0, u32 param1, u32 param2, u32 param3)
param1 += param3;
}
- Pokemon_SetValue(param0, 163, ¶m1);
+ Pokemon_SetValue(mon, 163, ¶m1);
}
-static s32 sub_020970EC (s32 param0, s32 param1, s32 param2)
+static s32 CalculateEVUpdate (s32 param0, s32 param1, s32 param2)
{
if ((param0 == 0) && (param2 < 0)) {
return -1;
@@ -673,7 +673,7 @@ static s32 sub_020970EC (s32 param0, s32 param1, s32 param2)
return param0;
}
-static u8 sub_02097144 (Pokemon * param0, ItemData * param1)
+static u8 CheckFriendshipItemEffect (Pokemon * param0, ItemData * param1)
{
s32 v0;
s32 v1;
@@ -713,7 +713,7 @@ static u8 sub_02097144 (Pokemon * param0, ItemData * param1)
return 0;
}
-static u8 sub_020971D0 (Pokemon * param0, s32 param1, s32 param2, u16 param3, u32 param4)
+static u8 UpdatePokemonFriendship (Pokemon * param0, s32 param1, s32 param2, u16 param3, u32 param4)
{
if ((param1 == 255) && (param2 > 0)) {
return 0;
@@ -751,30 +751,39 @@ static u8 sub_020971D0 (Pokemon * param0, s32 param1, s32 param2, u16 param3, u3
return 1;
}
-void sub_02097284 (Party * param0)
+void HealAllPokemonInParty (Party * party)
{
- int v0, v1, v2;
- u32 v3;
- Pokemon * v4;
+ int i, j, monCount;
+ u32 tmp;
+ Pokemon * mon;
- v2 = Party_GetCurrentCount(param0);
+ monCount = Party_GetCurrentCount(party);
- for (v0 = 0; v0 < v2; v0++) {
- v4 = Party_GetPokemonBySlotIndex(param0, v0);
+ // loop through party
+ for (i = 0; i < monCount; i++) {
+ // set mon pointer to current pokemon
+ mon = Party_GetPokemonBySlotIndex(party, i);
- if (Pokemon_GetValue(v4, MON_DATA_172, NULL) == 0) {
+ // data sanity?
+ if (Pokemon_GetValue(mon, MON_DATA_172, NULL) == 0) {
continue;
}
- v3 = Pokemon_GetValue(v4, MON_DATA_MAX_HP, NULL);
- Pokemon_SetValue(v4, 163, &v3);
+ // set tmp variable to max hp value
+ tmp = Pokemon_GetValue(mon, MON_DATA_MAX_HP, NULL);
+ // set mon's current hp to max hp
+ Pokemon_SetValue(mon, MON_DATA_CURRENT_HP, &tmp);
- v3 = 0;
- Pokemon_SetValue(v4, 160, &v3);
+ // set tmp variable to 0
+ tmp = 0;
+ // clear mon's status condition
+ Pokemon_SetValue(mon, MON_DATA_STATUS_CONDITION, &tmp);
- for (v1 = 0; v1 < 4; v1++) {
- if (sub_02096F34(v4, v1) == 1) {
- sub_02096F84(v4, v1, 127);
+ // loop through mon's moves
+ for (j = 0; j < 4; j++) {
+ // check if move is at max pp
+ if (CheckMovePPAvailability(mon, j) == 1) {
+ UpdatePokemonMovePP(mon, j, 127); // set
}
}
}
diff --git a/src/unk_02097B18.c b/src/unk_02097B18.c
index c694b06323..cacf19f893 100644
--- a/src/unk_02097B18.c
+++ b/src/unk_02097B18.c
@@ -62,7 +62,7 @@ typedef struct {
UnkStruct_ov76_0223DE00 * unk_00;
UnkStruct_02097F38_sub1 * unk_04;
UnkStruct_02097F18 * unk_08;
- UnkStruct_02098C44 * unk_0C;
+ PartyManagementData * unk_0C;
SaveData * unk_10;
int unk_14;
} UnkStruct_02097F38;
@@ -181,7 +181,7 @@ static int sub_02097B18 (UnkStruct_020067E8 * param0, int * param1)
}
ov76_0223DCC0(v0);
- sub_02017798(ov76_0223ECB0, v0);
+ SetMainCallback(ov76_0223ECB0, v0);
ov76_0223B8A8(v0);
sub_02004550(59, 0, 0);
@@ -369,7 +369,7 @@ static BOOL sub_02097F38 (UnkStruct_020508D4 * param0)
break;
case 3:
{
- UnkStruct_02098C44 * v6 = v0->unk_0C;
+ PartyManagementData * v6 = v0->unk_0C;
v6->unk_00 = v1->unk_1C;
v6->unk_04 = sub_0207D990(v0->unk_10);
@@ -385,7 +385,7 @@ static BOOL sub_02097F38 (UnkStruct_020508D4 * param0)
break;
case 4:
{
- UnkStruct_02098C44 * v7 = v0->unk_0C;
+ PartyManagementData * v7 = v0->unk_0C;
Pokemon * v8;
UnkStruct_0202CA28 * v9;
UnkStruct_0202CA64 * v10;
@@ -436,8 +436,8 @@ void sub_020980DC (UnkStruct_020508D4 * param0, SaveData * param1)
memset(v0->unk_08, 0, sizeof(UnkStruct_02097F18));
v0->unk_08->unk_24 = sub_02025E44(param1);
v0->unk_08->unk_28 = param1;
- v0->unk_0C = Heap_AllocFromHeap(11, sizeof(UnkStruct_02098C44));
- memset(v0->unk_0C, 0, sizeof(UnkStruct_02098C44));
+ v0->unk_0C = Heap_AllocFromHeap(11, sizeof(PartyManagementData));
+ memset(v0->unk_0C, 0, sizeof(PartyManagementData));
sub_02050944(param0, sub_02097F38, v0);
}
diff --git a/src/unk_02098218.c b/src/unk_02098218.c
index be55b39fcd..efec79f68d 100644
--- a/src/unk_02098218.c
+++ b/src/unk_02098218.c
@@ -64,8 +64,8 @@ static int sub_02098218 (UnkStruct_020067E8 * param0, int * param1)
UnkStruct_0209843C * v0;
UnkStruct_ov119_021D0FD0 * v1;
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
Heap_Create(3, 71, 0x40000);
v1 = sub_0200681C(param0, sizeof(UnkStruct_ov119_021D0FD0), 71);
@@ -100,7 +100,7 @@ static int sub_02098218 (UnkStruct_020067E8 * param0, int * param1)
ov119_021D17B8(&v1->unk_04);
sub_0200569C();
- sub_02017798(ov119_021D0FD0, v1);
+ SetMainCallback(ov119_021D0FD0, v1);
return 1;
}
@@ -192,8 +192,8 @@ static int sub_02098388 (UnkStruct_020067E8 * param0, int * param1)
sub_02006830(param0);
Heap_Destroy(71);
- sub_02017798(NULL, NULL);
- sub_020177A4();
+ SetMainCallback(NULL, NULL);
+ DisableHBlank();
return 1;
}
diff --git a/src/unk_020989DC.c b/src/unk_020989DC.c
index c3e8589465..bf4c331796 100644
--- a/src/unk_020989DC.c
+++ b/src/unk_020989DC.c
@@ -277,7 +277,7 @@ static int sub_02098C2C (UnkStruct_02098BE4 * param0)
static int sub_02098C44 (UnkStruct_02098BE4 * param0)
{
- UnkStruct_02098C44 * v0;
+ PartyManagementData * v0;
if (!sub_02098AF8(¶m0->unk_14)) {
return 1;
@@ -289,8 +289,8 @@ static int sub_02098C44 (UnkStruct_02098BE4 * param0)
param0->unk_0C->unk_02 = 0;
- v0 = Heap_AllocFromHeap(param0->unk_00, sizeof(UnkStruct_02098C44));
- MI_CpuClear8(v0, sizeof(UnkStruct_02098C44));
+ v0 = Heap_AllocFromHeap(param0->unk_00, sizeof(PartyManagementData));
+ MI_CpuClear8(v0, sizeof(PartyManagementData));
v0->unk_00 = param0->unk_0C->unk_10;
v0->unk_04 = param0->unk_0C->unk_14;
v0->unk_21 = 0;
@@ -306,7 +306,7 @@ static int sub_02098C44 (UnkStruct_02098BE4 * param0)
static int sub_02098CB0 (UnkStruct_02098BE4 * param0)
{
u8 v0;
- UnkStruct_02098C44 * v1;
+ PartyManagementData * v1;
UnkStruct_02098D38 * v2;
static const u8 v3[] = {
4, 7, 8
@@ -316,7 +316,7 @@ static int sub_02098CB0 (UnkStruct_02098BE4 * param0)
return 2;
}
- v1 = (UnkStruct_02098C44 *)param0->unk_10;
+ v1 = (PartyManagementData *)param0->unk_10;
v0 = v1->unk_22;
param0->unk_08 = v0;
Heap_FreeToHeap(param0->unk_10);
diff --git a/src/unk_02099DFC.c b/src/unk_02099DFC.c
index c6e165d250..78fc101dd4 100644
--- a/src/unk_02099DFC.c
+++ b/src/unk_02099DFC.c
@@ -46,7 +46,7 @@ typedef struct {
BGL * unk_14;
MessageLoader * unk_18;
Window unk_1C;
- UnkStruct_02001AF4 * unk_2C;
+ UIControlData * unk_2C;
SaveData * unk_30;
void * unk_34;
} UnkStruct_02099DFC;
@@ -121,8 +121,8 @@ int sub_02099E38 (UnkStruct_020067E8 * param0, int * param1)
sub_02004234(0);
sub_0200F344(0, 0x0);
sub_0200F344(1, 0x0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -132,7 +132,7 @@ int sub_02099E38 (UnkStruct_020067E8 * param0, int * param1)
SetAutorepeat(4, 8);
sub_02099F80(v0);
sub_0209A098(v0);
- sub_02017798(sub_02099F74, (void *)v0);
+ SetMainCallback(sub_02099F74, (void *)v0);
GXLayers_TurnBothDispOn();
sub_0200F174(0, 1, 1, 0, 6, 1, v0->unk_00);
*param1 = 1;
@@ -152,7 +152,7 @@ int sub_02099E38 (UnkStruct_020067E8 * param0, int * param1)
if (ScreenWipe_Done() == TRUE) {
sub_0209A0E0(v0);
sub_0209A044(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
v1 = 1;
}
break;
diff --git a/src/unk_0209A2C4.c b/src/unk_0209A2C4.c
index 88f6214e7f..1fdc0ebeec 100644
--- a/src/unk_0209A2C4.c
+++ b/src/unk_0209A2C4.c
@@ -44,7 +44,7 @@ typedef struct {
BGL * unk_18;
MessageLoader * unk_1C;
Window unk_20;
- UnkStruct_02001AF4 * unk_30;
+ UIControlData * unk_30;
SaveData * unk_34;
void * unk_38;
u32 unk_3C;
@@ -106,8 +106,8 @@ int sub_0209A300 (UnkStruct_020067E8 * param0, int * param1)
case 0:
sub_0200F344(0, 0);
sub_0200F344(1, 0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
GX_SetVisiblePlane(0);
@@ -126,7 +126,7 @@ int sub_0209A300 (UnkStruct_020067E8 * param0, int * param1)
case 2:
sub_0209A530(v0);
sub_0209A490(v0);
- sub_02017798(NULL, NULL);
+ SetMainCallback(NULL, NULL);
v1 = 1;
break;
}
diff --git a/src/unk_0209A74C.c b/src/unk_0209A74C.c
index 81b960170a..b9496eacd1 100644
--- a/src/unk_0209A74C.c
+++ b/src/unk_0209A74C.c
@@ -83,8 +83,8 @@ void sub_0209A74C (int param0)
sub_0200F344(0, 0);
sub_0200F344(1, 0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -128,7 +128,7 @@ void sub_0209A74C (int param0)
sub_0200AB4C(0, (GX_BLEND_PLANEMASK_BG0 | GX_BLEND_PLANEMASK_BG1 | GX_BLEND_PLANEMASK_BG2 | GX_BLEND_PLANEMASK_BG3 | GX_BLEND_PLANEMASK_OBJ | GX_BLEND_PLANEMASK_BD), 3);
while (TRUE) {
- sub_0200106C();
+ HandleConsoleFold();
OS_WaitIrq(1, OS_IE_V_BLANK);
}
@@ -158,8 +158,8 @@ void sub_0209A8E0 (int param0)
sub_0200F344(0, 0);
sub_0200F344(1, 0);
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
GX_SetVisiblePlane(0);
@@ -202,7 +202,7 @@ void sub_0209A8E0 (int param0)
sub_0200AB4C(0, (GX_BLEND_PLANEMASK_BG0 | GX_BLEND_PLANEMASK_BG1 | GX_BLEND_PLANEMASK_BG2 | GX_BLEND_PLANEMASK_BG3 | GX_BLEND_PLANEMASK_OBJ | GX_BLEND_PLANEMASK_BD), 3);
while (TRUE) {
- sub_0200106C();
+ HandleConsoleFold();
OS_WaitIrq(1, OS_IE_V_BLANK);
}
diff --git a/src/unk_0209AA74.c b/src/unk_0209AA74.c
index 85b234cb22..a4351ff356 100644
--- a/src/unk_0209AA74.c
+++ b/src/unk_0209AA74.c
@@ -92,8 +92,8 @@ void sub_0209AA74 (int param0, int param1)
sub_0200F344(0, 0);
sub_0200F344(1, 0);
sub_0201777C();
- sub_02017798(NULL, NULL);
- sub_020177BC(NULL, NULL);
+ SetMainCallback(NULL, NULL);
+ SetHBlankCallback(NULL, NULL);
GXLayers_DisableEngineALayers();
GXLayers_DisableEngineBLayers();
@@ -138,7 +138,7 @@ void sub_0209AA74 (int param0, int param1)
sub_0200AB4C(0, (GX_BLEND_PLANEMASK_BG0 | GX_BLEND_PLANEMASK_BG1 | GX_BLEND_PLANEMASK_BG2 | GX_BLEND_PLANEMASK_BG3 | GX_BLEND_PLANEMASK_OBJ | GX_BLEND_PLANEMASK_BD), 3);
while (TRUE) {
- sub_0200106C();
+ HandleConsoleFold();
OS_WaitIrq(1, OS_IE_V_BLANK);
}
diff --git a/src/unk_0209C194.c b/src/unk_0209C194.c
index 40837b1ae3..b104e91aaa 100644
--- a/src/unk_0209C194.c
+++ b/src/unk_0209C194.c
@@ -30,7 +30,7 @@ typedef struct {
UnkStruct_0209C194_1 unk_08;
UnkStruct_0209C194 * unk_28;
UnkStruct_0203CDB0 * unk_2C;
- UnkStruct_02098C44 * unk_30;
+ PartyManagementData * unk_30;
UnkStruct_02098D38 * unk_34;
} UnkStruct_0209C1EC;
diff --git a/tools/cw/include/MSL_C/wchar_t.h b/tools/cw/include/MSL_C/wchar_t.h
index f28b8f2568..ab1b9dff21 100644
--- a/tools/cw/include/MSL_C/wchar_t.h
+++ b/tools/cw/include/MSL_C/wchar_t.h
@@ -27,6 +27,16 @@ typedef _MSL_WCHAR_T_TYPE wchar_t;
}
#endif
#endif
+#elif __GNUC__
+ #ifdef __cplusplus
+extern "C" {
+ #endif
+
+typedef _MSL_WCHAR_T_TYPE wchar_t;
+
+ #ifdef __cplusplus
+}
+ #endif
#endif
#ifdef __cplusplus
diff --git a/tools/json2bin/evo.py b/tools/json2bin/evo.py
index 4b1edab561..59d8517385 100644
--- a/tools/json2bin/evo.py
+++ b/tools/json2bin/evo.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+from collections.abc import Sequence
import pathlib
@@ -17,7 +18,7 @@ from consts.pokemon import (
)
-def get_evo_params(method: evo_methods.EvoMethod, evo: list):
+def get_evo_params(method: evo_methods.EvoMethod, evo: Sequence):
maybe_param = evo[1]
final_param = 0
#None of these take an extra parameter
@@ -70,7 +71,7 @@ def table_line(evo_method: int, evo_params: int, species: int) -> bytes:
return bytes(binary)
-def parse_evolutions(table: list, _size: int, _enum: None) -> bytes:
+def parse_evolutions(table: Sequence, _size: int, _enum: None) -> bytes:
out = bytearray([])
for j in range(min(len(table), 7)):
evo = table[j]
diff --git a/tools/json2bin/json2bin.py b/tools/json2bin/json2bin.py
index 153dde6a7e..193a02465c 100644
--- a/tools/json2bin/json2bin.py
+++ b/tools/json2bin/json2bin.py
@@ -2,6 +2,9 @@ import json
import pathlib
import subprocess
+from collections.abc import MutableMapping, MutableSequence, Mapping, Sequence
+from typing import Dict, List, Optional, Tuple, Type, Union
+
from argparse import ArgumentParser
from enum import Enum, Flag, auto
from types import FunctionType, LambdaType
@@ -43,7 +46,7 @@ class Parser():
self.field_index = 0
- def register_name(self, func: FunctionType | LambdaType | None) -> 'Parser':
+ def register_name(self, func: Optional[Union[FunctionType, LambdaType]]) -> 'Parser':
'''
Register a function for processing the name key within the JSON
structure. This differs from the standard function registration in
@@ -60,9 +63,9 @@ class Parser():
def register(self,
field_name: str,
- size: int | tuple[int,int],
- func: FunctionType | LambdaType,
- const_type: type[Enum] | None = None,
+ size: Union[int, Tuple[int,int]],
+ func: Union[FunctionType, LambdaType],
+ const_type: Optional[Type[Enum]] = None,
optional: OptionalBehavior = OptionalBehavior.DISALLOW) -> 'Parser':
'''
Register a function for processing a given key within the JSON
@@ -93,17 +96,17 @@ class Parser():
return self
- def _walk(self, data: dict, key_seq: list[str]) -> any:
+ def _walk(self, data: dict, key_seq: Sequence[str]) -> any:
data_val = data
for step in key_seq:
- if type(data_val) == list:
+ if isinstance(data_val, list):
data_val = data_val[int(step)]
else:
data_val = data_val.get(step, {}) # All future walks will return {}
return data_val
- def parse(self, data: dict) -> bytes:
+ def parse(self, data: Mapping) -> bytes:
'''
Parse the given JSON structure according to the currently-defined
data schema.
@@ -138,7 +141,7 @@ class Parser():
return binary
-def pack_flags(flags: list[str], size: int, consts: type[Flag]) -> bytes:
+def pack_flags(flags: Sequence[str], size: int, consts: Type[Flag]) -> bytes:
'''
Pack a list of flag constants into a bitmask. Flag values are defined
by the specified consts type, which must descend from the enum.Flag
@@ -150,7 +153,7 @@ def pack_flags(flags: list[str], size: int, consts: type[Flag]) -> bytes:
return result.value.to_bytes(size, 'little')
-def parse_const(val: str, size: int, consts: type[Enum]) -> bytes:
+def parse_const(val: str, size: int, consts: Type[Enum]) -> bytes:
'''
Simple parse wrapper for a value belonging to a set of constants,
represented in JSON as a raw string name.
@@ -158,14 +161,14 @@ def parse_const(val: str, size: int, consts: type[Enum]) -> bytes:
return consts[val].value.to_bytes(size, 'little')
-def parse_int(val: int, size: int, _consts: type[Enum] = None) -> bytes:
+def parse_int(val: int, size: int, _consts: Type[Enum] = None) -> bytes:
'''
Simple parse wrapper for an integer.
'''
return val.to_bytes(size, 'little')
-def parse_sint(val: int, size: int, _consts: type[Enum] = None) -> bytes:
+def parse_sint(val: int, size: int, _consts: Type[Enum] = None) -> bytes:
'''
Simple parse wrapper for a signed integer.
'''
@@ -180,7 +183,7 @@ def _parse(fname_in: str, schema: Parser) -> bytes:
return schema.parse(input_json)
-def _write(output_bin: bytes, output_idx: int, output_dir: str | None):
+def _write(output_bin: bytes, output_idx: int, output_dir: Optional[str]):
output_fname = f'{output_idx:04}.bin'
if output_dir:
output_fname = pathlib.Path(output_dir) / output_fname
@@ -199,14 +202,14 @@ def _process(fname_in: str,
def json2bin(target: str,
schema: Parser,
- private_dir: str | None,
- output_dir: str | None,
+ private_dir: Optional[str],
+ output_dir: Optional[str],
index_func: FunctionType,
glob_pattern: str='*.json',
- narc_name: str | None = None,
- narc_packer: str | None = None,
+ narc_name: Optional[str] = None,
+ narc_packer: Optional[str] = None,
output_mode: OutputMode = OutputMode.MULTI_FILE,
- skip_stems: list[str] = []):
+ skip_stems: Sequence[str] = []):
private_dir = pathlib.Path(private_dir)
output_dir = pathlib.Path(output_dir)
diff --git a/tools/json2bin/pokemon_wotbl_data.py b/tools/json2bin/pokemon_wotbl_data.py
index 9b6b84c4a4..c2585a181d 100644
--- a/tools/json2bin/pokemon_wotbl_data.py
+++ b/tools/json2bin/pokemon_wotbl_data.py
@@ -21,9 +21,9 @@ def parse_level_up_moves(table: dict, _size: int, _enum: None):
for key, value in table.items():
level = int(key)
level_moves = value
- if type(level_moves) == str:
+ if isinstance(level_moves, str):
out.extend(table_line(moves.Move[level_moves].value, level))
- elif type(level_moves) == list:
+ elif isinstance(level_moves, list):
for move in level_moves:
out.extend(table_line(moves.Move[move].value, level))
else:
diff --git a/tools/json2bin/trainer_data.py b/tools/json2bin/trainer_data.py
index d215177ae5..4db7208119 100644
--- a/tools/json2bin/trainer_data.py
+++ b/tools/json2bin/trainer_data.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+from collections.abc import Mapping, Sequence
import pathlib, functools
from consts import (
@@ -12,7 +13,7 @@ from consts.pokemon import species
import json2bin as j2b
-def derive_data_flags(party: list[dict], *args) -> bytes:
+def derive_data_flags(party: Sequence[Mapping], *args) -> bytes:
defined_moves = False
defined_items = False
for mon in party:
@@ -25,7 +26,7 @@ def derive_data_flags(party: list[dict], *args) -> bytes:
return (int(defined_moves) | (int(defined_items) << 1)).to_bytes(1, 'little')
-def parse_trainer_items(item_list: list[str], *args) -> bytes:
+def parse_trainer_items(item_list: Sequence[str], *args) -> bytes:
item_bin = bytearray([])
for item_str in item_list:
item_bin.extend(item.Item[item_str].value.to_bytes(2, 'little'))
@@ -35,7 +36,7 @@ def parse_trainer_items(item_list: list[str], *args) -> bytes:
return item_bin
-def parse_poke_moves(move_list: list[str], *args) -> bytes:
+def parse_poke_moves(move_list: Sequence[str], *args) -> bytes:
move_bin = bytearray([])
for move_str in move_list:
move_bin.extend(moves.Move[move_str].value.to_bytes(2, 'little'))
@@ -64,7 +65,7 @@ def parse_party_mon(mon: dict, has_moves: bool, has_items: bool) -> bytes:
# Parties are a complicated and variable structure, so just process them wholly
# independently
-def parse_party_mons(party_list: list[dict], *args) -> bytes:
+def parse_party_mons(party_list: Sequence[Mapping], *args) -> bytes:
if len(party_list) == 0: # special case, pads to 2 words instead of 1 word
return (0).to_bytes(8, 'little')
diff --git a/tools/scripts/make_pl_poke_icon.py b/tools/scripts/make_pl_poke_icon.py
index a43fe8bec6..e31778653a 100644
--- a/tools/scripts/make_pl_poke_icon.py
+++ b/tools/scripts/make_pl_poke_icon.py
@@ -36,7 +36,7 @@ output_dir = pathlib.Path(args.output_dir)
bin_dest_dir = private_dir / 'pl_poke_icon_work'
bin_dest_dir.mkdir(parents=True, exist_ok=True)
-shutil.copy(shared_dir / 'icon_palette.NCLR', bin_dest_dir / '0000.NCLR')
+subprocess.run([args.nitrogfx, shared_dir / 'pl_poke_icon.pal', bin_dest_dir / '0000.NCLR', '-bitdepth', '4'])
for i in range(3):
anim_file_src = shared_dir / f'pl_poke_icon_anim_{i+1:02}.json'