1- #include "application/pokegear/phone.h"
1+ #include "application/pokegear/pokegear_internal.h"
2+ #include "application/pokegear/pokegear_main.h"
23
34#include "mail_misc.h"
45#include "overlay_101.h"
@@ -27,8 +28,7 @@ typedef enum PokegearAppMainState {
2728 POKEGEAR_APP_MAIN_STATE_QUIT ,
2829} PokegearAppMainState ;
2930
30- static BOOL ov100_021E6408 (OVY_MANAGER * * ppOvyMan );
31- void ov100_021E65F4 (void * cb_args );
31+ static BOOL PokegearApp_RunSubapp (OVY_MANAGER * * ppOvyMan );
3232static PokegearAppMainState Pokegear_MainStep_Setup (PokegearAppData * pokegearApp );
3333static PokegearAppMainState Pokegear_MainStep_Teardown (PokegearAppData * pokegearApp );
3434static PokegearAppMainState Pokegear_MainStep_LaunchMap (PokegearAppData * pokegearApp );
@@ -42,7 +42,7 @@ static PokegearAppMainState Pokegear_MainStep_RunPhone(PokegearAppData *pokegear
4242static PokegearAppMainState Pokegear_MainStep_LaunchRadio (PokegearAppData * pokegearApp );
4343static PokegearAppMainState Pokegear_MainStep_RunRadio (PokegearAppData * pokegearApp );
4444
45- static BOOL ov100_021E6408 (OVY_MANAGER * * ppOvyMan ) {
45+ static BOOL PokegearApp_RunSubapp (OVY_MANAGER * * ppOvyMan ) {
4646 if (* ppOvyMan != NULL && OverlayManager_Run (* ppOvyMan )) {
4747 OverlayManager_Delete (* ppOvyMan );
4848 * ppOvyMan = NULL ;
@@ -154,7 +154,7 @@ BOOL Pokegear_Exit(OVY_MANAGER *man, int *state) {
154154// Local functions
155155// -----------------------------
156156
157- void ov100_021E65F4 (void * cb_args ) {
157+ void PokegearApp_VBlankCB (void * cb_args ) {
158158 PokegearAppData * pokegearApp = (PokegearAppData * )cb_args ;
159159
160160 if (pokegearApp -> unk_058 != NULL ) {
@@ -214,7 +214,7 @@ static PokegearAppMainState Pokegear_MainStep_LaunchMap(PokegearAppData *pokegea
214214}
215215
216216static PokegearAppMainState Pokegear_MainStep_RunMap (PokegearAppData * pokegearApp ) {
217- if (!ov100_021E6408 (& pokegearApp -> childApplication )) {
217+ if (!PokegearApp_RunSubapp (& pokegearApp -> childApplication )) {
218218 return POKEGEAR_APP_MAIN_STATE_RUN_MAP ;
219219 }
220220
@@ -259,7 +259,7 @@ static PokegearAppMainState Pokegear_MainStep_LaunchDebug(PokegearAppData *pokeg
259259}
260260
261261static PokegearAppMainState Pokegear_MainStep_RunDebug (PokegearAppData * pokegearApp ) {
262- if (!ov100_021E6408 (& pokegearApp -> childApplication )) {
262+ if (!PokegearApp_RunSubapp (& pokegearApp -> childApplication )) {
263263 return POKEGEAR_APP_MAIN_STATE_RUN_DEBUG ;
264264 }
265265
@@ -280,7 +280,7 @@ static PokegearAppMainState Pokegear_MainStep_LaunchConfigure(PokegearAppData *p
280280}
281281
282282static PokegearAppMainState Pokegear_MainStep_RunConfigure (PokegearAppData * pokegearApp ) {
283- if (!ov100_021E6408 (& pokegearApp -> childApplication )) {
283+ if (!PokegearApp_RunSubapp (& pokegearApp -> childApplication )) {
284284 return POKEGEAR_APP_MAIN_STATE_RUN_CONFIGUREPOKEGEAR_APP_MAIN_STATE_LAUNCH_CONFIGURE ;
285285 }
286286
@@ -311,7 +311,7 @@ static PokegearAppMainState Pokegear_MainStep_LaunchPhone(PokegearAppData *pokeg
311311}
312312
313313static PokegearAppMainState Pokegear_MainStep_RunPhone (PokegearAppData * pokegearApp ) {
314- if (!ov100_021E6408 (& pokegearApp -> childApplication )) {
314+ if (!PokegearApp_RunSubapp (& pokegearApp -> childApplication )) {
315315 return POKEGEAR_APP_MAIN_STATE_RUN_PHONE ;
316316 }
317317
@@ -342,7 +342,7 @@ static PokegearAppMainState Pokegear_MainStep_LaunchRadio(PokegearAppData *pokeg
342342}
343343
344344static PokegearAppMainState Pokegear_MainStep_RunRadio (PokegearAppData * pokegearApp ) {
345- if (!ov100_021E6408 (& pokegearApp -> childApplication )) {
345+ if (!PokegearApp_RunSubapp (& pokegearApp -> childApplication )) {
346346 return POKEGEAR_APP_MAIN_STATE_RUN_RADIO ;
347347 }
348348
0 commit comments