summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2026-01-24 23:36:23 -0800
committerGitHub <noreply@github.com>2026-01-24 23:36:23 -0800
commit5867eaf68b97bfe359849aafe93af5f73313c782 (patch)
tree09765780deff6345c89b4447a3b53b8cd9649f86 /src
parente01dbc3297f000dd440410d999c4f4f32d2e25d0 (diff)
general cleanup, d_menu_quit / d_a_obj_testcube mostly done, d_msg_scrn_explain debug (#3065)
* typedef for cPhs_Step * make sdk includes consistent * d_menu_quit / d_msg_scrn_explain debug * d_a_obj_testcube mostly done * d_debug_pad mostly done * jstudio tool library headers * some JStudioCameraEditor headers * d_jcam_editor mostly done * try fixing some shield regressions * d_bg_parts mostly done * fix merge errors * debug fix
Diffstat (limited to 'src')
-rw-r--r--src/JSystem/J2DGraph/J2DAnimation.cpp2
-rw-r--r--src/JSystem/J2DGraph/J2DGrafContext.cpp2
-rw-r--r--src/JSystem/J2DGraph/J2DMatBlock.cpp2
-rw-r--r--src/JSystem/J2DGraph/J2DMaterialFactory.cpp2
-rw-r--r--src/JSystem/J2DGraph/J2DOrthoGraph.cpp2
-rw-r--r--src/JSystem/J2DGraph/J2DPicture.cpp2
-rw-r--r--src/JSystem/J2DGraph/J2DPictureEx.cpp2
-rw-r--r--src/JSystem/J2DGraph/J2DScreen.cpp2
-rw-r--r--src/JSystem/J2DGraph/J2DTevs.cpp2
-rw-r--r--src/JSystem/J3DGraphAnimator/J3DCluster.cpp2
-rw-r--r--src/JSystem/J3DGraphLoader/J3DAnmLoader.cpp2
-rw-r--r--src/JSystem/J3DGraphLoader/J3DClusterLoader.cpp2
-rw-r--r--src/JSystem/J3DGraphLoader/J3DModelLoaderCalcSize.cpp2
-rw-r--r--src/JSystem/J3DGraphLoader/J3DShapeFactory.cpp2
-rw-r--r--src/JSystem/JAudio2/JASAiCtrl.cpp2
-rw-r--r--src/JSystem/JAudio2/JASAudioReseter.cpp2
-rw-r--r--src/JSystem/JAudio2/JASAudioThread.cpp2
-rw-r--r--src/JSystem/JAudio2/JASCmdStack.cpp2
-rw-r--r--src/JSystem/JAudio2/JASHeapCtrl.cpp2
-rw-r--r--src/JSystem/JAudio2/JASWaveArcLoader.cpp2
-rw-r--r--src/JSystem/JAudio2/JAUSectionHeap.cpp2
-rw-r--r--src/JSystem/JAudio2/JAUSeqDataBlockMgr.cpp2
-rw-r--r--src/JSystem/JAudio2/osdsp.cpp2
-rw-r--r--src/JSystem/JFramework/JFWDisplay.cpp2
-rw-r--r--src/JSystem/JKernel/JKRAram.cpp2
-rw-r--r--src/JSystem/JKernel/JKRAramPiece.cpp2
-rw-r--r--src/JSystem/JKernel/JKRDvdAramRipper.cpp2
-rw-r--r--src/JSystem/JKernel/JKRDvdRipper.cpp2
-rw-r--r--src/JSystem/JKernel/JKRFile.cpp2
-rw-r--r--src/JSystem/JParticle/JPABaseShape.cpp4
-rw-r--r--src/JSystem/JParticle/JPAChildShape.cpp4
-rw-r--r--src/JSystem/JParticle/JPAEmitter.cpp2
-rw-r--r--src/JSystem/JParticle/JPAEmitterManager.cpp2
-rw-r--r--src/JSystem/JParticle/JPAExTexShape.cpp2
-rw-r--r--src/JSystem/JParticle/JPAExtraShape.cpp2
-rw-r--r--src/JSystem/JParticle/JPAResource.cpp2
-rw-r--r--src/JSystem/JStudio/JStudio/stb-data-parse.cpp2
-rw-r--r--src/JSystem/JUtility/JUTCacheFont.cpp2
-rw-r--r--src/JSystem/JUtility/JUTPalette.cpp4
-rw-r--r--src/JSystem/JUtility/JUTResFont.cpp2
-rw-r--r--src/JSystem/JUtility/JUTTexture.cpp2
-rw-r--r--src/JSystem/JUtility/JUTVideo.cpp2
-rw-r--r--src/JSystem/JUtility/JUTXfb.cpp2
-rw-r--r--src/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Src/uart_console_io_gcn.c2
-rw-r--r--src/PowerPC_EABI_Support/MetroTRK/trk.h4
-rw-r--r--src/PowerPC_EABI_Support/Runtime/Inc/CPlusLibPPC.h4
-rw-r--r--src/PowerPC_EABI_Support/Runtime/Inc/__init_cpp_exceptions.h4
-rw-r--r--src/PowerPC_EABI_Support/Runtime/Inc/runtime.h4
-rw-r--r--src/PowerPC_EABI_Support/Runtime/Src/GCN_Mem_Alloc.c2
-rw-r--r--src/SSystem/SComponent/c_list_iter.cpp2
-rw-r--r--src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/dolphin_trk_glue.c2
-rw-r--r--src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/usr_put.c2
-rw-r--r--src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Generic/flush_cache.c2
-rw-r--r--src/d/actor/d_a_arrow.cpp2
-rw-r--r--src/d/actor/d_a_b_ds.cpp6
-rw-r--r--src/d/actor/d_a_b_tn.cpp4
-rw-r--r--src/d/actor/d_a_b_yo.cpp18
-rw-r--r--src/d/actor/d_a_b_yo_ice.cpp6
-rw-r--r--src/d/actor/d_a_bg.cpp1
-rw-r--r--src/d/actor/d_a_bg_obj.cpp2
-rw-r--r--src/d/actor/d_a_cow.cpp2
-rw-r--r--src/d/actor/d_a_do.cpp4
-rw-r--r--src/d/actor/d_a_door_boss.cpp6
-rw-r--r--src/d/actor/d_a_e_ba.cpp4
-rw-r--r--src/d/actor/d_a_e_bee.cpp4
-rw-r--r--src/d/actor/d_a_e_bi.cpp4
-rw-r--r--src/d/actor/d_a_e_bug.cpp4
-rw-r--r--src/d/actor/d_a_e_dd.cpp4
-rw-r--r--src/d/actor/d_a_e_df.cpp2
-rw-r--r--src/d/actor/d_a_e_dn.cpp4
-rw-r--r--src/d/actor/d_a_e_dt.cpp10
-rw-r--r--src/d/actor/d_a_e_fb.cpp4
-rw-r--r--src/d/actor/d_a_e_fs.cpp4
-rw-r--r--src/d/actor/d_a_e_gb.cpp4
-rw-r--r--src/d/actor/d_a_e_gm.cpp8
-rw-r--r--src/d/actor/d_a_e_mf.cpp4
-rw-r--r--src/d/actor/d_a_e_mm_mt.cpp2
-rw-r--r--src/d/actor/d_a_e_nest.cpp4
-rw-r--r--src/d/actor/d_a_e_oc.cpp6
-rw-r--r--src/d/actor/d_a_e_oct_bg.cpp2
-rw-r--r--src/d/actor/d_a_e_ot.cpp6
-rw-r--r--src/d/actor/d_a_e_pm.cpp6
-rw-r--r--src/d/actor/d_a_e_rd.cpp4
-rw-r--r--src/d/actor/d_a_e_rdy.cpp4
-rw-r--r--src/d/actor/d_a_e_sb.cpp4
-rw-r--r--src/d/actor/d_a_e_sf.cpp4
-rw-r--r--src/d/actor/d_a_e_sg.cpp2
-rw-r--r--src/d/actor/d_a_e_sm.cpp4
-rw-r--r--src/d/actor/d_a_e_st.cpp4
-rw-r--r--src/d/actor/d_a_e_sw.cpp4
-rw-r--r--src/d/actor/d_a_e_tk.cpp2
-rw-r--r--src/d/actor/d_a_e_tk2.cpp2
-rw-r--r--src/d/actor/d_a_e_tk_ball.cpp6
-rw-r--r--src/d/actor/d_a_e_yc.cpp4
-rw-r--r--src/d/actor/d_a_e_yg.cpp4
-rw-r--r--src/d/actor/d_a_e_ymb.cpp4
-rw-r--r--src/d/actor/d_a_e_zh.cpp4
-rw-r--r--src/d/actor/d_a_e_zm.cpp4
-rw-r--r--src/d/actor/d_a_mg_fish.cpp4
-rw-r--r--src/d/actor/d_a_midna.cpp6
-rw-r--r--src/d/actor/d_a_mirror.cpp4
-rw-r--r--src/d/actor/d_a_myna.cpp2
-rw-r--r--src/d/actor/d_a_npc_aru.cpp4
-rw-r--r--src/d/actor/d_a_npc_ash.cpp8
-rw-r--r--src/d/actor/d_a_npc_ashB.cpp8
-rw-r--r--src/d/actor/d_a_npc_bans.cpp4
-rw-r--r--src/d/actor/d_a_npc_besu.cpp2
-rw-r--r--src/d/actor/d_a_npc_bouS.cpp6
-rw-r--r--src/d/actor/d_a_npc_chat.cpp20
-rw-r--r--src/d/actor/d_a_npc_chin.cpp2
-rw-r--r--src/d/actor/d_a_npc_coach.cpp4
-rw-r--r--src/d/actor/d_a_npc_df.cpp4
-rw-r--r--src/d/actor/d_a_npc_doorboy.cpp6
-rw-r--r--src/d/actor/d_a_npc_du.cpp4
-rw-r--r--src/d/actor/d_a_npc_fairy.cpp4
-rw-r--r--src/d/actor/d_a_npc_fguard.cpp4
-rw-r--r--src/d/actor/d_a_npc_grc.cpp4
-rw-r--r--src/d/actor/d_a_npc_grm.cpp6
-rw-r--r--src/d/actor/d_a_npc_grmc.cpp4
-rw-r--r--src/d/actor/d_a_npc_gro.cpp6
-rw-r--r--src/d/actor/d_a_npc_grr.cpp4
-rw-r--r--src/d/actor/d_a_npc_grz.cpp4
-rw-r--r--src/d/actor/d_a_npc_gwolf.cpp4
-rw-r--r--src/d/actor/d_a_npc_henna.cpp2
-rw-r--r--src/d/actor/d_a_npc_ins.cpp6
-rw-r--r--src/d/actor/d_a_npc_kasi_hana.cpp6
-rw-r--r--src/d/actor/d_a_npc_kasi_kyu.cpp6
-rw-r--r--src/d/actor/d_a_npc_kasi_mich.cpp6
-rw-r--r--src/d/actor/d_a_npc_kolin.cpp4
-rw-r--r--src/d/actor/d_a_npc_kolinb.cpp4
-rw-r--r--src/d/actor/d_a_npc_lf.cpp4
-rw-r--r--src/d/actor/d_a_npc_moir.cpp6
-rw-r--r--src/d/actor/d_a_npc_ne.cpp4
-rw-r--r--src/d/actor/d_a_npc_pachi_besu.cpp4
-rw-r--r--src/d/actor/d_a_npc_pachi_maro.cpp4
-rw-r--r--src/d/actor/d_a_npc_pachi_taro.cpp4
-rw-r--r--src/d/actor/d_a_npc_passer.cpp4
-rw-r--r--src/d/actor/d_a_npc_passer2.cpp4
-rw-r--r--src/d/actor/d_a_npc_post.cpp4
-rw-r--r--src/d/actor/d_a_npc_raca.cpp4
-rw-r--r--src/d/actor/d_a_npc_seirei.cpp4
-rw-r--r--src/d/actor/d_a_npc_shad.cpp6
-rw-r--r--src/d/actor/d_a_npc_shaman.cpp4
-rw-r--r--src/d/actor/d_a_npc_shoe.cpp8
-rw-r--r--src/d/actor/d_a_npc_soldierA.cpp4
-rw-r--r--src/d/actor/d_a_npc_soldierB.cpp6
-rw-r--r--src/d/actor/d_a_npc_sq.cpp4
-rw-r--r--src/d/actor/d_a_npc_taro.cpp2
-rw-r--r--src/d/actor/d_a_npc_the.cpp8
-rw-r--r--src/d/actor/d_a_npc_theB.cpp4
-rw-r--r--src/d/actor/d_a_npc_tkc.cpp6
-rw-r--r--src/d/actor/d_a_npc_tkj2.cpp4
-rw-r--r--src/d/actor/d_a_npc_tks.cpp6
-rw-r--r--src/d/actor/d_a_npc_wrestler.cpp8
-rw-r--r--src/d/actor/d_a_npc_yamid.cpp4
-rw-r--r--src/d/actor/d_a_npc_yamis.cpp4
-rw-r--r--src/d/actor/d_a_npc_yamit.cpp4
-rw-r--r--src/d/actor/d_a_npc_yelia.cpp6
-rw-r--r--src/d/actor/d_a_npc_ykm.cpp4
-rw-r--r--src/d/actor/d_a_npc_zanb.cpp4
-rw-r--r--src/d/actor/d_a_npc_zelRo.cpp4
-rw-r--r--src/d/actor/d_a_npc_zra.cpp12
-rw-r--r--src/d/actor/d_a_npc_zrc.cpp6
-rw-r--r--src/d/actor/d_a_npc_zrz.cpp6
-rw-r--r--src/d/actor/d_a_obj_amiShutter.cpp6
-rw-r--r--src/d/actor/d_a_obj_ari.cpp6
-rw-r--r--src/d/actor/d_a_obj_barDesk.cpp6
-rw-r--r--src/d/actor/d_a_obj_bed.cpp6
-rw-r--r--src/d/actor/d_a_obj_bemos.cpp4
-rw-r--r--src/d/actor/d_a_obj_bkdoor.cpp4
-rw-r--r--src/d/actor/d_a_obj_bosswarp.cpp6
-rw-r--r--src/d/actor/d_a_obj_bsGate.cpp6
-rw-r--r--src/d/actor/d_a_obj_burnbox.cpp6
-rw-r--r--src/d/actor/d_a_obj_carry.cpp6
-rw-r--r--src/d/actor/d_a_obj_cdoor.cpp8
-rw-r--r--src/d/actor/d_a_obj_chandelier.cpp8
-rw-r--r--src/d/actor/d_a_obj_cho.cpp6
-rw-r--r--src/d/actor/d_a_obj_crvfence.cpp6
-rw-r--r--src/d/actor/d_a_obj_crvgate.cpp4
-rw-r--r--src/d/actor/d_a_obj_dan.cpp6
-rw-r--r--src/d/actor/d_a_obj_digsnow.cpp4
-rw-r--r--src/d/actor/d_a_obj_fallobj.cpp4
-rw-r--r--src/d/actor/d_a_obj_food.cpp4
-rw-r--r--src/d/actor/d_a_obj_fw.cpp4
-rw-r--r--src/d/actor/d_a_obj_ganonwall.cpp2
-rw-r--r--src/d/actor/d_a_obj_ganonwall2.cpp4
-rw-r--r--src/d/actor/d_a_obj_gm.cpp4
-rw-r--r--src/d/actor/d_a_obj_goGate.cpp4
-rw-r--r--src/d/actor/d_a_obj_gra2.cpp6
-rw-r--r--src/d/actor/d_a_obj_grave_stone.cpp8
-rw-r--r--src/d/actor/d_a_obj_grz_rock.cpp8
-rw-r--r--src/d/actor/d_a_obj_h_saku.cpp6
-rw-r--r--src/d/actor/d_a_obj_hasu2.cpp4
-rw-r--r--src/d/actor/d_a_obj_hata.cpp4
-rw-r--r--src/d/actor/d_a_obj_hb.cpp4
-rw-r--r--src/d/actor/d_a_obj_ihasi.cpp2
-rw-r--r--src/d/actor/d_a_obj_ikada.cpp6
-rw-r--r--src/d/actor/d_a_obj_ita.cpp6
-rw-r--r--src/d/actor/d_a_obj_itamato.cpp4
-rw-r--r--src/d/actor/d_a_obj_ito.cpp4
-rw-r--r--src/d/actor/d_a_obj_kabuto.cpp6
-rw-r--r--src/d/actor/d_a_obj_kag.cpp4
-rw-r--r--src/d/actor/d_a_obj_kago.cpp4
-rw-r--r--src/d/actor/d_a_obj_kaisou.cpp4
-rw-r--r--src/d/actor/d_a_obj_ki.cpp4
-rw-r--r--src/d/actor/d_a_obj_klift00.cpp8
-rw-r--r--src/d/actor/d_a_obj_kshutter.cpp16
-rw-r--r--src/d/actor/d_a_obj_kwheel00.cpp4
-rw-r--r--src/d/actor/d_a_obj_kwheel01.cpp6
-rw-r--r--src/d/actor/d_a_obj_lbox.cpp4
-rw-r--r--src/d/actor/d_a_obj_lv1Candle00.cpp6
-rw-r--r--src/d/actor/d_a_obj_lv1Candle01.cpp6
-rw-r--r--src/d/actor/d_a_obj_lv2Candle.cpp6
-rw-r--r--src/d/actor/d_a_obj_lv3Candle.cpp4
-rw-r--r--src/d/actor/d_a_obj_lv3Water2.cpp4
-rw-r--r--src/d/actor/d_a_obj_lv6SzGate.cpp4
-rw-r--r--src/d/actor/d_a_obj_lv6bemos.cpp6
-rw-r--r--src/d/actor/d_a_obj_lv6bemos2.cpp6
-rw-r--r--src/d/actor/d_a_obj_magne_arm.cpp10
-rw-r--r--src/d/actor/d_a_obj_maki.cpp6
-rw-r--r--src/d/actor/d_a_obj_mirror_chain.cpp6
-rw-r--r--src/d/actor/d_a_obj_mirror_screw.cpp8
-rw-r--r--src/d/actor/d_a_obj_mirror_table.cpp6
-rw-r--r--src/d/actor/d_a_obj_nameplate.cpp2
-rw-r--r--src/d/actor/d_a_obj_ndoor.cpp2
-rw-r--r--src/d/actor/d_a_obj_ornament_cloth.cpp6
-rw-r--r--src/d/actor/d_a_obj_pumpkin.cpp2
-rw-r--r--src/d/actor/d_a_obj_rock.cpp2
-rw-r--r--src/d/actor/d_a_obj_saidan.cpp4
-rw-r--r--src/d/actor/d_a_obj_sekidoor.cpp4
-rw-r--r--src/d/actor/d_a_obj_sekizo.cpp8
-rw-r--r--src/d/actor/d_a_obj_sekizoa.cpp2
-rw-r--r--src/d/actor/d_a_obj_sm_door.cpp8
-rw-r--r--src/d/actor/d_a_obj_smw_stone.cpp6
-rw-r--r--src/d/actor/d_a_obj_snow_soup.cpp6
-rw-r--r--src/d/actor/d_a_obj_stopper.cpp4
-rw-r--r--src/d/actor/d_a_obj_sword.cpp4
-rw-r--r--src/d/actor/d_a_obj_swpush.cpp10
-rw-r--r--src/d/actor/d_a_obj_syRock.cpp6
-rw-r--r--src/d/actor/d_a_obj_takaraDai.cpp2
-rw-r--r--src/d/actor/d_a_obj_testcube.cpp393
-rw-r--r--src/d/actor/d_a_obj_udoor.cpp4
-rw-r--r--src/d/actor/d_a_obj_waterGate.cpp4
-rw-r--r--src/d/actor/d_a_obj_waterPillar.cpp4
-rw-r--r--src/d/actor/d_a_obj_waterfall.cpp4
-rw-r--r--src/d/actor/d_a_obj_wchain.cpp6
-rw-r--r--src/d/actor/d_a_obj_wind_stone.cpp2
-rw-r--r--src/d/actor/d_a_obj_window.cpp8
-rw-r--r--src/d/actor/d_a_obj_yobikusa.cpp4
-rw-r--r--src/d/actor/d_a_obj_ystone.cpp4
-rw-r--r--src/d/actor/d_a_obj_zrTurara.cpp8
-rw-r--r--src/d/actor/d_a_obj_zrTuraraRock.cpp6
-rw-r--r--src/d/actor/d_a_obj_zra_freeze.cpp6
-rw-r--r--src/d/actor/d_a_obj_zra_rock.cpp8
-rw-r--r--src/d/actor/d_a_sq.cpp4
-rw-r--r--src/d/actor/d_a_tag_Lv8Gate.cpp4
-rw-r--r--src/d/actor/d_a_tag_evt.cpp2
-rw-r--r--src/d/actor/d_a_tag_evtarea.cpp4
-rw-r--r--src/d/actor/d_a_tag_statue_evt.cpp8
-rw-r--r--src/d/actor/d_a_tag_waterfall.cpp2
-rw-r--r--src/d/actor/d_a_tbox.cpp18
-rw-r--r--src/d/d_bg_parts.cpp845
-rw-r--r--src/d/d_com_inf_actor.cpp2
-rw-r--r--src/d/d_debug_pad.cpp90
-rw-r--r--src/d/d_jcam_editor.cpp89
-rw-r--r--src/d/d_kyeff.cpp89
-rw-r--r--src/d/d_menu_collect.cpp2
-rw-r--r--src/d/d_menu_letter.cpp2
-rw-r--r--src/d/d_menu_option.cpp2
-rw-r--r--src/d/d_menu_quit.cpp153
-rw-r--r--src/d/d_msg_scrn_3select.cpp2
-rw-r--r--src/d/d_msg_scrn_explain.cpp255
-rw-r--r--src/d/d_s_room.cpp30
-rw-r--r--src/d/d_stage.cpp1
-rw-r--r--src/dolphin/os/__ppc_eabi_init.cpp2
-rw-r--r--src/f_op/f_op_scene_req.cpp40
-rw-r--r--src/m_Do/m_Do_Reset.cpp4
-rw-r--r--src/m_Do/m_Do_lib.cpp2
-rw-r--r--src/m_Do/m_Do_machine.cpp4
-rw-r--r--src/odemuexi2/DebuggerDriver.c2
-rw-r--r--src/revolution/homebuttonLib/nw4hbm/lyt/arcResourceAccessor.h4
-rw-r--r--src/revolution/homebuttonLib/nw4hbm/lyt/common.h4
-rw-r--r--src/revolution/homebuttonLib/nw4hbm/lyt/lyt_types.h2
-rw-r--r--src/revolution/homebuttonLib/nw4hbm/lyt/pane.h2
-rw-r--r--src/revolution/homebuttonLib/nw4hbm/lyt/resourceAccessor.h2
-rw-r--r--src/revolution/os/__start.c4
286 files changed, 2421 insertions, 767 deletions
diff --git a/src/JSystem/J2DGraph/J2DAnimation.cpp b/src/JSystem/J2DGraph/J2DAnimation.cpp
index 5ca534a3a1..bf19ea1546 100644
--- a/src/JSystem/J2DGraph/J2DAnimation.cpp
+++ b/src/JSystem/J2DGraph/J2DAnimation.cpp
@@ -5,7 +5,7 @@
#include "JSystem/J3DGraphBase/J3DTexture.h"
#include "JSystem/JUtility/JUTPalette.h"
#include "JSystem/JUtility/JUTResource.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
template<typename T>
f32 J2DGetKeyFrameInterpolation(f32 param_0, J3DAnmKeyTableBase* param_1, T* param_2) {
diff --git a/src/JSystem/J2DGraph/J2DGrafContext.cpp b/src/JSystem/J2DGraph/J2DGrafContext.cpp
index 3f920bc407..9f676cd7e5 100644
--- a/src/JSystem/J2DGraph/J2DGrafContext.cpp
+++ b/src/JSystem/J2DGraph/J2DGrafContext.cpp
@@ -1,7 +1,7 @@
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/J2DGraph/J2DGrafContext.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
J2DGrafContext::J2DGrafContext(f32 x, f32 y, f32 width, f32 height)
: mBounds(x, y, x + width, y + height), mScissorBounds(x, y, x + width, y + height) {
diff --git a/src/JSystem/J2DGraph/J2DMatBlock.cpp b/src/JSystem/J2DGraph/J2DMatBlock.cpp
index f8f530924a..9bb4f87572 100644
--- a/src/JSystem/J2DGraph/J2DMatBlock.cpp
+++ b/src/JSystem/J2DGraph/J2DMatBlock.cpp
@@ -5,7 +5,7 @@
#include "JSystem/JUtility/JUTPalette.h"
#include "JSystem/JUtility/JUTResFont.h"
#include "JSystem/JUtility/JUTTexture.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
void J2DColorBlock::initialize() {
for (int i = 0; i < 2; i++) {
diff --git a/src/JSystem/J2DGraph/J2DMaterialFactory.cpp b/src/JSystem/J2DGraph/J2DMaterialFactory.cpp
index 55a8ca4c36..8c45bff19e 100644
--- a/src/JSystem/J2DGraph/J2DMaterialFactory.cpp
+++ b/src/JSystem/J2DGraph/J2DMaterialFactory.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JSupport/JSupport.h"
#include "JSystem/JUtility/JUTResource.h"
#include <string>
-#include "dolphin/types.h"
+#include <dolphin/types.h>
J2DMaterialFactory::J2DMaterialFactory(J2DMaterialBlock const& param_0) {
field_0x0 = param_0.field_0x8;
diff --git a/src/JSystem/J2DGraph/J2DOrthoGraph.cpp b/src/JSystem/J2DGraph/J2DOrthoGraph.cpp
index 6025c957c9..5cd6778572 100644
--- a/src/JSystem/J2DGraph/J2DOrthoGraph.cpp
+++ b/src/JSystem/J2DGraph/J2DOrthoGraph.cpp
@@ -1,7 +1,7 @@
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/J2DGraph/J2DOrthoGraph.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
J2DOrthoGraph::J2DOrthoGraph() : J2DGrafContext(0, 0, 0, 0) {
this->setLookat();
diff --git a/src/JSystem/J2DGraph/J2DPicture.cpp b/src/JSystem/J2DGraph/J2DPicture.cpp
index 7208db3cd7..efeaca2ebf 100644
--- a/src/JSystem/J2DGraph/J2DPicture.cpp
+++ b/src/JSystem/J2DGraph/J2DPicture.cpp
@@ -7,7 +7,7 @@
#include "JSystem/JUtility/JUTTexture.h"
#include "JSystem/JUtility/JUTResource.h"
#include "JSystem/JSupport/JSURandomInputStream.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
J2DPicture::J2DPicture() : mPalette(NULL) {
for (u32 i = 0; i < 2; i++) {
diff --git a/src/JSystem/J2DGraph/J2DPictureEx.cpp b/src/JSystem/J2DGraph/J2DPictureEx.cpp
index eafa5619fe..27cc68cc94 100644
--- a/src/JSystem/J2DGraph/J2DPictureEx.cpp
+++ b/src/JSystem/J2DGraph/J2DPictureEx.cpp
@@ -5,7 +5,7 @@
#include "JSystem/J2DGraph/J2DScreen.h"
#include "JSystem/JSupport/JSURandomInputStream.h"
#include "JSystem/JUtility/JUTTexture.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
void J2DPictureEx::initiate(ResTIMG const* param_0, ResTLUT const* param_1) {
u32 texGenNum = mMaterial->getTexGenBlock()->getTexGenNum();
diff --git a/src/JSystem/J2DGraph/J2DScreen.cpp b/src/JSystem/J2DGraph/J2DScreen.cpp
index 28f90beeaa..37c9aef084 100644
--- a/src/JSystem/J2DGraph/J2DScreen.cpp
+++ b/src/JSystem/J2DGraph/J2DScreen.cpp
@@ -9,7 +9,7 @@
#include "JSystem/JKernel/JKRArchive.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "JSystem/JSupport/JSUMemoryStream.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
J2DScreen::J2DScreen()
: J2DPane(NULL, true, 'root', JGeometry::TBox2<f32>(JGeometry::TVec2<f32>(0, 0), JGeometry::TVec2<f32>(640, 480))), mColor() {
diff --git a/src/JSystem/J2DGraph/J2DTevs.cpp b/src/JSystem/J2DGraph/J2DTevs.cpp
index 88d1c1c69b..fc9306507a 100644
--- a/src/JSystem/J2DGraph/J2DTevs.cpp
+++ b/src/JSystem/J2DGraph/J2DTevs.cpp
@@ -7,7 +7,7 @@
#include "JSystem/J2DGraph/J2DTevs.h"
#include "JSystem/J2DGraph/J2DMaterial.h"
#include <cmath>
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
void J2DTexMtx::load(u32 mtxIdx) {
GXLoadTexMtxImm(mTexMtx, mtxIdx * 3 + GX_TEXMTX0, (GXTexMtxType)mInfo.mTexMtxType);
diff --git a/src/JSystem/J3DGraphAnimator/J3DCluster.cpp b/src/JSystem/J3DGraphAnimator/J3DCluster.cpp
index 1bb6a195f2..3f6398fda8 100644
--- a/src/JSystem/J3DGraphAnimator/J3DCluster.cpp
+++ b/src/JSystem/J3DGraphAnimator/J3DCluster.cpp
@@ -4,7 +4,7 @@
#include "JSystem/J3DGraphAnimator/J3DAnimation.h"
#include "JSystem/J3DGraphAnimator/J3DModel.h"
#include "JSystem/JMath/JMATrigonometric.h"
-#include "dolphin/base/PPCArch.h"
+#include <dolphin/base/PPCArch.h>
J3DDeformData::J3DDeformData() {
mClusterNum = 0;
diff --git a/src/JSystem/J3DGraphLoader/J3DAnmLoader.cpp b/src/JSystem/J3DGraphLoader/J3DAnmLoader.cpp
index 8add976ec4..daef72afec 100644
--- a/src/JSystem/J3DGraphLoader/J3DAnmLoader.cpp
+++ b/src/JSystem/J3DGraphLoader/J3DAnmLoader.cpp
@@ -7,7 +7,7 @@
#include "JSystem/J3DGraphLoader/J3DAnmLoader.h"
#include "JSystem/J3DGraphAnimator/J3DAnimation.h"
#include "JSystem/JSupport/JSupport.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
J3DAnmBase* J3DAnmLoaderDataBase::load(const void* i_data, J3DAnmLoaderDataBaseFlag flag) {
const JUTDataFileHeader* header = (const JUTDataFileHeader*)i_data;
diff --git a/src/JSystem/J3DGraphLoader/J3DClusterLoader.cpp b/src/JSystem/J3DGraphLoader/J3DClusterLoader.cpp
index 03a0e66213..7d868d8730 100644
--- a/src/JSystem/J3DGraphLoader/J3DClusterLoader.cpp
+++ b/src/JSystem/J3DGraphLoader/J3DClusterLoader.cpp
@@ -8,7 +8,7 @@
#include "JSystem/J3DGraphAnimator/J3DSkinDeform.h"
#include "JSystem/JSupport/JSupport.h"
#include "JSystem/JKernel/JKRHeap.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
#include <string>
void* J3DClusterLoaderDataBase::load(const void* i_data) {
diff --git a/src/JSystem/J3DGraphLoader/J3DModelLoaderCalcSize.cpp b/src/JSystem/J3DGraphLoader/J3DModelLoaderCalcSize.cpp
index 5957fcc642..2fbe4a0c77 100644
--- a/src/JSystem/J3DGraphLoader/J3DModelLoaderCalcSize.cpp
+++ b/src/JSystem/J3DGraphLoader/J3DModelLoaderCalcSize.cpp
@@ -8,7 +8,7 @@
#include "JSystem/J3DGraphAnimator/J3DJoint.h"
#include "JSystem/J3DGraphAnimator/J3DModelData.h"
#include "JSystem/JSupport/JSupport.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
#include "global.h"
u16 J3DModelLoader::countMaterialNum(const void* stream) {
diff --git a/src/JSystem/J3DGraphLoader/J3DShapeFactory.cpp b/src/JSystem/J3DGraphLoader/J3DShapeFactory.cpp
index d724d7cb8e..a37319a74c 100644
--- a/src/JSystem/J3DGraphLoader/J3DShapeFactory.cpp
+++ b/src/JSystem/J3DGraphLoader/J3DShapeFactory.cpp
@@ -5,7 +5,7 @@
#include "JSystem/J3DGraphBase/J3DShapeMtx.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "JSystem/JSupport/JSupport.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
#include "global.h"
J3DShapeFactory::J3DShapeFactory(J3DShapeBlock const& block) {
diff --git a/src/JSystem/JAudio2/JASAiCtrl.cpp b/src/JSystem/JAudio2/JASAiCtrl.cpp
index 662e5e6df4..f4cdfa4d46 100644
--- a/src/JSystem/JAudio2/JASAiCtrl.cpp
+++ b/src/JSystem/JAudio2/JASAiCtrl.cpp
@@ -14,7 +14,7 @@
#include "JSystem/JAudio2/JASLfo.h"
#include "JSystem/JKernel/JKRSolidHeap.h"
#include "JSystem/JUtility/JUTAssert.h"
-#include "dolphin/ai.h"
+#include <dolphin/ai.h>
#include <dolphin/os.h>
#include <stdint.h>
diff --git a/src/JSystem/JAudio2/JASAudioReseter.cpp b/src/JSystem/JAudio2/JASAudioReseter.cpp
index e1198d6af8..9ef9f57b31 100644
--- a/src/JSystem/JAudio2/JASAudioReseter.cpp
+++ b/src/JSystem/JAudio2/JASAudioReseter.cpp
@@ -5,7 +5,7 @@
#include "JSystem/JAudio2/JASCriticalSection.h"
#include "JSystem/JAudio2/JASDriverIF.h"
#include "JSystem/JAudio2/JASDSPChannel.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
JASAudioReseter::JASAudioReseter() {
field_0x0 = 0;
diff --git a/src/JSystem/JAudio2/JASAudioThread.cpp b/src/JSystem/JAudio2/JASAudioThread.cpp
index 4cf66d5abf..0277f00804 100644
--- a/src/JSystem/JAudio2/JASAudioThread.cpp
+++ b/src/JSystem/JAudio2/JASAudioThread.cpp
@@ -9,7 +9,7 @@
#include "JSystem/JAudio2/JASProbe.h"
#include "JSystem/JAudio2/JASReport.h"
#include "JSystem/JKernel/JKRSolidHeap.h"
-#include "dolphin/dsp.h"
+#include <dolphin/dsp.h>
#include <stdint.h>
JASAudioThread::JASAudioThread(int stackSize, int msgCount, u32 threadPriority)
diff --git a/src/JSystem/JAudio2/JASCmdStack.cpp b/src/JSystem/JAudio2/JASCmdStack.cpp
index 1a39ab1560..22b5a340e1 100644
--- a/src/JSystem/JAudio2/JASCmdStack.cpp
+++ b/src/JSystem/JAudio2/JASCmdStack.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JAudio2/JASCmdStack.h"
#include "JSystem/JAudio2/JASCriticalSection.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
JASPortCmd::TPortHead JASPortCmd::sCommandListOnce;
diff --git a/src/JSystem/JAudio2/JASHeapCtrl.cpp b/src/JSystem/JAudio2/JASHeapCtrl.cpp
index 5e82d25366..ee280261f4 100644
--- a/src/JSystem/JAudio2/JASHeapCtrl.cpp
+++ b/src/JSystem/JAudio2/JASHeapCtrl.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JKernel/JKRExpHeap.h"
#include "JSystem/JKernel/JKRSolidHeap.h"
#include "JSystem/JUtility/JUTAssert.h"
-#include "dolphin/ar.h"
+#include <dolphin/ar.h>
JASHeap::JASHeap(JASDisposer* disposer) : mTree(this) {
mDisposer = disposer;
diff --git a/src/JSystem/JAudio2/JASWaveArcLoader.cpp b/src/JSystem/JAudio2/JASWaveArcLoader.cpp
index 37086c0d4e..c2b7400444 100644
--- a/src/JSystem/JAudio2/JASWaveArcLoader.cpp
+++ b/src/JSystem/JAudio2/JASWaveArcLoader.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JAudio2/JASMutex.h"
#include "JSystem/JKernel/JKRDvdAramRipper.h"
#include <string>
-#include "dolphin/os.h"
+#include <dolphin/os.h>
#include <stdint.h>
JASHeap* JASWaveArcLoader::sAramHeap;
diff --git a/src/JSystem/JAudio2/JAUSectionHeap.cpp b/src/JSystem/JAudio2/JAUSectionHeap.cpp
index cf037011fe..ad2b5beb95 100644
--- a/src/JSystem/JAudio2/JAUSectionHeap.cpp
+++ b/src/JSystem/JAudio2/JAUSectionHeap.cpp
@@ -14,7 +14,7 @@
#include "JSystem/JAudio2/JAUSoundTable.h"
#include "JSystem/JAudio2/JAUStreamFileTable.h"
#include "JSystem/JKernel/JKRSolidHeap.h"
-#include "dolphin/dvd.h"
+#include <dolphin/dvd.h>
namespace {
class TPushCurrentHeap {
diff --git a/src/JSystem/JAudio2/JAUSeqDataBlockMgr.cpp b/src/JSystem/JAudio2/JAUSeqDataBlockMgr.cpp
index 37e0577413..f973cb4779 100644
--- a/src/JSystem/JAudio2/JAUSeqDataBlockMgr.cpp
+++ b/src/JSystem/JAudio2/JAUSeqDataBlockMgr.cpp
@@ -7,7 +7,7 @@
#include "JSystem/JAudio2/JAUSeqDataBlockMgr.h"
#include "JSystem/JAudio2/JAUSoundInfo.h"
#include "JSystem/JAudio2/JASResArcLoader.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
JAUSeqDataBlock::JAUSeqDataBlock() : field_0x0(this) {}
diff --git a/src/JSystem/JAudio2/osdsp.cpp b/src/JSystem/JAudio2/osdsp.cpp
index ff222269ec..f147b6e81b 100644
--- a/src/JSystem/JAudio2/osdsp.cpp
+++ b/src/JSystem/JAudio2/osdsp.cpp
@@ -2,7 +2,7 @@
#include "JSystem/JAudio2/osdsp.h"
#include "JSystem/JAudio2/osdsp_task.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
#include <dolphin/dsp.h>
extern "C" void __DSP_insert_task(DSPTaskInfo*);
diff --git a/src/JSystem/JFramework/JFWDisplay.cpp b/src/JSystem/JFramework/JFWDisplay.cpp
index 0392ffdb0b..eb40c484e4 100644
--- a/src/JSystem/JFramework/JFWDisplay.cpp
+++ b/src/JSystem/JFramework/JFWDisplay.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JUtility/JUTConsole.h"
#include "JSystem/JUtility/JUTDbPrint.h"
#include "JSystem/JUtility/JUTProcBar.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
#include <dolphin/vi.h>
#include "global.h"
#include <stdint.h>
diff --git a/src/JSystem/JKernel/JKRAram.cpp b/src/JSystem/JKernel/JKRAram.cpp
index 7d1c573f11..ffea3d9af7 100644
--- a/src/JSystem/JKernel/JKRAram.cpp
+++ b/src/JSystem/JKernel/JKRAram.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JKernel/JKRDecomp.h"
#include "JSystem/JKernel/JKRExpHeap.h"
#include "JSystem/JUtility/JUTException.h"
-#include "dolphin/ar.h"
+#include <dolphin/ar.h>
#include <dolphin/os.h>
#include <string>
diff --git a/src/JSystem/JKernel/JKRAramPiece.cpp b/src/JSystem/JKernel/JKRAramPiece.cpp
index 7bc83cf0c2..e74cf5d5c7 100644
--- a/src/JSystem/JKernel/JKRAramPiece.cpp
+++ b/src/JSystem/JKernel/JKRAramPiece.cpp
@@ -4,7 +4,7 @@
#include "JSystem/JKernel/JKRAram.h"
#include "JSystem/JKernel/JKRDecomp.h"
#include "JSystem/JUtility/JUTException.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
JKRAMCommand* JKRAramPiece::prepareCommand(int direction, u32 src, u32 dst, u32 length,
JKRAramBlock* block,
diff --git a/src/JSystem/JKernel/JKRDvdAramRipper.cpp b/src/JSystem/JKernel/JKRDvdAramRipper.cpp
index 8d44cc29d8..3ca276e050 100644
--- a/src/JSystem/JKernel/JKRDvdAramRipper.cpp
+++ b/src/JSystem/JKernel/JKRDvdAramRipper.cpp
@@ -9,7 +9,7 @@
#include "JSystem/JSupport/JSUFileStream.h"
#include <dolphin/os.h>
#include <dolphin/os.h>
-#include "dolphin/vi.h"
+#include <dolphin/vi.h>
#include "global.h"
#include <string>
diff --git a/src/JSystem/JKernel/JKRDvdRipper.cpp b/src/JSystem/JKernel/JKRDvdRipper.cpp
index fc792c50cd..cf84ef9eec 100644
--- a/src/JSystem/JKernel/JKRDvdRipper.cpp
+++ b/src/JSystem/JKernel/JKRDvdRipper.cpp
@@ -10,7 +10,7 @@
#include "JSystem/JUtility/JUTException.h"
#include <string>
#include <dolphin/os.h>
-#include "dolphin/vi.h"
+#include <dolphin/vi.h>
#include <stdint.h>
static int JKRDecompressFromDVD(JKRDvdFile*, void*, u32, u32, u32, u32, u32*);
diff --git a/src/JSystem/JKernel/JKRFile.cpp b/src/JSystem/JKernel/JKRFile.cpp
index 91ac9040a9..b267e93235 100644
--- a/src/JSystem/JKernel/JKRFile.cpp
+++ b/src/JSystem/JKernel/JKRFile.cpp
@@ -1,7 +1,7 @@
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/JKernel/JKRFile.h"
-#include "dolphin/vi.h"
+#include <dolphin/vi.h>
void JKRFile::read(void* data, s32 length, s32 offset) {
JUT_ASSERT(32, ( length & 0x1f ) == 0);
diff --git a/src/JSystem/JParticle/JPABaseShape.cpp b/src/JSystem/JParticle/JPABaseShape.cpp
index 94523299c0..66b299af58 100644
--- a/src/JSystem/JParticle/JPABaseShape.cpp
+++ b/src/JSystem/JParticle/JPABaseShape.cpp
@@ -6,8 +6,8 @@
#include "JSystem/JParticle/JPAEmitter.h"
#include "JSystem/JParticle/JPAResourceManager.h"
#include "JSystem/JMath/JMATrigonometric.h"
-#include "dolphin/mtx.h"
-#include "dolphin/gx.h"
+#include <dolphin/mtx.h>
+#include <dolphin/gx.h>
void JPASetPointSize(JPAEmitterWorkData* work) {
GXSetPointSize((u8)(25.0f * work->mGlobalPtclScl.x), GX_TO_ONE);
diff --git a/src/JSystem/JParticle/JPAChildShape.cpp b/src/JSystem/JParticle/JPAChildShape.cpp
index 906c1f1c1b..4c2a0403b5 100644
--- a/src/JSystem/JParticle/JPAChildShape.cpp
+++ b/src/JSystem/JParticle/JPAChildShape.cpp
@@ -3,8 +3,8 @@
#include "JSystem/JParticle/JPAChildShape.h"
#include "JSystem/JParticle/JPAParticle.h"
#include "JSystem/JParticle/JPAEmitter.h"
-#include "dolphin/gx.h"
-#include "dolphin/os.h"
+#include <dolphin/gx.h>
+#include <dolphin/os.h>
void JPARegistChildPrmEnv(JPAEmitterWorkData* work) {
JPAChildShape* csp = work->mpRes->getCsp();
diff --git a/src/JSystem/JParticle/JPAEmitter.cpp b/src/JSystem/JParticle/JPAEmitter.cpp
index 1972c4f4a1..95ab4147dd 100644
--- a/src/JSystem/JParticle/JPAEmitter.cpp
+++ b/src/JSystem/JParticle/JPAEmitter.cpp
@@ -5,7 +5,7 @@
#include "JSystem/JParticle/JPAParticle.h"
#include "JSystem/JParticle/JPAResourceManager.h"
#include "JSystem/JParticle/JPABaseShape.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
JPAEmitterCallBack::~JPAEmitterCallBack() {
}
diff --git a/src/JSystem/JParticle/JPAEmitterManager.cpp b/src/JSystem/JParticle/JPAEmitterManager.cpp
index 51e95a46ad..40f8411134 100644
--- a/src/JSystem/JParticle/JPAEmitterManager.cpp
+++ b/src/JSystem/JParticle/JPAEmitterManager.cpp
@@ -6,7 +6,7 @@
#include "JSystem/JParticle/JPAParticle.h"
#include "JSystem/JParticle/JPAResourceManager.h"
#include "JSystem/JUtility/JUTAssert.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
JPAEmitterManager::JPAEmitterManager(u32 i_ptclNum, u32 i_emtrNum, JKRHeap* pHeap, u8 i_gidMax,
u8 i_ridMax) {
diff --git a/src/JSystem/JParticle/JPAExTexShape.cpp b/src/JSystem/JParticle/JPAExTexShape.cpp
index 79e3c5a339..81e14ef556 100644
--- a/src/JSystem/JParticle/JPAExTexShape.cpp
+++ b/src/JSystem/JParticle/JPAExTexShape.cpp
@@ -3,7 +3,7 @@
#include "JSystem/JParticle/JPAExTexShape.h"
#include "JSystem/JParticle/JPAResourceManager.h"
#include "JSystem/JParticle/JPAEmitter.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
void JPALoadExTex(JPAEmitterWorkData* work) {
JPAExTexShape* ets = work->mpRes->getEts();
diff --git a/src/JSystem/JParticle/JPAExtraShape.cpp b/src/JSystem/JParticle/JPAExtraShape.cpp
index 49eed254cb..09c6b45bb0 100644
--- a/src/JSystem/JParticle/JPAExtraShape.cpp
+++ b/src/JSystem/JParticle/JPAExtraShape.cpp
@@ -4,7 +4,7 @@
#include "JSystem/JMath/JMATrigonometric.h"
#include "JSystem/JParticle/JPAParticle.h"
#include "JSystem/JParticle/JPAEmitter.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
void JPACalcScaleX(JPAEmitterWorkData* work, JPABaseParticle* ptcl) {
JPAExtraShape* esp = work->mpRes->getEsp();
diff --git a/src/JSystem/JParticle/JPAResource.cpp b/src/JSystem/JParticle/JPAResource.cpp
index 925726ccae..b3351be574 100644
--- a/src/JSystem/JParticle/JPAResource.cpp
+++ b/src/JSystem/JParticle/JPAResource.cpp
@@ -11,7 +11,7 @@
#include "JSystem/JParticle/JPAKeyBlock.h"
#include "JSystem/JParticle/JPAParticle.h"
#include "JSystem/JParticle/JPAResourceManager.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
#include "global.h"
JPAResource::JPAResource() {
diff --git a/src/JSystem/JStudio/JStudio/stb-data-parse.cpp b/src/JSystem/JStudio/JStudio/stb-data-parse.cpp
index e9ab233d33..ec263a18e5 100644
--- a/src/JSystem/JStudio/JStudio/stb-data-parse.cpp
+++ b/src/JSystem/JStudio/JStudio/stb-data-parse.cpp
@@ -2,7 +2,7 @@
#include "JSystem/JStudio/JStudio/stb-data-parse.h"
#include "JSystem/JUtility/JUTAssert.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
#include <stdint.h>
namespace JStudio {
diff --git a/src/JSystem/JUtility/JUTCacheFont.cpp b/src/JSystem/JUtility/JUTCacheFont.cpp
index 3292adc78b..a4f22ab3d6 100644
--- a/src/JSystem/JUtility/JUTCacheFont.cpp
+++ b/src/JSystem/JUtility/JUTCacheFont.cpp
@@ -5,7 +5,7 @@
#include "JSystem/JUtility/JUTAssert.h"
#include "JSystem/JUtility/JUTConsole.h"
#include "JSystem/JKernel/JKRAram.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
#include <stdint.h>
JUTCacheFont::JUTCacheFont(ResFONT const* p_fontRes, u32 cacheSize, JKRHeap* p_heap) {
diff --git a/src/JSystem/JUtility/JUTPalette.cpp b/src/JSystem/JUtility/JUTPalette.cpp
index a28b4184dd..23d2aa41c6 100644
--- a/src/JSystem/JUtility/JUTPalette.cpp
+++ b/src/JSystem/JUtility/JUTPalette.cpp
@@ -1,8 +1,8 @@
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/JUtility/JUTPalette.h"
-#include "dolphin/gx.h"
-#include "dolphin/os.h"
+#include <dolphin/gx.h>
+#include <dolphin/os.h>
void JUTPalette::storeTLUT(GXTlut param_0, ResTLUT* tlut) {
if (tlut == NULL) {
diff --git a/src/JSystem/JUtility/JUTResFont.cpp b/src/JSystem/JUtility/JUTResFont.cpp
index 5a609070ca..62abfbd213 100644
--- a/src/JSystem/JUtility/JUTResFont.cpp
+++ b/src/JSystem/JUtility/JUTResFont.cpp
@@ -5,7 +5,7 @@
#include "JSystem/JSupport/JSupport.h"
#include "JSystem/JUtility/JUTAssert.h"
#include "JSystem/JUtility/JUTConsole.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
JUTResFont::JUTResFont() {
initialize_state();
diff --git a/src/JSystem/JUtility/JUTTexture.cpp b/src/JSystem/JUtility/JUTTexture.cpp
index 0bbdc93fe0..985ea6499b 100644
--- a/src/JSystem/JUtility/JUTTexture.cpp
+++ b/src/JSystem/JUtility/JUTTexture.cpp
@@ -2,7 +2,7 @@
#include "JSystem/JUtility/JUTTexture.h"
#include "JSystem/JUtility/JUTPalette.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
JUTTexture::~JUTTexture() {
if (getCaptureFlag()) {
diff --git a/src/JSystem/JUtility/JUTVideo.cpp b/src/JSystem/JUtility/JUTVideo.cpp
index 60f0ea680b..823402eff4 100644
--- a/src/JSystem/JUtility/JUTVideo.cpp
+++ b/src/JSystem/JUtility/JUTVideo.cpp
@@ -3,7 +3,7 @@
#include "JSystem/JUtility/JUTVideo.h"
#include "JSystem/JUtility/JUTDirectPrint.h"
#include "JSystem/JUtility/JUTXfb.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
#include <dolphin/vi.h>
JUTVideo* JUTVideo::sManager;
diff --git a/src/JSystem/JUtility/JUTXfb.cpp b/src/JSystem/JUtility/JUTXfb.cpp
index 3557f7d8c1..8e2f0a9173 100644
--- a/src/JSystem/JUtility/JUTXfb.cpp
+++ b/src/JSystem/JUtility/JUTXfb.cpp
@@ -3,7 +3,7 @@
#include "JSystem/JUtility/JUTXfb.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "JSystem/JUtility/JUTAssert.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
void JUTXfb::clearIndex() {
mDrawingXfbIndex = -1;
diff --git a/src/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Src/uart_console_io_gcn.c b/src/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Src/uart_console_io_gcn.c
index ea52db1e2a..3916d03315 100644
--- a/src/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Src/uart_console_io_gcn.c
+++ b/src/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Src/uart_console_io_gcn.c
@@ -1,5 +1,5 @@
#include "uart_console_io_gcn.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
int InitializeUART(size_t);
int WriteUARTN(unsigned char*, size_t);
diff --git a/src/PowerPC_EABI_Support/MetroTRK/trk.h b/src/PowerPC_EABI_Support/MetroTRK/trk.h
index d8fb5bc7b1..a90cf24d75 100644
--- a/src/PowerPC_EABI_Support/MetroTRK/trk.h
+++ b/src/PowerPC_EABI_Support/MetroTRK/trk.h
@@ -1,7 +1,7 @@
#ifndef __METROTRK_TRK_H__
#define __METROTRK_TRK_H__
-#include "dolphin/types.h"
+#include <dolphin/types.h>
#ifdef __cplusplus
extern "C" {
@@ -375,4 +375,4 @@ void TRKSaveExtended1Block();
}
#endif
-#endif /* __METROTRK_TRK_H__ */ \ No newline at end of file
+#endif /* __METROTRK_TRK_H__ */
diff --git a/src/PowerPC_EABI_Support/Runtime/Inc/CPlusLibPPC.h b/src/PowerPC_EABI_Support/Runtime/Inc/CPlusLibPPC.h
index ce053b3709..6ef61bc186 100644
--- a/src/PowerPC_EABI_Support/Runtime/Inc/CPlusLibPPC.h
+++ b/src/PowerPC_EABI_Support/Runtime/Inc/CPlusLibPPC.h
@@ -1,6 +1,6 @@
#ifndef CPLUSLIBPPC_H
#define CPLUSLIBPPC_H
-#include "dolphin/types.h"
+#include <dolphin/types.h>
-#endif /* CPLUSLIBPPC_H */ \ No newline at end of file
+#endif /* CPLUSLIBPPC_H */
diff --git a/src/PowerPC_EABI_Support/Runtime/Inc/__init_cpp_exceptions.h b/src/PowerPC_EABI_Support/Runtime/Inc/__init_cpp_exceptions.h
index 8ceb140b9e..63cc422514 100644
--- a/src/PowerPC_EABI_Support/Runtime/Inc/__init_cpp_exceptions.h
+++ b/src/PowerPC_EABI_Support/Runtime/Inc/__init_cpp_exceptions.h
@@ -1,6 +1,6 @@
#ifndef __INIT_CPP_EXCEPTIONS_H
#define __INIT_CPP_EXCEPTIONS_H
-#include "dolphin/types.h"
+#include <dolphin/types.h>
-#endif /* __INIT_CPP_EXCEPTIONS_H */ \ No newline at end of file
+#endif /* __INIT_CPP_EXCEPTIONS_H */
diff --git a/src/PowerPC_EABI_Support/Runtime/Inc/runtime.h b/src/PowerPC_EABI_Support/Runtime/Inc/runtime.h
index 6ae7a1e78e..b70bc02086 100644
--- a/src/PowerPC_EABI_Support/Runtime/Inc/runtime.h
+++ b/src/PowerPC_EABI_Support/Runtime/Inc/runtime.h
@@ -1,6 +1,6 @@
#ifndef RUNTIME_H
#define RUNTIME_H
-#include "dolphin/types.h"
+#include <dolphin/types.h>
-#endif /* RUNTIME_H */ \ No newline at end of file
+#endif /* RUNTIME_H */
diff --git a/src/PowerPC_EABI_Support/Runtime/Src/GCN_Mem_Alloc.c b/src/PowerPC_EABI_Support/Runtime/Src/GCN_Mem_Alloc.c
index f3f2c182e8..33b700446d 100644
--- a/src/PowerPC_EABI_Support/Runtime/Src/GCN_Mem_Alloc.c
+++ b/src/PowerPC_EABI_Support/Runtime/Src/GCN_Mem_Alloc.c
@@ -3,7 +3,7 @@
* Description:
*/
-#include "dolphin/os.h"
+#include <dolphin/os.h>
inline static void InitDefaultHeap(void) {
void* arenaLo;
diff --git a/src/SSystem/SComponent/c_list_iter.cpp b/src/SSystem/SComponent/c_list_iter.cpp
index 19e502ba7b..077840f838 100644
--- a/src/SSystem/SComponent/c_list_iter.cpp
+++ b/src/SSystem/SComponent/c_list_iter.cpp
@@ -5,7 +5,7 @@
#include "SSystem/SComponent/c_list_iter.h"
#include "SSystem/SComponent/c_list.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
int cLsIt_Method(node_list_class* list, cNdIt_MethodFunc method, void* data) {
if (list->mSize > 0)
diff --git a/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/dolphin_trk_glue.c b/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/dolphin_trk_glue.c
index e22f2c565b..9bfd2e02fd 100644
--- a/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/dolphin_trk_glue.c
+++ b/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/dolphin_trk_glue.c
@@ -2,7 +2,7 @@
#include "TRK_MINNOW_DOLPHIN/Os/dolphin/DDH_Stubs.h"
#include "TRK_MINNOW_DOLPHIN/Os/dolphin/GDEV_Stubs.h"
#include "TRK_MINNOW_DOLPHIN/Os/dolphin/UDP_Stubs.h"
-#include "dolphin/base/PPCArch.h"
+#include <dolphin/base/PPCArch.h>
#include "trk.h"
void TRKInterruptHandler();
diff --git a/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/usr_put.c b/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/usr_put.c
index 76d5f961b8..0a73fe5f10 100644
--- a/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/usr_put.c
+++ b/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Os/dolphin/usr_put.c
@@ -4,7 +4,7 @@
*/
#include "TRK_MINNOW_DOLPHIN/Os/dolphin/usr_put.h"
-// #include "dolphin/os.h"
+// #include <dolphin/os.h>
// void OSReport(char* fmt, ...) causes extra crclr instruction.
// look into issue later
diff --git a/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Generic/flush_cache.c b/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Generic/flush_cache.c
index fcfbd12a37..53db0e46ba 100644
--- a/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Generic/flush_cache.c
+++ b/src/TRK_MINNOW_DOLPHIN/debugger/embedded/MetroTRK/Processor/ppc/Generic/flush_cache.c
@@ -3,7 +3,7 @@
* Description:
*/
-#include "dolphin/types.h"
+#include <dolphin/types.h>
asm void TRK_flush_cache(u32, int) {
// clang-format off
diff --git a/src/d/actor/d_a_arrow.cpp b/src/d/actor/d_a_arrow.cpp
index fc26f70eb7..920448ce24 100644
--- a/src/d/actor/d_a_arrow.cpp
+++ b/src/d/actor/d_a_arrow.cpp
@@ -1132,7 +1132,7 @@ static void* daAlink_searchHorseZelda(fopAc_ac_c* param_0, void* param_1) {
return NULL;
}
-cPhs__Step daArrow_c::create() {
+cPhs_Step daArrow_c::create() {
fopAcM_ct(this, daArrow_c);
mArrowType = fopAcM_GetParamBit(this, 8, 8);
diff --git a/src/d/actor/d_a_b_ds.cpp b/src/d/actor/d_a_b_ds.cpp
index 99795f5bee..88b5c8042a 100644
--- a/src/d/actor/d_a_b_ds.cpp
+++ b/src/d/actor/d_a_b_ds.cpp
@@ -5426,10 +5426,10 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return static_cast<daB_DS_c*>(i_this)->CreateHeap();
}
-cPhs__Step daB_DS_c::create() {
+cPhs_Step daB_DS_c::create() {
fopAcM_ct(this, daB_DS_c);
- cPhs__Step phase_state = (cPhs__Step)dComIfG_resLoad(&mPhase, "B_DS");
+ cPhs_Step phase_state = dComIfG_resLoad(&mPhase, "B_DS");
if (phase_state == cPhs_COMPLEATE_e) {
if (arg0 == TYPE_BATTLE_1 && dComIfGs_isStageBossEnemy()) {
// "After B_DS defeated, so not re-setting\n"
@@ -5676,7 +5676,7 @@ cPhs__Step daB_DS_c::create() {
daB_DS_c::daB_DS_c() {}
-static cPhs__Step daB_DS_Create(daB_DS_c* i_this) {
+static cPhs_Step daB_DS_Create(daB_DS_c* i_this) {
return i_this->create();
}
diff --git a/src/d/actor/d_a_b_tn.cpp b/src/d/actor/d_a_b_tn.cpp
index 6f2ee0c701..608cbf6336 100644
--- a/src/d/actor/d_a_b_tn.cpp
+++ b/src/d/actor/d_a_b_tn.cpp
@@ -5048,9 +5048,9 @@ int daB_TN_c::create() {
}
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq1, "B_tn");
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq1, "B_tn");
if (step == cPhs_COMPLEATE_e) {
- step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq2, mArcName);
+ step = dComIfG_resLoad(&mPhaseReq2, mArcName);
if (step == cPhs_COMPLEATE_e) {
mBrkAnmFrame = fopAcM_GetParamBit(this, 16, 16);
diff --git a/src/d/actor/d_a_b_yo.cpp b/src/d/actor/d_a_b_yo.cpp
index 5029eec6d8..70a7d42391 100644
--- a/src/d/actor/d_a_b_yo.cpp
+++ b/src/d/actor/d_a_b_yo.cpp
@@ -3242,9 +3242,9 @@ static int useHeapInit2(fopAc_ac_c* i_this) {
return static_cast<daB_YO_c*>(i_this)->CreateHeap2();
}
-cPhs__Step daB_YO_c::create() {
+cPhs_Step daB_YO_c::create() {
fopAcM_ct(this, daB_YO_c);
- cPhs__Step step;
+ cPhs_Step step;
mSwNo = fopAcM_GetParam(this) & 0xff;
mSwNo2 = (fopAcM_GetParam(this) >> 8) & 0xff;
@@ -3258,7 +3258,7 @@ cPhs__Step daB_YO_c::create() {
mIsInactive2 = mIsInactive;
if (mIsInactive == 1) {
- step = (cPhs__Step)dComIfG_resLoad(&mPhase2, "L5_R50");
+ step = dComIfG_resLoad(&mPhase2, "L5_R50");
if (step == cPhs_COMPLEATE_e) {
if (!daMirror_c::remove()) {
@@ -3292,11 +3292,11 @@ cPhs__Step daB_YO_c::create() {
return step;
} else {
- if ((step = (cPhs__Step)dComIfG_resLoad(&mPhase1, "B_YO"), step == cPhs_COMPLEATE_e)
- && (step = (cPhs__Step)dComIfG_resLoad(&mPhase2, "L5_R50"), step == cPhs_COMPLEATE_e)
- && (step = (cPhs__Step)dComIfG_resLoad(&mPhase3, "ykW"), step == cPhs_COMPLEATE_e)
- && (step = (cPhs__Step)dComIfG_resLoad(&mPhase4, "ykW1"), step == cPhs_COMPLEATE_e)
- && (step = (cPhs__Step)dComIfG_resLoad(&mPhase5, "E_FZ"), step == cPhs_COMPLEATE_e))
+ if ((step = dComIfG_resLoad(&mPhase1, "B_YO"), step == cPhs_COMPLEATE_e)
+ && (step = dComIfG_resLoad(&mPhase2, "L5_R50"), step == cPhs_COMPLEATE_e)
+ && (step = dComIfG_resLoad(&mPhase3, "ykW"), step == cPhs_COMPLEATE_e)
+ && (step = dComIfG_resLoad(&mPhase4, "ykW1"), step == cPhs_COMPLEATE_e)
+ && (step = dComIfG_resLoad(&mPhase5, "E_FZ"), step == cPhs_COMPLEATE_e))
{
if (cDmr_SkipInfo != 0 && !daMirror_c::remove()) {
return cPhs_INIT_e;
@@ -3412,7 +3412,7 @@ cPhs__Step daB_YO_c::create() {
}
}
-static cPhs__Step daB_YO_Create(daB_YO_c* i_this) {
+static cPhs_Step daB_YO_Create(daB_YO_c* i_this) {
return i_this->create();
}
diff --git a/src/d/actor/d_a_b_yo_ice.cpp b/src/d/actor/d_a_b_yo_ice.cpp
index 085fb1e0d7..ca2c8e130b 100644
--- a/src/d/actor/d_a_b_yo_ice.cpp
+++ b/src/d/actor/d_a_b_yo_ice.cpp
@@ -1010,9 +1010,9 @@ static int useHeapInit(fopAc_ac_c* i_this) {
}
// data/rodata swap
-cPhs__Step daB_YOI_c::create() {
+cPhs_Step daB_YOI_c::create() {
fopAcM_ct(this, daB_YOI_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, "B_YO");
+ cPhs_Step step = dComIfG_resLoad(&mPhase, "B_YO");
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, useHeapInit, 0x1CA0)) {
@@ -1087,7 +1087,7 @@ daB_YOI_c::daB_YOI_c() {
/* empty function */
}
-static cPhs__Step daB_YOI_Create(daB_YOI_c* i_this) {
+static cPhs_Step daB_YOI_Create(daB_YOI_c* i_this) {
return i_this->create();
}
diff --git a/src/d/actor/d_a_bg.cpp b/src/d/actor/d_a_bg.cpp
index be8960fc51..39f7e07990 100644
--- a/src/d/actor/d_a_bg.cpp
+++ b/src/d/actor/d_a_bg.cpp
@@ -10,6 +10,7 @@
#include "d/d_com_static.h"
#include "d/actor/d_a_grass.h"
#include "d/d_bg_w.h"
+#include "d/d_bg_parts.h"
#include "m_Do/m_Do_lib.h"
#include "d/d_demo.h"
#include "JSystem/JKernel/JKRExpHeap.h"
diff --git a/src/d/actor/d_a_bg_obj.cpp b/src/d/actor/d_a_bg_obj.cpp
index e8c934afab..bf131498f5 100644
--- a/src/d/actor/d_a_bg_obj.cpp
+++ b/src/d/actor/d_a_bg_obj.cpp
@@ -8,7 +8,7 @@
#include "d/actor/d_a_bg_obj.h"
#include "JSystem/J3DGraphBase/J3DMaterial.h"
#include <cstdio>
-#include "dolphin/os.h"
+#include <dolphin/os.h>
#include "d/actor/d_a_set_bgobj.h"
#include "d/d_s_play.h"
#include "SSystem/SComponent/c_math.h"
diff --git a/src/d/actor/d_a_cow.cpp b/src/d/actor/d_a_cow.cpp
index a13161b797..2b12092989 100644
--- a/src/d/actor/d_a_cow.cpp
+++ b/src/d/actor/d_a_cow.cpp
@@ -15,7 +15,7 @@
#include "d/d_com_inf_game.h"
#include "d/d_meter2_info.h"
#include "d/d_timer.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
#include "f_op/f_op_actor_mng.h"
#include "f_op/f_op_camera_mng.h"
#include "m_Do/m_Do_ext.h"
diff --git a/src/d/actor/d_a_do.cpp b/src/d/actor/d_a_do.cpp
index 420c0baf39..f8632be6c9 100644
--- a/src/d/actor/d_a_do.cpp
+++ b/src/d/actor/d_a_do.cpp
@@ -2402,11 +2402,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daDo_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daDo_Create(fopAc_ac_c* i_this) {
do_class* _this = static_cast<do_class*>(i_this);
fopAcM_ct(i_this, do_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, "Do");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, "Do");
if (step == cPhs_COMPLEATE_e) {
_this->mParam0 = fopAcM_GetParam(i_this) & 7;
diff --git a/src/d/actor/d_a_door_boss.cpp b/src/d/actor/d_a_door_boss.cpp
index 8bc8cee3f8..1b124f12bf 100644
--- a/src/d/actor/d_a_door_boss.cpp
+++ b/src/d/actor/d_a_door_boss.cpp
@@ -104,9 +104,9 @@ int daBdoor_c::CreateInit() {
return 1;
}
-cPhs__Step daBdoor_c::create() {
+cPhs_Step daBdoor_c::create() {
fopAcM_ct(this, daBdoor_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, getArcName());
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, getArcName());
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, CheckCreateHeap, 0xa000)) {
return cPhs_ERROR_e;
@@ -404,7 +404,7 @@ static int daBdoor_Delete(daBdoor_c* i_this) {
return 1;
}
-static cPhs__Step daBdoor_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daBdoor_Create(fopAc_ac_c* i_this) {
return static_cast<daBdoor_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_e_ba.cpp b/src/d/actor/d_a_e_ba.cpp
index 2c6134559d..f1271aa873 100644
--- a/src/d/actor/d_a_e_ba.cpp
+++ b/src/d/actor/d_a_e_ba.cpp
@@ -989,7 +989,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
}
}
-static cPhs__Step daE_BA_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daE_BA_Create(fopAc_ac_c* i_this) {
static char* arc_name[3] = {"E_ba", "E_fb", "E_ib"};
static dCcD_SrcSph cc_sph_src = {
@@ -1013,7 +1013,7 @@ static cPhs__Step daE_BA_Create(fopAc_ac_c* i_this) {
}
_this->mArcName = arc_name[_this->mType];
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, _this->mArcName);
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, _this->mArcName);
if (step == cPhs_COMPLEATE_e) {
int sw = fopAcM_GetParam(_this) >> 24;
diff --git a/src/d/actor/d_a_e_bee.cpp b/src/d/actor/d_a_e_bee.cpp
index 85ffee70bb..d0f182031d 100644
--- a/src/d/actor/d_a_e_bee.cpp
+++ b/src/d/actor/d_a_e_bee.cpp
@@ -716,11 +716,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return true;
}
-static cPhs__Step daE_Bee_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daE_Bee_Create(fopAc_ac_c* i_this) {
e_bee_class* _this = static_cast<e_bee_class*>(i_this);
fopAcM_ct(_this, e_bee_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, "E_bee");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, "E_bee");
if (step == cPhs_COMPLEATE_e) {
_this->mParam0 = (u8)fopAcM_GetParam(_this);
_this->mParam1 = (u8)(fopAcM_GetParam(_this) >> 8);
diff --git a/src/d/actor/d_a_e_bi.cpp b/src/d/actor/d_a_e_bi.cpp
index b5a43fa168..e6eb59aeb3 100644
--- a/src/d/actor/d_a_e_bi.cpp
+++ b/src/d/actor/d_a_e_bi.cpp
@@ -864,11 +864,11 @@ static int useHeapInit(fopAc_ac_c* actor) {
return 1;
}
-static cPhs__Step daE_BI_Create(fopAc_ac_c* actor) {
+static cPhs_Step daE_BI_Create(fopAc_ac_c* actor) {
fopAcM_ct(actor, e_bi_class);
e_bi_class* i_this = (e_bi_class*)actor;
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->phase, "E_BI");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->phase, "E_BI");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_BI PARAM %x\n", fopAcM_GetParam(actor));
diff --git a/src/d/actor/d_a_e_bug.cpp b/src/d/actor/d_a_e_bug.cpp
index 51b0561706..d31174a14e 100644
--- a/src/d/actor/d_a_e_bug.cpp
+++ b/src/d/actor/d_a_e_bug.cpp
@@ -801,12 +801,12 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daE_Bug_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daE_Bug_Create(fopAc_ac_c* a_this) {
e_bug_class* i_this = (e_bug_class*)a_this;
fopAcM_ct(a_this, e_bug_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "E_bug");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "E_bug");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_BUG PARAM %x\n", fopAcM_GetParam(a_this));
i_this->field_0x570 = fopAcM_GetParam(a_this);
diff --git a/src/d/actor/d_a_e_dd.cpp b/src/d/actor/d_a_e_dd.cpp
index 867d6a1335..e0de6cb03f 100644
--- a/src/d/actor/d_a_e_dd.cpp
+++ b/src/d/actor/d_a_e_dd.cpp
@@ -1661,11 +1661,11 @@ static int kabe_initial_pos_set(e_dd_class* i_this) {
return 0;
}
-static cPhs__Step daE_DD_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daE_DD_Create(fopAc_ac_c* a_this) {
e_dd_class* i_this = (e_dd_class*)a_this;
fopAcM_ct(a_this, e_dd_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "E_dd");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "E_dd");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_DD PARAM %x\n", fopAcM_GetParam(a_this));
diff --git a/src/d/actor/d_a_e_df.cpp b/src/d/actor/d_a_e_df.cpp
index a044b3d936..cd1fd1b187 100644
--- a/src/d/actor/d_a_e_df.cpp
+++ b/src/d/actor/d_a_e_df.cpp
@@ -649,7 +649,7 @@ static int daE_DF_Delete(daE_DF_c* i_this) {
int daE_DF_c::Create() {
fopAcM_ct(this, daE_DF_c);
- cPhs__Step rv = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, "E_DF");
+ cPhs_Step rv = dComIfG_resLoad(&mPhaseReq, "E_DF");
if (rv == cPhs_COMPLEATE_e) {
OS_REPORT("E_DF PARAM %x\n", fopAcM_GetParam(this));
mArg0 = (u8)fopAcM_GetParam(this);
diff --git a/src/d/actor/d_a_e_dn.cpp b/src/d/actor/d_a_e_dn.cpp
index 2669c783b0..794458bbe6 100644
--- a/src/d/actor/d_a_e_dn.cpp
+++ b/src/d/actor/d_a_e_dn.cpp
@@ -3358,12 +3358,12 @@ static int useHeapInit(fopAc_ac_c* actor) {
return 1;
}
-static cPhs__Step daE_DN_Create(fopAc_ac_c* actor) {
+static cPhs_Step daE_DN_Create(fopAc_ac_c* actor) {
e_dn_class* i_this = (e_dn_class*)actor;
fopAcM_ct(actor, e_dn_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->phase, "E_dn");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->phase, "E_dn");
if (phase == cPhs_COMPLEATE_e) {
int swBit = (fopAcM_GetParam(actor) & 0xFF000000) >> 24;
if (swBit != 0xFF) {
diff --git a/src/d/actor/d_a_e_dt.cpp b/src/d/actor/d_a_e_dt.cpp
index 76034bb66d..7b52cf0f37 100644
--- a/src/d/actor/d_a_e_dt.cpp
+++ b/src/d/actor/d_a_e_dt.cpp
@@ -2456,18 +2456,18 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return static_cast<daE_DT_c*>(i_this)->CreateHeap();
}
-cPhs__Step daE_DT_c::create() {
+cPhs_Step daE_DT_c::create() {
fopAcM_ct(this, daE_DT_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase[0], "E_DT");
+ cPhs_Step step = dComIfG_resLoad(&mPhase[0], "E_DT");
if (step != cPhs_COMPLEATE_e) {
return step;
}
- step = (cPhs__Step)dComIfG_resLoad(&mPhase[1], "Dalways");
+ step = dComIfG_resLoad(&mPhase[1], "Dalways");
if (step != cPhs_COMPLEATE_e) {
return step;
}
- step = (cPhs__Step)dComIfG_resLoad(&mPhase[2], "E_OT");
+ step = dComIfG_resLoad(&mPhase[2], "E_OT");
if (step != cPhs_COMPLEATE_e) {
return step;
}
@@ -2548,7 +2548,7 @@ cPhs__Step daE_DT_c::create() {
return step;
}
-static cPhs__Step daE_DT_Create(daE_DT_c* i_this) {
+static cPhs_Step daE_DT_Create(daE_DT_c* i_this) {
return i_this->create();
}
diff --git a/src/d/actor/d_a_e_fb.cpp b/src/d/actor/d_a_e_fb.cpp
index bde1aea835..1fbbbc2410 100644
--- a/src/d/actor/d_a_e_fb.cpp
+++ b/src/d/actor/d_a_e_fb.cpp
@@ -907,7 +907,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return a_this->CreateHeap();
}
-cPhs__Step daE_FB_c::create() {
+cPhs_Step daE_FB_c::create() {
fopAcM_ct(this, daE_FB_c);
mType = fopAcM_GetParam(this);
swBit0 = (fopAcM_GetParam(this) & 0xFF00) >> 8;
@@ -916,7 +916,7 @@ cPhs__Step daE_FB_c::create() {
mType = 0;
}
- cPhs__Step phase = (cPhs__Step) dComIfG_resLoad(&mPhaseReq, "E_FL");
+ cPhs_Step phase = dComIfG_resLoad(&mPhaseReq, "E_FL");
if (phase == cPhs_COMPLEATE_e) {
if (mType == 10 || mType == 11) {
fopAcM_OffStatus(this, 0);
diff --git a/src/d/actor/d_a_e_fs.cpp b/src/d/actor/d_a_e_fs.cpp
index 7ab29d6fca..7e57585d0e 100644
--- a/src/d/actor/d_a_e_fs.cpp
+++ b/src/d/actor/d_a_e_fs.cpp
@@ -718,10 +718,10 @@ static int useHeapIe_fst(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daE_Fs_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daE_Fs_Create(fopAc_ac_c* i_this) {
fopAcM_ct(i_this, e_fs_class);
e_fs_class* _this = (e_fs_class*)(i_this);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, "E_FS");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, "E_FS");
if (step == cPhs_COMPLEATE_e) {
_this->field_0x5b4 = fopAcM_GetParam(_this) & 0xff;
diff --git a/src/d/actor/d_a_e_gb.cpp b/src/d/actor/d_a_e_gb.cpp
index d8fba44ccd..e3aff4c735 100644
--- a/src/d/actor/d_a_e_gb.cpp
+++ b/src/d/actor/d_a_e_gb.cpp
@@ -1614,7 +1614,7 @@ static int useHeapInit(fopAc_ac_c* actor) {
return 1;
}
-static cPhs__Step daE_GB_Create(fopAc_ac_c* actor) {
+static cPhs_Step daE_GB_Create(fopAc_ac_c* actor) {
static dCcD_SrcSph head_cc_sph_src = {
{
{0x0, {{AT_TYPE_CSTATUE_SWING, 0x2, 0xd}, {0xd8fbfdff, 0x3}, 0x75}}, // mObj
@@ -1646,7 +1646,7 @@ static cPhs__Step daE_GB_Create(fopAc_ac_c* actor) {
e_gb_class* i_this = (e_gb_class*)actor;
fopAcM_ct(&i_this->actor, e_gb_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->phase, "E_gb");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->phase, "E_gb");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_gb PARAM %x\n", fopAcM_GetParam(actor));
u8 sw_bit = (fopAcM_GetParam(actor) & 0xFF0000) >> 16;
diff --git a/src/d/actor/d_a_e_gm.cpp b/src/d/actor/d_a_e_gm.cpp
index 228779b6ea..eef5561904 100644
--- a/src/d/actor/d_a_e_gm.cpp
+++ b/src/d/actor/d_a_e_gm.cpp
@@ -1699,7 +1699,7 @@ static u16 const l_heapsize[4] = {
0x3120, 0x3120, 0x21E0, 0x2DE0,
};
-cPhs__Step daE_GM_c::create() {
+cPhs_Step daE_GM_c::create() {
fopAcM_ct(this, daE_GM_c);
mType = fopAcM_GetParam(this);
@@ -1727,11 +1727,11 @@ cPhs__Step daE_GM_c::create() {
field_0xa54 = uVar1 * 100.0f;
}
- cPhs__Step phase;
+ cPhs_Step phase;
if (mType == TYPE_GOMA) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_mg");
+ phase = dComIfG_resLoad(&mPhase, "E_mg");
} else {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_gm");
+ phase = dComIfG_resLoad(&mPhase, "E_gm");
}
if (phase == cPhs_COMPLEATE_e) {
diff --git a/src/d/actor/d_a_e_mf.cpp b/src/d/actor/d_a_e_mf.cpp
index 3374b2a919..42ad76cfd7 100644
--- a/src/d/actor/d_a_e_mf.cpp
+++ b/src/d/actor/d_a_e_mf.cpp
@@ -3136,12 +3136,12 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daE_MF_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daE_MF_Create(fopAc_ac_c* a_this) {
e_mf_class* i_this = (e_mf_class*)a_this;
fopAcM_ct(a_this, e_mf_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "E_mf");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "E_mf");
if (phase == cPhs_COMPLEATE_e) {
int swBit = fopAcM_GetParam(a_this) >> 24;
if (swBit != 0xFF) {
diff --git a/src/d/actor/d_a_e_mm_mt.cpp b/src/d/actor/d_a_e_mm_mt.cpp
index c0d2a120ef..92d02f20fc 100644
--- a/src/d/actor/d_a_e_mm_mt.cpp
+++ b/src/d/actor/d_a_e_mm_mt.cpp
@@ -750,7 +750,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
}
static int daE_MM_MT_Create(fopAc_ac_c* i_this) {
- cPhs__Step cVar1;
+ cPhs_Step cVar1;
bool bVar2;
f32 fVar3;
diff --git a/src/d/actor/d_a_e_nest.cpp b/src/d/actor/d_a_e_nest.cpp
index b02feff7bf..9da31111fd 100644
--- a/src/d/actor/d_a_e_nest.cpp
+++ b/src/d/actor/d_a_e_nest.cpp
@@ -959,11 +959,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daE_Nest_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daE_Nest_Create(fopAc_ac_c* i_this) {
fopAcM_ct(i_this, e_nest_class);
e_nest_class* _this = static_cast<e_nest_class*>(i_this);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, "E_nest");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, "E_nest");
if (step == cPhs_COMPLEATE_e) {
_this->mBrokenSwitch = (u8)((u16)_this->current.angle.z >> 8);
_this->shape_angle.z = 0;
diff --git a/src/d/actor/d_a_e_oc.cpp b/src/d/actor/d_a_e_oc.cpp
index 16f67be7e6..2dc8ee4845 100644
--- a/src/d/actor/d_a_e_oc.cpp
+++ b/src/d/actor/d_a_e_oc.cpp
@@ -2669,7 +2669,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return a_this->CreateHeap();
}
-cPhs__Step daE_OC_c::create() {
+cPhs_Step daE_OC_c::create() {
fopAcM_ct(this, daE_OC_c);
field_0x6b4 = fopAcM_GetParam(this) & 0xFF;
if (field_0x6b4 == 0xFF) {
@@ -2706,9 +2706,9 @@ cPhs__Step daE_OC_c::create() {
mName = "E_OC2";
}
- cPhs__Step phase = (cPhs__Step) dComIfG_resLoad(&mPhaseReqs[0], mName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhaseReqs[0], mName);
if (phase == cPhs_COMPLEATE_e) {
- phase = (cPhs__Step) dComIfG_resLoad(&mPhaseReqs[1], "E_ocb");
+ phase = dComIfG_resLoad(&mPhaseReqs[1], "E_ocb");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_OC PARAM %x\n", fopAcM_GetParam(this));
if (!fopAcM_entrySolidHeap(this, useHeapInit, 0x2e40)) {
diff --git a/src/d/actor/d_a_e_oct_bg.cpp b/src/d/actor/d_a_e_oct_bg.cpp
index 22b909882a..a16544f204 100644
--- a/src/d/actor/d_a_e_oct_bg.cpp
+++ b/src/d/actor/d_a_e_oct_bg.cpp
@@ -4,7 +4,7 @@
#include "d/dolzel_rel.h" // IWYU pragma: keep
-#include "dolphin/types.h"
+#include <dolphin/types.h>
#include "d/actor/d_a_e_oct_bg.h"
#include "f_op/f_op_actor_mng.h"
diff --git a/src/d/actor/d_a_e_ot.cpp b/src/d/actor/d_a_e_ot.cpp
index ac7ed366f7..e4849ccad6 100644
--- a/src/d/actor/d_a_e_ot.cpp
+++ b/src/d/actor/d_a_e_ot.cpp
@@ -741,10 +741,10 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return static_cast<daE_OT_c*>(i_this)->CreateHeap();
}
-cPhs__Step daE_OT_c::create() {
+cPhs_Step daE_OT_c::create() {
fopAcM_ct(this, daE_OT_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_OT");
+ cPhs_Step step = dComIfG_resLoad(&mPhase, "E_OT");
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, useHeapInit, 0x1f40)) {
return cPhs_ERROR_e;
@@ -825,7 +825,7 @@ cPhs__Step daE_OT_c::create() {
return step;
}
-static cPhs__Step daE_OT_Create(daE_OT_c* i_this) {
+static cPhs_Step daE_OT_Create(daE_OT_c* i_this) {
return i_this->create();
}
diff --git a/src/d/actor/d_a_e_pm.cpp b/src/d/actor/d_a_e_pm.cpp
index b9c75e830a..56041078ce 100644
--- a/src/d/actor/d_a_e_pm.cpp
+++ b/src/d/actor/d_a_e_pm.cpp
@@ -2794,9 +2794,9 @@ void daE_PM_c::SkipChk() {
}
}
-cPhs__Step daE_PM_c::Create() {
+cPhs_Step daE_PM_c::Create() {
fopAcM_ct(this, daE_PM_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_PM");
+ cPhs_Step step = dComIfG_resLoad(&mPhase, "E_PM");
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, useHeapInit, 0x45E0)) {
@@ -2855,7 +2855,7 @@ cPhs__Step daE_PM_c::Create() {
return step;
}
-static cPhs__Step daE_PM_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daE_PM_Create(fopAc_ac_c* i_this) {
return static_cast<daE_PM_c*>(i_this)->Create();
}
diff --git a/src/d/actor/d_a_e_rd.cpp b/src/d/actor/d_a_e_rd.cpp
index 1efb1060bd..98e8ce700a 100644
--- a/src/d/actor/d_a_e_rd.cpp
+++ b/src/d/actor/d_a_e_rd.cpp
@@ -7274,7 +7274,7 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daE_RD_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daE_RD_Create(fopAc_ac_c* a_this) {
e_rd_class* i_this = (e_rd_class*)a_this;
fopAcM_ct(&i_this->actor, e_rd_class);
@@ -7302,7 +7302,7 @@ static cPhs__Step daE_RD_Create(fopAc_ac_c* a_this) {
i_this->mResName = "E_RD";
}
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, i_this->mResName);
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, i_this->mResName);
if (phase == cPhs_COMPLEATE_e) {
if (strcmp(dComIfGp_getStartStageName(), "F_SP124") == 0) {
// Gerudo Desert
diff --git a/src/d/actor/d_a_e_rdy.cpp b/src/d/actor/d_a_e_rdy.cpp
index d8d86885dc..c12cfef2d9 100644
--- a/src/d/actor/d_a_e_rdy.cpp
+++ b/src/d/actor/d_a_e_rdy.cpp
@@ -4869,7 +4869,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daE_RDY_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daE_RDY_Create(fopAc_ac_c* i_this) {
e_rdy_class* _this = (e_rdy_class*)i_this;
fopAcM_ct(&_this->actor, e_rdy_class);
@@ -4881,7 +4881,7 @@ static cPhs__Step daE_RDY_Create(fopAc_ac_c* i_this) {
}
_this->mpArcName = "E_rdy";
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, _this->mpArcName);
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, _this->mpArcName);
if (step == cPhs_COMPLEATE_e) {
OS_REPORT("E_RDY PARAM %x\n", fopAcM_GetParam(i_this));
if (_this->field_0x5b8 != 3) {
diff --git a/src/d/actor/d_a_e_sb.cpp b/src/d/actor/d_a_e_sb.cpp
index 1c20108a0e..d876993191 100644
--- a/src/d/actor/d_a_e_sb.cpp
+++ b/src/d/actor/d_a_e_sb.cpp
@@ -1094,9 +1094,9 @@ static int daE_SB_Delete(daE_SB_c* i_this) {
return i_this->Delete();
}
-cPhs__Step daE_SB_c::Create() {
+cPhs_Step daE_SB_c::Create() {
fopAcM_ct(this, daE_SB_c);
- cPhs__Step phase = (cPhs__Step) dComIfG_resLoad(&mPhaseReq, "E_SB");
+ cPhs_Step phase = dComIfG_resLoad(&mPhaseReq, "E_SB");
if (phase == cPhs_COMPLEATE_e) {
field_0x61a = fopAcM_GetParam(this);
if (field_0x61a != 0xFF && dComIfGs_isSwitch(field_0x61a, fopAcM_GetRoomNo(this))) {
diff --git a/src/d/actor/d_a_e_sf.cpp b/src/d/actor/d_a_e_sf.cpp
index 45bf84f63c..55414997c4 100644
--- a/src/d/actor/d_a_e_sf.cpp
+++ b/src/d/actor/d_a_e_sf.cpp
@@ -1739,11 +1739,11 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daE_SF_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daE_SF_Create(fopAc_ac_c* a_this) {
e_sf_class* i_this = (e_sf_class*)a_this;
fopAcM_ct(a_this, e_sf_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "E_sf");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "E_sf");
if (phase == cPhs_COMPLEATE_e) {
i_this->mSwBit = a_this->current.angle.z & 0xFF;
if (i_this->mSwBit != 0xFF) {
diff --git a/src/d/actor/d_a_e_sg.cpp b/src/d/actor/d_a_e_sg.cpp
index 6e24f68b3c..36abce70fd 100644
--- a/src/d/actor/d_a_e_sg.cpp
+++ b/src/d/actor/d_a_e_sg.cpp
@@ -1163,7 +1163,7 @@ static int daE_SG_Create(fopAc_ac_c* i_this) {
e_sg_class* a_this = static_cast<e_sg_class*>(i_this);
fopAcM_ct(i_this, e_sg_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&a_this->mPhaseReq, "E_sg");
+ cPhs_Step step = dComIfG_resLoad(&a_this->mPhaseReq, "E_sg");
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(i_this, useHeapInit, 4000)) {
diff --git a/src/d/actor/d_a_e_sm.cpp b/src/d/actor/d_a_e_sm.cpp
index a00d3a2f62..9814a6021a 100644
--- a/src/d/actor/d_a_e_sm.cpp
+++ b/src/d/actor/d_a_e_sm.cpp
@@ -1895,10 +1895,10 @@ void daE_SM_c::initCoSph() {
mCoCore.OnTgNoHitMark();
}
-cPhs__Step daE_SM_c::Create() {
+cPhs_Step daE_SM_c::Create() {
fopAcM_ct(this, daE_SM_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_SM");
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, "E_SM");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_SM PARAM %x\n", fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_e_st.cpp b/src/d/actor/d_a_e_st.cpp
index 746f1a208c..e5b148b07a 100644
--- a/src/d/actor/d_a_e_st.cpp
+++ b/src/d/actor/d_a_e_st.cpp
@@ -3005,11 +3005,11 @@ static BOOL roof_initial_pos_set(e_st_class* i_this) {
return FALSE;
}
-static cPhs__Step daE_ST_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daE_ST_Create(fopAc_ac_c* a_this) {
e_st_class* i_this = (e_st_class*)a_this;
fopAcM_ct(&i_this->actor, e_st_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "E_st");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "E_st");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_st PARAM %x\n", fopAcM_GetParam(a_this));
i_this->arg0 = fopAcM_GetParam(a_this) & 0xF;
diff --git a/src/d/actor/d_a_e_sw.cpp b/src/d/actor/d_a_e_sw.cpp
index 0e80cb7ec6..62b0ada490 100644
--- a/src/d/actor/d_a_e_sw.cpp
+++ b/src/d/actor/d_a_e_sw.cpp
@@ -1638,7 +1638,7 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return i_this->CreateHeap();
}
-cPhs__Step daE_SW_c::create() {
+cPhs_Step daE_SW_c::create() {
fopAcM_ct(this, daE_SW_c);
field_0x68c = fopAcM_GetParam(this) & 15;
@@ -1682,7 +1682,7 @@ cPhs__Step daE_SW_c::create() {
field_0x696 = 0xFF;
}
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_SW");
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, "E_SW");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_SW PARAM %x %d %d\n", fopAcM_GetParam(this), field_0x696, fopAcM_GetID(this));
shape_angle.x = 0;
diff --git a/src/d/actor/d_a_e_tk.cpp b/src/d/actor/d_a_e_tk.cpp
index 96aae1b85f..dbe22e40f4 100644
--- a/src/d/actor/d_a_e_tk.cpp
+++ b/src/d/actor/d_a_e_tk.cpp
@@ -736,7 +736,7 @@ static int daE_TK_Create(fopAc_ac_c* actor) {
e_tk_class* i_this = (e_tk_class*)actor;
fopAcM_ct(i_this, e_tk_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhaseReq, "E_tk");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhaseReq, "E_tk");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_tk PARAM %x\n", fopAcM_GetParam(actor));
i_this->mArg0 = (fopAcM_GetParam(actor) & 0xFF) >> 0;
diff --git a/src/d/actor/d_a_e_tk2.cpp b/src/d/actor/d_a_e_tk2.cpp
index 4215e02dab..4d2b62d295 100644
--- a/src/d/actor/d_a_e_tk2.cpp
+++ b/src/d/actor/d_a_e_tk2.cpp
@@ -548,7 +548,7 @@ static int daE_TK2_Create(fopAc_ac_c* actor) {
e_tk2_class* i_this = (e_tk2_class*)actor;
fopAcM_ct(i_this, e_tk2_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhaseReq, "E_tk2");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhaseReq, "E_tk2");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_tk2 PARAM %x\n", fopAcM_GetParam(actor));
i_this->mArg0 = (fopAcM_GetParam(actor) & 0xFF) >> 0;
diff --git a/src/d/actor/d_a_e_tk_ball.cpp b/src/d/actor/d_a_e_tk_ball.cpp
index c1ca119e2e..529eec4a89 100644
--- a/src/d/actor/d_a_e_tk_ball.cpp
+++ b/src/d/actor/d_a_e_tk_ball.cpp
@@ -396,13 +396,13 @@ static int daE_TK_BALL_Create(fopAc_ac_c* i_this) {
actor->mType = TYPE_TK_BALL_WATER;
}
- cPhs__Step phase;
+ cPhs_Step phase;
u32 size;
if (actor->mType == TYPE_TK_BALL_WATER) {
- phase = (cPhs__Step)dComIfG_resLoad(&actor->mPhaseReq, "E_tk");
+ phase = dComIfG_resLoad(&actor->mPhaseReq, "E_tk");
size = 0x820;
} else {
- phase = (cPhs__Step)dComIfG_resLoad(&actor->mPhaseReq, "E_tk2");
+ phase = dComIfG_resLoad(&actor->mPhaseReq, "E_tk2");
size = 0xEE0;
}
diff --git a/src/d/actor/d_a_e_yc.cpp b/src/d/actor/d_a_e_yc.cpp
index 7dc53234c4..f6b975f4e9 100644
--- a/src/d/actor/d_a_e_yc.cpp
+++ b/src/d/actor/d_a_e_yc.cpp
@@ -752,11 +752,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daE_YC_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daE_YC_Create(fopAc_ac_c* i_this) {
e_yc_class* _this = static_cast<e_yc_class*>(i_this);
fopAcM_ct(i_this, e_yc_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, "E_yc");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, "E_yc");
if (step == cPhs_COMPLEATE_e) {
_this->mParam = (u8)fopAcM_GetParam(_this);
diff --git a/src/d/actor/d_a_e_yg.cpp b/src/d/actor/d_a_e_yg.cpp
index 0b0bd774d8..f0a3059f62 100644
--- a/src/d/actor/d_a_e_yg.cpp
+++ b/src/d/actor/d_a_e_yg.cpp
@@ -1332,12 +1332,12 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daE_YG_Create(fopAc_ac_c* actor) {
+static cPhs_Step daE_YG_Create(fopAc_ac_c* actor) {
e_yg_class* i_this = (e_yg_class*)actor;
fopAcM_ct(&i_this->actor, e_yg_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "E_YG");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "E_YG");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_YG PARAM %x\n", fopAcM_GetParam(actor));
diff --git a/src/d/actor/d_a_e_ymb.cpp b/src/d/actor/d_a_e_ymb.cpp
index 483139b0d6..c1d39eccec 100644
--- a/src/d/actor/d_a_e_ymb.cpp
+++ b/src/d/actor/d_a_e_ymb.cpp
@@ -3156,7 +3156,7 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return i_this->CreateHeap();
}
-cPhs__Step daE_YMB_c::create() {
+cPhs_Step daE_YMB_c::create() {
fopAcM_ct(this, daE_YMB_c);
mSwitchBit = fopAcM_GetParam(this);
@@ -3168,7 +3168,7 @@ cPhs__Step daE_YMB_c::create() {
}
}
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_YB");
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, "E_YB");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_YMB PARAM %x\n", fopAcM_GetParam(this));
if (!fopAcM_entrySolidHeap(this, useHeapInit, 0x5200)) {
diff --git a/src/d/actor/d_a_e_zh.cpp b/src/d/actor/d_a_e_zh.cpp
index 04385996af..4cae4a1adc 100644
--- a/src/d/actor/d_a_e_zh.cpp
+++ b/src/d/actor/d_a_e_zh.cpp
@@ -2165,10 +2165,10 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return i_this->CreateHeap();
}
-cPhs__Step daE_ZH_c::create() {
+cPhs_Step daE_ZH_c::create() {
fopAcM_ct(this, daE_ZH_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_ZH");
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, "E_ZH");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_ZH PARAM %x\n", fopAcM_GetParam(this));
arg0 = fopAcM_GetParam(this);
diff --git a/src/d/actor/d_a_e_zm.cpp b/src/d/actor/d_a_e_zm.cpp
index f32c8c2fe0..e8cc184b1a 100644
--- a/src/d/actor/d_a_e_zm.cpp
+++ b/src/d/actor/d_a_e_zm.cpp
@@ -904,10 +904,10 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return static_cast<daE_ZM_c*>(a_this)->CreateHeap();
}
-cPhs__Step daE_ZM_c::create() {
+cPhs_Step daE_ZM_c::create() {
fopAcM_ct(this, daE_ZM_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "E_ZM");
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, "E_ZM");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("E_ZM PARAM %x\n", fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_mg_fish.cpp b/src/d/actor/d_a_mg_fish.cpp
index 2809c7ce7f..16ed251d30 100644
--- a/src/d/actor/d_a_mg_fish.cpp
+++ b/src/d/actor/d_a_mg_fish.cpp
@@ -3854,8 +3854,8 @@ static int daMg_Fish_Create(fopAc_ac_c* i_this) {
lit_1008 = 1;
#endif
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&a_this->mPhaseReq, a_this->mResName);
- cPhs__Step retval = phase;
+ cPhs_Step phase = dComIfG_resLoad(&a_this->mPhaseReq, a_this->mResName);
+ cPhs_Step retval = phase;
if (phase == cPhs_COMPLEATE_e) {
s32 params_0 = fopAcM_GetParam(i_this) >> 24;
diff --git a/src/d/actor/d_a_midna.cpp b/src/d/actor/d_a_midna.cpp
index 250f7e2032..afaccaf13b 100644
--- a/src/d/actor/d_a_midna.cpp
+++ b/src/d/actor/d_a_midna.cpp
@@ -541,9 +541,9 @@ daMidna_hio_c::daMidna_hio_c() {
}
#endif
-cPhs__Step daMidna_c::create() {
+cPhs_Step daMidna_c::create() {
fopAcM_ct(this, daMidna_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhase, l_arcName);
if (step == cPhs_COMPLEATE_e) {
if (dStage_roomControl_c::getDemoArcName()[0] != '\0' &&
@@ -663,7 +663,7 @@ cPhs__Step daMidna_c::create() {
return step;
}
-static cPhs__Step daMidna_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daMidna_Create(fopAc_ac_c* i_this) {
daMidna_c* a_this = (daMidna_c*)i_this;
fopAcM_RegisterCreateID(i_this, "MIDNA");
return a_this->create();
diff --git a/src/d/actor/d_a_mirror.cpp b/src/d/actor/d_a_mirror.cpp
index a15d2fd2ce..35cd34d8cf 100644
--- a/src/d/actor/d_a_mirror.cpp
+++ b/src/d/actor/d_a_mirror.cpp
@@ -10,8 +10,8 @@
#include "JSystem/J3DGraphBase/J3DMaterial.h"
#include "d/actor/d_a_player.h"
#include "d/d_com_inf_game.h"
-#include "dolphin/gf/GFGeometry.h"
-#include "dolphin/gf/GFLight.h"
+#include <dolphin/gf/GFGeometry.h>
+#include <dolphin/gf/GFLight.h>
#include "m_Do/m_Do_lib.h"
static BOOL daMirror_c_createHeap(fopAc_ac_c* i_this) {
diff --git a/src/d/actor/d_a_myna.cpp b/src/d/actor/d_a_myna.cpp
index 3f153bcad4..6e28336fd2 100644
--- a/src/d/actor/d_a_myna.cpp
+++ b/src/d/actor/d_a_myna.cpp
@@ -333,7 +333,7 @@ daMyna_c::BaseMotionFunc daMyna_c::mBaseMotionTBL[] = {
int daMyna_c::create() {
fopAcM_ct(this, daMyna_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "Npc_myna");
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, "Npc_myna");
if (phase != cPhs_COMPLEATE_e) {
return phase;
}
diff --git a/src/d/actor/d_a_npc_aru.cpp b/src/d/actor/d_a_npc_aru.cpp
index d90ce03d80..9ad1f1029a 100644
--- a/src/d/actor/d_a_npc_aru.cpp
+++ b/src/d/actor/d_a_npc_aru.cpp
@@ -382,7 +382,7 @@ daNpc_Aru_c::~daNpc_Aru_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_Aru_c::create() {
+cPhs_Step daNpc_Aru_c::create() {
daNpcT_ct(this, daNpc_Aru_c, l_faceMotionAnmData, l_motionAnmData,
l_faceMotionSequenceData, 4, l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -390,7 +390,7 @@ cPhs__Step daNpc_Aru_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d, PathID:%02x<%08x> ", fopAcM_getProcNameString(this),
mType, mFlowNodeNo, getPathID(), fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_npc_ash.cpp b/src/d/actor/d_a_npc_ash.cpp
index 6cbd2c6a46..5f285ace08 100644
--- a/src/d/actor/d_a_npc_ash.cpp
+++ b/src/d/actor/d_a_npc_ash.cpp
@@ -218,8 +218,8 @@ daNpcAsh_c::~daNpcAsh_c() {
}
}
-cPhs__Step daNpcAsh_c::Create() {
- cPhs__Step step;
+cPhs_Step daNpcAsh_c::Create() {
+ cPhs_Step step;
fopAcM_ct(this, daNpcAsh_c);
@@ -249,7 +249,7 @@ cPhs__Step daNpcAsh_c::Create() {
u32 i = 0;
int arcIndex;
while (arcIndex = l_loadRes_list[mType][i], arcIndex >= 0) {
- step = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_arcNames[arcIndex]);
+ step = dComIfG_resLoad(&mPhase[i], l_arcNames[arcIndex]);
if (step != cPhs_COMPLEATE_e) {
return step;
}
@@ -1195,7 +1195,7 @@ BOOL daNpcAsh_c::EvCut_WiretapEntrant(int i_staffID) {
return true;
}
-static cPhs__Step daNpcAsh_Create(void* i_this) {
+static cPhs_Step daNpcAsh_Create(void* i_this) {
return static_cast<daNpcAsh_c*>(i_this)->Create();
}
diff --git a/src/d/actor/d_a_npc_ashB.cpp b/src/d/actor/d_a_npc_ashB.cpp
index 4ddaba8dbf..237c93aa58 100644
--- a/src/d/actor/d_a_npc_ashB.cpp
+++ b/src/d/actor/d_a_npc_ashB.cpp
@@ -115,8 +115,8 @@ daNpcAshB_c::~daNpcAshB_c() {
#endif
}
-cPhs__Step daNpcAshB_c::Create() {
- cPhs__Step step;
+cPhs_Step daNpcAshB_c::Create() {
+ cPhs_Step step;
fopAcM_ct(this, daNpcAshB_c);
@@ -132,7 +132,7 @@ cPhs__Step daNpcAshB_c::Create() {
step = cPhs_ERROR_e;
for (int i = 0; i < 1; i++) {
- step = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_arcNames[i]);
+ step = dComIfG_resLoad(&mPhase[i], l_arcNames[i]);
if (step != cPhs_COMPLEATE_e) {
return step;
}
@@ -1066,7 +1066,7 @@ BOOL daNpcAshB_c::EvCut_Appear(int i_staffID) {
return FALSE;
}
-static cPhs__Step daNpcAshB_Create(void* i_this) {
+static cPhs_Step daNpcAshB_Create(void* i_this) {
return static_cast<daNpcAshB_c*>(i_this)->Create();
}
diff --git a/src/d/actor/d_a_npc_bans.cpp b/src/d/actor/d_a_npc_bans.cpp
index 4a2418ce05..8bb1ec6260 100644
--- a/src/d/actor/d_a_npc_bans.cpp
+++ b/src/d/actor/d_a_npc_bans.cpp
@@ -372,7 +372,7 @@ daNpc_Bans_c::~daNpc_Bans_c() {
static NPC_BANS_HIO_CLASS l_HIO;
-cPhs__Step daNpc_Bans_c::create() {
+cPhs_Step daNpc_Bans_c::create() {
daNpcT_ct(this, daNpc_Bans_c, l_faceMotionAnmData, l_motionAnmData,
l_faceMotionSequenceData, 4, l_motionSequenceData, 4,
l_evtList, l_resNameList);
@@ -380,7 +380,7 @@ cPhs__Step daNpc_Bans_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = dKy_darkworld_check();
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d, PathID:%02x, MaxItem:%d, group:%d<%08x> ", fopAcM_getProcNameString(this), mType, mFlowNodeNo,
getPathID(), getMaxNumItem(), getGroupId(), fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_npc_besu.cpp b/src/d/actor/d_a_npc_besu.cpp
index 5bbdf7f720..366dcacb2e 100644
--- a/src/d/actor/d_a_npc_besu.cpp
+++ b/src/d/actor/d_a_npc_besu.cpp
@@ -653,7 +653,7 @@ int daNpc_Besu_c::create() {
mTwilight = false;
}
- cPhs__Step rv = (cPhs__Step) loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step rv = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (rv == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d, PathID:%02x, BitSW:%02x<%08x> ",
fopAcM_getProcNameString(this), mType, mFlowNodeNo, getPathID(),
diff --git a/src/d/actor/d_a_npc_bouS.cpp b/src/d/actor/d_a_npc_bouS.cpp
index 64a34061ea..2eb763f042 100644
--- a/src/d/actor/d_a_npc_bouS.cpp
+++ b/src/d/actor/d_a_npc_bouS.cpp
@@ -330,14 +330,14 @@ daNpcBouS_HIOParam const daNpcBouS_Param_c::m = {
0,
};
-cPhs__Step daNpcBouS_c::Create() {
+cPhs_Step daNpcBouS_c::Create() {
fopAcM_ct(this, daNpcBouS_c);
mMsgNo = getMessageNo();
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; i < 2; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
+ phase = dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
diff --git a/src/d/actor/d_a_npc_chat.cpp b/src/d/actor/d_a_npc_chat.cpp
index f366e69161..2099c572f1 100644
--- a/src/d/actor/d_a_npc_chat.cpp
+++ b/src/d/actor/d_a_npc_chat.cpp
@@ -2494,38 +2494,38 @@ bool daNpcChat_c::isM_() {
return a_jntNum == JntM_NUM_e;
}
-cPhs__Step daNpcChat_c::loadResrc(int idx, int param_2) {
- cPhs__Step rv = cPhs_COMPLEATE_e;
+cPhs_Step daNpcChat_c::loadResrc(int idx, int param_2) {
+ cPhs_Step rv = cPhs_COMPLEATE_e;
if (mTwilight) {
- rv = (cPhs__Step)dComIfG_resLoad(&mPhase1, l_resNameTbl[idx][1]);
+ rv = dComIfG_resLoad(&mPhase1, l_resNameTbl[idx][1]);
if (rv != cPhs_COMPLEATE_e) {
return rv;
}
} else {
- rv = (cPhs__Step)dComIfG_resLoad(&mPhase1, l_resNameTbl[idx][0]);
+ rv = dComIfG_resLoad(&mPhase1, l_resNameTbl[idx][0]);
if (rv != cPhs_COMPLEATE_e) {
return rv;
}
}
- rv = (cPhs__Step)dComIfG_resLoad(&mPhase2, l_resNameTbl[idx][2]);
+ rv = dComIfG_resLoad(&mPhase2, l_resNameTbl[idx][2]);
if (rv != cPhs_COMPLEATE_e) {
return rv;
}
if (param_2 != 0 || field_0xe51 == 1) {
- rv = (cPhs__Step)dComIfG_resLoad(&mPhase3, l_resNameTbl[idx][3]);
+ rv = dComIfG_resLoad(&mPhase3, l_resNameTbl[idx][3]);
if (rv != cPhs_COMPLEATE_e) {
return rv;
}
if (mTwilight) {
- rv = (cPhs__Step)dComIfG_resLoad(&mPhase4, l_resNameTbl[idx][5]);
+ rv = dComIfG_resLoad(&mPhase4, l_resNameTbl[idx][5]);
if (rv != cPhs_COMPLEATE_e) {
return rv;
}
} else {
- rv = (cPhs__Step)dComIfG_resLoad(&mPhase4, l_resNameTbl[idx][4]);
+ rv = dComIfG_resLoad(&mPhase4, l_resNameTbl[idx][4]);
if (rv != cPhs_COMPLEATE_e) {
return rv;
}
@@ -2675,7 +2675,7 @@ inline f32 CylH(int type) {
return (f32)(type < 16 ? a_prmTbl_M[type].field_0x30 : a_prmTbl_W[type - 16].field_0x30);
}
-cPhs__Step daNpcChat_c::Create() {
+cPhs_Step daNpcChat_c::Create() {
fopAcM_ct(this, daNpcChat_c);
mTwilight = dKy_darkworld_check();
@@ -2701,7 +2701,7 @@ cPhs__Step daNpcChat_c::Create() {
mMsgNo = getMessageNo();
- cPhs__Step phase = loadResrc(mType, mObjNum);
+ cPhs_Step phase = loadResrc(mType, mObjNum);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x800022E0)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_chin.cpp b/src/d/actor/d_a_npc_chin.cpp
index 5986711619..500ff60eaa 100644
--- a/src/d/actor/d_a_npc_chin.cpp
+++ b/src/d/actor/d_a_npc_chin.cpp
@@ -243,7 +243,7 @@ int daNpcChin_c::Create() {
int i = 0;
while (*idx >= 0) {
OS_REPORT("--- arc : %s\n", l_arcNames[*idx]);
- phase_state = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[*idx]);
+ phase_state = dComIfG_resLoad(&mPhases[i], l_arcNames[*idx]);
if (phase_state != cPhs_COMPLEATE_e) {
return phase_state;
}
diff --git a/src/d/actor/d_a_npc_coach.cpp b/src/d/actor/d_a_npc_coach.cpp
index aadb0e25f7..759f9b82be 100644
--- a/src/d/actor/d_a_npc_coach.cpp
+++ b/src/d/actor/d_a_npc_coach.cpp
@@ -2009,10 +2009,10 @@ static int daNpcCoach_Create(fopAc_ac_c* a_this) {
return i_this->create();
}
-cPhs__Step daNpcCoach_c::create() {
+cPhs_Step daNpcCoach_c::create() {
fopAcM_ct(this, daNpcCoach_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createSolidHeap, 0x7D60)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_df.cpp b/src/d/actor/d_a_npc_df.cpp
index 811cc82019..daba4eb8df 100644
--- a/src/d/actor/d_a_npc_df.cpp
+++ b/src/d/actor/d_a_npc_df.cpp
@@ -359,11 +359,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daNpc_Df_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daNpc_Df_Create(fopAc_ac_c* i_this) {
fopAcM_ct(i_this, npc_df_class);
npc_df_class* actor = (npc_df_class*)i_this;
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&actor->mPhase, "Npc_df");
+ cPhs_Step phase = dComIfG_resLoad(&actor->mPhase, "Npc_df");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("NPC_DF PARAM %x\n", fopAcM_GetParam(i_this));
actor->field_0x570 = fopAcM_GetParam(i_this);
diff --git a/src/d/actor/d_a_npc_doorboy.cpp b/src/d/actor/d_a_npc_doorboy.cpp
index 8bebf0dfb4..edd785c781 100644
--- a/src/d/actor/d_a_npc_doorboy.cpp
+++ b/src/d/actor/d_a_npc_doorboy.cpp
@@ -185,14 +185,14 @@ daNpcDoorBoy_c::~daNpcDoorBoy_c() {
#endif
}
-cPhs__Step daNpcDoorBoy_c::Create() {
+cPhs_Step daNpcDoorBoy_c::Create() {
fopAcM_ct(this, daNpcDoorBoy_c);
mMessageNo = (s16)getMessageNo();
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; i < 2; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
+ phase = dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
diff --git a/src/d/actor/d_a_npc_du.cpp b/src/d/actor/d_a_npc_du.cpp
index 39e7dd923d..9443a720ed 100644
--- a/src/d/actor/d_a_npc_du.cpp
+++ b/src/d/actor/d_a_npc_du.cpp
@@ -632,11 +632,11 @@ static int useHeapInit(fopAc_ac_c* actor) {
return 1;
}
-static cPhs__Step daNpc_Du_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daNpc_Du_Create(fopAc_ac_c* a_this) {
npc_du_class* i_this = (npc_du_class*)a_this;
fopAcM_ct(a_this, npc_du_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "Npc_Du");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "Npc_Du");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("NPC_DU PARAM %x\n", fopAcM_GetParam(a_this));
i_this->arg0 = fopAcM_GetParam(a_this);
diff --git a/src/d/actor/d_a_npc_fairy.cpp b/src/d/actor/d_a_npc_fairy.cpp
index b5b90495d8..c1187ab9e5 100644
--- a/src/d/actor/d_a_npc_fairy.cpp
+++ b/src/d/actor/d_a_npc_fairy.cpp
@@ -518,7 +518,7 @@ daNpc_Fairy_c::~daNpc_Fairy_c() {
static NPC_FAIRY_HIO_CLASS l_HIO;
-cPhs__Step daNpc_Fairy_c::Create() {
+cPhs_Step daNpc_Fairy_c::Create() {
daNpcT_ct(this, daNpc_Fairy_c, l_faceMotionAnmData, l_motionAnmData,
l_faceMotionSequenceData, 4, l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -526,7 +526,7 @@ cPhs__Step daNpc_Fairy_c::Create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x8000)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_fguard.cpp b/src/d/actor/d_a_npc_fguard.cpp
index 69a087156a..228cf38b7d 100644
--- a/src/d/actor/d_a_npc_fguard.cpp
+++ b/src/d/actor/d_a_npc_fguard.cpp
@@ -35,14 +35,14 @@ static int daNpcFgd_Create(void* a_this) {
return static_cast<daNpcFgd_c*>(a_this)->create();
}
-cPhs__Step daNpcFgd_c::create() {
+cPhs_Step daNpcFgd_c::create() {
fopAcM_ct(this, daNpcFgd_c);
mIsDarkWorld = dKy_darkworld_check();
m_type = getType();
mObjNum = getObjNum();
- cPhs__Step phase = (cPhs__Step)loadResrc(m_type, mObjNum);
+ cPhs_Step phase = loadResrc(m_type, mObjNum);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x1910)) {
OS_REPORT("隊列兵士アクター生成失敗しました!\n"); // Failed to generate the squad soldier actor!
diff --git a/src/d/actor/d_a_npc_grc.cpp b/src/d/actor/d_a_npc_grc.cpp
index c226de23cf..39637c0317 100644
--- a/src/d/actor/d_a_npc_grc.cpp
+++ b/src/d/actor/d_a_npc_grc.cpp
@@ -301,7 +301,7 @@ daNpc_grC_c::~daNpc_grC_c() {
#endif
}
-cPhs__Step daNpc_grC_c::create() {
+cPhs_Step daNpc_grC_c::create() {
fopAcM_ct(this, daNpc_grC_c);
mTwilight = dKy_darkworld_check();
@@ -320,7 +320,7 @@ cPhs__Step daNpc_grC_c::create() {
int res_count = 0;
int i = 0;
for (; l_loadRes_list[mType][i] >= 0; i++) {
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
+ cPhs_Step step = dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
if (step == cPhs_ERROR_e || step == cPhs_UNK3_e) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_grm.cpp b/src/d/actor/d_a_npc_grm.cpp
index c7b9ab1877..96e22082a0 100644
--- a/src/d/actor/d_a_npc_grm.cpp
+++ b/src/d/actor/d_a_npc_grm.cpp
@@ -169,7 +169,7 @@ daNpc_grM_c::~daNpc_grM_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_grM_c::create() {
+cPhs_Step daNpc_grM_c::create() {
daNpcT_ct(this, daNpc_grM_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData, 4,
l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -177,7 +177,7 @@ cPhs__Step daNpc_grM_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x3730)) {
return cPhs_ERROR_e;
@@ -791,7 +791,7 @@ int daNpc_grM_c::shop(void* param_0) {
return 0;
}
-static cPhs__Step daNpc_grM_Create(void* param_0) {
+static cPhs_Step daNpc_grM_Create(void* param_0) {
return static_cast<daNpc_grM_c*>(param_0)->create();
}
diff --git a/src/d/actor/d_a_npc_grmc.cpp b/src/d/actor/d_a_npc_grmc.cpp
index 15904ef3c2..d88ff0fa3d 100644
--- a/src/d/actor/d_a_npc_grmc.cpp
+++ b/src/d/actor/d_a_npc_grmc.cpp
@@ -230,7 +230,7 @@ void daNpc_grMC_HIO_c::genMessage(JORMContext* ctx) {
}
#endif
-cPhs__Step daNpc_grMC_c::create() {
+cPhs_Step daNpc_grMC_c::create() {
daNpcT_ct(this, daNpc_grMC_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData, 4,
l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -238,7 +238,7 @@ cPhs__Step daNpc_grMC_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x35D0)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_gro.cpp b/src/d/actor/d_a_npc_gro.cpp
index 1ac21f7cc5..564d0b1d8b 100644
--- a/src/d/actor/d_a_npc_gro.cpp
+++ b/src/d/actor/d_a_npc_gro.cpp
@@ -390,7 +390,7 @@ daNpc_grO_HIOParam const daNpc_grO_Param_c::m = {
false,
};
-cPhs__Step daNpc_grO_c::create() {
+cPhs_Step daNpc_grO_c::create() {
fopAcM_ct(this, daNpc_grO_c);
mType = getTypeFromParam();
@@ -405,11 +405,11 @@ cPhs__Step daNpc_grO_c::create() {
return cPhs_ERROR_e;
}
- cPhs__Step phase;
+ cPhs_Step phase;
int res = 0;
int i = 0;
for (; l_loadRes_list[mType][i] >= 0; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
+ phase = dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
diff --git a/src/d/actor/d_a_npc_grr.cpp b/src/d/actor/d_a_npc_grr.cpp
index 93271a80cc..a01093ccb6 100644
--- a/src/d/actor/d_a_npc_grr.cpp
+++ b/src/d/actor/d_a_npc_grr.cpp
@@ -258,7 +258,7 @@ daNpc_grR_c::~daNpc_grR_c() {
#endif
}
-cPhs__Step daNpc_grR_c::create() {
+cPhs_Step daNpc_grR_c::create() {
fopAcM_ct(this, daNpc_grR_c);
mType = getTypeFromParam();
@@ -276,7 +276,7 @@ cPhs__Step daNpc_grR_c::create() {
int res_count = 0;
int i = 0;
for (; l_loadRes_list[mType][i] >= 0; i++) {
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
+ cPhs_Step phase = dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
diff --git a/src/d/actor/d_a_npc_grz.cpp b/src/d/actor/d_a_npc_grz.cpp
index a5140c604e..39f3b84bd1 100644
--- a/src/d/actor/d_a_npc_grz.cpp
+++ b/src/d/actor/d_a_npc_grz.cpp
@@ -448,7 +448,7 @@ daNpc_Grz_HIOParam const daNpc_Grz_Param_c::m = {
500.0f,
};
-cPhs__Step daNpc_Grz_c::create() {
+cPhs_Step daNpc_Grz_c::create() {
fopAcM_ct(this, daNpc_Grz_c);
mType = getTypeFromParam();
@@ -467,7 +467,7 @@ cPhs__Step daNpc_Grz_c::create() {
int iVar1 = 0;
int i = 0;
for (; l_loadRes_list[mType][i] >= 0; i++) {
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
+ cPhs_Step phase = dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
diff --git a/src/d/actor/d_a_npc_gwolf.cpp b/src/d/actor/d_a_npc_gwolf.cpp
index 8859b84ad4..75a68afda6 100644
--- a/src/d/actor/d_a_npc_gwolf.cpp
+++ b/src/d/actor/d_a_npc_gwolf.cpp
@@ -283,7 +283,7 @@ daNpc_GWolf_c::~daNpc_GWolf_c() {
#endif
}
-cPhs__Step daNpc_GWolf_c::create() {
+cPhs_Step daNpc_GWolf_c::create() {
fopAcM_ct(this, daNpc_GWolf_c);
mType = getTypeFromParam();
@@ -307,7 +307,7 @@ cPhs__Step daNpc_GWolf_c::create() {
int iVar1 = 0;
int i;
for (i = 0; l_loadRes_list[mType][i] >= 0; i++) {
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
+ cPhs_Step phase = dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
diff --git a/src/d/actor/d_a_npc_henna.cpp b/src/d/actor/d_a_npc_henna.cpp
index ab378448e8..d5246395df 100644
--- a/src/d/actor/d_a_npc_henna.cpp
+++ b/src/d/actor/d_a_npc_henna.cpp
@@ -2672,7 +2672,7 @@ static int daNpc_Henna_Create(fopAc_ac_c* i_this) {
fopAcM_ct(i_this, npc_henna_class);
npc_henna_class* a_this = (npc_henna_class*)i_this;
- cPhs__Step loadResult = (cPhs__Step)dComIfG_resLoad(&a_this->phase, "Henna");
+ cPhs_Step loadResult = dComIfG_resLoad(&a_this->phase, "Henna");
if (loadResult == cPhs_COMPLEATE_e) {
OS_REPORT("NPC_HENNA PARAM %x\n", fopAcM_GetParam(i_this));
a_this->arg0 = fopAcM_GetParam(i_this);
diff --git a/src/d/actor/d_a_npc_ins.cpp b/src/d/actor/d_a_npc_ins.cpp
index 2d4724503a..c228481ad2 100644
--- a/src/d/actor/d_a_npc_ins.cpp
+++ b/src/d/actor/d_a_npc_ins.cpp
@@ -383,7 +383,7 @@ daNpcIns_c::~daNpcIns_c() {
#endif
}
-cPhs__Step daNpcIns_c::Create() {
+cPhs_Step daNpcIns_c::Create() {
fopAcM_ct(this, daNpcIns_c);
mType = TYPE_0;
@@ -412,9 +412,9 @@ cPhs__Step daNpcIns_c::Create() {
}
}
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; l_loadRes_list[mType][i] >= 0; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[l_loadRes_list[mType][i]]);
+ phase = dComIfG_resLoad(&mPhases[i], l_arcNames[l_loadRes_list[mType][i]]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
diff --git a/src/d/actor/d_a_npc_kasi_hana.cpp b/src/d/actor/d_a_npc_kasi_hana.cpp
index 425bc526eb..2d592ec85e 100644
--- a/src/d/actor/d_a_npc_kasi_hana.cpp
+++ b/src/d/actor/d_a_npc_kasi_hana.cpp
@@ -638,15 +638,15 @@ daNpcKasiHana_c::~daNpcKasiHana_c() {
#endif
}
-cPhs__Step daNpcKasiHana_c::Create() {
+cPhs_Step daNpcKasiHana_c::Create() {
fopAcM_ct(this, daNpcKasiHana_c);
mMessageNo = getMessageNo();
mType = getType();
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; i < 3; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
+ phase = dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
diff --git a/src/d/actor/d_a_npc_kasi_kyu.cpp b/src/d/actor/d_a_npc_kasi_kyu.cpp
index 75d27aa733..27c4a0b6ba 100644
--- a/src/d/actor/d_a_npc_kasi_kyu.cpp
+++ b/src/d/actor/d_a_npc_kasi_kyu.cpp
@@ -210,15 +210,15 @@ daNpcKasiKyu_c::~daNpcKasiKyu_c() {
#endif
}
-cPhs__Step daNpcKasiKyu_c::Create() {
+cPhs_Step daNpcKasiKyu_c::Create() {
fopAcM_ct(this, daNpcKasiKyu_c);
mType = getType();
mMessageNo = getMessageNo();
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; i < 3; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
+ phase = dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
diff --git a/src/d/actor/d_a_npc_kasi_mich.cpp b/src/d/actor/d_a_npc_kasi_mich.cpp
index cb24b87b35..e76b9b9823 100644
--- a/src/d/actor/d_a_npc_kasi_mich.cpp
+++ b/src/d/actor/d_a_npc_kasi_mich.cpp
@@ -210,15 +210,15 @@ daNpcKasiMich_c::~daNpcKasiMich_c() {
#endif
}
-cPhs__Step daNpcKasiMich_c::Create() {
+cPhs_Step daNpcKasiMich_c::Create() {
fopAcM_ct(this, daNpcKasiMich_c);
mType = getType();
mMessageNo = getMessageNo();
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; i < 3; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
+ phase = dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
diff --git a/src/d/actor/d_a_npc_kolin.cpp b/src/d/actor/d_a_npc_kolin.cpp
index 44a3e9e2ba..b4cd80eb38 100644
--- a/src/d/actor/d_a_npc_kolin.cpp
+++ b/src/d/actor/d_a_npc_kolin.cpp
@@ -415,7 +415,7 @@ daNpc_Kolin_c::~daNpc_Kolin_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_Kolin_c::create() {
+cPhs_Step daNpc_Kolin_c::create() {
daNpcT_ct(this, daNpc_Kolin_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData, 4, l_motionSequenceData, 4, l_evtList, l_resNameList);
mType = getType();
@@ -426,7 +426,7 @@ cPhs__Step daNpc_Kolin_c::create() {
mTwilight = false;
}
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d, PathID:%02x, BitSW:%02x<%08x> ", fopAcM_getProcNameString(this), mType, mFlowNodeNo,
(getPathID() >> 32) & 0xFF, getBitSW() & 0xFF, fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_npc_kolinb.cpp b/src/d/actor/d_a_npc_kolinb.cpp
index ef3a2f795a..a9036c679d 100644
--- a/src/d/actor/d_a_npc_kolinb.cpp
+++ b/src/d/actor/d_a_npc_kolinb.cpp
@@ -274,14 +274,14 @@ daNpc_Kolinb_c::~daNpc_Kolinb_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_Kolinb_c::create() {
+cPhs_Step daNpc_Kolinb_c::create() {
daNpcT_ct(this, daNpc_Kolinb_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData, 4, l_motionSequenceData, 4, l_evtList, l_resNameList);
mType = getType();
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d, modelType:%02x<%08x> ", fopAcM_getProcNameString(this), mType, mFlowNodeNo, (getModelType() >> 32) & 0xFF, fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_npc_lf.cpp b/src/d/actor/d_a_npc_lf.cpp
index 43ea8362f3..e1d196d829 100644
--- a/src/d/actor/d_a_npc_lf.cpp
+++ b/src/d/actor/d_a_npc_lf.cpp
@@ -261,11 +261,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daNPC_LF_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daNPC_LF_Create(fopAc_ac_c* i_this) {
fopAcM_ct(i_this, npc_lf_class);
npc_lf_class* a_this = static_cast<npc_lf_class*>(i_this);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&a_this->mPhase, "NPC_LF");
+ cPhs_Step phase = dComIfG_resLoad(&a_this->mPhase, "NPC_LF");
if (phase == cPhs_COMPLEATE_e) {
a_this->mParam1 = fopAcM_GetParam(a_this);
diff --git a/src/d/actor/d_a_npc_moir.cpp b/src/d/actor/d_a_npc_moir.cpp
index 9c68aac258..64ab83e0d9 100644
--- a/src/d/actor/d_a_npc_moir.cpp
+++ b/src/d/actor/d_a_npc_moir.cpp
@@ -284,7 +284,7 @@ daNpcMoiR_c::~daNpcMoiR_c() {
#endif
}
-cPhs__Step daNpcMoiR_c::Create() {
+cPhs_Step daNpcMoiR_c::Create() {
fopAcM_ct(this, daNpcMoiR_c);
if (strcmp(dComIfGp_getStartStageName(), "R_SP116") == 0 && dComIfG_play_c::getLayerNo(0) == 4) {
@@ -315,9 +315,9 @@ cPhs__Step daNpcMoiR_c::Create() {
}
mMsgNo = getMessageNo();
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; l_loadRes_list[mMode][i] >= 0; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_arcNames[l_loadRes_list[mMode][i]]);
+ phase = dComIfG_resLoad(&mPhase[i], l_arcNames[l_loadRes_list[mMode][i]]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
}
diff --git a/src/d/actor/d_a_npc_ne.cpp b/src/d/actor/d_a_npc_ne.cpp
index 3aa0c95b08..414022d377 100644
--- a/src/d/actor/d_a_npc_ne.cpp
+++ b/src/d/actor/d_a_npc_ne.cpp
@@ -3095,7 +3095,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daNpc_Ne_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daNpc_Ne_Create(fopAc_ac_c* i_this) {
npc_ne_class* _this = static_cast<npc_ne_class*>(i_this);
fopAcM_ct(i_this, npc_ne_class);
@@ -3104,7 +3104,7 @@ static cPhs__Step daNpc_Ne_Create(fopAc_ac_c* i_this) {
} else {
_this->mResName = "Npc_ne";
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, _this->mResName);
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, _this->mResName);
if (step == cPhs_COMPLEATE_e) {
_this->mBehavior = (u8)fopAcM_GetParam(_this);
diff --git a/src/d/actor/d_a_npc_pachi_besu.cpp b/src/d/actor/d_a_npc_pachi_besu.cpp
index 85b5295b83..637836d06f 100644
--- a/src/d/actor/d_a_npc_pachi_besu.cpp
+++ b/src/d/actor/d_a_npc_pachi_besu.cpp
@@ -542,7 +542,7 @@ daNpc_Pachi_Besu_c::~daNpc_Pachi_Besu_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_Pachi_Besu_c::create() {
+cPhs_Step daNpc_Pachi_Besu_c::create() {
daNpcT_ct(this, daNpc_Pachi_Besu_c, l_faceMotionAnmData, l_motionAnmData,
l_faceMotionSequenceData, 4, l_motionSequenceData, 4,
l_evtList, l_resNameList);
@@ -552,7 +552,7 @@ cPhs__Step daNpc_Pachi_Besu_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x35B0)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_pachi_maro.cpp b/src/d/actor/d_a_npc_pachi_maro.cpp
index 9540b26438..c22bd4ccb0 100644
--- a/src/d/actor/d_a_npc_pachi_maro.cpp
+++ b/src/d/actor/d_a_npc_pachi_maro.cpp
@@ -550,7 +550,7 @@ daNpc_Pachi_Maro_HIOParam const daNpc_Pachi_Maro_Param_c::m = {
0,
};
-cPhs__Step daNpc_Pachi_Maro_c::create() {
+cPhs_Step daNpc_Pachi_Maro_c::create() {
daNpcT_ct(this, daNpc_Pachi_Maro_c, l_faceMotionAnmData, l_motionAnmData,
l_faceMotionSequenceData, 4, l_motionSequenceData, 4,
l_evtList, l_resNameList);
@@ -559,7 +559,7 @@ cPhs__Step daNpc_Pachi_Maro_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x3310)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_pachi_taro.cpp b/src/d/actor/d_a_npc_pachi_taro.cpp
index 9dcc0df0ee..da1530e99e 100644
--- a/src/d/actor/d_a_npc_pachi_taro.cpp
+++ b/src/d/actor/d_a_npc_pachi_taro.cpp
@@ -777,7 +777,7 @@ daNpc_Pachi_Taro_HIOParam const daNpc_Pachi_Taro_Param_c::m = {
55.0f,
};
-cPhs__Step daNpc_Pachi_Taro_c::create() {
+cPhs_Step daNpc_Pachi_Taro_c::create() {
daNpcT_ct(this, daNpc_Pachi_Taro_c, l_faceMotionAnmData, l_motionAnmData,
l_faceMotionSequenceData, 4, l_motionSequenceData, 4,
l_evtList, l_resNameList);
@@ -786,7 +786,7 @@ cPhs__Step daNpc_Pachi_Taro_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x48E0)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_passer.cpp b/src/d/actor/d_a_npc_passer.cpp
index 144542d9d6..91b5baebac 100644
--- a/src/d/actor/d_a_npc_passer.cpp
+++ b/src/d/actor/d_a_npc_passer.cpp
@@ -42,7 +42,7 @@ static int createHeapCallBack(fopAc_ac_c* i_this) {
return actor->createHeap();
}
-cPhs__Step daNpcPasser_c::create() {
+cPhs_Step daNpcPasser_c::create() {
fopAcM_ct(this, daNpcPasser_c);
mIsDarkWorld = dKy_darkworld_check();
@@ -74,7 +74,7 @@ cPhs__Step daNpcPasser_c::create() {
return cPhs_ERROR_e;
}
- cPhs__Step phase = (cPhs__Step)loadResrc(m_type, m_objNum);
+ cPhs_Step phase = loadResrc(m_type, m_objNum);
if (phase == cPhs_COMPLEATE_e) {
u32 i_size = 0;
#if DEBUG
diff --git a/src/d/actor/d_a_npc_passer2.cpp b/src/d/actor/d_a_npc_passer2.cpp
index 4889cb7398..47f9dded36 100644
--- a/src/d/actor/d_a_npc_passer2.cpp
+++ b/src/d/actor/d_a_npc_passer2.cpp
@@ -201,7 +201,7 @@ static int daNpcPasser2_Create(void* i_this) {
return static_cast<daNpcPasser2_c*>(i_this)->create();
}
-cPhs__Step daNpcPasser2_c::create() {
+cPhs_Step daNpcPasser2_c::create() {
fopAcM_ct(this, daNpcPasser2_c);
mIsDarkWorld = dKy_darkworld_check();
@@ -235,7 +235,7 @@ cPhs__Step daNpcPasser2_c::create() {
return cPhs_ERROR_e;
}
- cPhs__Step phase = (cPhs__Step)loadResrc(m_type, m_objNum);
+ cPhs_Step phase = loadResrc(m_type, m_objNum);
if (phase == cPhs_COMPLEATE_e) {
u32 i_size = 0;
#if DEBUG
diff --git a/src/d/actor/d_a_npc_post.cpp b/src/d/actor/d_a_npc_post.cpp
index 62bed7ba41..7b8fb2018c 100644
--- a/src/d/actor/d_a_npc_post.cpp
+++ b/src/d/actor/d_a_npc_post.cpp
@@ -385,7 +385,7 @@ daNpc_Post_HIOParam const daNpc_Post_Param_c::m = {
60,
};
-cPhs__Step daNpc_Post_c::create() {
+cPhs_Step daNpc_Post_c::create() {
daNpcT_ct(this, daNpc_Post_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData,
4, l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -393,7 +393,7 @@ cPhs__Step daNpc_Post_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = dKy_darkworld_check();
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d, BitSW:%02x<%08x> ", fopAcM_getProcNameString(this), mType, mFlowNodeNo,
getBitSW(), fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_npc_raca.cpp b/src/d/actor/d_a_npc_raca.cpp
index 3d259c2033..b32a06b630 100644
--- a/src/d/actor/d_a_npc_raca.cpp
+++ b/src/d/actor/d_a_npc_raca.cpp
@@ -229,7 +229,7 @@ daNpc_Raca_c::~daNpc_Raca_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_Raca_c::create() {
+cPhs_Step daNpc_Raca_c::create() {
daNpcT_ct(this, daNpc_Raca_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData, 4,
l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -237,7 +237,7 @@ cPhs__Step daNpc_Raca_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = dKy_darkworld_check();
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x3A10)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_seirei.cpp b/src/d/actor/d_a_npc_seirei.cpp
index ff4cece557..306df2a332 100644
--- a/src/d/actor/d_a_npc_seirei.cpp
+++ b/src/d/actor/d_a_npc_seirei.cpp
@@ -226,7 +226,7 @@ daNpc_Seirei_c::~daNpc_Seirei_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_Seirei_c::create() {
+cPhs_Step daNpc_Seirei_c::create() {
daNpcT_ct(this, daNpc_Seirei_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData, 4,
l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -235,7 +235,7 @@ cPhs__Step daNpc_Seirei_c::create() {
mTwilight = false;
arg0 = fopAcM_GetParam(this) >> 28;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (arg0 != 0 && !fopAcM_entrySolidHeap(this, createHeapCallBack, 0)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_shad.cpp b/src/d/actor/d_a_npc_shad.cpp
index 157dffcafa..bffc93e883 100644
--- a/src/d/actor/d_a_npc_shad.cpp
+++ b/src/d/actor/d_a_npc_shad.cpp
@@ -340,7 +340,7 @@ daNpcShad_c::~daNpcShad_c() {
}
}
-cPhs__Step daNpcShad_c::Create() {
+cPhs_Step daNpcShad_c::Create() {
fopAcM_ct(this, daNpcShad_c);
if (strcmp(dComIfGp_getStartStageName(), "R_SP116") == 0 && dComIfG_play_c::getLayerNo(0) == 4) {
@@ -410,9 +410,9 @@ cPhs__Step daNpcShad_c::Create() {
field_0xe14 = sVar1;
field_0xe16 = field_0xe14;
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; l_loadRes_list[mMode][i] >= 0; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[l_loadRes_list[mMode][i]]);
+ phase = dComIfG_resLoad(&mPhases[i], l_arcNames[l_loadRes_list[mMode][i]]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
diff --git a/src/d/actor/d_a_npc_shaman.cpp b/src/d/actor/d_a_npc_shaman.cpp
index d8dd0b7199..aedba3e5f9 100644
--- a/src/d/actor/d_a_npc_shaman.cpp
+++ b/src/d/actor/d_a_npc_shaman.cpp
@@ -236,7 +236,7 @@ daNpc_Sha_HIOParam const daNpc_Sha_Param_c::m = {
0.0,
};
-cPhs__Step daNpc_Sha_c::create() {
+cPhs_Step daNpc_Sha_c::create() {
daNpcT_ct(this, daNpc_Sha_c, l_faceMotionAnmData, l_motionAnmData,
l_faceMotionSequenceData, 4, l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -244,7 +244,7 @@ cPhs__Step daNpc_Sha_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d<%08x> ", fopAcM_getProcNameString(this), mType, mFlowNodeNo, fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_npc_shoe.cpp b/src/d/actor/d_a_npc_shoe.cpp
index be0f54a2c1..1639f2ee86 100644
--- a/src/d/actor/d_a_npc_shoe.cpp
+++ b/src/d/actor/d_a_npc_shoe.cpp
@@ -117,8 +117,8 @@ daNpcShoe_c::~daNpcShoe_c() {
}
}
-cPhs__Step daNpcShoe_c::Create() {
- cPhs__Step step;
+cPhs_Step daNpcShoe_c::Create() {
+ cPhs_Step step;
fopAcM_ct(this, daNpcShoe_c);
@@ -126,7 +126,7 @@ cPhs__Step daNpcShoe_c::Create() {
step = cPhs_ERROR_e;
for (int i = 0; i < 3; i++) {
- step = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
+ step = dComIfG_resLoad(&mPhases[i], l_arcNames[i]);
if (step != cPhs_COMPLEATE_e) {
return step;
}
@@ -634,7 +634,7 @@ bool daNpcShoe_c::demo(void* param_0) {
return 1;
}
-static cPhs__Step daNpcShoe_Create(void* i_this) {
+static cPhs_Step daNpcShoe_Create(void* i_this) {
return static_cast<daNpcShoe_c*>(i_this)->Create();
}
diff --git a/src/d/actor/d_a_npc_soldierA.cpp b/src/d/actor/d_a_npc_soldierA.cpp
index 25383f05a1..439ae1f11f 100644
--- a/src/d/actor/d_a_npc_soldierA.cpp
+++ b/src/d/actor/d_a_npc_soldierA.cpp
@@ -199,7 +199,7 @@ daNpc_SoldierA_HIOParam const daNpc_SoldierA_Param_c::m = {
false,
};
-cPhs__Step daNpc_SoldierA_c::create() {
+cPhs_Step daNpc_SoldierA_c::create() {
mTwilight = dKy_darkworld_check();
fopAcM_ct(this, daNpc_SoldierA_c);
@@ -219,7 +219,7 @@ cPhs__Step daNpc_SoldierA_c::create() {
int res_count = 0;
int i = 0;
for (; l_loadRes_list[mType][i] >= 0; i++) {
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
+ cPhs_Step phase = dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
diff --git a/src/d/actor/d_a_npc_soldierB.cpp b/src/d/actor/d_a_npc_soldierB.cpp
index 8c98eff41f..74d68caa56 100644
--- a/src/d/actor/d_a_npc_soldierB.cpp
+++ b/src/d/actor/d_a_npc_soldierB.cpp
@@ -164,7 +164,7 @@ daNpc_SoldierB_HIOParam const daNpc_SoldierB_Param_c::m = {
false, // debug_info_ON
};
-cPhs__Step daNpc_SoldierB_c::create() {
+cPhs_Step daNpc_SoldierB_c::create() {
mTwilight = dKy_darkworld_check();
fopAcM_ct(this, daNpc_SoldierB_c);
@@ -184,8 +184,8 @@ cPhs__Step daNpc_SoldierB_c::create() {
int res_count = 0;
int i = 0;
for (; l_loadRes_list[mType][i] >= 0; i++) {
- cPhs__Step phase =
- (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
+ cPhs_Step phase =
+ dComIfG_resLoad(&mPhases[i], l_resNames[l_loadRes_list[mType][i]]);
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
diff --git a/src/d/actor/d_a_npc_sq.cpp b/src/d/actor/d_a_npc_sq.cpp
index 834cd33476..cb883f0b24 100644
--- a/src/d/actor/d_a_npc_sq.cpp
+++ b/src/d/actor/d_a_npc_sq.cpp
@@ -316,11 +316,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
1, 0, 1.0f, 0, -1) ? 1 : 0;
}
-static cPhs__Step daNpc_Sq_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daNpc_Sq_Create(fopAc_ac_c* i_this) {
fopAcM_ct(i_this, npc_sq_class);
npc_sq_class* _this = static_cast<npc_sq_class*>(i_this);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhaseReq, "Sq");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhaseReq, "Sq");
if (step == cPhs_COMPLEATE_e) {
/* dSv_event_flag_c::D_0001 - Ordon Village - Stopped by squirrel in front of house at night */
if (dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[25])) {
diff --git a/src/d/actor/d_a_npc_taro.cpp b/src/d/actor/d_a_npc_taro.cpp
index d68fb52e52..32956de232 100644
--- a/src/d/actor/d_a_npc_taro.cpp
+++ b/src/d/actor/d_a_npc_taro.cpp
@@ -18,7 +18,7 @@
#include "d/d_msg_object.h"
#include "f_op/f_op_actor.h"
#include "f_op/f_op_camera_mng.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
daNpc_Maro_c::actionFunc dummy_lit_3931() {
return &daNpc_Maro_c::choccai;
diff --git a/src/d/actor/d_a_npc_the.cpp b/src/d/actor/d_a_npc_the.cpp
index d614541427..79c169935d 100644
--- a/src/d/actor/d_a_npc_the.cpp
+++ b/src/d/actor/d_a_npc_the.cpp
@@ -924,11 +924,11 @@ BOOL daNpcThe_c::EvCut_Introduction(int i_staffID) {
return false;
}
-static cPhs__Step daNpcThe_Create(void* i_this) {
+static cPhs_Step daNpcThe_Create(void* i_this) {
return static_cast<daNpcThe_c*>(i_this)->create();
}
-cPhs__Step daNpcThe_c::create() {
+cPhs_Step daNpcThe_c::create() {
fopAcM_ct(this, daNpcThe_c);
mType = getTypeFromParam();
@@ -949,11 +949,11 @@ cPhs__Step daNpcThe_c::create() {
return cPhs_ERROR_e;
}
- cPhs__Step step;
+ cPhs_Step step;
int resources_loaded = 0;
int i = 0;
for (; l_loadRes_list[mType][i] >= 0; i++) {
- step = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_resNames[l_loadRes_list[mType][i]]);
+ step = dComIfG_resLoad(&mPhase[i], l_resNames[l_loadRes_list[mType][i]]);
if (step == cPhs_ERROR_e || step == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
diff --git a/src/d/actor/d_a_npc_theB.cpp b/src/d/actor/d_a_npc_theB.cpp
index 2954d9d297..67a19b8468 100644
--- a/src/d/actor/d_a_npc_theB.cpp
+++ b/src/d/actor/d_a_npc_theB.cpp
@@ -234,10 +234,10 @@ daNpcTheB_HIOParam const daNpcTheB_Param_c::m = {
false,
};
-cPhs__Step daNpcTheB_c::create() {
+cPhs_Step daNpcTheB_c::create() {
fopAcM_ct(this, daNpcTheB_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x2CB0)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_tkc.cpp b/src/d/actor/d_a_npc_tkc.cpp
index 4a9d6a1c28..bb9581eca1 100644
--- a/src/d/actor/d_a_npc_tkc.cpp
+++ b/src/d/actor/d_a_npc_tkc.cpp
@@ -200,7 +200,7 @@ daNpcTkc_HIOParam const daNpcTkc_Param_c::m = {
0,
};
-cPhs__Step daNpcTkc_c::Create() {
+cPhs_Step daNpcTkc_c::Create() {
fopAcM_ct(this, daNpcTkc_c);
if (getType() != TYPE_2) {
@@ -216,8 +216,8 @@ cPhs__Step daNpcTkc_c::Create() {
}
}
- cPhs__Step phase = cPhs_ERROR_e;
- phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = cPhs_ERROR_e;
+ phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x2030)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_tkj2.cpp b/src/d/actor/d_a_npc_tkj2.cpp
index 3d352a704e..5d047e150b 100644
--- a/src/d/actor/d_a_npc_tkj2.cpp
+++ b/src/d/actor/d_a_npc_tkj2.cpp
@@ -1076,11 +1076,11 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daNpc_Tkj2_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daNpc_Tkj2_Create(fopAc_ac_c* a_this) {
fopAcM_ct(a_this, npc_tkj2_class);
npc_tkj2_class* i_this = (npc_tkj2_class*)a_this;
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "Tkj2");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "Tkj2");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("NPC_TKJ2 PARAM %x\n", fopAcM_GetParam(a_this));
diff --git a/src/d/actor/d_a_npc_tks.cpp b/src/d/actor/d_a_npc_tks.cpp
index 161de1d346..0f1a529b5c 100644
--- a/src/d/actor/d_a_npc_tks.cpp
+++ b/src/d/actor/d_a_npc_tks.cpp
@@ -284,7 +284,7 @@ daNpcTks_c::~daNpcTks_c() {
#endif
}
-cPhs__Step daNpcTks_c::Create() {
+cPhs_Step daNpcTks_c::Create() {
fopAcM_ct(this, daNpcTks_c);
if (dComIfGs_isStageBossEnemy()) {
@@ -311,9 +311,9 @@ cPhs__Step daNpcTks_c::Create() {
mMessageNo = getMessageNo();
- cPhs__Step phase = cPhs_ERROR_e;
+ cPhs_Step phase = cPhs_ERROR_e;
for (int i = 0; l_loadRes_list[mTksTsubo.mTsuboType][i] >= 0; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_arcNames[l_loadRes_list[mTksTsubo.mTsuboType][i]]);
+ phase = dComIfG_resLoad(&mPhases[i], l_arcNames[l_loadRes_list[mTksTsubo.mTsuboType][i]]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
}
diff --git a/src/d/actor/d_a_npc_wrestler.cpp b/src/d/actor/d_a_npc_wrestler.cpp
index 35335281b6..3d9eefe1e7 100644
--- a/src/d/actor/d_a_npc_wrestler.cpp
+++ b/src/d/actor/d_a_npc_wrestler.cpp
@@ -7,7 +7,7 @@
#include "d/actor/d_a_npc_wrestler.h"
#include "d/d_timer.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
#include "d/actor/d_a_tag_arena.h"
#include "d/actor/d_a_npc_gra.h"
#include "d/actor/d_a_npc_bouS.h"
@@ -672,16 +672,16 @@ daNpcWrestler_c::~daNpcWrestler_c() {
#endif
}
-cPhs__Step daNpcWrestler_c::Create() {
+cPhs_Step daNpcWrestler_c::Create() {
fopAcM_ct(this, daNpcWrestler_c);
mType = getType();
mMsgNo = getMessageNo();
field_0xe04 = l_anmList[mType];
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_resALink);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_resALink);
if (phase == cPhs_COMPLEATE_e) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhase2, l_resName[mType]);
+ phase = dComIfG_resLoad(&mPhase2, l_resName[mType]);
}
if (phase == cPhs_COMPLEATE_e) {
diff --git a/src/d/actor/d_a_npc_yamid.cpp b/src/d/actor/d_a_npc_yamid.cpp
index 7a443ecda6..ea0f13ea94 100644
--- a/src/d/actor/d_a_npc_yamid.cpp
+++ b/src/d/actor/d_a_npc_yamid.cpp
@@ -190,7 +190,7 @@ daNpc_yamiD_HIOParam const daNpc_yamiD_Param_c::m = {
static NPC_YAMID_HIO_CLASS l_HIO;
-cPhs__Step daNpc_yamiD_c::create() {
+cPhs_Step daNpc_yamiD_c::create() {
daNpcT_ct(this, daNpc_yamiD_c, l_faceMotionAnmData, l_motionAnmData,
l_faceMotionSequenceData, 4, l_motionSequenceData, 4,
l_evtList, l_resNameList);
@@ -199,7 +199,7 @@ cPhs__Step daNpc_yamiD_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x3710)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_yamis.cpp b/src/d/actor/d_a_npc_yamis.cpp
index 21f3bec668..64d36e12f2 100644
--- a/src/d/actor/d_a_npc_yamis.cpp
+++ b/src/d/actor/d_a_npc_yamis.cpp
@@ -139,7 +139,7 @@ const daNpc_yamiS_HIOParam daNpc_yamiS_Param_c::m = {
static NPC_YAMIS_HIO_CLASS l_HIO;
-cPhs__Step daNpc_yamiS_c::create() {
+cPhs_Step daNpc_yamiS_c::create() {
daNpcT_ct(this, daNpc_yamiS_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData,
4, l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -147,7 +147,7 @@ cPhs__Step daNpc_yamiS_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x3540)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_yamit.cpp b/src/d/actor/d_a_npc_yamit.cpp
index ad9587867c..611bdc9feb 100644
--- a/src/d/actor/d_a_npc_yamit.cpp
+++ b/src/d/actor/d_a_npc_yamit.cpp
@@ -142,7 +142,7 @@ const daNpc_yamiT_HIOParam daNpc_yamiT_Param_c::m = {
static NPC_YAMIT_HIO_CLASS l_HIO;
-cPhs__Step daNpc_yamiT_c::create() {
+cPhs_Step daNpc_yamiT_c::create() {
daNpcT_ct(this, daNpc_yamiT_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData,
4, l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -150,7 +150,7 @@ cPhs__Step daNpc_yamiT_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x3850)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_yelia.cpp b/src/d/actor/d_a_npc_yelia.cpp
index d7ee35d686..55e13fd4a1 100644
--- a/src/d/actor/d_a_npc_yelia.cpp
+++ b/src/d/actor/d_a_npc_yelia.cpp
@@ -369,7 +369,7 @@ daNpc_Yelia_c::~daNpc_Yelia_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_Yelia_c::create() {
+cPhs_Step daNpc_Yelia_c::create() {
daNpcT_ct(this, daNpc_Yelia_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData, 4,
l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -380,7 +380,7 @@ cPhs__Step daNpc_Yelia_c::create() {
mTwilight = true;
}
- cPhs__Step step = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step step = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (step == cPhs_COMPLEATE_e) {
if (isDelete()) {
@@ -1559,7 +1559,7 @@ BOOL daNpc_Yelia_c::talk(void* param_0) {
return FALSE;
}
-static cPhs__Step daNpc_Yelia_Create(void* i_this) {
+static cPhs_Step daNpc_Yelia_Create(void* i_this) {
return static_cast<daNpc_Yelia_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_npc_ykm.cpp b/src/d/actor/d_a_npc_ykm.cpp
index 8d04cb3f8e..706634a16e 100644
--- a/src/d/actor/d_a_npc_ykm.cpp
+++ b/src/d/actor/d_a_npc_ykm.cpp
@@ -572,14 +572,14 @@ daNpc_ykM_c::~daNpc_ykM_c() {
daNpcT_offTmpBit(0x54); // dSv_event_tmp_flag_c::T_0084 - Snowpeak mountain - Racing with Yeto
}
-cPhs__Step daNpc_ykM_c::create() {
+cPhs_Step daNpc_ykM_c::create() {
daNpcT_ct(this, daNpc_ykM_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData,
4, l_motionSequenceData, 4, l_evtList, l_resNameList);
mType = getType();
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d, PathID:%02x, BitTRB:%02x<%08x> ", fopAcM_getProcNameString(this), mType, mFlowNodeNo,
getPathID(), getBitTRB() & 0xFF, fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_npc_zanb.cpp b/src/d/actor/d_a_npc_zanb.cpp
index 81309f74cb..93058921fc 100644
--- a/src/d/actor/d_a_npc_zanb.cpp
+++ b/src/d/actor/d_a_npc_zanb.cpp
@@ -138,7 +138,7 @@ daNpc_zanB_HIOParam const daNpc_zanB_Param_c::m = {
static NPC_ZANB_HIO_CLASS l_HIO;
-cPhs__Step daNpc_zanB_c::create() {
+cPhs_Step daNpc_zanB_c::create() {
daNpcT_ct(this, daNpc_zanB_c, l_faceMotionAnmData,
l_motionAnmData, l_faceMotionSequenceData, 4,
l_motionSequenceData, 4, l_evtList, l_resNameList);
@@ -147,7 +147,7 @@ cPhs__Step daNpc_zanB_c::create() {
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) flowNo:%d<%08x> ", fopAcM_getProcNameString(this), mType, mFlowNodeNo, fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_npc_zelRo.cpp b/src/d/actor/d_a_npc_zelRo.cpp
index 7e730f09d4..f1bd201c7a 100644
--- a/src/d/actor/d_a_npc_zelRo.cpp
+++ b/src/d/actor/d_a_npc_zelRo.cpp
@@ -162,14 +162,14 @@ daNpc_ZelRo_c::~daNpc_ZelRo_c() {
deleteRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
}
-cPhs__Step daNpc_ZelRo_c::create() {
+cPhs_Step daNpc_ZelRo_c::create() {
daNpcT_ct(this, daNpc_ZelRo_c, l_faceMotionAnmData, l_motionAnmData, l_faceMotionSequenceData, 4, l_motionSequenceData, 4, l_evtList, l_resNameList);
mType = getType();
mFlowNodeNo = getFlowNodeNo();
mTwilight = false;
- cPhs__Step phase = (cPhs__Step)loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
+ cPhs_Step phase = loadRes(l_loadResPtrnList[mType], (const char**)l_resNameList);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x71C0)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_npc_zra.cpp b/src/d/actor/d_a_npc_zra.cpp
index ddc75b50d6..aa78729989 100644
--- a/src/d/actor/d_a_npc_zra.cpp
+++ b/src/d/actor/d_a_npc_zra.cpp
@@ -488,7 +488,7 @@ daNpc_zrA_c::~daNpc_zrA_c() {
#endif
}
-cPhs__Step daNpc_zrA_c::create() {
+cPhs_Step daNpc_zrA_c::create() {
fopAcM_ct(this, daNpc_zrA_c);
mType = getTypeFromArgument();
@@ -508,7 +508,7 @@ cPhs__Step daNpc_zrA_c::create() {
}
int res_count = 0;
- cPhs__Step step;
+ cPhs_Step step;
int i;
for (i = 0; l_loadRes_list[mType][i] >= 0; i++) {
int res_no = l_loadRes_list[mType][i];
@@ -522,7 +522,7 @@ cPhs__Step daNpc_zrA_c::create() {
}
}
- step = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_resNames[res_no]);
+ step = dComIfG_resLoad(&mPhase[i], l_resNames[res_no]);
if (step == cPhs_ERROR_e || step == cPhs_UNK3_e) {
return cPhs_ERROR_e;
@@ -534,9 +534,9 @@ cPhs__Step daNpc_zrA_c::create() {
if (mSoldierType != SOLDIER_NONE) {
if (mTwilight) {
- step = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_resNames[10]);
+ step = dComIfG_resLoad(&mPhase[i], l_resNames[10]);
} else {
- step = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_resNames[7]);
+ step = dComIfG_resLoad(&mPhase[i], l_resNames[7]);
}
if (step == cPhs_ERROR_e || step == cPhs_UNK3_e) {
@@ -2303,7 +2303,7 @@ BOOL daNpc_zrA_c::test(void* param_0) {
return true;
}
-static cPhs__Step daNpc_zrA_Create(void* i_this) {
+static cPhs_Step daNpc_zrA_Create(void* i_this) {
return static_cast<daNpc_zrA_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_npc_zrc.cpp b/src/d/actor/d_a_npc_zrc.cpp
index 505c0c73b1..2745b04d8f 100644
--- a/src/d/actor/d_a_npc_zrc.cpp
+++ b/src/d/actor/d_a_npc_zrc.cpp
@@ -218,7 +218,7 @@ daNpc_zrC_c::~daNpc_zrC_c() {
#endif
}
-cPhs__Step daNpc_zrC_c::create() {
+cPhs_Step daNpc_zrC_c::create() {
fopAcM_ct(this, daNpc_zrC_c);
mType = getTypeFromParam();
@@ -240,7 +240,7 @@ cPhs__Step daNpc_zrC_c::create() {
if (res_idx == 3 && mTwilight) {
res_idx = 4;
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_resNames[res_idx]);
+ cPhs_Step step = dComIfG_resLoad(&mPhase[i], l_resNames[res_idx]);
if (step == cPhs_ERROR_e || step == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
@@ -1766,7 +1766,7 @@ BOOL daNpc_zrC_c::ECut_earringGet(int i_staffID) {
return ret;
}
-static cPhs__Step daNpc_zrC_Create(void* i_this) {
+static cPhs_Step daNpc_zrC_Create(void* i_this) {
return static_cast<daNpc_zrC_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_npc_zrz.cpp b/src/d/actor/d_a_npc_zrz.cpp
index 561cfd9035..a600f217cc 100644
--- a/src/d/actor/d_a_npc_zrz.cpp
+++ b/src/d/actor/d_a_npc_zrz.cpp
@@ -194,7 +194,7 @@ daNpc_zrZ_c::~daNpc_zrZ_c() {
#endif
}
-cPhs__Step daNpc_zrZ_c::create() {
+cPhs_Step daNpc_zrZ_c::create() {
fopAcM_ct(this, daNpc_zrZ_c);
mType = getTypeFromParam();
@@ -215,7 +215,7 @@ cPhs__Step daNpc_zrZ_c::create() {
int res_count = 0;
int i;
for (i = 0; l_loadRes_list[mType][i] >= 0; i++) {
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase[i],
+ cPhs_Step step = dComIfG_resLoad(&mPhase[i],
l_resNames[l_loadRes_list[mType][i]]);
if (step == cPhs_ERROR_e || step == cPhs_UNK3_e) {
return cPhs_ERROR_e;
@@ -2420,7 +2420,7 @@ void daNpc_zrZ_c::himoCalc() {
mLimbAngle.z = cM_atan2s(mLimbCalcRelPos.z, mLimbCalcRelPos.x);
}
-static cPhs__Step daNpc_zrZ_Create(void* i_this) {
+static cPhs_Step daNpc_zrZ_Create(void* i_this) {
return static_cast<daNpc_zrZ_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_amiShutter.cpp b/src/d/actor/d_a_obj_amiShutter.cpp
index 83995ff262..cdd4e2a69a 100644
--- a/src/d/actor/d_a_obj_amiShutter.cpp
+++ b/src/d/actor/d_a_obj_amiShutter.cpp
@@ -63,12 +63,12 @@ int daAmiShutter_c::CreateHeap() {
}
-cPhs__Step daAmiShutter_c::create() {
+cPhs_Step daAmiShutter_c::create() {
fopAcM_ct(this, daAmiShutter_c);
- cPhs__Step phaseStep = (cPhs__Step) dComIfG_resLoad(&mPhaseReq, "S_Zami");
+ cPhs_Step phaseStep = dComIfG_resLoad(&mPhaseReq, "S_Zami");
if (phaseStep == cPhs_COMPLEATE_e) {
- cPhs__Step res = (cPhs__Step) MoveBGCreate("S_Zami", 7,
+ cPhs_Step res = MoveBGCreate("S_Zami", 7,
dBgS_MoveBGProc_Typical, 0x1a00, NULL);
if (res == cPhs_ERROR_e) {
diff --git a/src/d/actor/d_a_obj_ari.cpp b/src/d/actor/d_a_obj_ari.cpp
index 0250f14643..f97e72aa49 100644
--- a/src/d/actor/d_a_obj_ari.cpp
+++ b/src/d/actor/d_a_obj_ari.cpp
@@ -129,7 +129,7 @@ int daObjARI_c::CreateHeap() {
return 1;
}
-static cPhs__Step daObjARI_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjARI_Create(fopAc_ac_c* i_this) {
fopAcM_GetID(i_this);
return static_cast<daObjARI_c*>(i_this)->create();
}
@@ -605,9 +605,9 @@ bool daObjARI_c::CreateChk() {
return true;
}
-cPhs__Step daObjARI_c::create() {
+cPhs_Step daObjARI_c::create() {
fopAcM_ct(this, daObjARI_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, "I_Ari");
+ cPhs_Step step = dComIfG_resLoad(&mPhase, "I_Ari");
if (step == cPhs_COMPLEATE_e) {
mLocation = fopAcM_GetParam(this) & 0xf;
diff --git a/src/d/actor/d_a_obj_barDesk.cpp b/src/d/actor/d_a_obj_barDesk.cpp
index 85cb7f5955..9e0b3a4a8f 100644
--- a/src/d/actor/d_a_obj_barDesk.cpp
+++ b/src/d/actor/d_a_obj_barDesk.cpp
@@ -46,12 +46,12 @@ int daBarDesk_c::CreateHeap() {
return 1;
}
-cPhs__Step daBarDesk_c::create() {
+cPhs_Step daBarDesk_c::create() {
fopAcM_ct(this, daBarDesk_c);
if (fopAcM_isSwitch(this, (u8)fopAcM_GetParam(this))) {
return cPhs_ERROR_e;
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, "KHdesk");
+ cPhs_Step step = dComIfG_resLoad(&mPhase, "KHdesk");
if (step == cPhs_COMPLEATE_e) {
if (MoveBGCreate("KHdesk", 7, dBgS_MoveBGProc_TypicalRotY, 0xe50, NULL) == cPhs_ERROR_e) {
return cPhs_ERROR_e;
@@ -148,7 +148,7 @@ static int daBarDesk_Delete(daBarDesk_c* i_this) {
return i_this->MoveBGDelete();
}
-static cPhs__Step daBarDesk_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daBarDesk_Create(fopAc_ac_c* i_this) {
return static_cast<daBarDesk_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_bed.cpp b/src/d/actor/d_a_obj_bed.cpp
index ea83d6ff33..37de863ca6 100644
--- a/src/d/actor/d_a_obj_bed.cpp
+++ b/src/d/actor/d_a_obj_bed.cpp
@@ -46,10 +46,10 @@ daObj_Bed_c::~daObj_Bed_c() {
dComIfG_resDelete(&mPhase, getResName());
}
-cPhs__Step daObj_Bed_c::create() {
+cPhs_Step daObj_Bed_c::create() {
fopAcM_ct(this, daObj_Bed_c);
mType = getType();
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, getResName());
+ cPhs_Step step = dComIfG_resLoad(&mPhase, getResName());
if (step == cPhs_COMPLEATE_e) {
if (isDelete()) {
return cPhs_ERROR_e;
@@ -179,7 +179,7 @@ void daObj_Bed_c::setMtx() {
}
-static cPhs__Step daObj_Bed_Create(void* i_this) {
+static cPhs_Step daObj_Bed_Create(void* i_this) {
return static_cast<daObj_Bed_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_bemos.cpp b/src/d/actor/d_a_obj_bemos.cpp
index 37a78702ce..25dd1587ef 100644
--- a/src/d/actor/d_a_obj_bemos.cpp
+++ b/src/d/actor/d_a_obj_bemos.cpp
@@ -490,11 +490,11 @@ int daObjBm_c::create1st() {
mCreateFirstFlag = 1;
}
- cPhs__Step phase_state = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase_state = dComIfG_resLoad(&mPhase, l_arcName);
if (phase_state == cPhs_COMPLEATE_e) {
phase_state =
- (cPhs__Step)MoveBGCreate(l_arcName, 0x1E, dBgS_MoveBGProc_TypicalRotY, 0x5500, NULL);
+ MoveBGCreate(l_arcName, 0x1E, dBgS_MoveBGProc_TypicalRotY, 0x5500, NULL);
if (phase_state == cPhs_ERROR_e) {
return phase_state;
}
diff --git a/src/d/actor/d_a_obj_bkdoor.cpp b/src/d/actor/d_a_obj_bkdoor.cpp
index b7eb850ade..8ed051902d 100644
--- a/src/d/actor/d_a_obj_bkdoor.cpp
+++ b/src/d/actor/d_a_obj_bkdoor.cpp
@@ -87,9 +87,9 @@ int daObjBkDoor_c::CreateHeap() {
int daObjBkDoor_c::create1st() {
mOrientation = fopAcM_GetParamBit(this, 0, 1);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_COMPLEATE_e) {
- step = (cPhs__Step)MoveBGCreate(l_arcName, l_dzb[mOrientation], dBgS_MoveBGProc_TypicalRotY,
+ step = MoveBGCreate(l_arcName, l_dzb[mOrientation], dBgS_MoveBGProc_TypicalRotY,
0xBD0, NULL);
if (step == cPhs_ERROR_e) {
return step;
diff --git a/src/d/actor/d_a_obj_bosswarp.cpp b/src/d/actor/d_a_obj_bosswarp.cpp
index a743466f7a..ab8f014d15 100644
--- a/src/d/actor/d_a_obj_bosswarp.cpp
+++ b/src/d/actor/d_a_obj_bosswarp.cpp
@@ -151,9 +151,9 @@ int daObjBossWarp_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjBossWarp_c::create() {
+cPhs_Step daObjBossWarp_c::create() {
fopAcM_ct(this, daObjBossWarp_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, CheckCreateHeap, 0x18e0)) {
return cPhs_ERROR_e;
@@ -657,7 +657,7 @@ static int daObjBossWarp_Delete(daObjBossWarp_c* i_this) {
return i_this->_delete();
}
-static cPhs__Step daObjBossWarp_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjBossWarp_Create(fopAc_ac_c* i_this) {
return static_cast<daObjBossWarp_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_bsGate.cpp b/src/d/actor/d_a_obj_bsGate.cpp
index e74892cfe9..03edb364f2 100644
--- a/src/d/actor/d_a_obj_bsGate.cpp
+++ b/src/d/actor/d_a_obj_bsGate.cpp
@@ -32,9 +32,9 @@ int daBsGate_c::CreateHeap() {
return 1;
}
-cPhs__Step daBsGate_c::create() {
+cPhs_Step daBsGate_c::create() {
fopAcM_ct(this, daBsGate_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, "S_Zgate");
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, "S_Zgate");
if (step == cPhs_COMPLEATE_e) {
if (MoveBGCreate("S_Zgate", 7, dBgS_MoveBGProc_TypicalRotY, 0xf00, NULL) == cPhs_ERROR_e) {
return cPhs_ERROR_e;
@@ -158,7 +158,7 @@ static int daBsGate_Delete(daBsGate_c* i_this) {
return i_this->MoveBGDelete();
}
-static cPhs__Step daBsGate_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daBsGate_Create(fopAc_ac_c* i_this) {
return static_cast<daBsGate_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_burnbox.cpp b/src/d/actor/d_a_obj_burnbox.cpp
index f8f5123570..b7b47b5357 100644
--- a/src/d/actor/d_a_obj_burnbox.cpp
+++ b/src/d/actor/d_a_obj_burnbox.cpp
@@ -99,8 +99,8 @@ int daObjBurnBox_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjBurnBox_c::create1st() {
- cPhs__Step phaseStep = (cPhs__Step) dComIfG_resLoad(&mPhaseReq, l_arcName[getType()]);
+cPhs_Step daObjBurnBox_c::create1st() {
+ cPhs_Step phaseStep = dComIfG_resLoad(&mPhaseReq, l_arcName[getType()]);
if (phaseStep == cPhs_COMPLEATE_e) {
int dzb_id = -1;
u8 type = getType();
@@ -110,7 +110,7 @@ cPhs__Step daObjBurnBox_c::create1st() {
dzb_id = 7;
}
- phaseStep = (cPhs__Step) MoveBGCreate(l_arcName[type], dzb_id, dBgS_MoveBGProc_TypicalRotY,
+ phaseStep = MoveBGCreate(l_arcName[type], dzb_id, dBgS_MoveBGProc_TypicalRotY,
l_heap_size[type], NULL);
if (phaseStep == cPhs_ERROR_e) {
return phaseStep;
diff --git a/src/d/actor/d_a_obj_carry.cpp b/src/d/actor/d_a_obj_carry.cpp
index bea4671174..c41fdc88e7 100644
--- a/src/d/actor/d_a_obj_carry.cpp
+++ b/src/d/actor/d_a_obj_carry.cpp
@@ -1297,13 +1297,13 @@ int daObjCarry_c::create() {
switch (mType) {
case TYPE_BALL_S:
- create_phase = (cPhs__Step)checkCreate_LightBallA();
+ create_phase = checkCreate_LightBallA();
break;
case TYPE_BALL_S_2:
- create_phase = (cPhs__Step)checkCreate_LightBallB();
+ create_phase = checkCreate_LightBallB();
break;
case TYPE_LV8_BALL:
- create_phase = (cPhs__Step)checkCreate_Lv8Ball();
+ create_phase = checkCreate_Lv8Ball();
break;
}
diff --git a/src/d/actor/d_a_obj_cdoor.cpp b/src/d/actor/d_a_obj_cdoor.cpp
index d98333c8dd..fe483fec3f 100644
--- a/src/d/actor/d_a_obj_cdoor.cpp
+++ b/src/d/actor/d_a_obj_cdoor.cpp
@@ -52,12 +52,12 @@ static void* daObjCdoor_searchChain(fopAc_ac_c* i_actor, void* i_this) {
return NULL;
}
-cPhs__Step daObjCdoor_c::create() {
+cPhs_Step daObjCdoor_c::create() {
fopAcM_ct(this, daObjCdoor_c);
mType = (fopAcM_GetParam(this) >> 8) & 0xf;
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName[mType]);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName[mType]);
if (step == cPhs_COMPLEATE_e) {
- step = (cPhs__Step)MoveBGCreate(l_arcName[mType], l_dzbIdx[mType], NULL, 0xc00, NULL);
+ step = MoveBGCreate(l_arcName[mType], l_dzbIdx[mType], NULL, 0xc00, NULL);
if (step == cPhs_ERROR_e) {
return cPhs_ERROR_e;
}
@@ -102,7 +102,7 @@ cPhs__Step daObjCdoor_c::create() {
return step;
}
-static cPhs__Step daObjCdoor_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjCdoor_Create(fopAc_ac_c* i_this) {
return static_cast<daObjCdoor_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_chandelier.cpp b/src/d/actor/d_a_obj_chandelier.cpp
index 9a344acb0c..bdcf4b1983 100644
--- a/src/d/actor/d_a_obj_chandelier.cpp
+++ b/src/d/actor/d_a_obj_chandelier.cpp
@@ -37,11 +37,11 @@ int daObjChandelier_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjChandelier_c::create1st() {
+cPhs_Step daObjChandelier_c::create1st() {
fopAcM_ct(this, daObjChandelier_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(this, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(this, l_arcName);
if (step == cPhs_COMPLEATE_e) {
- step = (cPhs__Step)MoveBGCreate(l_arcName, 7, dBgS_MoveBGProc_TypicalRotY, 0x4500, &mMtx);
+ step = MoveBGCreate(l_arcName, 7, dBgS_MoveBGProc_TypicalRotY, 0x4500, &mMtx);
if (step == cPhs_ERROR_e) {
return step;
}
@@ -231,7 +231,7 @@ void daObjChandelier_c::hookSwingInitParm() {
field_0x5f8 = 5.0f;
}
-static cPhs__Step daObjChandelier_create1st(daObjChandelier_c* i_this) {
+static cPhs_Step daObjChandelier_create1st(daObjChandelier_c* i_this) {
fopAcM_ct(i_this, daObjChandelier_c);
return i_this->create1st();
}
diff --git a/src/d/actor/d_a_obj_cho.cpp b/src/d/actor/d_a_obj_cho.cpp
index 24874778d5..33088afbdd 100644
--- a/src/d/actor/d_a_obj_cho.cpp
+++ b/src/d/actor/d_a_obj_cho.cpp
@@ -97,7 +97,7 @@ int daObjCHO_c::CreateHeap() {
return 1;
}
-static cPhs__Step daObjCHO_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjCHO_Create(fopAc_ac_c* i_this) {
return static_cast<daObjCHO_c*>(i_this)->create();
}
@@ -528,9 +528,9 @@ bool daObjCHO_c::CreateChk() {
return true;
}
-cPhs__Step daObjCHO_c::create() {
+cPhs_Step daObjCHO_c::create() {
fopAcM_ct(this, daObjCHO_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, "I_Cho");
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, "I_Cho");
if (step == cPhs_COMPLEATE_e) {
mLocation = fopAcM_GetParam(this) & 0xf;
diff --git a/src/d/actor/d_a_obj_crvfence.cpp b/src/d/actor/d_a_obj_crvfence.cpp
index b0bd21ba57..675647133c 100644
--- a/src/d/actor/d_a_obj_crvfence.cpp
+++ b/src/d/actor/d_a_obj_crvfence.cpp
@@ -323,10 +323,10 @@ int daObjCRVFENCE_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjCRVFENCE_c::create() {
+cPhs_Step daObjCRVFENCE_c::create() {
fopAcM_ct(this, daObjCRVFENCE_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("Obj_Fence PARAM %x\n", fopAcM_GetParam(this));
@@ -349,7 +349,7 @@ cPhs__Step daObjCRVFENCE_c::create() {
JUT_ASSERT(783, dzb_id != -1)
}
- phase = (cPhs__Step)MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1CA0, NULL);
+ phase = MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1CA0, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_crvgate.cpp b/src/d/actor/d_a_obj_crvgate.cpp
index ccd8030230..d781f0bc18 100644
--- a/src/d/actor/d_a_obj_crvgate.cpp
+++ b/src/d/actor/d_a_obj_crvgate.cpp
@@ -717,7 +717,7 @@ void daObjCRVGATE_c::SetDoor() {
int daObjCRVGATE_c::create() {
fopAcM_ct(this, daObjCRVGATE_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
gravity = nREG_F(0) + -9.0f;
@@ -729,7 +729,7 @@ int daObjCRVGATE_c::create() {
JUT_ASSERT(783, dzb_id != -1)
}
phase =
- (cPhs__Step)MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1480, NULL);
+ MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1480, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
diff --git a/src/d/actor/d_a_obj_dan.cpp b/src/d/actor/d_a_obj_dan.cpp
index ed3d319128..3c5f1cc226 100644
--- a/src/d/actor/d_a_obj_dan.cpp
+++ b/src/d/actor/d_a_obj_dan.cpp
@@ -106,7 +106,7 @@ int daObjDAN_c::CreateHeap() {
return 1;
}
-static cPhs__Step daObjDAN_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjDAN_Create(fopAc_ac_c* i_this) {
return static_cast<daObjDAN_c*>(i_this)->create();
}
@@ -505,9 +505,9 @@ bool daObjDAN_c::CreateChk() {
return true;
}
-cPhs__Step daObjDAN_c::create() {
+cPhs_Step daObjDAN_c::create() {
fopAcM_ct(this, daObjDAN_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, "I_Dan");
+ cPhs_Step step = dComIfG_resLoad(&mPhase, "I_Dan");
if (step == cPhs_COMPLEATE_e) {
mLocation = fopAcM_GetParam(this) & 0xf;
diff --git a/src/d/actor/d_a_obj_digsnow.cpp b/src/d/actor/d_a_obj_digsnow.cpp
index c6ab5208c6..7eca2582c9 100644
--- a/src/d/actor/d_a_obj_digsnow.cpp
+++ b/src/d/actor/d_a_obj_digsnow.cpp
@@ -53,9 +53,9 @@ int daObjDigSnow_c::create1st() {
return cPhs_ERROR_e;
}
- cPhs__Step phase_state = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step phase_state = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (phase_state == cPhs_COMPLEATE_e) {
- phase_state = (cPhs__Step)MoveBGCreate(l_arcName, 7, dBgS_MoveBGProc_TypicalRotY, 0x1000, NULL);
+ phase_state = MoveBGCreate(l_arcName, 7, dBgS_MoveBGProc_TypicalRotY, 0x1000, NULL);
if (phase_state == cPhs_ERROR_e) {
return phase_state;
}
diff --git a/src/d/actor/d_a_obj_fallobj.cpp b/src/d/actor/d_a_obj_fallobj.cpp
index dad286560f..6900391d26 100644
--- a/src/d/actor/d_a_obj_fallobj.cpp
+++ b/src/d/actor/d_a_obj_fallobj.cpp
@@ -118,10 +118,10 @@ int daObjFallObj_c::CreateHeap() {
int daObjFallObj_c::create1st() {
field_0x5d8 = 1;
- cPhs__Step phase = (cPhs__Step) dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
phase =
- (cPhs__Step) MoveBGCreate(l_arcName, 7, dBgS_MoveBGProc_Typical, 0x2700, NULL);
+ MoveBGCreate(l_arcName, 7, dBgS_MoveBGProc_Typical, 0x2700, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_food.cpp b/src/d/actor/d_a_obj_food.cpp
index 3135d7a444..e416af3bf0 100644
--- a/src/d/actor/d_a_obj_food.cpp
+++ b/src/d/actor/d_a_obj_food.cpp
@@ -416,11 +416,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daObj_Food_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObj_Food_Create(fopAc_ac_c* i_this) {
obj_food_class* _this = static_cast<obj_food_class*>(i_this);
fopAcM_ct(i_this, obj_food_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhase, "Obj_fd");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhase, "Obj_fd");
if (step == cPhs_COMPLEATE_e) {
_this->mType = (u8)fopAcM_GetParam(_this);
_this->mParam1 = (u8)(fopAcM_GetParam(_this) >> 8);
diff --git a/src/d/actor/d_a_obj_fw.cpp b/src/d/actor/d_a_obj_fw.cpp
index 79304a02c3..48f11e1c1d 100644
--- a/src/d/actor/d_a_obj_fw.cpp
+++ b/src/d/actor/d_a_obj_fw.cpp
@@ -238,11 +238,11 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daObj_Fw_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daObj_Fw_Create(fopAc_ac_c* a_this) {
fopAcM_ct(a_this, obj_fw_class);
obj_fw_class* i_this = (obj_fw_class*)a_this;
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "RYUW00");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "RYUW00");
if (phase == cPhs_COMPLEATE_e) {
if (dComIfGs_isStageBossEnemy()) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_ganonwall.cpp b/src/d/actor/d_a_obj_ganonwall.cpp
index d2f04ddbb1..7f6704af47 100644
--- a/src/d/actor/d_a_obj_ganonwall.cpp
+++ b/src/d/actor/d_a_obj_ganonwall.cpp
@@ -86,7 +86,7 @@ int daObjGWall_c::CreateHeap() {
int daObjGWall_c::create() {
fopAcM_ct(this, daObjGWall_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, CheckCreateHeap, 0x3500)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_ganonwall2.cpp b/src/d/actor/d_a_obj_ganonwall2.cpp
index 7ab8705d3a..80513d1bc1 100644
--- a/src/d/actor/d_a_obj_ganonwall2.cpp
+++ b/src/d/actor/d_a_obj_ganonwall2.cpp
@@ -80,9 +80,9 @@ int daObjGWall2_c::create1st() {
{
return cPhs_ERROR_e;
}
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
- phase = (cPhs__Step)MoveBGCreate(l_arcName, 11, NULL, 0x6100, NULL);
+ phase = MoveBGCreate(l_arcName, 11, NULL, 0x6100, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_gm.cpp b/src/d/actor/d_a_obj_gm.cpp
index a5fd980fc0..714b2ba2fc 100644
--- a/src/d/actor/d_a_obj_gm.cpp
+++ b/src/d/actor/d_a_obj_gm.cpp
@@ -629,11 +629,11 @@ static int useHeapInit(fopAc_ac_c* a_this) {
static daObj_Gm_HIO_c l_HIO;
-static cPhs__Step daObj_Gm_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daObj_Gm_Create(fopAc_ac_c* a_this) {
fopAcM_ct(a_this, obj_gm_class);
obj_gm_class* i_this = (obj_gm_class*)a_this;
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "OBJ_GM");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "OBJ_GM");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("OBJ_GM PARAM %x\n", fopAcM_GetParam(a_this));
a_this->field_0x565 = fopAcM_GetParam(a_this);
diff --git a/src/d/actor/d_a_obj_goGate.cpp b/src/d/actor/d_a_obj_goGate.cpp
index fba08ce0ea..f8b85aded1 100644
--- a/src/d/actor/d_a_obj_goGate.cpp
+++ b/src/d/actor/d_a_obj_goGate.cpp
@@ -28,10 +28,10 @@ int daGoGate_c::CreateHeap() {
return mpModel ? 1 : 0;
}
-cPhs__Step daGoGate_c::create() {
+cPhs_Step daGoGate_c::create() {
fopAcM_ct(this, daGoGate_c);
- cPhs__Step phase = static_cast<cPhs__Step>(dComIfG_resLoad(&mPhase, "P_Ggate"));
+ cPhs_Step phase = static_cast<cPhs_Step>(dComIfG_resLoad(&mPhase, "P_Ggate"));
if (phase == cPhs_COMPLEATE_e) {
if (MoveBGCreate("P_Ggate", 7, dBgS_MoveBGProc_TypicalRotY, 0x1c00, NULL) == cPhs_ERROR_e) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_gra2.cpp b/src/d/actor/d_a_obj_gra2.cpp
index ff81db4ecd..9ac731d7ac 100644
--- a/src/d/actor/d_a_obj_gra2.cpp
+++ b/src/d/actor/d_a_obj_gra2.cpp
@@ -250,13 +250,13 @@ daObj_GrA_c::~daObj_GrA_c() {
#endif
}
-cPhs__Step daObj_GrA_c::create() {
+cPhs_Step daObj_GrA_c::create() {
int uVar1 = 0;
fopAcM_ct(this, daObj_GrA_c);
mMode = getMode();
int i;
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, getResName());
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, getResName());
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
@@ -266,7 +266,7 @@ cPhs__Step daObj_GrA_c::create() {
}
for (i = 0; l_exloadRes_list[mMode][i] >= 0; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhases[i], l_resNames[l_exloadRes_list[mMode][i]]);
+ phase = dComIfG_resLoad(&mPhases[i], l_resNames[l_exloadRes_list[mMode][i]]);
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
diff --git a/src/d/actor/d_a_obj_grave_stone.cpp b/src/d/actor/d_a_obj_grave_stone.cpp
index 8d1a5b3ab8..6dcb0389c0 100644
--- a/src/d/actor/d_a_obj_grave_stone.cpp
+++ b/src/d/actor/d_a_obj_grave_stone.cpp
@@ -156,12 +156,12 @@ int daGraveStone_c::CreateHeap() {
return 1;
}
-cPhs__Step daGraveStone_c::create() {
+cPhs_Step daGraveStone_c::create() {
fopAcM_ct(this, daGraveStone_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhase, l_arcName);
if (step == cPhs_COMPLEATE_e) {
int dzb_id = dComIfG_getObjctResName2Index(l_arcName, "H_Haka.dzb");
- step = (cPhs__Step)MoveBGCreate(l_arcName, dzb_id,
+ step = MoveBGCreate(l_arcName, dzb_id,
dBgS_MoveBGProc_TypicalRotY, 0x29A0, NULL);
if (step == cPhs_ERROR_e) {
return step;
@@ -211,7 +211,7 @@ static int daGraveStone_Delete(daGraveStone_c* i_this) {
return i_this->MoveBGDelete();
}
-static cPhs__Step daGraveStone_create(fopAc_ac_c* i_this) {
+static cPhs_Step daGraveStone_create(fopAc_ac_c* i_this) {
return static_cast<daGraveStone_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_grz_rock.cpp b/src/d/actor/d_a_obj_grz_rock.cpp
index 3d75b738c9..5bd93e131b 100644
--- a/src/d/actor/d_a_obj_grz_rock.cpp
+++ b/src/d/actor/d_a_obj_grz_rock.cpp
@@ -62,7 +62,7 @@ int daObjGrzRock_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjGrzRock_c::create() {
+cPhs_Step daObjGrzRock_c::create() {
fopAcM_ct(this, daObjGrzRock_c);
if (dComIfGs_isSwitch((fopAcM_GetParam(this) >> 8) & 0xFF, fopAcM_GetRoomNo(this))) {
@@ -71,9 +71,9 @@ cPhs__Step daObjGrzRock_c::create() {
int dzb_id = 0;
int i = 0;
- cPhs__Step phase;
+ cPhs_Step phase;
for (; i < 1; i++) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhase[i], l_arcName);
+ phase = dComIfG_resLoad(&mPhase[i], l_arcName);
if (phase == cPhs_ERROR_e || phase == cPhs_UNK3_e) {
return cPhs_ERROR_e;
}
@@ -87,7 +87,7 @@ cPhs__Step daObjGrzRock_c::create() {
dzb_id = dComIfG_getObjctResName2Index(l_arcName, "grZRock.dzb");
JUT_ASSERT(302, dzb_id != -1);
- phase = (cPhs__Step)MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1030, NULL);
+ phase = MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1030, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_h_saku.cpp b/src/d/actor/d_a_obj_h_saku.cpp
index 04877443cd..7461add608 100644
--- a/src/d/actor/d_a_obj_h_saku.cpp
+++ b/src/d/actor/d_a_obj_h_saku.cpp
@@ -80,15 +80,15 @@ int daObjH_Saku_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjH_Saku_c::create() {
+cPhs_Step daObjH_Saku_c::create() {
fopAcM_ct(this, daObjH_Saku_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
int dzb_id = dComIfG_getObjctResName2Index(l_arcName, "H_Saku.dzb");
JUT_ASSERT(113, dzb_id != -1);
- phase = (cPhs__Step)MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1320, NULL);
+ phase = MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1320, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_hasu2.cpp b/src/d/actor/d_a_obj_hasu2.cpp
index 67f98dcfcc..f67a777e9f 100644
--- a/src/d/actor/d_a_obj_hasu2.cpp
+++ b/src/d/actor/d_a_obj_hasu2.cpp
@@ -34,11 +34,11 @@ nObjMHasu::daObjMHasu_c::daObjMHasu_c() :
}
int nObjMHasu::daObjMHasu_c::create1st() {
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(this, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(this, l_arcName);
if (phase == cPhs_COMPLEATE_e)
{
setMtx();
- phase = (cPhs__Step)MoveBGCreate(l_arcName, l_dzbidx, dBgS_MoveBGProc_TypicalRotY, 0x1450, &mMtx);
+ phase = MoveBGCreate(l_arcName, l_dzbidx, dBgS_MoveBGProc_TypicalRotY, 0x1450, &mMtx);
if (phase == cPhs_ERROR_e)
{
return phase;
diff --git a/src/d/actor/d_a_obj_hata.cpp b/src/d/actor/d_a_obj_hata.cpp
index 2135eb42b1..58fcc3dddb 100644
--- a/src/d/actor/d_a_obj_hata.cpp
+++ b/src/d/actor/d_a_obj_hata.cpp
@@ -52,10 +52,10 @@ int daObjHata_c::createHeap() {
return 1;
}
-cPhs__Step daObjHata_c::create() {
+cPhs_Step daObjHata_c::create() {
fopAcM_ct(this, daObjHata_c);
- cPhs__Step phase_step = (cPhs__Step)dComIfG_resLoad(this, l_arcName);
+ cPhs_Step phase_step = dComIfG_resLoad(this, l_arcName);
if (phase_step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, daObjHata_c_createHeap, 0x870)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_hb.cpp b/src/d/actor/d_a_obj_hb.cpp
index 5bb7aa2b54..9f3d904066 100644
--- a/src/d/actor/d_a_obj_hb.cpp
+++ b/src/d/actor/d_a_obj_hb.cpp
@@ -642,11 +642,11 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daOBJ_HB_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daOBJ_HB_Create(fopAc_ac_c* a_this) {
fopAcM_ct(a_this, obj_hb_class);
obj_hb_class* i_this = (obj_hb_class*)a_this;
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "E_HB");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "E_HB");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("OBJ_HB PARAM %x\n", fopAcM_GetParam(a_this));
i_this->arg0 = fopAcM_GetParam(a_this);
diff --git a/src/d/actor/d_a_obj_ihasi.cpp b/src/d/actor/d_a_obj_ihasi.cpp
index 64a79899d2..fe3219ee6c 100644
--- a/src/d/actor/d_a_obj_ihasi.cpp
+++ b/src/d/actor/d_a_obj_ihasi.cpp
@@ -152,7 +152,7 @@ static int daObj_Ihasi_Create(fopAc_ac_c* i_actor) {
obj_ihasi_class* i_this = static_cast<obj_ihasi_class*>(i_actor);
fopAcM_ct(i_this, obj_ihasi_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&i_this->mPhaseReq, "Obj_ihasi");
+ cPhs_Step step = dComIfG_resLoad(&i_this->mPhaseReq, "Obj_ihasi");
if (step == cPhs_COMPLEATE_e) {
OS_REPORT("OBJ_IHASI PARAM %x\n", fopAcM_GetParam(i_actor));
diff --git a/src/d/actor/d_a_obj_ikada.cpp b/src/d/actor/d_a_obj_ikada.cpp
index a6bc5f2cf1..ef1f729c09 100644
--- a/src/d/actor/d_a_obj_ikada.cpp
+++ b/src/d/actor/d_a_obj_ikada.cpp
@@ -98,15 +98,15 @@ int daObjIkada_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjIkada_c::create() {
+cPhs_Step daObjIkada_c::create() {
fopAcM_ct(this, daObjIkada_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
int dzb_id = dComIfG_getObjctResName2Index(l_arcName, "M_Ikada.dzb");
JUT_ASSERT(108, dzb_id != -1);
- phase = (cPhs__Step)MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0xC00, NULL);
+ phase = MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0xC00, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_ita.cpp b/src/d/actor/d_a_obj_ita.cpp
index 994a406d79..a1dd15fe68 100644
--- a/src/d/actor/d_a_obj_ita.cpp
+++ b/src/d/actor/d_a_obj_ita.cpp
@@ -186,14 +186,14 @@ int daObjIta_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjIta_c::create() {
+cPhs_Step daObjIta_c::create() {
fopAcM_ct(this, daObjIta_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
int dzb_id = dComIfG_getObjctResName2Index(l_arcName, "M_FloatingDust00.dzb");
JUT_ASSERT(763, dzb_id != -1);
- phase = (cPhs__Step)MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1320, NULL);
+ phase = MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY, 0x1320, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_itamato.cpp b/src/d/actor/d_a_obj_itamato.cpp
index 54ada49cda..92d15e694f 100644
--- a/src/d/actor/d_a_obj_itamato.cpp
+++ b/src/d/actor/d_a_obj_itamato.cpp
@@ -126,11 +126,11 @@ daObj_ItaMato_c::~daObj_ItaMato_c() {
dComIfG_resDelete(&mPhase, getResName());
}
-cPhs__Step daObj_ItaMato_c::create() {
+cPhs_Step daObj_ItaMato_c::create() {
fopAcM_ct(this, daObj_ItaMato_c);
mType = getType();
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, getResName());
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, getResName());
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) no:%d, SWBit:%02x, SWBit2:%02x<%08x> -> roomNo.%d", fopAcM_getProcNameString(this), getType(), getNo(),
getBitSW(), getBitSW2(), fopAcM_GetParam(this), fopAcM_GetRoomNo(this));
diff --git a/src/d/actor/d_a_obj_ito.cpp b/src/d/actor/d_a_obj_ito.cpp
index c17ac611dc..87de60ae46 100644
--- a/src/d/actor/d_a_obj_ito.cpp
+++ b/src/d/actor/d_a_obj_ito.cpp
@@ -592,12 +592,12 @@ static int useHeapInit(fopAc_ac_c* a_this) {
return 1;
}
-static cPhs__Step daObj_Ito_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daObj_Ito_Create(fopAc_ac_c* a_this) {
fopAcM_ct(a_this, obj_ito_class);
obj_ito_class* i_this = (obj_ito_class*)a_this;
a_this = &i_this->actor;
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&i_this->mPhase, "OBJ_ITO");
+ cPhs_Step phase = dComIfG_resLoad(&i_this->mPhase, "OBJ_ITO");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("OBJ_ITO PARAM %x\n", fopAcM_GetParam(a_this));
diff --git a/src/d/actor/d_a_obj_kabuto.cpp b/src/d/actor/d_a_obj_kabuto.cpp
index ddfaedaa41..4e5413fa63 100644
--- a/src/d/actor/d_a_obj_kabuto.cpp
+++ b/src/d/actor/d_a_obj_kabuto.cpp
@@ -106,7 +106,7 @@ int daObjKABUTO_c::CreateHeap() {
return 1;
}
-static cPhs__Step daObjKABUTO_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjKABUTO_Create(fopAc_ac_c* i_this) {
return static_cast<daObjKABUTO_c*>(i_this)->create();
}
@@ -723,9 +723,9 @@ bool daObjKABUTO_c::CreateChk() {
return true;
}
-cPhs__Step daObjKABUTO_c::create() {
+cPhs_Step daObjKABUTO_c::create() {
fopAcM_ct(this, daObjKABUTO_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, "Kab_m");
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, "Kab_m");
if (step == cPhs_COMPLEATE_e) {
mLocation = fopAcM_GetParam(this) & 0xf;
diff --git a/src/d/actor/d_a_obj_kag.cpp b/src/d/actor/d_a_obj_kag.cpp
index e265521494..22db0ab5cb 100644
--- a/src/d/actor/d_a_obj_kag.cpp
+++ b/src/d/actor/d_a_obj_kag.cpp
@@ -639,12 +639,12 @@ static u16 const l_musiya_num[2] = {
0x01A8
};
-cPhs__Step daObjKAG_c::create() {
+cPhs_Step daObjKAG_c::create() {
u8 uVar1 = (fopAcM_GetParam(this) & 0xF00) >> 8;
fopAcM_ct(this, daObjKAG_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, "I_Kag");
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, "I_Kag");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("KAG PARAM %x\n", fopAcM_GetParam(this));
diff --git a/src/d/actor/d_a_obj_kago.cpp b/src/d/actor/d_a_obj_kago.cpp
index fc1ff5ca51..311f092bfe 100644
--- a/src/d/actor/d_a_obj_kago.cpp
+++ b/src/d/actor/d_a_obj_kago.cpp
@@ -92,7 +92,7 @@ daObj_Kago_c::~daObj_Kago_c() {
dComIfG_resDelete(&mPhase, l_resNameList[l_bmdData[0][1]]);
}
-cPhs__Step daObj_Kago_c::create() {
+cPhs_Step daObj_Kago_c::create() {
static int const heapSize[5] = {
0x0820, 0x0820, 0, 0x0820, 0,
};
@@ -101,7 +101,7 @@ cPhs__Step daObj_Kago_c::create() {
mType = getType();
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_resNameList[l_bmdData[0][1]]);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_resNameList[l_bmdData[0][1]]);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) <%08x> -> roomNo.%d", fopAcM_getProcNameString(this), getType(), fopAcM_GetParam(this), fopAcM_GetRoomNo(this));
if (mType == 0 && isDelete()) {
diff --git a/src/d/actor/d_a_obj_kaisou.cpp b/src/d/actor/d_a_obj_kaisou.cpp
index bd5c84cfaa..d854741350 100644
--- a/src/d/actor/d_a_obj_kaisou.cpp
+++ b/src/d/actor/d_a_obj_kaisou.cpp
@@ -248,10 +248,10 @@ static int daObjKaisou_Execute(daObjKaisou_c* i_this) {
return i_this->Execute();
}
-cPhs__Step daObjKaisou_c::create() {
+cPhs_Step daObjKaisou_c::create() {
fopAcM_ct(this, daObjKaisou_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
if (dComIfGs_isStageBossEnemy() && dComIfGp_getStartStageRoomNo() == 50) {
if (strcmp("D_MN01A", dComIfGp_getStartStageName()) == 0) {
diff --git a/src/d/actor/d_a_obj_ki.cpp b/src/d/actor/d_a_obj_ki.cpp
index f8a8192a42..cec0fa740c 100644
--- a/src/d/actor/d_a_obj_ki.cpp
+++ b/src/d/actor/d_a_obj_ki.cpp
@@ -139,10 +139,10 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daObj_Ki_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObj_Ki_Create(fopAc_ac_c* i_this) {
obj_ki_class* _this = static_cast<obj_ki_class*>(i_this);
fopAcM_ct(_this, obj_ki_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhaseReq, "Obj_Ki");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhaseReq, "Obj_Ki");
if (step == cPhs_COMPLEATE_e) {
_this->mBmdIdx = (u8)fopAcM_GetParam(_this);
diff --git a/src/d/actor/d_a_obj_klift00.cpp b/src/d/actor/d_a_obj_klift00.cpp
index 8529063a0b..739c7fe7f8 100644
--- a/src/d/actor/d_a_obj_klift00.cpp
+++ b/src/d/actor/d_a_obj_klift00.cpp
@@ -114,16 +114,16 @@ void dummy() {
delete (dCcD_Cyl*)NULL;
}
-cPhs__Step daObjKLift00_c::create1st() {
+cPhs_Step daObjKLift00_c::create1st() {
mNumChainModels = getArg0();
mNumChains = mNumChainModels + 1;
- cPhs__Step phase = static_cast<cPhs__Step>(dComIfG_resLoad(this, l_arcName));
+ cPhs_Step phase = static_cast<cPhs_Step>(dComIfG_resLoad(this, l_arcName));
if(phase == cPhs_COMPLEATE_e) {
#if DEBUG
- phase = static_cast<cPhs__Step>(MoveBGCreate(l_arcName, l_dzbidx[0], dBgS_MoveBGProc_TypicalRotY, 0x2000, NULL));
+ phase = static_cast<cPhs_Step>(MoveBGCreate(l_arcName, l_dzbidx[0], dBgS_MoveBGProc_TypicalRotY, 0x2000, NULL));
#else
- phase = static_cast<cPhs__Step>(MoveBGCreate(l_arcName, 9, dBgS_MoveBGProc_TypicalRotY, 0x2000, NULL));
+ phase = static_cast<cPhs_Step>(MoveBGCreate(l_arcName, 9, dBgS_MoveBGProc_TypicalRotY, 0x2000, NULL));
#endif
if(phase == cPhs_ERROR_e)
return phase;
diff --git a/src/d/actor/d_a_obj_kshutter.cpp b/src/d/actor/d_a_obj_kshutter.cpp
index 917a9c5332..a484837a78 100644
--- a/src/d/actor/d_a_obj_kshutter.cpp
+++ b/src/d/actor/d_a_obj_kshutter.cpp
@@ -304,7 +304,7 @@ void daObjKshtr_c::initKey() {
}
}
-cPhs__Step daObjKshtr_c::phase_0() {
+cPhs_Step daObjKshtr_c::phase_0() {
if (!field_0x619) {
mHomeAngleZ = home.angle.z;
mHomeAngleX = home.angle.x;
@@ -334,17 +334,17 @@ cPhs__Step daObjKshtr_c::phase_0() {
}
#endif
- cPhs__Step phase;
+ cPhs_Step phase;
if (l_anmArcName[mType] != NULL) {
- phase = (cPhs__Step)dComIfG_resLoad(&mPhase2, l_anmArcName[mType]);
+ phase = dComIfG_resLoad(&mPhase2, l_anmArcName[mType]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
}
}
- phase = (cPhs__Step)dComIfG_resLoad(&mPhase1, l_arcName[mType]);
+ phase = dComIfG_resLoad(&mPhase1, l_arcName[mType]);
if (phase == cPhs_COMPLEATE_e) {
- phase = (cPhs__Step)MoveBGCreate(l_arcName[mType], l_dzb[mType], NULL, l_heap_size[mType], NULL);
+ phase = MoveBGCreate(l_arcName[mType], l_dzb[mType], NULL, l_heap_size[mType], NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
@@ -356,7 +356,7 @@ cPhs__Step daObjKshtr_c::phase_0() {
return phase;
}
-cPhs__Step daObjKshtr_c::phase_1() {
+cPhs_Step daObjKshtr_c::phase_1() {
if (mKeyHoleId != fpcM_ERROR_PROCESS_ID_e) {
obj_keyhole_class* keyhole_p = (obj_keyhole_class*)fopAcM_SearchByID(mKeyHoleId);
@@ -376,11 +376,11 @@ cPhs__Step daObjKshtr_c::phase_1() {
return cPhs_INIT_e;
}
-cPhs__Step daObjKshtr_c::phase_2() {
+cPhs_Step daObjKshtr_c::phase_2() {
return cPhs_COMPLEATE_e;
}
-cPhs__Step daObjKshtr_c::create1st() {
+cPhs_Step daObjKshtr_c::create1st() {
static daObjKshtr_c::PhaseFunc l_ct_func[3] = {
&daObjKshtr_c::phase_0,
&daObjKshtr_c::phase_1,
diff --git a/src/d/actor/d_a_obj_kwheel00.cpp b/src/d/actor/d_a_obj_kwheel00.cpp
index c5a1d675c9..ad63eb2234 100644
--- a/src/d/actor/d_a_obj_kwheel00.cpp
+++ b/src/d/actor/d_a_obj_kwheel00.cpp
@@ -45,11 +45,11 @@ int daObjKWheel00_c::create1st() {
m_type = static_cast<Type_e>(getType());
JUT_ASSERT(118, m_type == 0 || m_type == 1);
- cPhs__Step phase = static_cast<cPhs__Step>(dComIfG_resLoad(this, l_arcName[m_type]));
+ cPhs_Step phase = static_cast<cPhs_Step>(dComIfG_resLoad(this, l_arcName[m_type]));
if(phase == cPhs_COMPLEATE_e) {
setMtx();
- phase = static_cast<cPhs__Step>(MoveBGCreate(l_arcName[m_type], l_dzbidx[m_type], NULL, 0x4000, &mNewBgMtx));
+ phase = static_cast<cPhs_Step>(MoveBGCreate(l_arcName[m_type], l_dzbidx[m_type], NULL, 0x4000, &mNewBgMtx));
if(phase == cPhs_ERROR_e)
return phase;
diff --git a/src/d/actor/d_a_obj_kwheel01.cpp b/src/d/actor/d_a_obj_kwheel01.cpp
index cf5e5d1eaf..b861f43bab 100644
--- a/src/d/actor/d_a_obj_kwheel01.cpp
+++ b/src/d/actor/d_a_obj_kwheel01.cpp
@@ -53,7 +53,7 @@ static Vec l_pos[4] = {
{-930.0f, -165.0f, 0.0f}, {0.0f, -165.0f, -930.0f}
};
-cPhs__Step daObjKWheel01_c::create1st() {
+cPhs_Step daObjKWheel01_c::create1st() {
bool atLeastOneKLiftExists = false;
s8 debugStackVar;
@@ -78,13 +78,13 @@ cPhs__Step daObjKWheel01_c::create1st() {
}
}
- cPhs__Step phase = static_cast<cPhs__Step>(dComIfG_resLoad(this, l_arcName));
+ cPhs_Step phase = static_cast<cPhs_Step>(dComIfG_resLoad(this, l_arcName));
if(phase == cPhs_COMPLEATE_e) {
mYAngularVelocity = 0;
setMtx();
- phase = static_cast<cPhs__Step>(MoveBGCreate(l_arcName, (getOut() ? l_dzbidx[2] : l_dzbidx[0]), dBgS_MoveBGProc_TypicalRotY, 0x5D98, &mNewBgMtx));
+ phase = static_cast<cPhs_Step>(MoveBGCreate(l_arcName, (getOut() ? l_dzbidx[2] : l_dzbidx[0]), dBgS_MoveBGProc_TypicalRotY, 0x5D98, &mNewBgMtx));
if(phase == cPhs_ERROR_e)
return phase;
diff --git a/src/d/actor/d_a_obj_lbox.cpp b/src/d/actor/d_a_obj_lbox.cpp
index cbd2c361a5..2928266677 100644
--- a/src/d/actor/d_a_obj_lbox.cpp
+++ b/src/d/actor/d_a_obj_lbox.cpp
@@ -134,7 +134,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daObj_Lbox_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObj_Lbox_Create(fopAc_ac_c* i_this) {
static dCcD_SrcSph cc_sph_src = {
{
{0x0, {{0x0, 0x0, 0x0}, {0xd8fbfdff, 0x3}, 0x0}}, // mObj
@@ -149,7 +149,7 @@ static cPhs__Step daObj_Lbox_Create(fopAc_ac_c* i_this) {
obj_lbox_class* a_this = static_cast<obj_lbox_class*>(i_this);
fopAcM_ct(a_this, obj_lbox_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&a_this->mPhaseReq, "Obj_lbox");
+ cPhs_Step step = dComIfG_resLoad(&a_this->mPhaseReq, "Obj_lbox");
if (step == cPhs_COMPLEATE_e) {
a_this->mParam = fopAcM_GetParam(i_this);
diff --git a/src/d/actor/d_a_obj_lv1Candle00.cpp b/src/d/actor/d_a_obj_lv1Candle00.cpp
index 701f474814..40394300a3 100644
--- a/src/d/actor/d_a_obj_lv1Candle00.cpp
+++ b/src/d/actor/d_a_obj_lv1Candle00.cpp
@@ -51,9 +51,9 @@ int daLv1Cdl00_c::CreateHeap() {
return true;
}
-cPhs__Step daLv1Cdl00_c::create() {
+cPhs_Step daLv1Cdl00_c::create() {
fopAcM_ct(this, daLv1Cdl00_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, "lv1cdl00");
+ cPhs_Step step = dComIfG_resLoad(&mPhase, "lv1cdl00");
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x820)) {
return cPhs_ERROR_e;
@@ -263,7 +263,7 @@ static int daLv1Cdl00_Delete(daLv1Cdl00_c* i_this) {
return i_this->Delete();
}
-static cPhs__Step daLv1Cdl00_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daLv1Cdl00_Create(fopAc_ac_c* i_this) {
return static_cast<daLv1Cdl00_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_lv1Candle01.cpp b/src/d/actor/d_a_obj_lv1Candle01.cpp
index 916b73bdb9..135f74f742 100644
--- a/src/d/actor/d_a_obj_lv1Candle01.cpp
+++ b/src/d/actor/d_a_obj_lv1Candle01.cpp
@@ -51,9 +51,9 @@ int daLv1Cdl01_c::CreateHeap() {
return true;
}
-cPhs__Step daLv1Cdl01_c::create() {
+cPhs_Step daLv1Cdl01_c::create() {
fopAcM_ct(this, daLv1Cdl01_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, "lv1cdl01");
+ cPhs_Step step = dComIfG_resLoad(&mPhase, "lv1cdl01");
if (step == cPhs_COMPLEATE_e) {
if (MoveBGCreate("lv1cdl01", -1, NULL, 0x820, NULL) == cPhs_ERROR_e) {
return cPhs_ERROR_e;
@@ -217,7 +217,7 @@ static int daLv1Cdl01_Delete(daLv1Cdl01_c* i_this) {
return i_this->MoveBGDelete();
}
-static cPhs__Step daLv1Cdl01_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daLv1Cdl01_Create(fopAc_ac_c* i_this) {
return static_cast<daLv1Cdl01_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_lv2Candle.cpp b/src/d/actor/d_a_obj_lv2Candle.cpp
index d0e7100c44..f8c7dc7ab0 100644
--- a/src/d/actor/d_a_obj_lv2Candle.cpp
+++ b/src/d/actor/d_a_obj_lv2Candle.cpp
@@ -84,13 +84,13 @@ int daLv2Candle_c::CreateHeap() {
return true;
}
-cPhs__Step daLv2Candle_c::create() {
+cPhs_Step daLv2Candle_c::create() {
fopAcM_ct(this, daLv2Candle_c);
mModelType = getModelType();
if (mModelType == 0xf) {
mModelType = 0;
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, l_resNameIdx[mModelType]);
+ cPhs_Step step = dComIfG_resLoad(&mPhase, l_resNameIdx[mModelType]);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x1000)) {
return cPhs_ERROR_e;
@@ -382,7 +382,7 @@ static int daLv2Candle_Delete(daLv2Candle_c* i_this) {
return i_this->Delete();
}
-static cPhs__Step daLv2Candle_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daLv2Candle_Create(fopAc_ac_c* i_this) {
return static_cast<daLv2Candle_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_lv3Candle.cpp b/src/d/actor/d_a_obj_lv3Candle.cpp
index 6f48136279..079c2e5adc 100644
--- a/src/d/actor/d_a_obj_lv3Candle.cpp
+++ b/src/d/actor/d_a_obj_lv3Candle.cpp
@@ -47,7 +47,7 @@ int daLv3Candle_c::CreateHeap() {
return TRUE;
}
-cPhs__Step daLv3Candle_c::create() {
+cPhs_Step daLv3Candle_c::create() {
fopAcM_ct(this, daLv3Candle_c);
mType = getType();
@@ -55,7 +55,7 @@ cPhs__Step daLv3Candle_c::create() {
mType = 0;
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_resNameIdx[mType]);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_resNameIdx[mType]);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x900)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_lv3Water2.cpp b/src/d/actor/d_a_obj_lv3Water2.cpp
index 486e7e033f..f00fc68485 100644
--- a/src/d/actor/d_a_obj_lv3Water2.cpp
+++ b/src/d/actor/d_a_obj_lv3Water2.cpp
@@ -96,11 +96,11 @@ int daLv3Water2_c::CreateHeap() {
return 1;
}
-cPhs__Step daLv3Water2_c::create() {
+cPhs_Step daLv3Water2_c::create() {
fopAcM_ct(this, daLv3Water2_c);
mResourceIndex = getParam(0, 4);
- cPhs__Step resPhase = static_cast<cPhs__Step>(dComIfG_resLoad(&mPhase, l_resNameIdx[mResourceIndex]));
+ cPhs_Step resPhase = static_cast<cPhs_Step>(dComIfG_resLoad(&mPhase, l_resNameIdx[mResourceIndex]));
if(resPhase == cPhs_COMPLEATE_e) {
if(MoveBGCreate(l_resNameIdx[mResourceIndex], l_dzbIdx[mResourceIndex], NULL, 0x2D00, NULL) == cPhs_ERROR_e)
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_lv6SzGate.cpp b/src/d/actor/d_a_obj_lv6SzGate.cpp
index c8e0d05efc..2ac61affec 100644
--- a/src/d/actor/d_a_obj_lv6SzGate.cpp
+++ b/src/d/actor/d_a_obj_lv6SzGate.cpp
@@ -76,10 +76,10 @@ int daLv6SzGate_c::CreateHeap() {
return 1;
}
-cPhs__Step daLv6SzGate_c::create() {
+cPhs_Step daLv6SzGate_c::create() {
fopAcM_ct(this, daLv6SzGate_c);
- cPhs__Step phase = static_cast<cPhs__Step>(dComIfG_resLoad(&mPhase, "L6SzGate"));
+ cPhs_Step phase = static_cast<cPhs_Step>(dComIfG_resLoad(&mPhase, "L6SzGate"));
if (phase == cPhs_COMPLEATE_e) {
if (MoveBGCreate("L6SzGate", 15, dBgS_MoveBGProc_TypicalRotY, 0x1d80, NULL) == cPhs_ERROR_e)
{
diff --git a/src/d/actor/d_a_obj_lv6bemos.cpp b/src/d/actor/d_a_obj_lv6bemos.cpp
index 40f7fddbb2..2945ce8fce 100644
--- a/src/d/actor/d_a_obj_lv6bemos.cpp
+++ b/src/d/actor/d_a_obj_lv6bemos.cpp
@@ -214,15 +214,15 @@ int daObjL6Bm_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjL6Bm_c::create1st() {
+cPhs_Step daObjL6Bm_c::create1st() {
if (fopAcM_isSwitch(this, getSwBit())) {
OS_REPORT("ビーモス破壊済み!<%d>\n", getSwBit() & 0xFF); // Beamos has been destroyed! <%d>\n
return cPhs_ERROR_e;
}
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
- phase = (cPhs__Step)MoveBGCreate(l_arcName, DZB_K_BIMO00, NULL, 0x4000, NULL);
+ phase = MoveBGCreate(l_arcName, DZB_K_BIMO00, NULL, 0x4000, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_lv6bemos2.cpp b/src/d/actor/d_a_obj_lv6bemos2.cpp
index 90aa698e2b..b56db1563e 100644
--- a/src/d/actor/d_a_obj_lv6bemos2.cpp
+++ b/src/d/actor/d_a_obj_lv6bemos2.cpp
@@ -299,7 +299,7 @@ int daObjLv6Bm_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjLv6Bm_c::create1st() {
+cPhs_Step daObjLv6Bm_c::create1st() {
if (fopAcM_isSwitch(this, (u8)getSwNo3())) {
OS_REPORT("Lv6ビーモス:既に破壊!<%d>\n", getSwNo3()); // Lv6 Beamos: Already destroyed! <%d>
return cPhs_ERROR_e;
@@ -317,9 +317,9 @@ cPhs__Step daObjLv6Bm_c::create1st() {
field_0xa36 = 1;
}
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
- phase = (cPhs__Step)MoveBGCreate(l_arcName, DZB_BM6, dBgS_MoveBGProc_TypicalRotY, 0x2FA0, NULL);
+ phase = MoveBGCreate(l_arcName, DZB_BM6, dBgS_MoveBGProc_TypicalRotY, 0x2FA0, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
diff --git a/src/d/actor/d_a_obj_magne_arm.cpp b/src/d/actor/d_a_obj_magne_arm.cpp
index 2557777987..e2531f8d34 100644
--- a/src/d/actor/d_a_obj_magne_arm.cpp
+++ b/src/d/actor/d_a_obj_magne_arm.cpp
@@ -332,20 +332,20 @@ int daObjMarm_c::CreateHeap() {
return TRUE;
}
-cPhs__Step daObjMarm_c::phase_0() {
+cPhs_Step daObjMarm_c::phase_0() {
mMoveType = getMoveType();
int phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
phase = MoveBGCreate(l_arcName, 21, dBgS_MoveBGProc_Typical, 0x6000, NULL);
if (phase == cPhs_ERROR_e) {
- return (cPhs__Step)phase;
+ return phase;
}
mPhaseIndex++;
}
return cPhs_INIT_e;
}
-cPhs__Step daObjMarm_c::phase_1() {
+cPhs_Step daObjMarm_c::phase_1() {
cXyz scale(1.0f, 1.0f, 1.0f);
mID = fopAcM_create(PROC_Obj_MHole, 0x12FF, &current.pos, fopAcM_GetRoomNo(this),
&current.angle, &scale, -1);
@@ -357,7 +357,7 @@ cPhs__Step daObjMarm_c::phase_1() {
return cPhs_INIT_e;
}
-cPhs__Step daObjMarm_c::phase_2() {
+cPhs_Step daObjMarm_c::phase_2() {
daObjMHole_c* m_hole_actor = (daObjMHole_c*)fopAcM_SearchByID(mID);
if (m_hole_actor != NULL) {
csXyz angle(0, 0, 0);
@@ -375,7 +375,7 @@ cPhs__Step daObjMarm_c::phase_2() {
}
int daObjMarm_c::create1st() {
- typedef cPhs__Step (daObjMarm_c::*daObjMarm_func)();
+ typedef cPhs_Step (daObjMarm_c::*daObjMarm_func)();
static daObjMarm_func l_ct_func[] = {
&daObjMarm_c::phase_0,
&daObjMarm_c::phase_1,
diff --git a/src/d/actor/d_a_obj_maki.cpp b/src/d/actor/d_a_obj_maki.cpp
index c20b7f3004..c555335745 100644
--- a/src/d/actor/d_a_obj_maki.cpp
+++ b/src/d/actor/d_a_obj_maki.cpp
@@ -19,7 +19,7 @@
#include "f_op/f_op_actor_mng.h"
#include "m_Do/m_Do_ext.h"
#include "m_Do/m_Do_mtx.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
daObj_Maki_HIO_c::daObj_Maki_HIO_c() {
field_0x4 = -1;
@@ -178,7 +178,7 @@ int useHeapInit(fopAc_ac_c* i_this) {
daObj_Maki_HIO_c l_HIO;
-cPhs__Step daObj_Maki_Create(fopAc_ac_c* i_this) {
+cPhs_Step daObj_Maki_Create(fopAc_ac_c* i_this) {
fopAcM_ct(i_this, obj_maki_class);
obj_maki_class* a_this = (obj_maki_class*)i_this;
static dCcD_SrcSph cc_sph_src = {
@@ -193,7 +193,7 @@ cPhs__Step daObj_Maki_Create(fopAc_ac_c* i_this) {
} // mSphAttr
};
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&a_this->mPhase, "Obj_maki");
+ cPhs_Step phase = dComIfG_resLoad(&a_this->mPhase, "Obj_maki");
if (phase == cPhs_COMPLEATE_e) {
a_this->field_0x57c = (u8)fopAcM_GetParam(a_this);
u32 cVar3 = fopAcM_GetParam(a_this) >> 0x18;
diff --git a/src/d/actor/d_a_obj_mirror_chain.cpp b/src/d/actor/d_a_obj_mirror_chain.cpp
index 75bb7fd32f..83285c0c80 100644
--- a/src/d/actor/d_a_obj_mirror_chain.cpp
+++ b/src/d/actor/d_a_obj_mirror_chain.cpp
@@ -477,10 +477,10 @@ void daObjMirrorChain_c::create_init() {
initBaseMtx();
}
-cPhs__Step daObjMirrorChain_c::create() {
+cPhs_Step daObjMirrorChain_c::create() {
fopAcM_ct(this, daObjMirrorChain_c);
- cPhs__Step phase_state = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step phase_state = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (phase_state == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createSolidHeap, 0x71b0)) {
return cPhs_ERROR_e;
@@ -491,7 +491,7 @@ cPhs__Step daObjMirrorChain_c::create() {
return phase_state;
}
-static cPhs__Step daObjMirrorChain_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjMirrorChain_Create(fopAc_ac_c* i_this) {
fopAcM_GetID(i_this);
return ((daObjMirrorChain_c*)i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_mirror_screw.cpp b/src/d/actor/d_a_obj_mirror_screw.cpp
index 13a0c64eb5..eafd4740e2 100644
--- a/src/d/actor/d_a_obj_mirror_screw.cpp
+++ b/src/d/actor/d_a_obj_mirror_screw.cpp
@@ -142,7 +142,7 @@ static int daObjMirrorScrew_Delete(daObjMirrorScrew_c* i_this) {
return 1;
}
-cPhs__Step daObjMirrorScrew_c::create() {
+cPhs_Step daObjMirrorScrew_c::create() {
fopAcM_ct(this, daObjMirrorScrew_c);
if (fopAcM_isSwitch(this, getSwitchNo()) ||
/* dSv_event_flag_c::F_0361 - Arbiter's Grounds - Spun the spinning pillars */
@@ -153,9 +153,9 @@ cPhs__Step daObjMirrorScrew_c::create() {
return cPhs_ERROR_e;
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_COMPLEATE_e) {
- step = (cPhs__Step)MoveBGCreate(l_arcName, 7, dBgS_MoveBGProc_TypicalRotY, 0xc760, NULL);
+ step = MoveBGCreate(l_arcName, 7, dBgS_MoveBGProc_TypicalRotY, 0xc760, NULL);
if (step == cPhs_ERROR_e) {
return step;
}
@@ -164,7 +164,7 @@ cPhs__Step daObjMirrorScrew_c::create() {
return step;
}
-static cPhs__Step daObjMirrorScrew_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjMirrorScrew_Create(fopAc_ac_c* i_this) {
fopAcM_GetID(i_this);
return static_cast<daObjMirrorScrew_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_mirror_table.cpp b/src/d/actor/d_a_obj_mirror_table.cpp
index c366e2dae3..5746ad13d1 100644
--- a/src/d/actor/d_a_obj_mirror_table.cpp
+++ b/src/d/actor/d_a_obj_mirror_table.cpp
@@ -376,13 +376,13 @@ static int daObjMirrorTable_Delete(daObjMirrorTable_c* i_this) {
return 1;
}
-static cPhs__Step daObjMirrorTable_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjMirrorTable_Create(fopAc_ac_c* i_this) {
return static_cast<daObjMirrorTable_c*>(i_this)->create();
}
-cPhs__Step daObjMirrorTable_c::create() {
+cPhs_Step daObjMirrorTable_c::create() {
fopAcM_ct(this, daObjMirrorTable_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createSolidHeap, 0xdb50)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_nameplate.cpp b/src/d/actor/d_a_obj_nameplate.cpp
index eede848e44..fc9e9074ab 100644
--- a/src/d/actor/d_a_obj_nameplate.cpp
+++ b/src/d/actor/d_a_obj_nameplate.cpp
@@ -8,7 +8,7 @@
#include "d/actor/d_a_obj_nameplate.h"
#include "d/actor/d_a_alink.h"
#include "d/d_a_obj.h"
-#include "dolphin/mtx.h"
+#include <dolphin/mtx.h>
#include "f_op/f_op_actor.h"
#include "SSystem/SComponent/c_math.h"
diff --git a/src/d/actor/d_a_obj_ndoor.cpp b/src/d/actor/d_a_obj_ndoor.cpp
index f6bed90cc3..053488884b 100644
--- a/src/d/actor/d_a_obj_ndoor.cpp
+++ b/src/d/actor/d_a_obj_ndoor.cpp
@@ -103,7 +103,7 @@ static int daObj_Ndoor_Create(fopAc_ac_c* i_this) {
obj_ndoor_class* a_this = (obj_ndoor_class*)i_this;
fopAcM_ct(i_this, obj_ndoor_class);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&a_this->mPhase, "Obj_ndoor");
+ cPhs_Step phase = dComIfG_resLoad(&a_this->mPhase, "Obj_ndoor");
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("OBJ_NDOOR PARAM %x\n", fopAcM_GetParam(a_this));
diff --git a/src/d/actor/d_a_obj_ornament_cloth.cpp b/src/d/actor/d_a_obj_ornament_cloth.cpp
index fe5e515d0f..07c94fcd16 100644
--- a/src/d/actor/d_a_obj_ornament_cloth.cpp
+++ b/src/d/actor/d_a_obj_ornament_cloth.cpp
@@ -287,10 +287,10 @@ static int daObjOnCloth_Delete(daObjOnCloth_c* i_this) {
ClothJoint_c::~ClothJoint_c() {}
-cPhs__Step daObjOnCloth_c::create() {
+cPhs_Step daObjOnCloth_c::create() {
fopAcM_ct(this, daObjOnCloth_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_arcName);
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createSolidHeap, 0x9A0)) {
return cPhs_ERROR_e;
@@ -303,7 +303,7 @@ cPhs__Step daObjOnCloth_c::create() {
return phase;
}
-static cPhs__Step daObjOnCloth_Create(fopAc_ac_c* a_this) {
+static cPhs_Step daObjOnCloth_Create(fopAc_ac_c* a_this) {
return static_cast<daObjOnCloth_c*>(a_this)->create();
}
diff --git a/src/d/actor/d_a_obj_pumpkin.cpp b/src/d/actor/d_a_obj_pumpkin.cpp
index 1f610d1429..c2e8e6e8ab 100644
--- a/src/d/actor/d_a_obj_pumpkin.cpp
+++ b/src/d/actor/d_a_obj_pumpkin.cpp
@@ -180,7 +180,7 @@ int daObj_Pumpkin_c::create() {
fopAcM_ct(this, daObj_Pumpkin_c);
mType = getType();
- cPhs__Step phase = (cPhs__Step) dComIfG_resLoad(&mPhaseReq, l_resNameList[l_bmdData[0][1]]);
+ cPhs_Step phase = dComIfG_resLoad(&mPhaseReq, l_resNameList[l_bmdData[0][1]]);
if (phase == cPhs_COMPLEATE_e) {
OS_REPORT("\t(%s:%d) ItemTableNo:%d, ProcType:%d<%08x> -> roomNo.%d", fopAcM_getProcNameString(this),
getType(), getItemTableNo(), getProcType(), fopAcM_GetParam(this), fopAcM_GetRoomNo(this));
diff --git a/src/d/actor/d_a_obj_rock.cpp b/src/d/actor/d_a_obj_rock.cpp
index 65fe8a4493..2494a2f534 100644
--- a/src/d/actor/d_a_obj_rock.cpp
+++ b/src/d/actor/d_a_obj_rock.cpp
@@ -105,7 +105,7 @@ static int daObj_Rock_Create(fopAc_ac_c* i_this) {
obj_rock_class* a_this = static_cast<obj_rock_class*>(i_this);
fopAcM_ct(a_this, obj_rock_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&a_this->mPhaseReq, "Obj_rock");
+ cPhs_Step step = dComIfG_resLoad(&a_this->mPhaseReq, "Obj_rock");
if (step == cPhs_COMPLEATE_e) {
a_this->mPatchRockNum = fopAcM_GetParam(a_this);
a_this->mRockSpacing = fopAcM_GetParamBit(a_this, 8, 8);
diff --git a/src/d/actor/d_a_obj_saidan.cpp b/src/d/actor/d_a_obj_saidan.cpp
index fcbbbb9e6f..05c64f23ba 100644
--- a/src/d/actor/d_a_obj_saidan.cpp
+++ b/src/d/actor/d_a_obj_saidan.cpp
@@ -34,10 +34,10 @@ int daSaidan_c::CreateHeap() {
return TRUE;
}
-cPhs__Step daSaidan_c::create() {
+cPhs_Step daSaidan_c::create() {
fopAcM_ct(this, daSaidan_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, "H_Saidan");
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, "H_Saidan");
if (step == cPhs_COMPLEATE_e) {
if (MoveBGCreate("H_Saidan", 7, dBgS_MoveBGProc_TypicalRotY, 0x21b0, NULL) == cPhs_ERROR_e)
{
diff --git a/src/d/actor/d_a_obj_sekidoor.cpp b/src/d/actor/d_a_obj_sekidoor.cpp
index ceae036eab..c12f4782c6 100644
--- a/src/d/actor/d_a_obj_sekidoor.cpp
+++ b/src/d/actor/d_a_obj_sekidoor.cpp
@@ -47,7 +47,7 @@ int daObj_SekiDoor_c::create() {
mBitSW = 0;
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_resNameList[l_bmdData[mBitSW].resIdx]);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_resNameList[l_bmdData[mBitSW].resIdx]);
if (step == cPhs_COMPLEATE_e) {
if (getBitSW() != 0xff){
if (dComIfGs_isSwitch(getBitSW(), fopAcM_GetRoomNo(this))) {
@@ -55,7 +55,7 @@ int daObj_SekiDoor_c::create() {
}
}
- step = (cPhs__Step)MoveBGCreate(l_resNameList[l_dzbData[mBitSW].resIdx],
+ step = MoveBGCreate(l_resNameList[l_dzbData[mBitSW].resIdx],
l_dzbData[mBitSW].dzbIdx, dBgS_MoveBGProc_TypicalRotY, 0xc20, NULL
);
diff --git a/src/d/actor/d_a_obj_sekizo.cpp b/src/d/actor/d_a_obj_sekizo.cpp
index dda9c26f3e..cfc74ef949 100644
--- a/src/d/actor/d_a_obj_sekizo.cpp
+++ b/src/d/actor/d_a_obj_sekizo.cpp
@@ -41,14 +41,14 @@ void daObj_Sekizo_HIO_c::genMessage(JORMContext* ctx) {
}
#endif
-cPhs__Step daObj_Sekizo_c::create() {
+cPhs_Step daObj_Sekizo_c::create() {
fopAcM_ct(this, daObj_Sekizo_c);
field_0x5b0 = 0;
- cPhs__Step step =
- (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_resNameList[l_bmdData[field_0x5b0].resIdx]);
+ cPhs_Step step =
+ dComIfG_resLoad(&mPhaseReq, l_resNameList[l_bmdData[field_0x5b0].resIdx]);
if (step == cPhs_COMPLEATE_e) {
- step = (cPhs__Step)MoveBGCreate(l_resNameList[l_dzbData[field_0x5b0].resIdx],
+ step = MoveBGCreate(l_resNameList[l_dzbData[field_0x5b0].resIdx],
l_dzbData[field_0x5b0].dzbIdx, dBgS_MoveBGProc_TypicalRotY,
0x4000, NULL);
if (step == cPhs_ERROR_e) {
diff --git a/src/d/actor/d_a_obj_sekizoa.cpp b/src/d/actor/d_a_obj_sekizoa.cpp
index 5147442ba9..490005649b 100644
--- a/src/d/actor/d_a_obj_sekizoa.cpp
+++ b/src/d/actor/d_a_obj_sekizoa.cpp
@@ -6,7 +6,7 @@
#include "d/actor/d_a_obj_smtile.h"
#include "d/actor/d_a_tag_evtarea.h"
#include "d/actor/d_a_tag_kmsg.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
#include "f_op/f_op_actor_mng.h"
#include "f_op/f_op_msg.h"
diff --git a/src/d/actor/d_a_obj_sm_door.cpp b/src/d/actor/d_a_obj_sm_door.cpp
index fffd8a6f4e..b1d032b50a 100644
--- a/src/d/actor/d_a_obj_sm_door.cpp
+++ b/src/d/actor/d_a_obj_sm_door.cpp
@@ -14,7 +14,7 @@
static char* l_arcName = "sm_door";
-static cPhs__Step daObjSM_DOOR_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjSM_DOOR_Create(fopAc_ac_c* i_this) {
return static_cast<daObjSM_DOOR_c*>(i_this)->create();
}
@@ -174,9 +174,9 @@ inline int daObjSM_DOOR_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjSM_DOOR_c::create() {
+cPhs_Step daObjSM_DOOR_c::create() {
fopAcM_ct(this, daObjSM_DOOR_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhase, l_arcName);
if (step == cPhs_COMPLEATE_e) {
gravity = -9.0f;
@@ -202,7 +202,7 @@ cPhs__Step daObjSM_DOOR_c::create() {
mSwBit = fopAcM_GetParam(this) >> 8;
- step = (cPhs__Step)MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY,
+ step = MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_TypicalRotY,
0x1F20, NULL);
if (step == cPhs_ERROR_e) {
return step;
diff --git a/src/d/actor/d_a_obj_smw_stone.cpp b/src/d/actor/d_a_obj_smw_stone.cpp
index e243a6f17a..1eab4fb32c 100644
--- a/src/d/actor/d_a_obj_smw_stone.cpp
+++ b/src/d/actor/d_a_obj_smw_stone.cpp
@@ -29,9 +29,9 @@ static u8 const lit_3776[12] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
-cPhs__Step daSmWStone_c::create() {
+cPhs_Step daSmWStone_c::create() {
fopAcM_ct(this, daSmWStone_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(this, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(this, l_arcName);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, daSmWStone_c_createHeap, 0x1000)) {
@@ -170,7 +170,7 @@ bool daSmWStone_c::chkWlfInRange() {
return false;
}
-static cPhs__Step daSmWStone_create(daSmWStone_c* i_this) {
+static cPhs_Step daSmWStone_create(daSmWStone_c* i_this) {
fopAcM_ct(i_this, daSmWStone_c);
return i_this->create();
}
diff --git a/src/d/actor/d_a_obj_snow_soup.cpp b/src/d/actor/d_a_obj_snow_soup.cpp
index f911d9cc90..9fca736a54 100644
--- a/src/d/actor/d_a_obj_snow_soup.cpp
+++ b/src/d/actor/d_a_obj_snow_soup.cpp
@@ -44,9 +44,9 @@ int daObjSnowSoup_c::createHeap() {
return true;
}
-cPhs__Step daObjSnowSoup_c::create() {
+cPhs_Step daObjSnowSoup_c::create() {
fopAcM_ct(this, daObjSnowSoup_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(this, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(this, l_arcName);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, daObjSnowSoup_c_createHeap, 0x6500)) {
return cPhs_ERROR_e;
@@ -167,7 +167,7 @@ void daObjSnowSoup_c::deleteSmkEmtChange(int i_state) {
}
-static cPhs__Step daObjSnowSoup_create(daObjSnowSoup_c* i_this) {
+static cPhs_Step daObjSnowSoup_create(daObjSnowSoup_c* i_this) {
fopAcM_ct(i_this, daObjSnowSoup_c);
return i_this->create();
}
diff --git a/src/d/actor/d_a_obj_stopper.cpp b/src/d/actor/d_a_obj_stopper.cpp
index bee5fc640d..97f978f6a0 100644
--- a/src/d/actor/d_a_obj_stopper.cpp
+++ b/src/d/actor/d_a_obj_stopper.cpp
@@ -75,8 +75,8 @@ int daObjStopper_c::create() {
shape_angle.x = shape_angle.z = 0;
field_0x9fc = 1;
}
- cPhs__Step phase = cPhs_COMPLEATE_e;
- phase = (cPhs__Step)MoveBGCreate(NULL, -1, dBgS_MoveBGProc_TypicalRotY, 0x810, NULL);
+ cPhs_Step phase = cPhs_COMPLEATE_e;
+ phase = MoveBGCreate(NULL, -1, dBgS_MoveBGProc_TypicalRotY, 0x810, NULL);
if (phase == cPhs_ERROR_e) {
return phase;
}
diff --git a/src/d/actor/d_a_obj_sword.cpp b/src/d/actor/d_a_obj_sword.cpp
index ba7aa3c439..e9141a3998 100644
--- a/src/d/actor/d_a_obj_sword.cpp
+++ b/src/d/actor/d_a_obj_sword.cpp
@@ -34,14 +34,14 @@ int daObjSword_c::Create() {
return 1;
}
-cPhs__Step daObjSword_c::create() {
+cPhs_Step daObjSword_c::create() {
fopAcM_ct(this, daObjSword_c);
m_itemNo = 0x28;
if (fopAcM_isItem(this, getItemBit())) {
return cPhs_ERROR_e;
}
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, dItem_data::getFieldArc(m_itemNo));
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, dItem_data::getFieldArc(m_itemNo));
if (phase == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, CheckFieldItemCreateHeap, 0x4000)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_swpush.cpp b/src/d/actor/d_a_obj_swpush.cpp
index 901b3f4210..f4866be6ad 100644
--- a/src/d/actor/d_a_obj_swpush.cpp
+++ b/src/d/actor/d_a_obj_swpush.cpp
@@ -107,8 +107,8 @@ bool daObjSwpush::Act_c::create_heap() {
return rv;
}
-cPhs__Step daObjSwpush::Act_c::create_res_load() {
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, M_arcname[mMdl]);
+cPhs_Step daObjSwpush::Act_c::create_res_load() {
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, M_arcname[mMdl]);
if (phase != cPhs_COMPLEATE_e) {
return phase;
}
@@ -199,7 +199,7 @@ daObjSwpush::Hio_c::Attr_c const daObjSwpush::Act_c::M_attr[5] = {
u8 const daObjSwpush::Act_c::M_op_vtx[4] = {0x0D, 0x0B, 0x0A, 0x0C};
-cPhs__Step daObjSwpush::Act_c::Mthd_Create() {
+cPhs_Step daObjSwpush::Act_c::Mthd_Create() {
fopAcM_ct(this, daObjSwpush::Act_c);
prmZ_init();
@@ -212,7 +212,7 @@ cPhs__Step daObjSwpush::Act_c::Mthd_Create() {
mMdl = 0;
}
- cPhs__Step phase = create_res_load();
+ cPhs_Step phase = create_res_load();
if (phase == cPhs_COMPLEATE_e) {
scale.x *= attr().scale;
scale.z *= attr().scale;
@@ -832,7 +832,7 @@ int daObjSwpush::Act_c::Mthd_Draw() {
namespace daObjSwpush {
namespace {
- cPhs__Step Mthd_Create(void* i_this) {
+ cPhs_Step Mthd_Create(void* i_this) {
return static_cast<Act_c*>(i_this)->Mthd_Create();
}
diff --git a/src/d/actor/d_a_obj_syRock.cpp b/src/d/actor/d_a_obj_syRock.cpp
index cd053b8791..60d50e393f 100644
--- a/src/d/actor/d_a_obj_syRock.cpp
+++ b/src/d/actor/d_a_obj_syRock.cpp
@@ -109,7 +109,7 @@ dCcD_SrcGObjInf const daSyRock_c::mCcDObjInfo = {
{}, // mGObjCo
};
-cPhs__Step daSyRock_c::create() {
+cPhs_Step daSyRock_c::create() {
fopAcM_ct(this, daSyRock_c);
if(getArg0() == TRUE) {
@@ -119,9 +119,9 @@ cPhs__Step daSyRock_c::create() {
return cPhs_INIT_e;
}
- const cPhs__Step requestedPhaseProcess = static_cast<cPhs__Step>(dComIfG_resLoad(&mPhase, "syourock"));
+ const cPhs_Step requestedPhaseProcess = static_cast<cPhs_Step>(dComIfG_resLoad(&mPhase, "syourock"));
if(requestedPhaseProcess == cPhs_COMPLEATE_e) {
- const cPhs__Step bgCreatePhaseProcess = static_cast<cPhs__Step>(MoveBGCreate("syourock", 0x8, dBgS_MoveBGProc_TypicalRotY, 0x2100, NULL));
+ const cPhs_Step bgCreatePhaseProcess = static_cast<cPhs_Step>(MoveBGCreate("syourock", 0x8, dBgS_MoveBGProc_TypicalRotY, 0x2100, NULL));
if(bgCreatePhaseProcess == cPhs_ERROR_e)
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_takaraDai.cpp b/src/d/actor/d_a_obj_takaraDai.cpp
index c57060c4b5..e8a1e919f2 100644
--- a/src/d/actor/d_a_obj_takaraDai.cpp
+++ b/src/d/actor/d_a_obj_takaraDai.cpp
@@ -75,7 +75,7 @@ int daTkraDai_c::CreateHeap() {
int daTkraDai_c::create() {
fopAcM_ct(this, daTkraDai_c);
- cPhs__Step phase = static_cast<cPhs__Step>(dComIfG_resLoad(&mPhase, "M_TakaraD"));
+ cPhs_Step phase = static_cast<cPhs_Step>(dComIfG_resLoad(&mPhase, "M_TakaraD"));
if (phase == cPhs_COMPLEATE_e) {
if (MoveBGCreate("M_TakaraD", 8, dBgS_MoveBGProc_Typical, 0x2e00, NULL) == cPhs_ERROR_e) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_testcube.cpp b/src/d/actor/d_a_obj_testcube.cpp
index 0406c17416..0a1a41ec36 100644
--- a/src/d/actor/d_a_obj_testcube.cpp
+++ b/src/d/actor/d_a_obj_testcube.cpp
@@ -1,25 +1,384 @@
/**
* @file d_a_obj_testcube.cpp
- *
-*/
+ *
+ */
-#include "d/dolzel_rel.h" // IWYU pragma: keep
+#include "d/dolzel_rel.h" // IWYU pragma: keep
#include "d/actor/d_a_obj_testcube.h"
+#if DEBUG
+const char* l_arcName[] = {
+ "K_cube00",
+ "K_cube01",
+ "K_cyli00",
+};
+
+class daObjCube_HIO_c : public mDoHIO_entry_c {
+public:
+ daObjCube_HIO_c();
+ virtual ~daObjCube_HIO_c() {}
+
+ void genMessage(JORMContext*);
+
+ /* 0x6 */ GXColor mColor[255];
+};
+
+daObjCube_HIO_c l_HIO;
+
+static const GXColor l_obj_color[] = {
+ {0x00, 0x00, 0x00, 0xFF}, {0x12, 0x09, 0x00, 0xFF}, {0x0c, 0x0c, 0x0c, 0xFF},
+ {0x1d, 0x14, 0x03, 0xFF}, {0x06, 0x14, 0x06, 0xFF}, {0x2b, 0x20, 0x16, 0xFF},
+ {0x17, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x39, 0xFF}, {0x1f, 0x2f, 0x3f, 0xFF},
+ {0x3f, 0x18, 0x0d, 0xFF}, {0x00, 0x07, 0x17, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x32, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x32, 0xFF},
+ {0x00, 0x32, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+ {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF}, {0x00, 0x00, 0x00, 0xFF},
+};
+
+daObjCube_HIO_c::daObjCube_HIO_c() {
+ for (int i = 0; i < 255; i++) {
+ mColor[i] = l_obj_color[i];
+ }
+}
+
+void daObjCube_HIO_c::genMessage(JORMContext* mctx) {
+ mctx->genLabel("テスト立方体", 0);
+
+ for (int i = 0; i < 255; i++) {
+ char label[256];
+ sprintf(label, "名前引数<%d>のカラー\n", i);
+
+ mctx->genLabel(label, 0);
+ mctx->genSlider("r", &mColor[i].r, 0, 0xFF);
+ mctx->genSlider("g", &mColor[i].g, 0, 0xFF);
+ mctx->genSlider("b", &mColor[i].b, 0, 0xFF);
+ mctx->genSlider("a", &mColor[i].a, 0, 0xFF);
+ }
+}
+
+void daObjCube_c::getDzbName(char* i_buffer) {
+ u8 arg = mNameArg;
+
+ switch (mShape) {
+ case 0:
+ case 1:
+ sprintf(i_buffer, "k_size_cube%02d.dzb", mNameArg);
+ break;
+ case 2:
+ if (arg == 100) {
+ arg = 0;
+ }
+
+ sprintf(i_buffer, "k_size_cyl%02d.dzb", arg);
+ break;
+ }
+}
+
+void daObjCube_c::getBmdName(char* i_buffer) {
+ switch (mShape) {
+ case 0:
+ case 1:
+ sprintf(i_buffer, "K_size_cube.bmd");
+ break;
+ case 2:
+ sprintf(i_buffer, "k_size_cylinder.bmd");
+ break;
+ }
+}
+
+void daObjCube_c::initBaseMtx() {
+ if (mShape == 2) {
+ scale.z = scale.x;
+ }
+
+ setBaseMtx();
+}
+
+void daObjCube_c::setBaseMtx() {
+ mDoMtx_stack_c::transS(current.pos);
+ mDoMtx_stack_c::ZXYrotM(shape_angle);
+ mDoMtx_stack_c::scaleM(scale);
+ mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
+ MTXCopy(mDoMtx_stack_c::get(), mBgMtx);
+}
+
+int daObjCube_c::Create() {
+ if (mNameArg == 100) {
+ scale.x *= 10.0f;
+ scale.y *= 10.0f;
+ scale.z *= 10.0f;
+ }
+
+ initBaseMtx();
+ fopAcM_SetMtx(this, mpModel->getBaseTRMtx());
+
+ cXyz cullMin;
+ cXyz cullMax;
+ J3DJoint* rootJnt = mpModel->getModelData()->getJointNodePointer(0);
+
+ cullMin.x = scale.x * rootJnt->getMin()->x;
+ cullMin.y = scale.y * rootJnt->getMin()->y;
+ cullMin.z = scale.z * rootJnt->getMin()->z;
+
+ cullMax.x = scale.x * rootJnt->getMax()->x;
+ cullMax.y = scale.y * rootJnt->getMax()->y;
+ cullMax.z = scale.z * rootJnt->getMax()->z;
+
+ fopAcM_setCullSizeBox(this, cullMin.x, cullMin.y, cullMin.z, cullMax.x, cullMax.y, cullMax.z);
+ fopAcM_setCullSizeFar(this, 10.0f);
+ return 1;
+}
+
+int daObjCube_c::CreateHeap() {
+ char resName[40];
+ getBmdName(resName);
+
+ J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes(l_arcName[mShape], resName);
+ JUT_ASSERT(581, modelData != NULL);
+ mpModel = mDoExt_J3DModel__create(modelData, 0x80000, 0x11000084);
+ if (mpModel == NULL) {
+ return 0;
+ }
+
+ return 1;
+}
+
+int daObjCube_c::create() {
+ fopAcM_ct(this, daObjCube_c);
+
+ mShape = daObjCube_prm::getShape(this);
+ mNameArg = daObjCube_prm::getNameArg(this);
+
+ int phase_state = dComIfG_resLoad(&mPhase, l_arcName[mShape]);
+ if (phase_state == cPhs_COMPLEATE_e) {
+ char resName[32];
+ getDzbName(resName);
+
+ int dzb_id = dComIfG_getObjctResName2Index(l_arcName[mShape], resName);
+ JUT_ASSERT(621, dzb_id != -1);
+
+ phase_state = MoveBGCreate(l_arcName[mShape], dzb_id, NULL, 0xC10, NULL);
+ if (phase_state == cPhs_ERROR_e) {
+ return phase_state;
+ }
+
+ MoveBGExecute();
+ l_HIO.entryHIO("テスト立方体");
+ }
+
+ return phase_state;
+}
+
+int daObjCube_c::Execute(Mtx** param_0) {
+ u8 arg0 = daObjCube_prm::getArg0(this);
+ u8 sw = daObjCube_prm::getSwitch(this);
+ BOOL isSwitch = fopAcM_isSwitch(this, sw);
+
+ if (sw != 0xFF) {
+ if (arg0 == 0) {
+ if (isSwitch) {
+ if (mpBgW->ChkUsed()) {
+ if (dComIfG_Bgsp().Release(mpBgW)) {
+ OSReport_Error("テスト立方体:MoveBG解除に失敗しました\n");
+ }
+ }
+
+ field_0x5b6 = 1;
+ } else {
+ if (!mpBgW->ChkUsed()) {
+ if (dComIfG_Bgsp().Regist(mpBgW, this)) {
+ OSReport_Error("テスト立方体:MoveBG登録に失敗しました\n");
+ }
+ }
+
+ field_0x5b6 = 0;
+ }
+ } else {
+ if (isSwitch) {
+ if (!mpBgW->ChkUsed()) {
+ if (dComIfG_Bgsp().Regist(mpBgW, this)) {
+ OSReport_Error("テスト立方体:MoveBG登録に失敗しました\n");
+ }
+ }
+
+ field_0x5b6 = 0;
+ } else {
+ if (mpBgW->ChkUsed()) {
+ if (dComIfG_Bgsp().Release(mpBgW)) {
+ OSReport_Error("テスト立方体:MoveBG解除に失敗しました\n");
+ }
+ }
+
+ field_0x5b6 = 1;
+ }
+ }
+ }
+
+ *param_0 = &mBgMtx;
+ return 1;
+}
+
+int daObjCube_c::Draw() {
+ if (field_0x5b6) {
+ return 1;
+ }
+
+ g_env_light.settingTevStruct(0x10, &current.pos, &tevStr);
+ g_env_light.setLightTevColorType_MAJI(mpModel, &tevStr);
+
+ u8 arg = mNameArg;
+ if (arg == 100) {
+ arg = 0;
+ }
+
+ J3DModelData* modelData = mpModel->getModelData();
+ for (u16 i = 0; i < modelData->getMaterialNum(); i++) {
+ J3DMaterial* material = modelData->getMaterialNodePointer(i);
+ J3DGXColor* tevColor = material->getTevKColor(3);
+ tevColor->r = l_HIO.mColor[arg].r;
+ tevColor->g = l_HIO.mColor[arg].g;
+ tevColor->b = l_HIO.mColor[arg].b;
+ tevColor->a = l_HIO.mColor[arg].a;
+ }
+
+ dComIfGd_setListBG();
+ mDoExt_modelUpdateDL(mpModel);
+ dComIfGd_setList();
+ return 1;
+}
+
+int daObjCube_c::Delete() {
+ dComIfG_resDelete(&mPhase, l_arcName[mShape]);
+ l_HIO.removeHIO();
+ return 1;
+}
+
+static int daObjCube_Draw(daObjCube_c* i_this) {
+ return i_this->MoveBGDraw();
+}
+
+static int daObjCube_Execute(daObjCube_c* i_this) {
+ return i_this->MoveBGExecute();
+}
+
+static int daObjCube_Delete(daObjCube_c* i_this) {
+ fpc_ProcID id = fopAcM_GetID(i_this);
+ return i_this->MoveBGDelete();
+}
+
+static int daObjCube_Create(fopAc_ac_c* actor) {
+ daObjCube_c* i_this = (daObjCube_c*)actor;
+ fpc_ProcID id = fopAcM_GetID(actor);
+ return i_this->create();
+}
+
+static actor_method_class l_daObjCube_Method = {
+ (process_method_func)daObjCube_Create,
+ (process_method_func)daObjCube_Delete,
+ (process_method_func)daObjCube_Execute,
+ (process_method_func)NULL,
+ (process_method_func)daObjCube_Draw,
+};
+#endif
+
+#if DEBUG
+#define OBJCUBE_METHODS &l_daObjCube_Method
+#else
+#define OBJCUBE_METHODS NULL
+#endif
+
actor_process_profile_definition g_profile_Obj_TestCube = {
- fpcLy_CURRENT_e, // mLayerID
- 3, // mListID
- fpcPi_CURRENT_e, // mListPrio
- PROC_Obj_TestCube, // mProcName
- &g_fpcLf_Method.base, // sub_method
- 0x000005A0, // mSize
- 0, // mSizeOther
- 0, // mParameters
- &g_fopAc_Method.base, // sub_method
- 442, // mPriority
- NULL, // sub_method
- 0x00040100, // mStatus
- fopAc_ACTOR_e, // mActorType
- fopAc_CULLBOX_CUSTOM_e, // cullType
+ fpcLy_CURRENT_e, // mLayerID
+ 3, // mListID
+ fpcPi_CURRENT_e, // mListPrio
+ PROC_Obj_TestCube, // mProcName
+ &g_fpcLf_Method.base, // sub_method
+ sizeof(daObjCube_c), // mSize
+ 0, // mSizeOther
+ 0, // mParameters
+ &g_fopAc_Method.base, // sub_method
+ 442, // mPriority
+ OBJCUBE_METHODS, // sub_method
+ 0x00040100, // mStatus
+ fopAc_ACTOR_e, // mActorType
+ fopAc_CULLBOX_CUSTOM_e, // cullType
};
diff --git a/src/d/actor/d_a_obj_udoor.cpp b/src/d/actor/d_a_obj_udoor.cpp
index 4cdc971875..43cd6e35b9 100644
--- a/src/d/actor/d_a_obj_udoor.cpp
+++ b/src/d/actor/d_a_obj_udoor.cpp
@@ -107,7 +107,7 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daObj_Udoor_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObj_Udoor_Create(fopAc_ac_c* i_this) {
static dCcD_SrcSph cc_sph_src = {
{
{0x0, {{0x0, 0x0, 0x0}, {0xd8fbfdff, 0x3}, 0x0}}, // mObj
@@ -123,7 +123,7 @@ static cPhs__Step daObj_Udoor_Create(fopAc_ac_c* i_this) {
fopAcM_ct(i_this, obj_udoor_class);
obj_udoor_class* a_this = static_cast<obj_udoor_class*>(i_this);
- cPhs__Step phase_state = (cPhs__Step)dComIfG_resLoad(&a_this->mPhase, "Obj_udoor");
+ cPhs_Step phase_state = dComIfG_resLoad(&a_this->mPhase, "Obj_udoor");
if (phase_state == cPhs_COMPLEATE_e) {
a_this->field_0x570 = fopAcM_GetParam(a_this);
if (a_this->field_0x570 == 0xff) {
diff --git a/src/d/actor/d_a_obj_waterGate.cpp b/src/d/actor/d_a_obj_waterGate.cpp
index ef30c6230c..e20204e937 100644
--- a/src/d/actor/d_a_obj_waterGate.cpp
+++ b/src/d/actor/d_a_obj_waterGate.cpp
@@ -49,10 +49,10 @@ int daWtGate_c::CreateHeap() {
return 1;
}
-cPhs__Step daWtGate_c::create() {
+cPhs_Step daWtGate_c::create() {
fopAcM_ct(this, daWtGate_c);
- const cPhs__Step resPhase = static_cast<cPhs__Step>(dComIfG_resLoad(&mPhase, "S_Zsuimon"));
+ const cPhs_Step resPhase = static_cast<cPhs_Step>(dComIfG_resLoad(&mPhase, "S_Zsuimon"));
if(resPhase == cPhs_COMPLEATE_e) {
if(MoveBGCreate("S_Zsuimon", 7, dBgS_MoveBGProc_TypicalRotY, 0xE00, NULL) == cPhs_ERROR_e)
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_waterPillar.cpp b/src/d/actor/d_a_obj_waterPillar.cpp
index 5dd8545e19..65abe22e5c 100644
--- a/src/d/actor/d_a_obj_waterPillar.cpp
+++ b/src/d/actor/d_a_obj_waterPillar.cpp
@@ -119,9 +119,9 @@ dCcD_SrcCps daWtPillar_c::mCcDCps = {
dCcD_SrcCyl daWtPillar_c::mCcDCyl = {daWtPillar_c::mCcDObjCoInfo};
-cPhs__Step daWtPillar_c::create() {
+cPhs_Step daWtPillar_c::create() {
fopAcM_ct(this, daWtPillar_c);
- const cPhs__Step phase = static_cast<cPhs__Step>(dComIfG_resLoad(&mPhase, "efWater"));
+ const cPhs_Step phase = static_cast<cPhs_Step>(dComIfG_resLoad(&mPhase, "efWater"));
if(phase == cPhs_COMPLEATE_e) {
if(!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x2000))
diff --git a/src/d/actor/d_a_obj_waterfall.cpp b/src/d/actor/d_a_obj_waterfall.cpp
index 2f12cacf8b..1ce008500b 100644
--- a/src/d/actor/d_a_obj_waterfall.cpp
+++ b/src/d/actor/d_a_obj_waterfall.cpp
@@ -175,7 +175,7 @@ static dCcD_SrcCyl l_cyl_src = {
}
};
-cPhs__Step daObjWaterFall_c::Create() {
+cPhs_Step daObjWaterFall_c::Create() {
initBaseMtx();
mCylColliderStts.Init(0, 0xFF, this);
@@ -244,7 +244,7 @@ actor_process_profile_definition g_profile_Obj_WaterFall = {
fopAc_CULLBOX_CUSTOM_e, // cullType
};
-cPhs__Step daObjWaterFall_c::create() {
+cPhs_Step daObjWaterFall_c::create() {
fopAcM_ct(this, daObjWaterFall_c);
if(Create() == cPhs_INIT_e) {
diff --git a/src/d/actor/d_a_obj_wchain.cpp b/src/d/actor/d_a_obj_wchain.cpp
index f3555cdff7..d812cc0040 100644
--- a/src/d/actor/d_a_obj_wchain.cpp
+++ b/src/d/actor/d_a_obj_wchain.cpp
@@ -30,10 +30,10 @@ static int daObjWchain_createHeap(fopAc_ac_c* i_this) {
return static_cast<daObjWchain_c*>(i_this)->createHeap();
}
-cPhs__Step daObjWchain_c::create() {
+cPhs_Step daObjWchain_c::create() {
fopAcM_ct(this, daObjWchain_c);
mSw = fopAcM_GetParam(this) & 0xff;
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_COMPLEATE_e) {
mRepeatable = (fopAcM_GetParam(this) >> 8) & 0xf;
if (mRepeatable == 0xf) {
@@ -82,7 +82,7 @@ cPhs__Step daObjWchain_c::create() {
return step;
}
-static cPhs__Step daObjWchain_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjWchain_Create(fopAc_ac_c* i_this) {
return static_cast<daObjWchain_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_wind_stone.cpp b/src/d/actor/d_a_obj_wind_stone.cpp
index 51afb23173..5a1c51639f 100644
--- a/src/d/actor/d_a_obj_wind_stone.cpp
+++ b/src/d/actor/d_a_obj_wind_stone.cpp
@@ -8,7 +8,7 @@
#include "d/actor/d_a_obj_wind_stone.h"
#include "d/actor/d_a_alink.h"
#include "d/d_meter2_info.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
static int daWindStone_c_createHeap(fopAc_ac_c* i_this) {
return static_cast<daWindStone_c*>(i_this)->createHeap();
diff --git a/src/d/actor/d_a_obj_window.cpp b/src/d/actor/d_a_obj_window.cpp
index cad92fc8dc..fe74f440de 100644
--- a/src/d/actor/d_a_obj_window.cpp
+++ b/src/d/actor/d_a_obj_window.cpp
@@ -80,14 +80,14 @@ int daObjWindow_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjWindow_c::create1st() {
+cPhs_Step daObjWindow_c::create1st() {
mType = getType();
if (mType == 0xff) {
mType = 0;
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_COMPLEATE_e) {
- step = (cPhs__Step)MoveBGCreate(l_arcName, 12, NULL, 0xee0, NULL);
+ step = MoveBGCreate(l_arcName, 12, NULL, 0xee0, NULL);
if (step == cPhs_ERROR_e) {
return step;
}
@@ -152,7 +152,7 @@ int daObjWindow_c::Delete() {
return 1;
}
-static cPhs__Step daObjWindow_create1st(daObjWindow_c* i_this) {
+static cPhs_Step daObjWindow_create1st(daObjWindow_c* i_this) {
fopAcM_ct(i_this, daObjWindow_c);
return i_this->create1st();
}
diff --git a/src/d/actor/d_a_obj_yobikusa.cpp b/src/d/actor/d_a_obj_yobikusa.cpp
index 5cc08c8baa..ad24f8ddf3 100644
--- a/src/d/actor/d_a_obj_yobikusa.cpp
+++ b/src/d/actor/d_a_obj_yobikusa.cpp
@@ -380,7 +380,7 @@ static int daObjYobikusa_Delete(daObjYobikusa_c* i_this) {
return TRUE;
}
-cPhs__Step daObjYobikusa_c::create() {
+cPhs_Step daObjYobikusa_c::create() {
fopAcM_ct(this, daObjYobikusa_c);
switch (getType()) {
@@ -396,7 +396,7 @@ cPhs__Step daObjYobikusa_c::create() {
break;
}
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, mResName);
+ cPhs_Step step = dComIfG_resLoad(&mPhase, mResName);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createSolidHeap, 0x1080)) {
step = cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_obj_ystone.cpp b/src/d/actor/d_a_obj_ystone.cpp
index 93f752a986..e7352efcab 100644
--- a/src/d/actor/d_a_obj_ystone.cpp
+++ b/src/d/actor/d_a_obj_ystone.cpp
@@ -246,11 +246,11 @@ static int useHeapInit(fopAc_ac_c* i_this) {
return 1;
}
-static cPhs__Step daObj_Ystone_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daObj_Ystone_Create(fopAc_ac_c* i_this) {
obj_ystone_class* _this = static_cast<obj_ystone_class*>(i_this);
fopAcM_ct(_this, obj_ystone_class);
_this->mLevel = getNowLevel() - 1;
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhaseReq, l_arcName[_this->mLevel]);
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhaseReq, l_arcName[_this->mLevel]);
if (step == cPhs_COMPLEATE_e) {
if (_this->mLevel < 3) {
diff --git a/src/d/actor/d_a_obj_zrTurara.cpp b/src/d/actor/d_a_obj_zrTurara.cpp
index caa2a7e123..9e9767db06 100644
--- a/src/d/actor/d_a_obj_zrTurara.cpp
+++ b/src/d/actor/d_a_obj_zrTurara.cpp
@@ -75,11 +75,11 @@ int daZrTurara_c::CreateHeap() {
return 1;
}
-cPhs__Step daZrTurara_c::create() {
+cPhs_Step daZrTurara_c::create() {
fopAcM_ct(this, daZrTurara_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, "M_DrpRock");
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, "M_DrpRock");
if (step == cPhs_COMPLEATE_e) {
- cPhs__Step bg_step = (cPhs__Step)MoveBGCreate("M_DrpRock", 9, dBgS_MoveBGProc_TypicalRotY,
+ cPhs_Step bg_step = MoveBGCreate("M_DrpRock", 9, dBgS_MoveBGProc_TypicalRotY,
0x2800, NULL);
if (bg_step == cPhs_ERROR_e) {
return cPhs_ERROR_e;
@@ -248,7 +248,7 @@ static int daZrTurara_Delete(daZrTurara_c* i_this) {
return i_this->MoveBGDelete();
}
-static cPhs__Step daZrTurara_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daZrTurara_Create(fopAc_ac_c* i_this) {
return static_cast<daZrTurara_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_zrTuraraRock.cpp b/src/d/actor/d_a_obj_zrTuraraRock.cpp
index 90fc794a69..b4706929da 100644
--- a/src/d/actor/d_a_obj_zrTuraraRock.cpp
+++ b/src/d/actor/d_a_obj_zrTuraraRock.cpp
@@ -56,9 +56,9 @@ int daZrTuraRc_c::CreateHeap() {
return 1;
}
-cPhs__Step daZrTuraRc_c::create() {
+cPhs_Step daZrTuraRc_c::create() {
fopAcM_ct(this, daZrTuraRc_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, "M_DRockHn");
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, "M_DRockHn");
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createHeapCallBack, 0x840)) {
return cPhs_ERROR_e;
@@ -165,7 +165,7 @@ static int daZrTuraRc_Delete(daZrTuraRc_c* i_this) {
return i_this->Delete();
}
-static cPhs__Step daZrTuraRc_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daZrTuraRc_Create(fopAc_ac_c* i_this) {
return static_cast<daZrTuraRc_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_obj_zra_freeze.cpp b/src/d/actor/d_a_obj_zra_freeze.cpp
index 833fd4317b..9c0ed17e93 100644
--- a/src/d/actor/d_a_obj_zra_freeze.cpp
+++ b/src/d/actor/d_a_obj_zra_freeze.cpp
@@ -51,14 +51,14 @@ static int createSolidHeap(fopAc_ac_c* i_this) {
return static_cast<daZraFreeze_c*>(i_this)->CreateHeap();
}
-cPhs__Step daZraFreeze_c::Create() {
+cPhs_Step daZraFreeze_c::Create() {
fopAcM_ct(this, daZraFreeze_c);
field_0x5b0 = (fopAcM_GetParam(this) >> 8) & 0xff;
field_0x5b1 = (fopAcM_GetParam(this) >> 0x10) & 0xff;
field_0x5b2 = (fopAcM_GetParam(this) >> 0x18) & 0xff;
mMapToolId = fopAcM_GetParam(this) & 0xff;
mEventId = -1;
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createSolidHeap, 0x1540)) {
return cPhs_ERROR_e;
@@ -187,7 +187,7 @@ static int daZraFreeze_Delete(daZraFreeze_c* i_this) {
return i_this->Delete();
}
-static cPhs__Step daZraFreeze_create(fopAc_ac_c* i_this) {
+static cPhs_Step daZraFreeze_create(fopAc_ac_c* i_this) {
return static_cast<daZraFreeze_c*>(i_this)->Create();
}
diff --git a/src/d/actor/d_a_obj_zra_rock.cpp b/src/d/actor/d_a_obj_zra_rock.cpp
index 01613adc52..91eea51192 100644
--- a/src/d/actor/d_a_obj_zra_rock.cpp
+++ b/src/d/actor/d_a_obj_zra_rock.cpp
@@ -71,14 +71,14 @@ int daObjZraRock_c::CreateHeap() {
return 1;
}
-cPhs__Step daObjZraRock_c::create() {
+cPhs_Step daObjZraRock_c::create() {
fopAcM_ct(this, daObjZraRock_c);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_ERROR_e || step == cPhs_UNK3_e) {
return cPhs_ERROR_e;
} else if (step == cPhs_COMPLEATE_e) {
int dzb_id = dComIfG_getObjctResName2Index(l_arcName, "H_ZoraRock.dzb");
- step = (cPhs__Step)MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_Trans, 0x2050, NULL);
+ step = MoveBGCreate(l_arcName, dzb_id, dBgS_MoveBGProc_Trans, 0x2050, NULL);
if (dComIfGs_isSwitch((fopAcM_GetParam(this) >> 8) & 0xff, fopAcM_GetRoomNo(this))) {
step = cPhs_ERROR_e;
}
@@ -136,7 +136,7 @@ static int daObjZraRock_Delete(daObjZraRock_c* i_this) {
return i_this->MoveBGDelete();
}
-static cPhs__Step daObjZraRock_create(fopAc_ac_c* i_this) {
+static cPhs_Step daObjZraRock_create(fopAc_ac_c* i_this) {
return static_cast<daObjZraRock_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_sq.cpp b/src/d/actor/d_a_sq.cpp
index e021d6d9a3..a8abcd0134 100644
--- a/src/d/actor/d_a_sq.cpp
+++ b/src/d/actor/d_a_sq.cpp
@@ -490,10 +490,10 @@ static int useHeapInit(fopAc_ac_c* i_this) {
1, 0, 1.0f, 0, -1) ? 1 : 0;
}
-static cPhs__Step daSq_Create(fopAc_ac_c* i_this) {
+static cPhs_Step daSq_Create(fopAc_ac_c* i_this) {
sq_class* _this = static_cast<sq_class*>(i_this);
fopAcM_ct(i_this, sq_class);
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&_this->mPhaseReq, "Sq");
+ cPhs_Step step = dComIfG_resLoad(&_this->mPhaseReq, "Sq");
if (step == cPhs_COMPLEATE_e) {
_this->mParam0 = fopAcM_GetParam(_this) & 0xff;
diff --git a/src/d/actor/d_a_tag_Lv8Gate.cpp b/src/d/actor/d_a_tag_Lv8Gate.cpp
index 0b836e8ca8..892653e6ed 100644
--- a/src/d/actor/d_a_tag_Lv8Gate.cpp
+++ b/src/d/actor/d_a_tag_Lv8Gate.cpp
@@ -43,12 +43,12 @@ inline void daTagLv8Gate_c::create_init() {
inline int daTagLv8Gate_c::create() {
fopAcM_ct(this, daTagLv8Gate_c);
- cPhs__Step step;
+ cPhs_Step step;
/* dSv_event_flag_c::F_0354 - Cutscene - [cutscene] Mirror complete */
if (!dComIfGs_isEventBit(dSv_event_flag_c::saveBitLabels[354])) {
return cPhs_ERROR_e;
} else {
- step = (cPhs__Step)dComIfG_resLoad(&mPhaseReq, l_arcName);
+ step = dComIfG_resLoad(&mPhaseReq, l_arcName);
if (step == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, createSolidHeap, 0x1600)) {
return cPhs_ERROR_e;
diff --git a/src/d/actor/d_a_tag_evt.cpp b/src/d/actor/d_a_tag_evt.cpp
index d38bb6b500..81ada5a6fe 100644
--- a/src/d/actor/d_a_tag_evt.cpp
+++ b/src/d/actor/d_a_tag_evt.cpp
@@ -22,7 +22,7 @@ char* daTag_Evt_c::mEvtCutList[] = {
int daTag_Evt_c::create() {
fopAcM_ct(this, daTag_Evt_c);
- cPhs__Step phase = (cPhs__Step)dComIfG_resLoad(&mPhase, l_resFileName);
+ cPhs_Step phase = dComIfG_resLoad(&mPhase, l_resFileName);
if (phase == cPhs_COMPLEATE_e) {
eventInfo.setArchiveName(l_resFileName);
strcpy(field_0x568, "TagEvt");
diff --git a/src/d/actor/d_a_tag_evtarea.cpp b/src/d/actor/d_a_tag_evtarea.cpp
index 47df3e71d3..1a60b4f867 100644
--- a/src/d/actor/d_a_tag_evtarea.cpp
+++ b/src/d/actor/d_a_tag_evtarea.cpp
@@ -8,7 +8,7 @@
#include "d/actor/d_a_npc.h"
#include "d/d_procname.h"
-cPhs__Step daTag_EvtArea_c::create() {
+cPhs_Step daTag_EvtArea_c::create() {
int var_r28 = 0;
fopAcM_ct(this, daTag_EvtArea_c);
@@ -205,7 +205,7 @@ BOOL daTag_EvtArea_c::chkPointInArea(cXyz i_point, cXyz i_addSize) {
return false;
}
-static cPhs__Step daTag_EvtArea_Create(void* i_this) {
+static cPhs_Step daTag_EvtArea_Create(void* i_this) {
return static_cast<daTag_EvtArea_c*>(i_this)->create();
}
diff --git a/src/d/actor/d_a_tag_statue_evt.cpp b/src/d/actor/d_a_tag_statue_evt.cpp
index de6ac67c85..eb7d3752eb 100644
--- a/src/d/actor/d_a_tag_statue_evt.cpp
+++ b/src/d/actor/d_a_tag_statue_evt.cpp
@@ -108,7 +108,7 @@ void daTagStatue_c::setBaseMtx() {
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
}
-cPhs__Step daTagStatue_c::Create() {
+cPhs_Step daTagStatue_c::Create() {
if (fopAcM_isSwitch(this, getSwbit2())) {
// Player already obtained Sky Character from this tag
setAction(ACTION_DEAD_e);
@@ -180,7 +180,7 @@ int daTagStatue_c::CreateHeap() {
return 1;
}
-cPhs__Step daTagStatue_c::create() {
+cPhs_Step daTagStatue_c::create() {
fopAcM_ct(this, daTagStatue_c);
mSkyCharacterEventBitIdIndex = getType();
@@ -190,7 +190,7 @@ cPhs__Step daTagStatue_c::create() {
phase = dComIfG_resLoad(&mEvArcPhase, l_evArcName[mSkyCharacterEventBitIdIndex]);
if (phase != cPhs_COMPLEATE_e) {
- return static_cast<cPhs__Step>(phase);
+ return static_cast<cPhs_Step>(phase);
}
}
@@ -210,7 +210,7 @@ cPhs__Step daTagStatue_c::create() {
#endif
}
- return static_cast<cPhs__Step>(phase);
+ return static_cast<cPhs_Step>(phase);
}
int daTagStatue_c::execute() {
diff --git a/src/d/actor/d_a_tag_waterfall.cpp b/src/d/actor/d_a_tag_waterfall.cpp
index f05003a982..eae7b283f6 100644
--- a/src/d/actor/d_a_tag_waterfall.cpp
+++ b/src/d/actor/d_a_tag_waterfall.cpp
@@ -278,7 +278,7 @@ static int daTagWaterFall_Delete(daTagWaterFall_c* i_this) {
return i_this->_delete();
}
-cPhs__Step daTagWaterFall_c::create() {
+cPhs_Step daTagWaterFall_c::create() {
fopAcM_ct(this, daTagWaterFall_c);
OS_REPORT("Tag_WaterFall PARAM %x %x %x \n", fopAcM_GetParam(this), current.angle.x, current.angle.y);
diff --git a/src/d/actor/d_a_tbox.cpp b/src/d/actor/d_a_tbox.cpp
index 47e5803a3b..a9a58b44fd 100644
--- a/src/d/actor/d_a_tbox.cpp
+++ b/src/d/actor/d_a_tbox.cpp
@@ -101,7 +101,7 @@ daTbox_ModelInfo* daTbox_c::getModelInfo() {
static const u32 l_open_se_id[3] = { Z2SE_OBJ_TBOX_OPEN_A, Z2SE_OBJ_TBOX_OPEN_B, Z2SE_OBJ_TBOX_OPEN_C };
-cPhs__Step daTbox_c::commonShapeSet() {
+cPhs_Step daTbox_c::commonShapeSet() {
daTbox_ModelInfo* model_info = getModelInfo();
J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes(model_info->mArcName, model_info->mModelResNo);
@@ -170,15 +170,15 @@ cPhs__Step daTbox_c::commonShapeSet() {
return cPhs_COMPLEATE_e;
}
-cPhs__Step daTbox_c::effectShapeSet() {
+cPhs_Step daTbox_c::effectShapeSet() {
return cPhs_COMPLEATE_e;
}
-cPhs__Step daTbox_c::envShapeSet() {
+cPhs_Step daTbox_c::envShapeSet() {
return cPhs_COMPLEATE_e;
}
-cPhs__Step daTbox_c::bgCheckSet() {
+cPhs_Step daTbox_c::bgCheckSet() {
daTbox_ModelInfo* model_info = getModelInfo();
cBgD_t* bgd = (cBgD_t*)dComIfG_getObjectRes(model_info->mArcName, model_info->mOpenDzbResNo);
@@ -325,7 +325,7 @@ u32 daTbox_c::calcHeapSize() {
}
int daTbox_c::CreateHeap() {
- cPhs__Step step = commonShapeSet();
+ cPhs_Step step = commonShapeSet();
if (step != cPhs_COMPLEATE_e) {
return false;
}
@@ -1781,7 +1781,7 @@ void daTbox_c::mode_exec() {
}
}
-cPhs__Step daTbox_c::create1st() {
+cPhs_Step daTbox_c::create1st() {
if (!mParamsInit) {
field_0x980 = home.angle.x;
field_0x982 = home.angle.z;
@@ -1796,12 +1796,12 @@ cPhs__Step daTbox_c::create1st() {
}
daTbox_ModelInfo* model_info = getModelInfo();
- cPhs__Step step = (cPhs__Step)dComIfG_resLoad(&mPhase, model_info->mArcName);
+ cPhs_Step step = dComIfG_resLoad(&mPhase, model_info->mArcName);
if (step != cPhs_COMPLEATE_e) {
return step;
}
- step = (cPhs__Step)MoveBGCreate(model_info->mArcName, model_info->mClosedDzbResNo,
+ step = MoveBGCreate(model_info->mArcName, model_info->mClosedDzbResNo,
dBgS_MoveBGProc_TypicalRotY, calcHeapSize(), NULL);
if (step == cPhs_ERROR_e) {
return step;
@@ -1877,7 +1877,7 @@ int daTbox_c::Delete() {
return true;
}
-cPhs__Step daTbox_create1st(daTbox_c* i_this) {
+cPhs_Step daTbox_create1st(daTbox_c* i_this) {
fopAcM_ct(i_this, daTbox_c);
return i_this->create1st();
}
diff --git a/src/d/d_bg_parts.cpp b/src/d/d_bg_parts.cpp
index 581766df8e..7d4dcd38f2 100644
--- a/src/d/d_bg_parts.cpp
+++ b/src/d/d_bg_parts.cpp
@@ -1,30 +1,841 @@
#include "d/dolzel.h" // IWYU pragma: keep
-#include "JSystem/J3DGraphAnimator/J3DAnimation.h"
+#include "d/d_bg_parts.h"
+#include "d/d_s_play.h"
+#include "d/d_camera.h"
+#include "f_op/f_op_camera_mng.h"
+#include "JSystem/JKernel/JKRExpHeap.h"
+#include "JSystem/JKernel/JKRSolidHeap.h"
-int dBgp_c::registBg(fopAc_ac_c* i_actor) {
- // NONMATCHING
- return 0;
+// NONMATCHING
+void dBgp_c::material_c::draw() {
+ material_c* material;
+ do {
+ drawSimple();
+ } while ((material = getNext()) != NULL);
}
-void dBgp_c::draw(fopAc_ac_c* i_actor) {
- // NONMATCHING
+// NONMATCHING - regalloc
+void dBgp_c::modelMaterial_c::drawSimple() {
+ if (mpMaterial->getInvalid()) {
+ OSReport_Warning("Share Material Nothing !!\n");
+ return;
+ }
+
+ mpMaterial->loadSharedDL();
+ mpModelData->syncJ3DSysFlags();
+ j3dSys.setTexture(mpModelData->getTexture());
+
+ J3DShape* shape = mpMaterial->getShape();
+ shape->loadCurrentMtx();
+
+ modelMaterial_c* modelMaterial = this;
+ int spC = 0;
+ void* vatCmd = NULL;
+
+ if (getMaterial()->getShape()->checkFlag(1)) {
+ modelMaterial = modelMaterial->getChild();
+ }
+
+ do {
+ Mtx m;
+ J3DShape* shape = modelMaterial->getMaterial()->getShape();
+ J3DModelData* modelData = modelMaterial->getModelData();
+
+ j3dSys.setVtxPos(modelData->getVtxPosArray());
+ j3dSys.setVtxNrm(modelData->getVtxNrmArray());
+ j3dSys.setVtxCol(modelData->getVtxColorArray(0));
+ MTXConcat(j3dSys.getViewMtx(), modelMaterial->getMtx(), m);
+ GXLoadPosMtxImm(m, 0);
+ GXLoadNrmMtxImm(m, 0);
+
+ if (vatCmd != shape->getVcdVatCmd()) {
+ GXCallDisplayList(shape->getVcdVatCmd(), 0xC0);
+ vatCmd = shape->getVcdVatCmd();
+ }
+
+ shape->loadVtxArray();
+
+ u16 mtxNum = shape->getMtxGroupNum();
+ for (u16 i = 0; i < mtxNum; i++) {
+ if (shape->getShapeDraw(i) != NULL) {
+ shape->getShapeDraw(i)->draw();
+ }
+ }
+
+ modelMaterial = modelMaterial->getChild();
+ } while (modelMaterial != NULL);
}
-int dBgp_c::execute(bool param_0) {
- // NONMATCHING
- return 0;
+bool dBgp_c::modelMaterial_c::isSame(dBgp_c::material_c* i_material) {
+ dBgp_c::modelMaterial_c* modelMaterial = (dBgp_c::modelMaterial_c*)i_material;
+ return modelMaterial->getMaterialID() == mMaterialID;
+}
+
+void dBgp_c::modelMaterial_c::addChild(dBgp_c::material_c* i_material) {
+ dBgp_c::modelMaterial_c* modelMaterial = (dBgp_c::modelMaterial_c*)i_material;
+ modelMaterial->setChild(mpChild);
+ mpChild = modelMaterial;
+}
+
+// NONMATCHING
+void dBgp_c::modelMaterial_c::set(J3DModelData* i_modelData, J3DMaterial* i_material, Mtx i_mtx) {
+ mpModelData = i_modelData;
+ mpMaterial = i_material;
+ mpMtx = i_mtx;
+ mpChild = NULL;
+
+ setNext(NULL);
+
+ JUTNameTab* nametab = i_modelData->getMaterialName();
+ u16* name = (u16*)nametab->getName(i_material->getIndex());
+ mMaterialID = *name;
+ JUT_ASSERT(157, mMaterialID != static_cast<u16>(~0));
+ JUT_ASSERT(159, mMaterialID < (1<<(16-packet_c::MATERIAL_SORT_LEVEL)));
+
+ const char* sortName = (const char*)name;
+ ASSERTLINE(166, sortName[2] == 'X' || sortName[2] == '0' || sortName[2] == '1' || sortName[2] == '2' || sortName[2] == '3');
+
+ u16 sp12 = 0;
+ if (sortName[2] != 'X') {
+ sp12 = (sortName[2] - 0x30) * 0x10;
+ }
+
+ mMaterialID = (mMaterialID & ~0x30) | ((mMaterialID & 0x30) << 10) | sp12;
+}
+
+void dBgp_c::model_c::create(J3DModelData* i_modelData, Mtx i_mtx) {
+ const void* binary = i_modelData->getBinary();
+
+ mId = *(u32*)((char*)binary + 0x1C);
+ if (mId != 0xFFFF) {
+ addShare(mId);
+ }
+
+ JUT_ASSERT(205, i_modelData->getJointNum() == 1);
+ JUT_ASSERT(206, i_modelData->getMaterialNum() != 0);
+
+ mMaterial = new modelMaterial_c[i_modelData->getMaterialNum()];
+ JUT_ASSERT(212, mMaterial != NULL);
+
+ J3DJoint* joint = i_modelData->getJointNodePointer(0);
+ cMtx_copy(i_mtx, mBaseTRMtx);
+
+ J3DMaterial* material;
+ for (material = joint->getMesh(); material != NULL; material = material->getNext()) {
+ mMaterial[material->getIndex()].set(i_modelData, material, mBaseTRMtx);
+ }
+}
+
+void dBgp_c::model_c::remove() {
+ if (mMaterial != NULL) {
+ cutShare(mId);
+ }
+}
+
+void dBgp_c::packet_c::draw() {
+ dScnKy_env_light_c* kankyo = dKy_getEnvlight();
+ s8 roomNo = (s8)getRoomNo();
+ dKy_tevstr_c* roomTevstr = dComIfGp_roomControl_getTevStr(roomNo);
+
+ g_env_light.settingTevStruct(0x40, NULL, roomTevstr);
+ dBgp_c::entryShare(this);
+
+ GXColor ambcol;
+ stage_pure_lightvec_info_class* lightvecInf = dComIfGp_roomControl_getStatusRoomDt(roomNo)->getLightVecInfo();
+ dKy_setLight_nowroom(roomNo);
+
+ ambcol.r = roomTevstr->AmbCol.r;
+ ambcol.g = roomTevstr->AmbCol.g;
+ ambcol.b = roomTevstr->AmbCol.b;
+ ambcol.a = roomTevstr->AmbCol.a;
+ GXSetChanAmbColor(GX_COLOR0A0, ambcol);
+ GXSetChanMatColor(GX_COLOR0A0, g_whiteColor);
+
+ dKy_setLight_again();
+ dKy_GxFog_tevstr_set(roomTevstr);
+ J3DShape::resetVcdVatCache();
+
+ material_c** material = mpMaterials;
+ for (int i = 64; i > 0; i--) {
+ if (*material != NULL) {
+ (*material)->draw();
+ }
+ material++;
+ }
+}
+
+void dBgp_c::packet_c::reset() {
+ material_c** material = mpMaterials;
+ for (int i = 64; i > 0; i--) {
+ *material = NULL;
+ material++;
+ }
+}
+
+void dBgp_c::packet_c::entryMaterial(dBgp_c::material_c* i_material, u32 i_id) {
+ i_material->setNext(mpMaterials[i_id]);
+ mpMaterials[i_id] = i_material;
+}
+
+void dBgp_c::packet_c::entryModel(dBgp_c::modelMaterial_c* i_modelMaterial) {
+ u16 id = i_modelMaterial->getMaterialID() & 0x3F;
+ if (mpMaterials[id] != NULL) {
+ material_c* material = mpMaterials[id];
+ do {
+ if (material->isSame(i_modelMaterial)) {
+ material->addChild(i_modelMaterial);
+ return;
+ }
+
+ material = material->getNext();
+ } while (material != NULL);
+ }
+
+ entryMaterial(i_modelMaterial, id);
+ i_modelMaterial->setChild(NULL);
+}
+
+void dBgp_c::packet_c::entryShare(dBgp_c::modelMaterial_c* i_modelMaterial) {
+ u16 id = i_modelMaterial->getMaterialID() & 0x3F;
+ if (mpMaterials[id] != NULL) {
+ material_c** ppmaterial = &mpMaterials[id];
+ modelMaterial_c* modelMaterial = (modelMaterial_c*)*ppmaterial;
+ do {
+ if (modelMaterial->isSame(i_modelMaterial)) {
+ i_modelMaterial->setChild(modelMaterial);
+ i_modelMaterial->setNext(modelMaterial->getNext());
+ modelMaterial->setNext(NULL);
+ *ppmaterial = i_modelMaterial;
+ return;
+ }
+
+ ppmaterial = modelMaterial->getNext_p();
+ modelMaterial = (modelMaterial_c*)*ppmaterial;
+ } while (modelMaterial != NULL);
+ }
+}
+
+dBgp_c::share_c::share_c() {
+ mStatus = -1;
+ mCount = 0;
+}
+
+JKRSolidHeap* dBgp_c::mShareHeap;
+dBgp_c::share_c* dBgp_c::mShare;
+
+void dBgp_c::share_c::set(u16 i_id) {
+ JUT_ASSERT(441, mCount != static_cast<u16>(~0));
+
+ if (mCount++ == 0) {
+ mStatus = 1;
+ mId = i_id;
+
+ int rt = dComIfG_setObjectRes(getArcName(), 0, (JKRHeap*)NULL);
+ JUT_ASSERT(446, rt != 0);
+ }
+}
+
+void dBgp_c::share_c::reset() {
+ JUT_ASSERT(460, mCount);
+
+ if (--mCount == 0) {
+ for (u16 i = 0; i < mModelData->getMaterialNum(); i++) {
+ J3DMaterial* material = mModelData->getMaterialNodePointer(i);
+ if (material->getMaterialAnm() != NULL) {
+ delete material->getMaterialAnm();
+ }
+ }
+
+ delete[] mMaterial;
+
+ dComIfG_deleteObjectResMain(getArcName());
+ mStatus = -1;
+ }
+}
+
+const char* dBgp_c::share_c::getArcName() {
+ static char arcName[8];
+ sprintf(arcName, "@mt%04x", mId);
+ return arcName;
+}
+
+static BOOL createMatAnm(J3DModelData* i_modelData, u16 i_materialId) {
+ if (i_materialId != 0xFFFF) {
+ J3DMaterial* material = i_modelData->getMaterialNodePointer(i_materialId);
+ if (material->getMaterialAnm() == NULL) {
+ J3DMaterialAnm* anm = new J3DMaterialAnm();
+ if (anm == NULL) {
+ return FALSE;
+ }
+
+ material->setMaterialAnm(anm);
+ }
+ }
+
+ return TRUE;
+}
+
+int dBgp_c::share_c::execute() {
+ if (mStatus != 0) {
+ mStatus = dComIfG_syncObjectRes(getArcName());
+ JUT_ASSERT(527, mStatus >= 0);
+ if (mStatus > 0) {
+ return 0;
+ }
+
+ mModelData = (J3DModelData*)dComIfG_getObjectRes(getArcName(), "model.bmdl");
+ JUT_ASSERT(542, mModelData != NULL);
+
+ JUT_ASSERT(544, mModelData->getMaterialNum() != 0);
+
+ mMaterial = new modelMaterial_c[mModelData->getMaterialNum()];
+ JUT_ASSERT(546, mMaterial != NULL);
+
+ for (u16 i = 0; i < mModelData->getMaterialNum(); i++) {
+ J3DMaterial* material = mModelData->getMaterialNodePointer(i);
+ mMaterial[i].set(mModelData, material, cMtx_getIdentity());
+
+ J3DShape* shape = material->getShape();
+ shape->hide();
+
+ JUTNameTab* nametab = mModelData->getMaterialName();
+ char* name = (char*)nametab->getName(material->getIndex());
+ name[0] = ' ';
+ name[1] = ' ';
+ }
+
+ field_0x1 = 0;
+
+ J3DAnmTextureSRTKey* btk = (J3DAnmTextureSRTKey*)dComIfG_getObjectRes(getArcName(), "model.btk");
+ if (btk != NULL) {
+ int rt = mBtk.init(mModelData, btk, TRUE, 2, 1.0f, 0, -1);
+ JUT_ASSERT(568, rt);
+
+ for (u16 i = 0; i < btk->getUpdateMaterialNum(); i++) {
+ rt = createMatAnm(mModelData, btk->getUpdateMaterialID(i));
+ JUT_ASSERT(571, rt);
+ }
+
+ mBtk.entry(mModelData);
+ field_0x1 |= (u8)1;
+ }
+
+ J3DAnmTevRegKey* brk = (J3DAnmTevRegKey*)dComIfG_getObjectRes(getArcName(), "model.brk");
+ if (brk != NULL) {
+ int rt = mBrk.init(mModelData, brk, TRUE, 2, 1.0f, 0, -1);
+ JUT_ASSERT(582, rt);
+
+ for (u16 i = 0; i < brk->getCRegUpdateMaterialNum(); i++) {
+ rt = createMatAnm(mModelData, brk->getCRegUpdateMaterialID(i));
+ JUT_ASSERT(585, rt);
+ }
+
+ for (u16 i = 0; i < brk->getKRegUpdateMaterialNum(); i++) {
+ rt = createMatAnm(mModelData, brk->getKRegUpdateMaterialID(i));
+ JUT_ASSERT(589, rt);
+ }
+
+ mBrk.entry(mModelData);
+ field_0x1 |= (u8)2;
+ }
+
+ if (mId == 0x8000) {
+ setCallback(&share_c::cbConveyor);
+ } else {
+ setCallback(&share_c::cbNormal);
+ }
+ }
+
+ (this->*mCallback)();
+ return 1;
+}
+
+void dBgp_c::share_c::draw() {
+ if (mStatus == 0 && field_0x1 != 0) {
+ mModelData->simpleCalcMaterial((MtxP)j3dDefaultMtx);
+ j3dSys.setTexture(mModelData->getTexture());
+
+ for (u16 i = 0; i < mModelData->getMaterialNum(); i++) {
+ J3DMaterial* material = mModelData->getMaterialNodePointer(i);
+ J3DDisplayListObj* dlobj = material->getSharedDisplayListObj();
+ dlobj->beginDL();
+
+ if (field_0x1 & 1) {
+ material->getTexGenBlock()->patch();
+ }
+
+ if (field_0x1 & 2) {
+ material->getTevBlock()->patch();
+ }
+
+ dlobj->endPatch();
+ }
+ }
+}
+
+void dBgp_c::share_c::entry(dBgp_c::packet_c* i_packet) {
+ if (mStatus == 0) {
+ modelMaterial_c* modelMaterial = mMaterial;
+ for (int i = modelMaterial->getModelData()->getMaterialNum() - 1; i >= 0; i--) {
+ i_packet->entryShare(modelMaterial);
+ modelMaterial++;
+ }
+ }
+}
+
+void dBgp_c::share_c::cbNormal() {
+ if (field_0x1 & 1) {
+ mBtk.play();
+ mBtk.entryFrame();
+ }
+
+ if (field_0x1 & 2) {
+ mBrk.play();
+ mBrk.entryFrame();
+ }
+}
+
+void dBgp_c::share_c::cbConveyor() {
+ if (IREG_S(0) == 0) {
+ if (mBtk.getFrame() > 30.0f) {
+ mBtk.setEndFrame(80.0f);
+ } else {
+ mBtk.setEndFrame(30.0f);
+ }
+
+ mBtk.setLoopFrame(0.0f);
+ } else {
+ mBtk.setEndFrame(70.0f);
+ mBtk.setLoopFrame(40.0f);
+ }
+
+ mBtk.play();
+ mBtk.entryFrame();
+}
+
+dBgp_c::dBgp_c() {
+ mPointer = NULL;
+ mHeap = NULL;
+ mHeap2 = NULL;
+ mBgWork = NULL;
+ mModel = NULL;
+}
+
+dBgp_c::packet_c::~packet_c() {}
+
+dBgp_c::packet_c::packet_c() {
+ reset();
+}
+
+void dBgp_c::create(s8 i_roomNo, void* i_data) {
+ mPointer = i_data;
+ mPacket.setRoomNo(i_roomNo);
+ strcpy(mArcName, dComIfG_getRoomArcName(i_roomNo));
+
+ if (mPointer != NULL) {
+ JKRExpHeap* block = dStage_roomControl_c::getMemoryBlock(i_roomNo);
+ JKRExpHeap* parentHeap;
+ if (block != NULL) {
+ parentHeap = block;
+ } else {
+ parentHeap = mDoExt_getGameHeap();
+ }
+
+ mHeap = JKRCreateSolidHeap(0xFFFFFFFF, parentHeap, false);
+ JUT_ASSERT(882, mHeap != NULL);
+
+ JKRHeap* prevHeap = mDoExt_setCurrentHeap(mHeap);
+
+ mModel = new model_c[((stage_map_unit_class*)mPointer)->num];
+ JUT_ASSERT(886, mModel != NULL);
+
+ unit_class* mapUnit = (unit_class*)((stage_map_unit_class*)mPointer)->entries;
+ mBgWork = new dBgW[mapUnit->num];
+ JUT_ASSERT(890, mBgWork != NULL);
+
+ dBgW* bgw = mBgWork;
+ unit_group_class* unitGroup = mapUnit->groups;
+ for (int i = 0; i < mapUnit->num; i++) {
+ char resName[16];
+ sprintf(resName, "bp%04d.dzb", i);
+
+ cBgD_t* dzb = (cBgD_t*)dComIfG_getStageRes(mArcName, resName);
+ if (dzb != NULL) {
+ bool rt;
+ if (unitGroup->switchNo == 0xFF) {
+ rt = bgw->Set(dzb, 0x20, NULL);
+ } else {
+ rt = bgw->Set(dzb, 1, (Mtx*)cMtx_getIdentity());
+ }
+ JUT_ASSERT(911, !rt);
+
+ bgw->SetPriority(dBgW::PRIORITY_0);
+ bgw->SetRoomId(mPacket.getRoomNo());
+ }
+
+ bgw++;
+ unitGroup++;
+ }
+
+ unit_unk_data2_class* unitData = ((stage_map_unit_class*)mPointer)->entries->unk_0xc;
+ for (int i = 0; i < ((stage_map_unit_class*)mPointer)->num; i++) {
+ u16 id = getId(unitData->field_0x0);
+ int rt = dComIfG_setObjectRes(getArcName(unitData->field_0x0), 0, (JKRHeap*)NULL);
+ JUT_ASSERT(927, rt);
+ unitData++;
+ }
+
+ field_0x130 = 0;
+ mDoExt_setCurrentHeap(prevHeap);
+ u32 heapSize = mHeap->adjustSize();
+ printf("Room%02d Unit Memory <%d>\n", mPacket.getRoomNo(), heapSize);
+ }
+}
+
+int dBgp_c::remove() {
+ if (mPointer != NULL) {
+ if (!executeShare()) {
+ return 0;
+ }
+
+ if (mHeap != NULL) {
+ if (field_0x130 < ((stage_map_unit_class*)mPointer)->num) {
+ execute(true);
+ return 0;
+ }
+
+ unit_class* mapUnit = (unit_class*)((stage_map_unit_class*)mPointer)->entries;
+ for (int i = 0; i < mapUnit->num; i++) {
+ releaseBg(i);
+ }
+
+ unit_unk_data2_class* unitData = mapUnit->unk_0xc;
+ model_c* model = mModel;
+ for (int i = 0; i < ((stage_map_unit_class*)mPointer)->num; i++) {
+ model->remove();
+ dComIfG_deleteObjectResMain(getArcName(unitData->field_0x0));
+
+ unitData++;
+ model++;
+ }
+
+ mDoExt_destroySolidHeap(mHeap);
+ mHeap = NULL;
+ }
+
+ if (mHeap2 != NULL) {
+ mDoExt_destroySolidHeap(mHeap2);
+ mHeap2 = NULL;
+ }
+ }
+
+ return 1;
+}
+
+const char* dBgp_c::getArcName(u16 i_id, u16 i_arg) {
+ static char arcName[8];
+ sprintf(arcName, "@%03x%03x", i_id, i_arg);
+ return arcName;
+}
+
+BOOL dBgp_c::isSwitch(dBgp_c::unit_group_class* i_group) {
+ if (i_group->switchNo == 0xFF) {
+ return false;
+ }
+
+ if (!(i_group->unk_0x0 & 0x80)) {
+ return dComIfGs_isSwitch(i_group->switchNo, mPacket.getRoomNo());
+ }
+
+ return !dComIfGs_isSwitch(i_group->switchNo, mPacket.getRoomNo());
+}
+
+void dBgp_c::registBg(fopAc_ac_c* i_actor) {
+ if (mPointer != NULL) {
+ unit_class* mapUnit = (unit_class*)((stage_map_unit_class*)mPointer)->entries;
+ unit_group_class* unitGroup = mapUnit->groups;
+ for (int i = 0; i < mapUnit->num; i++) {
+ registBg(i, i_actor);
+ }
+ }
}
void dBgp_c::releaseBg() {
- // NONMATCHING
+ if (mPointer != NULL) {
+ unit_class* mapUnit = (unit_class*)((stage_map_unit_class*)mPointer)->entries;
+ unit_group_class* unitGroup = mapUnit->groups;
+ for (int i = 0; i < mapUnit->num; i++) {
+ releaseBg(i);
+ }
+ }
+}
+
+int dBgp_c::registBg(int i_no, fopAc_ac_c* i_actor) {
+ if (!mBgWork[i_no].ChkUsed() && mBgWork[i_no].GetBgd() != NULL) {
+ if (dComIfG_Bgsp().Regist(&mBgWork[i_no], i_actor)) {
+ return 0;
+ }
+ }
+
+ return 1;
+}
+
+void dBgp_c::releaseBg(int i_no) {
+ if (mBgWork[i_no].ChkUsed()) {
+ dComIfG_Bgsp().Release(&mBgWork[i_no]);
+ }
+}
+
+int dBgp_c::execute(bool param_0) {
+ if (mPointer != NULL) {
+ if (field_0x130 < ((stage_map_unit_class*)mPointer)->num) {
+ unit_unk_data2_class* unitData = &((stage_map_unit_class*)mPointer)->entries->unk_0xc[field_0x130];
+ do {
+ u16 id = getId(unitData->field_0x0);
+ u16 arg = getArg0(unitData->field_0x0);
+ const char* arcName = getArcName(id, arg);
+ int rt = dComIfG_syncObjectRes(arcName);
+ JUT_ASSERT(1117, rt >= 0);
+ if (rt > 0) {
+ return 0;
+ }
+
+ unitData++;
+ } while (++field_0x130 < ((stage_map_unit_class*)mPointer)->num);
+
+ if (param_0) {
+ return 1;
+ }
+
+ s8 roomNo = mPacket.getRoomNo();
+ JKRExpHeap* block = dStage_roomControl_c::getMemoryBlock(roomNo);
+ JKRExpHeap* parentHeap;
+ if (block != NULL) {
+ parentHeap = block;
+ } else {
+ parentHeap = mDoExt_getGameHeap();
+ }
+
+ mHeap2 = JKRCreateSolidHeap(0xFFFFFFFF, parentHeap, false);
+ JUT_ASSERT(1145, mHeap2 != NULL);
+
+ JKRHeap* prevHeap = mDoExt_setCurrentHeap(mHeap2);
+
+ unit_class* mapUnit = ((stage_map_unit_class*)mPointer)->entries;
+ model_c* model = mModel;
+ unitData = mapUnit->unk_0xc;
+ for (int i = 0; i < ((stage_map_unit_class*)mPointer)->num; i++) {
+ J3DModelData* modelData = (J3DModelData*)dComIfG_getObjectRes(getArcName(unitData->field_0x0), "model.bmdl");
+ if (modelData != NULL) {
+ mDoMtx_stack_c::transS(unitData->pos.x, unitData->pos.y, unitData->pos.z);
+ mDoMtx_stack_c::YrotM(unitData->angle);
+ model->create(modelData, mDoMtx_stack_c::get());
+ }
+
+ unitData++;
+ model++;
+ }
+
+ mDoExt_setCurrentHeap(prevHeap);
+ u32 heapSize = mHeap2->adjustSize();
+ printf("Room%02d Unit Memory <%d>\n", mPacket.getRoomNo(), heapSize);
+ }
+
+ if (!param_0) {
+ unit_unk_data2_class* unitData = ((stage_map_unit_class*)mPointer)->entries->unk_0xc;
+ for (int i = 0; i < ((stage_map_unit_class*)mPointer)->num; i++) {
+ u16 id = getId(unitData->field_0x0);
+ u16 arg = getArg0(unitData->field_0x0);
+ const char* arcName = getArcName(id, arg);
+ if (dComIfG_getObjectResInfo(arcName)->getResNum() != 6) {
+ OS_REPORT("特殊オブジェクト<%s>セット!!\n", arcName);
+ cXyz pos(unitData->pos);
+ csXyz angle(0, unitData->angle, 0);
+ cXyz size(1.0f, 1.0f, 1.0f);
+
+ u32 parameters = id << 12 | arg;
+ parameters |= unitData->field_0x15 << 21;
+ parameters |= 0x80000000;
+
+ angle.x = (unitData->field_0x14 << 8) | unitData->field_0x5;
+ angle.z = (unitData->field_0x4 << 8) | unitData->field_0x3;
+
+ fopAcM_create(PROC_SET_BG_OBJ, parameters, &pos, mPacket.getRoomNo(), &angle, &size, -1);
+ }
+ unitData++;
+ }
+ }
+ }
+
+ return 1;
+}
+
+void dBgp_c::draw(fopAc_ac_c* i_actor) {
+ if (mPointer == NULL || field_0x130 != ((stage_map_unit_class*)mPointer)->num) {
+ return;
+ }
+
+ mPacket.reset();
+ mDoLib_clipper::changeFar(100000.0f);
+
+ camera_class* sp30 = dComIfGp_getCamera(0);
+ dCamera_c* camera = &sp30->mCamera;
+ JUT_ASSERT(1287, camera != NULL)
+
+ static u16 l_dispBitTable[] = {
+ 0x4000,
+ 0xC000,
+ 0x8000,
+ 0x9000,
+ 0x1000,
+ 0x3000,
+ 0x2000,
+ 0x6000,
+ };
+
+ u16 spE = 0;
+ if (camera->HideBGPartsOk()) {
+ u16 spC = dCam_getAngleY(sp30) + 0x1000;
+ spE = l_dispBitTable[spC >> 13];
+ }
+
+ unit_class* mapUnit = ((stage_map_unit_class*)mPointer)->entries;
+ unit_group_class* unitGroup = mapUnit->groups;
+
+ for (int i = 0; i < mapUnit->num; i++) {
+ if (isSwitch(unitGroup)) {
+ releaseBg(i);
+ } else {
+ registBg(i, i_actor);
+
+ unit_unk_data_class* unitData = &mapUnit->unk_0x8[unitGroup->unk_0x2];
+ for (int j = (unitGroup->unk_0x0 & ~0x80); j > 0; j--) {
+ if ((unitData->field_0x0 & spE) == 0) {
+ model_c* model = &mModel[unitData->field_0x2];
+ for (int k = (unitData->field_0x0 & ~0xF000); k > 0; k--) {
+ modelMaterial_c* modelMaterial = model->getMaterial();
+ if (modelMaterial != NULL) {
+ J3DModelData* modelData = modelMaterial->getModelData();
+ J3DJoint* joint = modelData->getJointNodePointer(0);
+
+ Mtx m;
+ cMtx_concat(j3dSys.getViewMtx(), model->getBaseTRMtx(), m);
+
+ if (!mDoLib_clipper::clip(m, joint->getMax(), joint->getMin())) {
+ entryModel(model);
+ }
+ }
+
+ model++;
+ }
+ }
+
+ unitData++;
+ }
+ }
+
+ unitGroup++;
+ }
+
+ mDoLib_clipper::resetFar();
+ entryPacket();
+}
+
+void dBgp_c::setPointer(void* i_pointer) {
+ stage_map_unit_class* var_r29 = (stage_map_unit_class*)i_pointer;
+ if (var_r29 != NULL) {
+ unit_class* mapUnit = var_r29->entries;
+ if ((uintptr_t)mapUnit->groups < 0x80000000) {
+ mapUnit->groups = (unit_group_class*)((uintptr_t)mapUnit + (uintptr_t)mapUnit->groups);
+ mapUnit->unk_0x8 = (unit_unk_data_class*)((uintptr_t)mapUnit + (uintptr_t)mapUnit->unk_0x8);
+ mapUnit->unk_0xc = (unit_unk_data2_class*)((uintptr_t)mapUnit + (uintptr_t)mapUnit->unk_0xc);
+ }
+ }
+}
+
+void dBgp_c::createShare() {
+ if (mShareHeap == NULL) {
+ mShareHeap = mDoExt_createSolidHeapFromGameToCurrent(0, 0x20);
+ JUT_ASSERT(1409, mShareHeap != NULL);
+
+ mShare = new share_c[16];
+ JUT_ASSERT(1411, mShare != NULL);
+
+ u32 heapSize = mDoExt_adjustSolidHeapToSystem(mShareHeap);
+ printf("Share Memory <%d>\n", heapSize);
+ }
+}
+
+void dBgp_c::removeShare() {
+ if (mShareHeap != NULL) {
+ cutShare(0);
+ mDoExt_destroySolidHeap(mShareHeap);
+ mShareHeap = NULL;
+ }
+}
+
+void dBgp_c::addShare(u16 i_id) {
+ JUT_ASSERT(1455, mShare != NULL);
+
+ share_c* share = mShare;
+ share_c* freeShare = NULL;
+
+ for (int i = 0; i < 16; i++) {
+ if (share->getCount() == 0) {
+ freeShare = share;
+ } else if (i_id == share->getId()) {
+ share->set(i_id);
+ return;
+ }
+
+ share++;
+ }
+
+ JUT_ASSERT(1469, freeShare != NULL);
+ freeShare->set(i_id);
+}
+
+void dBgp_c::cutShare(u16 i_id) {
+ share_c* share = mShare;
+ for (int i = 0; i < 16; i++) {
+ if (share->getCount() != 0 && i_id == share->getId()) {
+ share->reset();
+ }
+
+ share++;
+ }
+}
+
+bool dBgp_c::executeShare() {
+ bool rt = true;
+ share_c* share = mShare;
+ for (int i = 0; i < 16; i++) {
+ if (share->isUsed() && !share->execute()) {
+ rt = false;
+ }
+
+ share++;
+ }
+
+ return rt;
+}
+
+void dBgp_c::drawShare() {
+ share_c* share = mShare;
+ for (int i = 0; i < 16; i++) {
+ if (share->isDraw()) {
+ share->draw();
+ }
+
+ share++;
+ }
}
-static void dummy() {
- ((J3DAnmTextureSRTKey*)0)->getUpdateMaterialID(0);
- ((J3DAnmTextureSRTKey*)0)->getUpdateMaterialNum();
- ((J3DAnmTevRegKey*)0)->getKRegUpdateMaterialID(0);
- ((J3DAnmTevRegKey*)0)->getKRegUpdateMaterialNum();
- ((J3DAnmTevRegKey*)0)->getCRegUpdateMaterialID(0);
- ((J3DAnmTevRegKey*)0)->getCRegUpdateMaterialNum();
+void dBgp_c::entryShare(dBgp_c::packet_c* i_packet) {
+ share_c* share = mShare;
+ for (int i = 0; i < 16; i++) {
+ share->entry(i_packet);
+ share++;
+ }
}
diff --git a/src/d/d_com_inf_actor.cpp b/src/d/d_com_inf_actor.cpp
index f3d2a98e6a..e9f7bd97f9 100644
--- a/src/d/d_com_inf_actor.cpp
+++ b/src/d/d_com_inf_actor.cpp
@@ -6,7 +6,7 @@
#include "d/dolzel.h" // IWYU pragma: keep
#include "d/d_com_inf_actor.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
dComIfAc_info_c g_dComIfAc_gameInfo = {
0, // field_0x0
diff --git a/src/d/d_debug_pad.cpp b/src/d/d_debug_pad.cpp
new file mode 100644
index 0000000000..23a31edcd3
--- /dev/null
+++ b/src/d/d_debug_pad.cpp
@@ -0,0 +1,90 @@
+#include "d/d_debug_pad.h"
+#include "m_Do/m_Do_controller_pad.h"
+#include "JSystem/JUtility/JUTDbPrint.h"
+#include "JSystem/JUtility/JUTReport.h"
+#include "f_ap/f_ap_game.h"
+
+dDebugPad_c::dDebugPad_c() {
+ mIsActive = false;
+ mMode = MODE_CAMERA_e;
+ mTrigger = false;
+}
+
+const char dDebugPad_c::mode_name[MODE_MAX_e][9] = {
+ "CAMERA",
+ "BsLight",
+ "WindTest",
+ "SDCARD",
+};
+
+bool dDebugPad_c::Update() {
+ mTrigger = false;
+
+ if (mDoCPd_c::getTrigStart(PAD_3)) {
+ mIsActive = mIsActive ? false : true;
+ mTrigger = true;
+ }
+
+ if (mIsActive) {
+ if (mDoCPd_c::getTrigZ(PAD_3)) {
+ mMode = (mMode + 1) % MODE_MAX_e;
+ }
+
+ int x = 10;
+ int y = 40;
+ int line_height = 15;
+ JUtility::TColor sp40(0xC8, 0x80, 0xFF, 0xC0);
+ JUtility::TColor sp3C(0xFF, 0xC0, 0xC0, 0xFF);
+
+ Report(x, y, sp40, "+-DEBUG-PAD-+");
+
+ int i;
+ for (i = 0; i < MODE_MAX_e; i++) {
+ y += line_height;
+
+ if (i == mMode) {
+ Report(x, y, sp40, "| |");
+ Report(x, y, sp3C, " @%-8s ", mode_name[i]);
+ } else {
+ Report(x, y, sp40, "| %-8s |", mode_name[i]);
+ }
+ }
+
+ for (i = 0; i < 1; i++) {
+ y += line_height;
+ Report(x, y, sp40, "| |");
+ }
+
+ y += line_height;
+ Report(x, y, sp40, "+-----------+");
+ }
+
+ return mIsActive;
+}
+
+bool dDebugPad_c::Report(int x, int y, JUtility::TColor color, const char* message, ...) {
+ char buffer[256];
+
+ static JUtility::TColor ShadowDarkColor(0, 0, 0, 0x80);
+
+ if (mIsActive) {
+ va_list list;
+ va_start(list, message);
+ vsnprintf(buffer, sizeof(buffer), message, list);
+ va_end(list);
+
+ JUTDbPrint::getManager()->flush();
+ JUTDbPrint::getManager()->setCharColor(ShadowDarkColor);
+ JUTReport(x + 2, y + 2, buffer);
+ JUTDbPrint::getManager()->flush();
+ JUTDbPrint::getManager()->setCharColor(color);
+ JUTReport(x, y, buffer);
+ JUTDbPrint::getManager()->flush();
+ JUTDbPrint::getManager()->setCharColor(g_HIO.mColor);
+ return true;
+ }
+
+ return false;
+}
+
+dDebugPad_c dDebugPad;
diff --git a/src/d/d_jcam_editor.cpp b/src/d/d_jcam_editor.cpp
new file mode 100644
index 0000000000..4700fdbe10
--- /dev/null
+++ b/src/d/d_jcam_editor.cpp
@@ -0,0 +1,89 @@
+#include "d/d_jcam_editor.h"
+#include "m_Do/m_Do_hostIO.h"
+#include "m_Do/m_Do_ext.h"
+
+dJcame_c* dJcame_c::m_myObj;
+
+dJcame_c::dJcame_c(const JStage::TSystem* i_system, f32 param_1, JUTGamePad& i_pad) {
+ mOrthoGraph = new J2DOrthoGraph(0.0f, 0.0f, 608.0f, 448.0f, -1.0f, 1.0f);
+ mFont = new JUTResFont((ResFONT*)JUTResFONT_Ascfont_fix12, NULL);
+
+ mHeap = JKRExpHeap::create(0x100000, JKRHeap::getRootHeap2(), false);
+ JUT_ASSERT(54, mHeap != NULL);
+
+ mControl = new JStudioCameraEditor::TControl();
+ mHioId = mDoHIO_createChild("JStudioCameraEditor", mControl);
+ JUT_ASSERT(57, mControl != NULL);
+
+ i_pad.setButtonRepeat((PAD_BUTTON_A | PAD_BUTTON_UP | PAD_BUTTON_DOWN | PAD_BUTTON_LEFT | PAD_BUTTON_RIGHT), 30, 5);
+ mControl->interface_setPad(&i_pad);
+ mControl->show_setRender(mOrthoGraph, mFont);
+ mControl->jstudio_setSecondPerFrame(param_1);
+
+ mAdaptor = NULL;
+ mSystem = i_system;
+ mIsAdaptorSet = false;
+
+ m_myObj = this;
+}
+
+dJcame_c::~dJcame_c() {
+ if (mAdaptor != NULL) {
+ delete mAdaptor;
+ }
+
+ mControl->jstudio_setAdaptor(NULL);
+ mDoHIO_deleteChild(mHioId);
+
+ delete mControl;
+ mHeap->destroy();
+ delete mFont;
+ delete mOrthoGraph;
+
+ m_myObj = NULL;
+}
+
+void dJcame_c::create(const JStage::TSystem* i_system, f32 param_1, JUTGamePad& i_pad) {
+ JUT_ASSERT(109, m_myObj == NULL);
+ new dJcame_c(i_system, param_1, i_pad);
+ JUT_ASSERT(111, m_myObj != NULL);
+}
+
+void dJcame_c::remove() {
+ JUT_ASSERT(126, m_myObj != NULL);
+ delete m_myObj;
+}
+
+void dJcame_c::update() {
+ if (!mIsAdaptorSet) {
+ if (mAdaptor == NULL) {
+ JStage::TObject* object;
+ int rt = mSystem->JSGFindObject(&object, "EditCam", JStage::OBJECT_CAMERA);
+ if (object == NULL) {
+ return;
+ }
+
+ mAdaptor = new JStudio_JStage::TAdaptor_camera(mSystem, (JStage::TCamera*)object);
+ JUT_ASSERT(155, mAdaptor != NULL);
+
+ mControl->jstudio_setAdaptor(mAdaptor);
+ mIsAdaptorSet = true;
+ }
+ } else if (isEnabled()) {
+ JKRHeap* heap = mDoExt_setCurrentHeap(mHeap);
+ mControl->update();
+ mDoExt_setCurrentHeap(heap);
+ }
+}
+
+void dJcame_c::show3D(Mtx i_mtx) {
+ if (mIsAdaptorSet) {
+ mControl->show3D(i_mtx);
+ }
+}
+
+void dJcame_c::show2D() {
+ if (mIsAdaptorSet) {
+ mControl->show2D();
+ }
+}
diff --git a/src/d/d_kyeff.cpp b/src/d/d_kyeff.cpp
index f3c4839002..d3223fd46c 100644
--- a/src/d/d_kyeff.cpp
+++ b/src/d/d_kyeff.cpp
@@ -9,13 +9,62 @@
#include "d/d_com_inf_game.h"
#include "d/d_kankyo_wether.h"
+#if DEBUG
+class dKyeff_HIO_c : public JORReflexible {
+public:
+ dKyeff_HIO_c();
+ virtual ~dKyeff_HIO_c();
+
+ void genMessage(JORMContext*);
+
+ /* 0x04 */ cXyz camera_eye;
+ /* 0x10 */ cXyz camera_cnt;
+ /* 0x1C */ f32 wind_power;
+ /* 0x20 */ f32 time_speed;
+ /* 0x24 */ s8 id;
+};
+
+dKyeff_HIO_c g_kyeffHIO;
+
+dKyeff_HIO_c::~dKyeff_HIO_c() {}
+
+dKyeff_HIO_c::dKyeff_HIO_c() {
+ g_kyeffHIO.camera_eye.x = 9377.0f;
+ g_kyeffHIO.camera_eye.y = 0.0f;
+ g_kyeffHIO.camera_eye.z = 7644.0f;
+
+ g_kyeffHIO.camera_cnt.x = 4300.0f;
+ g_kyeffHIO.camera_cnt.y = 4800.0f;
+ g_kyeffHIO.camera_cnt.z = 1000.0f;
+
+ g_kyeffHIO.wind_power = 0.5f;
+ g_kyeffHIO.time_speed = 0.03f;
+}
+
+void dKyeff_HIO_c::genMessage(JORMContext* mctx) {
+ mctx->genSlider("時刻経過スピード", &time_speed, 0.0f, 100.0f);
+
+ mctx->genSlider("Camera Eye X", &camera_eye.x, -10000.0f, 10000.0f);
+ mctx->genSlider(" Y", &camera_eye.y, -10000.0f, 10000.0f);
+ mctx->genSlider(" Z", &camera_eye.z, -10000.0f, 10000.0f);
+
+ mctx->genSlider("Camera Cnt X", &camera_cnt.x, -10000.0f, 10000.0f);
+ mctx->genSlider(" Y", &camera_cnt.y, -10000.0f, 10000.0f);
+ mctx->genSlider(" Z", &camera_cnt.z, -10000.0f, 10000.0f);
+
+ mctx->genSlider("風力", &wind_power, 0.0f, 1.0f);
+}
+#endif
+
static int dKyeff_Draw(dKyeff_c* i_this) {
+ UNUSED(i_this);
+
dKyw_wether_draw();
return 1;
}
int dKyeff_c::execute() {
- if (strcmp(dComIfGp_getStartStageName(), "Name")) {
+ if (strcmp(dComIfGp_getStartStageName(), "Name") != 0) {
dKyw_wether_move();
}
@@ -29,12 +78,21 @@ static int dKyeff_Execute(dKyeff_c* i_this) {
return i_this->execute();
}
-static int dKyeff_IsDelete(dKyeff_c* i_this) {
+static int dKyeff_IsDelete(dKyeff_c*) {
return 1;
}
static int dKyeff_Delete(dKyeff_c* i_this) {
+ UNUSED(i_this);
+
dKyw_wether_delete();
+
+ #if DEBUG
+ if (strcmp(dComIfGp_getStartStageName(), "Name") == 0) {
+ mDoHIO_deleteChild(g_kyeffHIO.id);
+ }
+ #endif
+
return 1;
}
@@ -52,22 +110,35 @@ static f32 dummyLiteralOrder3(s32 hours) {
}
static int dKyeff_Create(kankyo_class* i_this) {
- OSCalendarTime time;
+ UNUSED(i_this);
+ OSCalendarTime calendar;
dKyw_wether_init();
- if (!strcmp(dComIfGp_getStartStageName(), "Name")) {
- OSTicksToCalendarTime(OSGetTime(), &time);
- g_env_light.global_wind_influence.vec.set(1.0f, 0.0f, 0.0f);
+
+ if (strcmp(dComIfGp_getStartStageName(), "Name") == 0) {
+ camera_class* camera = dComIfGp_getCamera(0);
+ OSTime time = OSGetTime();
+ OSTicksToCalendarTime(time, &calendar);
+
+ g_env_light.global_wind_influence.vec.x = 1.0f;
+ g_env_light.global_wind_influence.vec.y = 0.0f;
+ g_env_light.global_wind_influence.vec.z = 0.0f;
g_env_light.global_wind_influence.pow = 0.7f;
- g_env_light.daytime = time.hour * 15.0f;
+ g_env_light.daytime = calendar.hour * 15.0f;
+
+ #if DEBUG
+ g_kyeffHIO.id = mDoHIO_createChild("VR-BOX", &g_kyeffHIO);
+ #endif
}
return cPhs_COMPLEATE_e;
}
static leafdraw_method_class l_dKyeff_Method = {
- (process_method_func)dKyeff_Create, (process_method_func)dKyeff_Delete,
- (process_method_func)dKyeff_Execute, (process_method_func)dKyeff_IsDelete,
+ (process_method_func)dKyeff_Create,
+ (process_method_func)dKyeff_Delete,
+ (process_method_func)dKyeff_Execute,
+ (process_method_func)dKyeff_IsDelete,
(process_method_func)dKyeff_Draw,
};
diff --git a/src/d/d_menu_collect.cpp b/src/d/d_menu_collect.cpp
index 400a00544f..6ff1a50c7f 100644
--- a/src/d/d_menu_collect.cpp
+++ b/src/d/d_menu_collect.cpp
@@ -27,7 +27,7 @@
#include "d/d_item.h"
#include "d/d_lib.h"
#include "d/d_meter2_info.h"
-#include "dolphin/os.h"
+#include <dolphin/os.h>
#include "m_Do/m_Do_graphic.h"
#include "m_Do/m_Do_mtx.h"
#include "JSystem/J2DGraph/J2DAnmLoader.h"
diff --git a/src/d/d_menu_letter.cpp b/src/d/d_menu_letter.cpp
index 95c2d0ae65..faf96802cb 100644
--- a/src/d/d_menu_letter.cpp
+++ b/src/d/d_menu_letter.cpp
@@ -10,7 +10,7 @@
#include "d/d_meter2_info.h"
#include "d/d_meter_HIO.h"
#include "d/d_msg_string.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
#include "m_Do/m_Do_controller_pad.h"
#include "m_Do/m_Do_graphic.h"
#include "d/d_msg_scrn_arrow.h"
diff --git a/src/d/d_menu_option.cpp b/src/d/d_menu_option.cpp
index 647638768c..269bef1849 100644
--- a/src/d/d_menu_option.cpp
+++ b/src/d/d_menu_option.cpp
@@ -18,7 +18,7 @@
#include "d/d_meter_haihai.h"
#include "d/d_msg_string.h"
#include "d/d_select_cursor.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
#include "f_op/f_op_msg_mng.h"
#include "m_Do/m_Do_controller_pad.h"
#include "m_Do/m_Do_graphic.h"
diff --git a/src/d/d_menu_quit.cpp b/src/d/d_menu_quit.cpp
new file mode 100644
index 0000000000..6ad35a184b
--- /dev/null
+++ b/src/d/d_menu_quit.cpp
@@ -0,0 +1,153 @@
+#include "d/dolzel.h" // IWYU pragma: keep
+
+#include "d/d_menu_quit.h"
+#include "d/d_lib.h"
+
+dMq_HIO_c g_mqHIO;
+
+dMq_HIO_c::~dMq_HIO_c() {}
+
+dMq_HIO_c::dMq_HIO_c() {}
+
+void dMq_HIO_c::genMessage(JORMContext*) {}
+
+typedef void (dMenu_Quit_c::*moveProc)();
+static moveProc move_process[] = {
+ &dMenu_Quit_c::select1_proc,
+ &dMenu_Quit_c::select2_proc,
+ &dMenu_Quit_c::messageChange,
+};
+
+// stripped, but based on asserts it was likely the constructor goes here
+dMenu_Quit_c::dMenu_Quit_c() {
+ JUT_ASSERT(0, mStick != NULL);
+ JUT_ASSERT(0, mpScrnExplain != NULL);
+}
+
+dMenu_Quit_c::~dMenu_Quit_c() {
+ delete mStick;
+ delete mpScrnExplain;
+ mpScrnExplain = NULL;
+}
+
+void dMenu_Quit_c::select1_init() {
+ field_0x14 = 1;
+ field_0x1c = 1;
+ msgTxtSet(0x4B2, false); // "Continue?"
+ field_0x12 = 0;
+}
+
+void dMenu_Quit_c::select1_proc() {
+ bool isSelect = YesNoSelect();
+ if (isSelect) {
+ if (field_0x14 == 1 || field_0x14 == 2) {
+ field_0x10 = 0;
+ field_0x11 = 1;
+ } else {
+ select2_init();
+ }
+ }
+}
+
+void dMenu_Quit_c::select2_init() {
+ field_0x14 = 0;
+ field_0x1c = 1;
+ msgTxtSet(0x4B3, false); // "Really quit?"
+ field_0x12 = 1;
+}
+
+void dMenu_Quit_c::select2_proc() {
+ bool isSelect = YesNoSelect();
+ if (isSelect) {
+ if (field_0x14 == 1) {
+ mDoAud_bgmStop(30);
+ dComIfGp_setNextStage("name", 0, 0, 0);
+ } else {
+ select1_init();
+ }
+ }
+}
+
+void dMenu_Quit_c::messageChange() {
+ bool rt;
+
+ if (mpScrnExplain->getStatus() != dMsgScrnExplain_c::STATUS_WAIT_e) {
+ if (mpScrnExplain->getStatus() == dMsgScrnExplain_c::STATUS_MOVE_e || mpScrnExplain->getStatus() == dMsgScrnExplain_c::STATUS_MOVE_SELECT_e) {
+ mpScrnExplain->onForceSelect();
+ }
+
+ mpScrnExplain->move();
+ } else {
+ if (field_0x1c == 1) {
+ rt = mpScrnExplain->openExplain(mMsgId, 1, field_0x14 != 0 ? 0 : 1, 0xFF, field_0x20);
+ } else {
+ rt = mpScrnExplain->openExplain(mMsgId, 0, 0, 0xFF, true);
+ }
+
+ if (rt == 1) {
+ field_0x12 = field_0x13;
+ }
+ }
+}
+
+bool dMenu_Quit_c::YesNoSelect() {
+ bool rt = false;
+ if (mpScrnExplain->getStatus() == dMsgScrnExplain_c::STATUS_WAIT_e) {
+ rt = true;
+ field_0x1c = 0;
+ }
+
+ if (field_0x22 == 4) {
+ switch (mpScrnExplain->getSelectCursor()) {
+ case 0:
+ field_0x14 = 1;
+ break;
+ case 1:
+ field_0x14 = 0;
+ break;
+ case 0xFF:
+ field_0x14 = 2;
+ break;
+ }
+ }
+
+ if (field_0x22 == 4 && mpScrnExplain->getStatus() == dMsgScrnExplain_c::STATUS_CLOSE_e) {
+ if (field_0x12 == 0) {
+ mDoAud_seStart(Z2SE_SY_CURSOR_OK, NULL, 0, 0);
+ } else if (field_0x12 == 1) {
+ if (field_0x14 == 1) {
+ mDoAud_seStart(Z2SE_QUIT_GAME, NULL, 0, 0);
+ } else {
+ mDoAud_seStart(Z2SE_SY_CURSOR_CANCEL, NULL, 0, 0);
+ }
+ }
+ }
+
+ return rt;
+}
+
+void dMenu_Quit_c::msgTxtSet(u16 i_msgId, bool param_1) {
+ param_1 = true;
+
+ if (i_msgId != 0xFFFF) {
+ bool rt;
+ if (field_0x1c == 1) {
+ rt = mpScrnExplain->openExplain(i_msgId, 1, field_0x14 != 0 ? 0 : 1, 0xFF, param_1);
+ } else {
+ rt = mpScrnExplain->openExplain(i_msgId, 0, 0, 0xFF, true);
+ }
+
+ if (!rt) {
+ field_0x20 = param_1;
+ mMsgId = i_msgId;
+ field_0x13 = field_0x12;
+ field_0x12 = 2;
+ }
+ }
+
+ field_0x21 = 0;
+}
+
+void dDlst_MenuQuitExplain_c::draw() {
+ mpExplain->draw((J2DOrthoGraph*)dComIfGp_getCurrentGrafPort());
+}
diff --git a/src/d/d_msg_scrn_3select.cpp b/src/d/d_msg_scrn_3select.cpp
index 557ed12cd9..f8c9167be1 100644
--- a/src/d/d_msg_scrn_3select.cpp
+++ b/src/d/d_msg_scrn_3select.cpp
@@ -210,7 +210,7 @@ dMsgScrn3Select_c::dMsgScrn3Select_c() {
field_0x10c = 0;
field_0x112 = 0;
mProcess = PROC_MAX_e;
- field_0x115 = 0xFF;
+ mDPDPoint = 0xFF;
field_0x116 = 0xFF;
field_0x117 = 0;
diff --git a/src/d/d_msg_scrn_explain.cpp b/src/d/d_msg_scrn_explain.cpp
index 3df29b4e11..60d1379b50 100644
--- a/src/d/d_msg_scrn_explain.cpp
+++ b/src/d/d_msg_scrn_explain.cpp
@@ -31,44 +31,64 @@ static dMsgScrnExplain_c::ProcFunc move_process[] = {
&dMsgScrnExplain_c::move_select_proc, &dMsgScrnExplain_c::close_proc,
};
-dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool param_2, u8 param_3) {
+dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool i_isUseBackTex, u8 param_3) {
mpStick = i_stick;
- field_0x54 = 0;
+ mOpenMsgId = 0;
field_0x5c = 0;
field_0x64 = 0;
mSelCursor = 0;
field_0x62 = 0xff;
field_0x63 = 0;
- mStatus = 0;
+ mStatus = STATUS_WAIT_e;
field_0x5a = 0;
mForceSelect = 0;
- field_0x58 = 1;
+ field_0x58 = true;
field_0x66 = param_1;
mKeyWaitTimer = 0;
field_0x67 = param_3;
mpString_c = new dMsgString_c();
+ JUT_ASSERT(79, mpString_c != NULL);
mpOutFont = new COutFont_c(0);
+ JUT_ASSERT(83, mpOutFont != NULL);
mpOutFont->createPane();
mpScreen = new J2DScreen();
- mpScreen->setPriority("zelda_message_window_new.blo", 0x20000, dComIfGp_getMsgArchive(1));
+ JUT_ASSERT(88, mpScreen != NULL);
+
+ #if PLATFORM_GCN
+ #define MSG_WINDOW_BLO_FILENAME "zelda_message_window_new.blo"
+ #else
+ #define MSG_WINDOW_BLO_FILENAME "zelda_message_window_new_revo.blo"
+ #endif
+
+ bool fg = mpScreen->setPriority(MSG_WINDOW_BLO_FILENAME, 0x20000, dComIfGp_getMsgArchive(1));
+ JUT_ASSERT(98, fg != false);
dPaneClass_showNullPane(mpScreen);
mpTxScreen = new J2DScreen();
+ JUT_ASSERT(102, mpTxScreen != NULL);
field_0x48 = 608.0f;
if (param_1 == 1 || param_1 == 3) {
- mpTxScreen->setPriority("zelda_message_window_text_save_road.blo", 0x20000,
- dComIfGp_getMsgCommonArchive());
+ #if PLATFORM_GCN
+ #define MSG_WINDOW_TXT_SAVEROAD_BLO_FILENAME "zelda_message_window_text_save_road.blo"
+ #else
+ #define MSG_WINDOW_TXT_SAVEROAD_BLO_FILENAME "zelda_message_window_save_road_text_revo.blo"
+ #endif
+ fg = mpTxScreen->setPriority(MSG_WINDOW_TXT_SAVEROAD_BLO_FILENAME, 0x20000, dComIfGp_getMsgCommonArchive());
+ JUT_ASSERT(119, fg != false);
dPaneClass_showNullPane(mpTxScreen);
mpTm_c[0] = new CPaneMgr(mpTxScreen, 'mg_3line', 0, NULL);
+ JUT_ASSERT(124, mpTm_c[0] != NULL);
+
mpTm_c[1] = new CPaneMgr(mpTxScreen, 't3_s', 0, NULL);
+ JUT_ASSERT(127, mpTm_c[1] != NULL);
- field_0x10[0] = NULL;
- field_0x10[1] = NULL;
+ mpTmr_c[0] = NULL;
+ mpTmr_c[1] = NULL;
mpTxScreen->search('n_3line')->show();
mpTxScreen->search('n_3fline')->hide();
@@ -81,8 +101,9 @@ dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool param_
#endif
field_0x4c = 0.0f;
} else {
- mpTxScreen->setPriority("zelda_message_window_text.blo", 0x20000,
- dComIfGp_getMsgCommonArchive());
+ fg = mpTxScreen->setPriority("zelda_message_window_text.blo", 0x20000,
+ dComIfGp_getMsgCommonArchive());
+ JUT_ASSERT(153, fg != false);
dPaneClass_showNullPane(mpTxScreen);
mpScreen->search('n_all')->scale(g_MsgObject_HIO_c.mBoxTalkScaleX,
@@ -94,8 +115,8 @@ dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool param_
mpTm_c[0] = new CPaneMgr(mpTxScreen, 'mg_3flin', 0, NULL);
mpTm_c[1] = new CPaneMgr(mpTxScreen, 't3f_s', 0, NULL);
- field_0x10[0] = new CPaneMgr(mpTxScreen, 'mg_3f', 0, NULL);
- field_0x10[1] = new CPaneMgr(mpTxScreen, 'mg_3f_s', 0, NULL);
+ mpTmr_c[0] = new CPaneMgr(mpTxScreen, 'mg_3f', 0, NULL);
+ mpTmr_c[1] = new CPaneMgr(mpTxScreen, 'mg_3f_s', 0, NULL);
mpTxScreen->search('n_3line')->hide();
mpTxScreen->search('n_3fline')->show();
@@ -104,8 +125,8 @@ dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool param_
mpTm_c[0] = new CPaneMgr(mpTxScreen, 'mg_3line', 0, NULL);
mpTm_c[1] = new CPaneMgr(mpTxScreen, 't3_s', 0, NULL);
- field_0x10[0] = NULL;
- field_0x10[1] = NULL;
+ mpTmr_c[0] = NULL;
+ mpTmr_c[1] = NULL;
mpTxScreen->search('n_3line')->show();
mpTxScreen->search('n_3fline')->hide();
@@ -115,10 +136,13 @@ dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool param_
field_0x50 = -10.0f;
mpTm_c[0] = new CPaneMgr(mpTxScreen, 'mg_e4lin', 0, NULL);
+ JUT_ASSERT(162, mpTm_c[0] != NULL);
+
mpTm_c[1] = new CPaneMgr(mpTxScreen, 't4_s', 0, NULL);
+ JUT_ASSERT(165, mpTm_c[1] != NULL);
- field_0x10[0] = NULL;
- field_0x10[1] = NULL;
+ mpTmr_c[0] = NULL;
+ mpTmr_c[1] = NULL;
mpTxScreen->search('n_3line')->hide();
mpTxScreen->search('n_3fline')->hide();
@@ -142,14 +166,14 @@ dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool param_
#endif
((J2DTextBox*)mpTm_c[i]->getPanePtr())->setLineSpace(lineSpace);
- if (field_0x10[i] != NULL) {
- ((J2DTextBox*)field_0x10[i]->getPanePtr())->setFont(mDoExt_getMesgFont());
+ if (mpTmr_c[i] != NULL) {
+ ((J2DTextBox*)mpTmr_c[i]->getPanePtr())->setFont(mDoExt_getMesgFont());
#if VERSION == VERSION_GCN_JPN
- ((J2DTextBox*)field_0x10[i]->getPanePtr())->setString(0x210, "");
+ ((J2DTextBox*)mpTmr_c[i]->getPanePtr())->setString(0x210, "");
#else
- ((J2DTextBox*)field_0x10[i]->getPanePtr())->setString(0x200, "");
+ ((J2DTextBox*)mpTmr_c[i]->getPanePtr())->setString(0x200, "");
#endif
- ((J2DTextBox*)field_0x10[i]->getPanePtr())->setLineSpace(lineSpace);
+ ((J2DTextBox*)mpTmr_c[i]->getPanePtr())->setLineSpace(lineSpace);
}
}
@@ -158,15 +182,24 @@ dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool param_
g_MsgObject_HIO_c.mTextPosY + mpScreen->search('mg_null')->getBounds().i.y);
mpArw_c = new CPaneMgr(mpScreen, 'set_ya_n', 0, NULL);
+ JUT_ASSERT(241, mpArw_c != NULL);
+
mpMg_c[0] = new CPaneMgr(mpScreen, 'mg_null', 0, NULL);
+ JUT_ASSERT(244, mpMg_c[0] != NULL);
+
mpMg_c[1] = new CPaneMgr(mpTxScreen, 'mg_null', 0, NULL);
+ JUT_ASSERT(247, mpMg_c[1] != NULL);
+
mpRoot_c[0] = new CPaneMgr(mpScreen, 'ROOT', 2, NULL);
+ JUT_ASSERT(250, mpRoot_c[0] != NULL);
+
mpRoot_c[1] = new CPaneMgr(mpTxScreen, 'ROOT', 2, NULL);
+ JUT_ASSERT(253, mpRoot_c[1] != NULL);
- if (param_2 == true) {
- ResTIMG* texResource =
- (ResTIMG*)dComIfGp_getMain2DArchive()->getResource('TIMG', "tt_block8x8.bti");
+ if (i_isUseBackTex == true) {
+ ResTIMG* texResource = (ResTIMG*)dComIfGp_getMain2DArchive()->getResource('TIMG', "tt_block8x8.bti");
mpBackTex = new J2DPicture(texResource);
+ JUT_ASSERT(259, mpBackTex != NULL);
mpBackTex->setBlackWhite(JUtility::TColor(0, 0, 0, 0),
JUtility::TColor(0, 0, 0, 0xff));
mpBackTex->setAlpha(0);
@@ -175,17 +208,19 @@ dMsgScrnExplain_c::dMsgScrnExplain_c(STControl* i_stick, u8 param_1, bool param_
}
mpArrow_c = new dMsgScrnArrow_c();
+ JUT_ASSERT(269, mpArrow_c != NULL);
if (i_stick != NULL) {
mpSelect_c = new dMsgScrn3Select_c();
+ JUT_ASSERT(274, mpSelect_c != NULL);
} else {
mpSelect_c = NULL;
}
- Vec vtxCenter = mpArw_c->getGlobalVtxCenter(mpArw_c->mPane, false, 0);
+ Vec vtxCenter = mpArw_c->getGlobalVtxCenter(false, 0);
mpArrow_c->setPos(vtxCenter.x, vtxCenter.y);
- Vec vtxCenter2 = mpMg_c[0]->getGlobalVtxCenter(mpMg_c[0]->mPane, false, 0);
+ Vec vtxCenter2 = mpMg_c[0]->getGlobalVtxCenter(false, 0);
mpMg_c[1]->translate(vtxCenter2.x + field_0x50, vtxCenter2.y);
}
@@ -209,9 +244,9 @@ dMsgScrnExplain_c::~dMsgScrnExplain_c() {
delete mpTm_c[i];
mpTm_c[i] = NULL;
- if (field_0x10[i] != NULL) {
- delete field_0x10[i];
- field_0x10[i] = NULL;
+ if (mpTmr_c[i] != NULL) {
+ delete mpTmr_c[i];
+ mpTmr_c[i] = NULL;
}
delete mpMg_c[i];
@@ -265,7 +300,7 @@ void dMsgScrnExplain_c::move() {
}
void dMsgScrnExplain_c::draw(J2DOrthoGraph* i_graf) {
- if (mStatus == 0 || mStatus == 1) {
+ if (mStatus == STATUS_WAIT_e || mStatus == STATUS_OPEN_REQ_e) {
return;
}
@@ -282,9 +317,9 @@ void dMsgScrnExplain_c::draw(J2DOrthoGraph* i_graf) {
mpTxScreen->draw(0.0f, 0.0f, (J2DGrafContext*)i_graf);
#if VERSION == VERSION_GCN_JPN
- mpString_c->getString(field_0x54, (J2DTextBox*)mpTm_c[0]->getPanePtr(), NULL, NULL, NULL, 12);
+ mpString_c->getString(mOpenMsgId, (J2DTextBox*)mpTm_c[0]->getPanePtr(), NULL, NULL, NULL, 12);
#else
- mpString_c->getString(field_0x54, (J2DTextBox*)mpTm_c[0]->getPanePtr(), NULL, NULL, NULL, 8);
+ mpString_c->getString(mOpenMsgId, (J2DTextBox*)mpTm_c[0]->getPanePtr(), NULL, NULL, NULL, 8);
#endif
mpString_c->drawOutFont((J2DTextBox*)mpTm_c[0]->getPanePtr(), -1.0f);
@@ -313,26 +348,26 @@ void dMsgScrnExplain_c::wait_proc() {}
void dMsgScrnExplain_c::open_request_init() {}
void dMsgScrnExplain_c::open_request_proc() {
- J2DTextBox* uVar1;
- J2DTextBox* uVar6 = NULL;
+ J2DTextBox* tbox = NULL;
+ J2DTextBox* rubyTbox = NULL;
- uVar1 = (J2DTextBox*)mpTm_c[0]->getPanePtr();
- if (field_0x10[0] != NULL) {
- uVar6 = (J2DTextBox*)field_0x10[0]->getPanePtr();
+ tbox = (J2DTextBox*)mpTm_c[0]->getPanePtr();
+ if (mpTmr_c[0] != NULL) {
+ rubyTbox = (J2DTextBox*)mpTmr_c[0]->getPanePtr();
}
- char acStack_220[STR_BUF_LEN];
- char acStack_420[STR_BUF_LEN];
- char acStack_620[STR_BUF_LEN];
+ char text[STR_BUF_LEN];
+ char ruby[STR_BUF_LEN];
+ char textShadow[STR_BUF_LEN];
- if (dMsgObject_getString(field_0x54, uVar1, uVar6, mDoExt_getMesgFont(), mpOutFont, acStack_220,
- acStack_420, acStack_620, &field_0x5c) != 0)
- {
- strcpy(((J2DTextBox*)mpTm_c[0]->getPanePtr())->getStringPtr(), acStack_220);
- strcpy(((J2DTextBox*)mpTm_c[1]->getPanePtr())->getStringPtr(), acStack_620);
+ bool rt = dMsgObject_getString(mOpenMsgId, tbox, rubyTbox, mDoExt_getMesgFont(), mpOutFont, text,
+ ruby, textShadow, &field_0x5c);
+ if (rt) {
+ strcpy(((J2DTextBox*)mpTm_c[0]->getPanePtr())->getStringPtr(), text);
+ strcpy(((J2DTextBox*)mpTm_c[1]->getPanePtr())->getStringPtr(), textShadow);
for (int i = 0; i < 2; i++) {
- if (field_0x10[i] != NULL) {
- strcpy(((J2DTextBox*)field_0x10[i]->getPanePtr())->getStringPtr(), acStack_420);
+ if (mpTmr_c[i] != NULL) {
+ strcpy(((J2DTextBox*)mpTmr_c[i]->getPanePtr())->getStringPtr(), ruby);
}
}
@@ -340,7 +375,7 @@ void dMsgScrnExplain_c::open_request_proc() {
Z2GetSpeechMgr2()->setTextCount(0);
}
- mStatus = 2;
+ mStatus = STATUS_OPEN_e;
}
}
@@ -350,7 +385,7 @@ void dMsgScrnExplain_c::open_init() {
for (int i = 0; i < 2; i++) {
mpRoot_c[i]->setAlphaRate(0.0f);
}
- mDoAud_seStart(Z2SE_SY_EXP_WIN_OPEN, 0, 0, 0);
+ mDoAud_seStart(Z2SE_SY_EXP_WIN_OPEN, NULL, 0, 0);
}
void dMsgScrnExplain_c::open_proc() {
@@ -358,9 +393,9 @@ void dMsgScrnExplain_c::open_proc() {
if (field_0x5a >= 5) {
field_0x5a = 5;
if (field_0x64 == 1 || field_0x64 == 2) {
- mStatus = 4;
+ mStatus = STATUS_MOVE_SELECT_e;
} else {
- mStatus = 3;
+ mStatus = STATUS_MOVE_e;
}
}
@@ -385,14 +420,14 @@ void dMsgScrnExplain_c::move_proc() {
}
if (mDoCPd_c::getTrigA(PAD_1) ||
- ((field_0x58 != 0x0 &&
+ ((field_0x58 &&
(mDoCPd_c::getTrigB(PAD_1) || mDoCPd_c::getTrigZ(PAD_1) || mDoCPd_c::getTrigX(PAD_1) ||
mDoCPd_c::getTrigY(PAD_1) || mDoCPd_c::getTrigStart(PAD_1) ||
mDoCPd_c::getTrigR(PAD_1) || mDoCPd_c::getTrigL(PAD_1) || mForceSelect))))
{
- mStatus = 5;
+ mStatus = STATUS_CLOSE_e;
dMeter2Info_set2DVibrationM();
- mDoAud_seStart(Z2SE_SY_EXP_WIN_CLOSE, 0, 0, 0);
+ mDoAud_seStart(Z2SE_SY_EXP_WIN_CLOSE, NULL, 0, 0);
}
}
@@ -402,6 +437,10 @@ void dMsgScrnExplain_c::move_select_init() {
char string_buf_yes[20];
char string_buf_no[20];
+ f32 var_f31 = 0.0f;
+ f32 yes_str_len = 0.0f;
+ f32 no_str_len = 0.0f;
+
msg_buf_yes[0] = 0;
msg_buf_no[0] = 0;
string_buf_yes[0] = 0;
@@ -415,36 +454,38 @@ void dMsgScrnExplain_c::move_select_init() {
dMeter2Info_getString(0x520, msg_buf_no, NULL); // "NO"
}
- f32 yes_str_len = dMeter2Info_getStringLength(mDoExt_getMesgFont(), mpSelect_c->getFontSize(),
- mpSelect_c->getCharSpace(), msg_buf_yes);
- f32 no_str_len = dMeter2Info_getStringLength(mDoExt_getMesgFont(), mpSelect_c->getFontSize(),
- mpSelect_c->getCharSpace(), msg_buf_no);
- f32 dVar13;
+ yes_str_len = dMeter2Info_getStringLength(mDoExt_getMesgFont(), mpSelect_c->getFontSize(),
+ mpSelect_c->getCharSpace(), msg_buf_yes);
+ no_str_len = dMeter2Info_getStringLength(mDoExt_getMesgFont(), mpSelect_c->getFontSize(),
+ mpSelect_c->getCharSpace(), msg_buf_no);
+
if (yes_str_len < no_str_len) {
- dVar13 = no_str_len;
+ var_f31 = no_str_len;
} else {
- dVar13 = yes_str_len;
+ var_f31 = yes_str_len;
}
- f32 tbox_width = mpSelect_c->getTextBoxWidth();
- if (dVar13 < tbox_width) {
- dVar13 = mpSelect_c->getTextBoxWidth();
+ if (var_f31 < mpSelect_c->getTextBoxWidth()) {
+ var_f31 = mpSelect_c->getTextBoxWidth();
}
+ f32 var_f28 = 0.5f * (var_f31 - yes_str_len);
+ f32 var_f27 = 0.5f * (var_f31 - no_str_len);
+
snprintf(string_buf_yes, 20,
"\x1B"
"CR[%d]",
- (int)(0.5f * (dVar13 - yes_str_len)));
+ (int)var_f28);
strcat(string_buf_yes, msg_buf_yes);
snprintf(string_buf_no, 20,
"\x1B"
"CR[%d]",
- (int)(0.5f * (dVar13 - no_str_len)));
+ (int)var_f27);
strcat(string_buf_no, msg_buf_no);
mpSelect_c->setString("", string_buf_yes, string_buf_no);
mpSelect_c->setRubyString("", "", "");
- mpSelect_c->selAnimeInit(2, mSelCursor + 1, 0, dVar13, 0);
+ mpSelect_c->selAnimeInit(2, mSelCursor + 1, 0, var_f31, 0);
mpArrow_c->arwAnimeInit();
}
@@ -468,7 +509,7 @@ void dMsgScrnExplain_c::move_select_proc() {
mDoAud_seStart(Z2SE_SY_TALK_CURSOR_OK, NULL, 0, 0);
}
- mStatus = 5;
+ mStatus = STATUS_CLOSE_e;
mDoAud_seStart(Z2SE_SY_EXP_WIN_CLOSE, NULL, 0, 0);
} else if (field_0x58 && (checkTriggerB() || mForceSelect)) {
if (field_0x64 == 2) {
@@ -482,7 +523,7 @@ void dMsgScrnExplain_c::move_select_proc() {
}
}
- mStatus = 5;
+ mStatus = STATUS_CLOSE_e;
mDoAud_seStart(Z2SE_SY_EXP_WIN_CLOSE, NULL, 0, 0);
} else if (mpSelect_c->isSelect() && mpStick->checkUpTrigger()) {
if (mSelCursor == 1) {
@@ -490,14 +531,28 @@ void dMsgScrnExplain_c::move_select_proc() {
Z2GetAudioMgr()->seStart(Z2SE_SY_MENU_CURSOR_COMMON, NULL, 0, 0, 1.0f, 1.0f, -1.0f,
-1.0f, 0);
}
- } else if (mpSelect_c->isSelect() && mpStick->checkDownTrigger() && mSelCursor == 0) {
- mSelCursor = 1;
- Z2GetAudioMgr()->seStart(Z2SE_SY_MENU_CURSOR_COMMON, NULL, 0, 0, 1.0f, 1.0f, -1.0f,
- -1.0f, 0);
+ } else if (mpSelect_c->isSelect() && mpStick->checkDownTrigger()) {
+ if (mSelCursor == 0) {
+ mSelCursor = 1;
+ Z2GetAudioMgr()->seStart(Z2SE_SY_MENU_CURSOR_COMMON, NULL, 0, 0, 1.0f, 1.0f, -1.0f,
+ -1.0f, 0);
+ }
}
+ #if !PLATFORM_GCN
+ else if (mpSelect_c->getDPDPoint() != 0xFF) {
+ if (mSelCursor != mpSelect_c->getDPDPoint() && field_0x62 != mpSelect_c->getDPDPoint()) {
+ mSelCursor = mpSelect_c->getDPDPoint();
+ Z2GetAudioMgr()->seStart(Z2SE_SY_MENU_CURSOR_COMMON, NULL, 1, 0, 1.0f, 1.0f, -1.0f,
+ -1.0f, 0);
+ dMeter2Info_set2DVibration();
+ }
+ }
+
+ field_0x62 = mpSelect_c->getDPDPoint();
+ #endif
}
- if (mStatus == 4) {
+ if (mStatus == STATUS_MOVE_SELECT_e) {
mpSelect_c->selAnimeMove(2, mSelCursor + 1, false);
} else {
mpSelect_c->selAnimeEnd();
@@ -509,7 +564,7 @@ void dMsgScrnExplain_c::close_init() {
}
void dMsgScrnExplain_c::close_proc() {
- bool iVar1;
+ bool iVar1 = false;
if (mpSelect_c != NULL) {
iVar1 = mpSelect_c->selAnimeEnd();
} else {
@@ -520,7 +575,7 @@ void dMsgScrnExplain_c::close_proc() {
if (field_0x5a <= 0) {
field_0x5a = 0;
if (iVar1) {
- mStatus = 0;
+ mStatus = STATUS_WAIT_e;
}
}
@@ -534,21 +589,21 @@ void dMsgScrnExplain_c::close_proc() {
}
}
-bool dMsgScrnExplain_c::openExplain(u32 param_0, u8 param_1, u8 param_2, u8 param_3, bool param_4) {
+bool dMsgScrnExplain_c::openExplain(u32 i_msgId, u8 param_1, u8 i_cursorSel, u8 param_3, bool param_4) {
bool rv = false;
if (g_MsgObject_HIO_c.mSaveSeqMsgDebug) {
- param_0 = g_MsgObject_HIO_c.mSaveSeqMsgIndex;
+ i_msgId = g_MsgObject_HIO_c.mSaveSeqMsgIndex;
}
- if (mStatus == 0) {
- field_0x54 = param_0;
+ if (mStatus == STATUS_WAIT_e) {
+ mOpenMsgId = i_msgId;
field_0x64 = param_1;
- mSelCursor = param_2;
+ mSelCursor = i_cursorSel;
field_0x63 = param_3;
mForceSelect = 0;
field_0x58 = param_4;
- mStatus = 1;
+ mStatus = STATUS_OPEN_REQ_e;
open_request_init();
rv = true;
}
@@ -557,21 +612,39 @@ bool dMsgScrnExplain_c::openExplain(u32 param_0, u8 param_1, u8 param_2, u8 para
}
f32 dMsgScrnExplain_c::getAlphaRatio() {
+ f32 ratio;
+ f32 var_f30;
+ f32 var_f29;
switch (mStatus) {
- case 2:
- case 5:
- return 1.0f - (field_0x5a / 5.0f);
- case 0:
- return 1.0f;
+ case STATUS_OPEN_e:
+ case STATUS_CLOSE_e:
+ var_f29 = field_0x5a;
+ var_f30 = 5.0f;
+ ratio = 1.0f - (var_f29 / var_f30);
+ break;
+ case STATUS_WAIT_e:
+ ratio = 1.0f;
+ break;
default:
- return 0.0f;
+ ratio = 0.0f;
+ break;
}
+
+ return ratio;
}
bool dMsgScrnExplain_c::checkTriggerA() {
- return mDoCPd_c::getTrigA(PAD_1);
+ if (mDoCPd_c::getTrigA(PAD_1)) {
+ return true;
+ } else {
+ return false;
+ }
}
bool dMsgScrnExplain_c::checkTriggerB() {
- return mDoCPd_c::getTrigB(PAD_1);
+ if (mDoCPd_c::getTrigB(PAD_1)) {
+ return true;
+ } else {
+ return false;
+ }
}
diff --git a/src/d/d_s_room.cpp b/src/d/d_s_room.cpp
index 836a9a1a18..6a46024e97 100644
--- a/src/d/d_s_room.cpp
+++ b/src/d/d_s_room.cpp
@@ -9,6 +9,7 @@
#include "d/d_com_inf_game.h"
#include "d/d_s_play.h"
#include "d/d_s_room.h"
+#include "d/d_bg_parts.h"
#include "m_Do/m_Do_Reset.h"
#include <cstdio>
@@ -342,20 +343,32 @@ static int phase_1(room_of_scene_class* i_this) {
static int phase_2(room_of_scene_class* i_this) {
const char* arcName = setArcName(i_this);
- int phase = dComIfG_syncStageRes(arcName);
+ int rt = dComIfG_syncStageRes(arcName);
- if (phase < 0) {
+ if (rt < 0) {
#if VERSION == VERSION_WII_USA_R0
dStage_escapeRestart();
#endif
return cPhs_ERROR_e;
}
- if (phase != 0) {
+ JUT_ASSERT(750, rt >= 0);
+ if (rt != 0) {
return cPhs_INIT_e;
}
int roomNo = fopScnM_GetParam(i_this);
+
+ #if DEBUG
+ JKRExpHeap* block = dStage_roomControl_c::getMemoryBlock(roomNo);
+ OS_REPORT("*************************************** room%d <%x> <%x : %x>\n",
+ roomNo,
+ block,
+ block != NULL ? block->getTotalFreeSize() : 0,
+ block != NULL ? block->getFreeSize() : 0
+ );
+ #endif
+
if (dComIfGp_roomControl_getZoneNo(roomNo) < 0) {
dComIfGp_roomControl_setZoneNo(roomNo, dComIfGs_createZone(roomNo));
}
@@ -375,6 +388,17 @@ static int phase_2(room_of_scene_class* i_this) {
old_heap = mDoExt_setCurrentHeap(heap);
}
+ #if DEBUG
+ void* mpat = dComIfGp_roomControl_getStatusRoomDt(roomNo)->getMapPath();
+ if (mpat != NULL) {
+ dBgp_c* bgp = new dBgp_c();
+ JUT_ASSERT(786, bgp != NULL);
+
+ bgp->create(roomNo, mpat);
+ dStage_roomControl_c::setBgp(roomNo, bgp);
+ }
+ #endif
+
if (old_heap != NULL) {
mDoExt_setCurrentHeap(old_heap);
}
diff --git a/src/d/d_stage.cpp b/src/d/d_stage.cpp
index b00b4ec845..22d3b156fb 100644
--- a/src/d/d_stage.cpp
+++ b/src/d/d_stage.cpp
@@ -12,6 +12,7 @@
#include "d/d_path.h"
#include "d/d_save_HIO.h"
#include "d/d_stage.h"
+#include "d/d_bg_parts.h"
#include "f_ap/f_ap_game.h"
#include "f_op/f_op_kankyo_mng.h"
#include "f_op/f_op_msg_mng.h"
diff --git a/src/dolphin/os/__ppc_eabi_init.cpp b/src/dolphin/os/__ppc_eabi_init.cpp
index 7ca9e181d9..b91519376c 100644
--- a/src/dolphin/os/__ppc_eabi_init.cpp
+++ b/src/dolphin/os/__ppc_eabi_init.cpp
@@ -2,7 +2,7 @@
// __ppc_eabi_init
//
-#include "dolphin/base/PPCArch.h"
+#include <dolphin/base/PPCArch.h>
#ifdef __cplusplus
extern "C" {
diff --git a/src/f_op/f_op_scene_req.cpp b/src/f_op/f_op_scene_req.cpp
index 8c98a1693c..17dd3c4059 100644
--- a/src/f_op/f_op_scene_req.cpp
+++ b/src/f_op/f_op_scene_req.cpp
@@ -10,46 +10,28 @@
#include "f_pc/f_pc_executor.h"
#include "f_pc/f_pc_manager.h"
-static cPhs__Step fopScnRq_phase_ClearOverlap(scene_request_class* i_sceneReq) {
- cPhs__Step rv;
- if (fopOvlpM_ClearOfReq() == 1) {
- rv = cPhs_NEXT_e;
- } else {
- rv = cPhs_INIT_e;
- }
- return rv;
+static cPhs_Step fopScnRq_phase_ClearOverlap(scene_request_class* i_sceneReq) {
+ return fopOvlpM_ClearOfReq() == 1 ? cPhs_NEXT_e : cPhs_INIT_e;
UNUSED(i_sceneReq);
}
-static cPhs__Step fopScnRq_phase_Execute(scene_request_class* i_sceneReq) {
- return (cPhs__Step)fpcNdRq_Execute(&i_sceneReq->create_request);
+static cPhs_Step fopScnRq_phase_Execute(scene_request_class* i_sceneReq) {
+ return fpcNdRq_Execute(&i_sceneReq->create_request);
}
-static cPhs__Step fopScnRq_phase_IsDoingOverlap(scene_request_class* i_sceneReq) {
- cPhs__Step rv;
- if (fopOvlpM_IsDoingReq() == 1) {
- rv = cPhs_NEXT_e;
- } else {
- rv = cPhs_INIT_e;
- }
- return rv;
+static cPhs_Step fopScnRq_phase_IsDoingOverlap(scene_request_class* i_sceneReq) {
+ return fopOvlpM_IsDoingReq() == 1 ? cPhs_NEXT_e : cPhs_INIT_e;
UNUSED(i_sceneReq);
}
-static cPhs__Step fopScnRq_phase_IsDoneOverlap(scene_request_class* i_sceneReq) {
- cPhs__Step rv;
- if (fopOvlpM_IsDone() == 1) {
- rv = cPhs_NEXT_e;
- } else {
- rv = cPhs_INIT_e;
- }
- return rv;
+static cPhs_Step fopScnRq_phase_IsDoneOverlap(scene_request_class* i_sceneReq) {
+ return fopOvlpM_IsDone() == 1 ? cPhs_NEXT_e : cPhs_INIT_e;
UNUSED(i_sceneReq);
}
static BOOL l_fopScnRq_IsUsingOfOverlap;
-static cPhs__Step fopScnRq_phase_Done(scene_request_class* i_sceneReq) {
+static cPhs_Step fopScnRq_phase_Done(scene_request_class* i_sceneReq) {
if (i_sceneReq->create_request.parameters != 1) {
scene_class* scene = (scene_class*)fpcM_SearchByID(i_sceneReq->create_request.creating_id);
@@ -61,8 +43,8 @@ static cPhs__Step fopScnRq_phase_Done(scene_request_class* i_sceneReq) {
return cPhs_NEXT_e;
}
-static cPhs__Step fopScnRq_Execute(scene_request_class* i_sceneReq) {
- cPhs__Step phase_state = (cPhs__Step)cPhs_Do(&i_sceneReq->phase_request, i_sceneReq);
+static cPhs_Step fopScnRq_Execute(scene_request_class* i_sceneReq) {
+ cPhs_Step phase_state = cPhs_Do(&i_sceneReq->phase_request, i_sceneReq);
switch (phase_state) {
case cPhs_NEXT_e:
diff --git a/src/m_Do/m_Do_Reset.cpp b/src/m_Do/m_Do_Reset.cpp
index 5d7fc36d88..fd478e51a1 100644
--- a/src/m_Do/m_Do_Reset.cpp
+++ b/src/m_Do/m_Do_Reset.cpp
@@ -8,14 +8,14 @@
#include "JSystem/JUtility/JUTGamePad.h"
#include "JSystem/JUtility/JUTXfb.h"
#include "SSystem/SComponent/c_API_controller_pad.h"
-#include "dolphin/gx.h"
+#include <dolphin/gx.h>
#include "m_Do/m_Do_audio.h"
#include "m_Do/m_Do_DVDError.h"
#include "m_Do/m_Do_ext.h"
#include "m_Do/m_Do_MemCard.h"
#if !PLATFORM_GCN
-#include "revolution/os.h"
+#include <revolution/os.h>
#endif
static void my_OSCancelAlarmAll() {}
diff --git a/src/m_Do/m_Do_lib.cpp b/src/m_Do/m_Do_lib.cpp
index dc1b789d7a..8876beb12d 100644
--- a/src/m_Do/m_Do_lib.cpp
+++ b/src/m_Do/m_Do_lib.cpp
@@ -8,7 +8,7 @@
#include "JSystem/J3DGraphBase/J3DMatBlock.h"
#include "SSystem/SComponent/c_math.h"
#include "d/d_com_inf_game.h"
-#include "dolphin/types.h"
+#include <dolphin/types.h>
u32 mDoLib_setResTimgObj(ResTIMG const* i_img, GXTexObj* o_texObj, u32 tlut_name,
GXTlutObj* o_tlutObj) {
diff --git a/src/m_Do/m_Do_machine.cpp b/src/m_Do/m_Do_machine.cpp
index 30977fa34d..08ede9161a 100644
--- a/src/m_Do/m_Do_machine.cpp
+++ b/src/m_Do/m_Do_machine.cpp
@@ -29,8 +29,8 @@
#include "DynamicLink.h"
#if !PLATFORM_GCN
-#include "revolution/sc.h"
-#include "revolution/wpad.h"
+#include <revolution/sc.h>
+#include <revolution/wpad.h>
#endif
#if PLATFORM_GCN
diff --git a/src/odemuexi2/DebuggerDriver.c b/src/odemuexi2/DebuggerDriver.c
index d1c96b98b8..fef3707d92 100644
--- a/src/odemuexi2/DebuggerDriver.c
+++ b/src/odemuexi2/DebuggerDriver.c
@@ -1,5 +1,5 @@
#include <dolphin/exi.h>
-#include "dolphin/os.h"
+#include <dolphin/os.h>
typedef void (*MTRCallbackType)(int);
diff --git a/src/revolution/homebuttonLib/nw4hbm/lyt/arcResourceAccessor.h b/src/revolution/homebuttonLib/nw4hbm/lyt/arcResourceAccessor.h
index b3e3d43e43..ed5d472819 100644
--- a/src/revolution/homebuttonLib/nw4hbm/lyt/arcResourceAccessor.h
+++ b/src/revolution/homebuttonLib/nw4hbm/lyt/arcResourceAccessor.h
@@ -1,9 +1,9 @@
#ifndef NW4HBM_LYT_ARC_RESOURCE_ACCESSOR_H
#define NW4HBM_LYT_ARC_RESOURCE_ACCESSOR_H
-#include "revolution/types.h"
+#include <revolution/types.h>
-#include "revolution/arc.h"
+#include <revolution/arc.h>
#include "../ut/Font.h"
#include "../ut/LinkList.h"
diff --git a/src/revolution/homebuttonLib/nw4hbm/lyt/common.h b/src/revolution/homebuttonLib/nw4hbm/lyt/common.h
index 4f235556ef..c72da38682 100644
--- a/src/revolution/homebuttonLib/nw4hbm/lyt/common.h
+++ b/src/revolution/homebuttonLib/nw4hbm/lyt/common.h
@@ -1,8 +1,8 @@
#ifndef NW4HBM_LYT_COMMON_H
#define NW4HBM_LYT_COMMON_H
-#include "revolution/tpl.h"
-#include "revolution/types.h"
+#include <revolution/tpl.h>
+#include <revolution/types.h>
#include "../ut/Color.h"
diff --git a/src/revolution/homebuttonLib/nw4hbm/lyt/lyt_types.h b/src/revolution/homebuttonLib/nw4hbm/lyt/lyt_types.h
index effcb1f1f8..7a9701e9c8 100644
--- a/src/revolution/homebuttonLib/nw4hbm/lyt/lyt_types.h
+++ b/src/revolution/homebuttonLib/nw4hbm/lyt/lyt_types.h
@@ -1,7 +1,7 @@
#ifndef NW4HBM_LYT_TYPES_H
#define NW4HBM_LYT_TYPES_H
-#include "revolution/types.h"
+#include <revolution/types.h>
#include <revolution/gx.h>
diff --git a/src/revolution/homebuttonLib/nw4hbm/lyt/pane.h b/src/revolution/homebuttonLib/nw4hbm/lyt/pane.h
index a8106c2ac9..64567bddd9 100644
--- a/src/revolution/homebuttonLib/nw4hbm/lyt/pane.h
+++ b/src/revolution/homebuttonLib/nw4hbm/lyt/pane.h
@@ -1,7 +1,7 @@
#ifndef NW4HBM_LYT_PANE_H
#define NW4HBM_LYT_PANE_H
-#include "revolution/types.h"
+#include <revolution/types.h>
#include "../ut/Color.h"
#include "../ut/LinkList.h"
diff --git a/src/revolution/homebuttonLib/nw4hbm/lyt/resourceAccessor.h b/src/revolution/homebuttonLib/nw4hbm/lyt/resourceAccessor.h
index 11bd30d2d7..0a20102a17 100644
--- a/src/revolution/homebuttonLib/nw4hbm/lyt/resourceAccessor.h
+++ b/src/revolution/homebuttonLib/nw4hbm/lyt/resourceAccessor.h
@@ -1,7 +1,7 @@
#ifndef NW4HBM_LYT_RESOURCE_ACCESSOR_H
#define NW4HBM_LYT_RESOURCE_ACCESSOR_H
-#include "revolution/types.h"
+#include <revolution/types.h>
namespace nw4hbm {
diff --git a/src/revolution/os/__start.c b/src/revolution/os/__start.c
index 245e8e0027..e64be20cec 100644
--- a/src/revolution/os/__start.c
+++ b/src/revolution/os/__start.c
@@ -1,5 +1,5 @@
-#include "revolution/revolution.h"
-#include "revolution/os/OSHardware.h"
+#include <revolution/revolution.h>
+#include <revolution/os/OSHardware.h>
#include "__ppc_eabi_linker.h"
extern void InitMetroTRK();