mirror of
https://github.com/zeldaret/tp
synced 2026-07-11 15:28:38 -04:00
Various small matches (#2879)
* Misc debug matches * Fix JASBasicWaveBank weak func order * Remove more dol2asm stuff, fix missing includes * Some data fixes * Update comments * d_file_sel_warning is already OK * Fix Z2 splits * Fix movebox namespace * Fix inlining issue in m_Do_ext * Fix Z2 splits for P and J
This commit is contained in:
@@ -387,7 +387,7 @@ extern J3DNBTScaleInfo const j3dDefaultNBTScaleInfo = {
|
||||
};
|
||||
|
||||
/* 80434C98-80436A60 0619B8 1DC7+01 1/1 0/0 0/0 .bss j3dTexCoordTable */
|
||||
static u8 j3dTexCoordTable[7623 + 1 /* padding */];
|
||||
static u8 j3dTexCoordTable[7623];
|
||||
|
||||
/* 80324194-8032423C 31EAD4 00A8+00 0/0 1/1 0/0 .text makeTexCoordTable__Fv */
|
||||
void makeTexCoordTable() {
|
||||
|
||||
@@ -150,7 +150,7 @@ J3DMaterial* J3DMaterialFactory::createNormalMaterial(J3DMaterial* i_material, i
|
||||
BOOL ind_flag = (i_flags & 0x1000000) ? TRUE : FALSE;
|
||||
if (i_material == NULL) {
|
||||
i_material = new J3DMaterial();
|
||||
JUT_ASSERT_MSG(269, i_material, "Error : allocate memory.");
|
||||
J3D_ASSERT_ALLOCMEM(269, i_material);
|
||||
}
|
||||
i_material->mColorBlock = J3DMaterial::createColorBlock(color_flag);
|
||||
i_material->mTexGenBlock = J3DMaterial::createTexGenBlock(texgen_flag);
|
||||
@@ -252,14 +252,14 @@ J3DMaterial* J3DMaterialFactory::createPatchedMaterial(J3DMaterial* i_material,
|
||||
u32 i_flags) const {
|
||||
if (i_material == NULL) {
|
||||
i_material = new J3DPatchedMaterial();
|
||||
JUT_ASSERT_MSG(430, i_material, "Error : allocate memory.");
|
||||
J3D_ASSERT_ALLOCMEM(430, i_material);
|
||||
}
|
||||
bool bVar1 = i_flags & 0x3000000 ? true : false;
|
||||
i_material->mColorBlock = J3DMaterial::createColorBlock(0x40000000);
|
||||
i_material->mTexGenBlock = new J3DTexGenBlockPatched();
|
||||
JUT_ASSERT_MSG(440, i_material->mTexGenBlock, "Error : allocate memory.");
|
||||
J3D_ASSERT_ALLOCMEM(440, i_material->mTexGenBlock);
|
||||
i_material->mTevBlock = new J3DTevBlockPatched();
|
||||
JUT_ASSERT_MSG(442, i_material->mTevBlock, "Error : allocate memory.");
|
||||
J3D_ASSERT_ALLOCMEM(442, i_material->mTevBlock);
|
||||
i_material->mIndBlock = J3DMaterial::createIndBlock(bVar1);
|
||||
i_material->mPEBlock = J3DMaterial::createPEBlock(0x10000000, getMaterialMode(i_idx));
|
||||
i_material->mIndex = i_idx;
|
||||
|
||||
@@ -8,6 +8,13 @@ static void Z2_E_ms_modVol(Z2SoundHandlePool*, u32);
|
||||
static void Z2_E_mm_modPitch(Z2SoundHandlePool*, u32);
|
||||
static void Z2_B_zan_modPitch(Z2SoundHandlePool*, u32);
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 80451358-80451360 -00001 0008+00 0/0 1/1 0/0 .sbss None */
|
||||
/* 80451358 0001+00 data_80451358 None */
|
||||
/* 80451359 0007+00 data_80451359 None */
|
||||
s8 data_80451358;
|
||||
s8 data_80451359;
|
||||
|
||||
/* 80455BD8-80455BDC 0041D8 0004+00 1/1 0/0 0/0 .sdata2 sAreaDefault */
|
||||
static Z2EnemyArea const sAreaDefault = {true, 700, 1100, 1500};
|
||||
|
||||
|
||||
@@ -28,12 +28,6 @@ static fopAc_ac_c* daAlink_searchHawk(fopAc_ac_c* i_actor, void* i_data) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* 80453020-80453024 001620 0004+00 1/1 0/0 0/0 .sdata2 grassWhistleIdx$33097 */
|
||||
static const u16 grassWhistleIdx[2] = {
|
||||
3,
|
||||
3,
|
||||
};
|
||||
|
||||
/* 80111784-8011181C 10C0C4 0098+00 1/1 0/0 0/0 .text setGrassWhistleModel__9daAlink_cFi
|
||||
*/
|
||||
void daAlink_c::setGrassWhistleModel(int modelType) {
|
||||
@@ -41,6 +35,10 @@ void daAlink_c::setGrassWhistleModel(int modelType) {
|
||||
"J_Tobi",
|
||||
"J_Umak",
|
||||
};
|
||||
static const u16 grassWhistleIdx[2] = {
|
||||
3,
|
||||
3,
|
||||
};
|
||||
|
||||
JKRHeap* prev_heap = setItemHeap();
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "m_Do/m_Do_controller_pad.h"
|
||||
#include "SSystem/SComponent/c_math.h"
|
||||
#include "Z2AudioLib/Z2Instances.h"
|
||||
#include "JSystem/JAudio2/JAUSectionHeap.h"
|
||||
#include <cmath.h>
|
||||
|
||||
#define ANM_HS_BACK_WALK 6
|
||||
@@ -1686,7 +1687,7 @@ void daHorse_c::setMoveAnime(f32 i_morf) {
|
||||
}
|
||||
|
||||
/* 8083BF48-8083CA80 004108 0B38+00 6/6 0/0 0/0 .text checkHorseNoMove__9daHorse_cFi */
|
||||
// NONMATCHING - some float regalloc, equivalent
|
||||
// NONMATCHING - instruction order, some float regalloc, equivalent
|
||||
int daHorse_c::checkHorseNoMove(int param_0) {
|
||||
cXyz sp50;
|
||||
cXyz sp44;
|
||||
@@ -4703,3 +4704,5 @@ extern actor_process_profile_definition g_profile_HORSE = {
|
||||
};
|
||||
|
||||
AUDIO_INSTANCES;
|
||||
template<>
|
||||
JAUSectionHeap* JASGlobalInstance<JAUSectionHeap>::sInstance;
|
||||
|
||||
+40
-218
@@ -1,5 +1,7 @@
|
||||
#include "d/actor/d_a_npc4.h"
|
||||
#include "d/actor/d_a_npc2.h"
|
||||
#include "d/actor/d_a_npc_tk.h"
|
||||
#include "d/d_debug_viewer.h"
|
||||
#include "d/d_msg_object.h"
|
||||
#include "d/actor/d_a_tag_evtarea.h"
|
||||
#include "dol2asm.h"
|
||||
@@ -2290,221 +2292,41 @@ dCcD_SrcGObjInf const daNpcF_c::mCcDObjInfo = {
|
||||
{0}
|
||||
};
|
||||
|
||||
/* 80392720-80392725 01ED80 0005+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392720 = ".bck";
|
||||
#pragma pop
|
||||
|
||||
/* 80392725-8039272A 01ED85 0005+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392725 = ".btp";
|
||||
#pragma pop
|
||||
|
||||
/* 8039272A-8039272F 01ED8A 0005+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039272A = ".btk";
|
||||
#pragma pop
|
||||
|
||||
/* 8039272F-8039274A 01ED8F 001B+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039272F = "%.3ff,\t// 注目オフセット\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039274A-8039275B 01EDAA 0011+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039274A = "%.3ff,\t// 重力\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039275B-80392770 01EDBB 0015+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039275B = "%.3ff,\t// スケ−ル\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392770-8039278B 01EDD0 001B+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392770 = "%.3ff,\t// リアル影サイズ\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039278B-8039279C 01EDEB 0011+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039278B = "%.3ff,\t// 体重\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039279C-803927AD 01EDFC 0011+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039279C = "%.3ff,\t// 高さ\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803927AD-803927C0 01EE0D 0013+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803927AD = "%.3ff,\t// ひざ丈\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803927C0-803927CF 01EE20 000F+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803927C0 = "%.3ff,\t// 幅\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803927CF-803927E8 01EE2F 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803927CF = "%.3ff,\t// 腰のX角上限\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803927E8-80392801 01EE48 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803927E8 = "%.3ff,\t// 腰のX角下限\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392801-8039281A 01EE61 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392801 = "%.3ff,\t// 腰のY角上限\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039281A-80392833 01EE7A 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039281A = "%.3ff,\t// 腰のY角下限\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392833-8039284C 01EE93 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392833 = "%.3ff,\t// 頭のX角上限\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039284C-80392865 01EEAC 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039284C = "%.3ff,\t// 頭のX角下限\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392865-8039287E 01EEC5 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392865 = "%.3ff,\t// 頭のY角上限\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039287E-80392897 01EEDE 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039287E = "%.3ff,\t// 頭のY角下限\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392897-803928B0 01EEF7 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392897 = "%.3ff,\t// 首の回転比率\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803928B0-803928C9 01EF10 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803928B0 = "%.3ff,\t// 補間フレ−ム\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803928C9-803928DE 01EF29 0015+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803928C9 = "%d, \t// 会話距離\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803928DE-803928F3 01EF3E 0015+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803928DE = "%d, \t// 会話角度\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803928F3-80392908 01EF53 0015+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803928F3 = "%d, \t// 注目距離\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392908-8039291D 01EF68 0015+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392908 = "%d, \t// 注目角度\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039291D-8039292E 01EF7D 0011+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039291D = "%.3ff,\t// 視界\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039292E-80392945 01EF8E 0017+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039292E = "%.3ff,\t// サ−チ距離\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392945-8039295C 01EFA5 0017+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392945 = "%.3ff,\t// サ−チ高さ\n";
|
||||
#pragma pop
|
||||
|
||||
/* 8039295C-80392973 01EFBC 0017+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_8039295C = "%.3ff,\t// サ−チ低さ\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392973-80392988 01EFD3 0015+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392973 = "%d, \t// 注目時間\n";
|
||||
#pragma pop
|
||||
|
||||
/* 80392988-803929A1 01EFE8 0019+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80392988 = "%d, \t// ダメ−ジ期間\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803929A1-803929B2 01F001 0011+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
// MWCC ignores mapping of some japanese characters using the
|
||||
// byte 0x5C (ASCII '\'). This is why this string is hex-encoded.
|
||||
SECTION_DEAD static char const* const stringBase_803929A1 =
|
||||
"\x25\x64\x2C\x20\x20\x20\x09\x2F\x2F\x20\x20\x95\x5C\x8F\xEE\x0A";
|
||||
#pragma pop
|
||||
|
||||
/* 803929B2-803929C3 01F012 0011+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803929B2 = "%d, \t// 動作\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803929C3-803929DA 01F023 0017+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803929C3 = "%d, \t// 注視モ−ド\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803929DA-803929F7 01F03A 001D+00 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803929DA = "%d, \t// デバグモ−ドON\n";
|
||||
#pragma pop
|
||||
|
||||
/* 803929F7-80392A18 01F057 001B+06 0/0 0/0 0/0 .rodata None */
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_803929F7 = "%d, \t// デバグ情報ON\n";
|
||||
#pragma pop
|
||||
static void dummyStrings() {
|
||||
DEAD_STRING(".bck");
|
||||
DEAD_STRING(".btp");
|
||||
DEAD_STRING(".btk");
|
||||
DEAD_STRING("%.3ff,\t// 注目オフセット\n");
|
||||
DEAD_STRING("%.3ff,\t// 重力\n");
|
||||
DEAD_STRING("%.3ff,\t// スケ−ル\n");
|
||||
DEAD_STRING("%.3ff,\t// リアル影サイズ\n");
|
||||
DEAD_STRING("%.3ff,\t// 体重\n");
|
||||
DEAD_STRING("%.3ff,\t// 高さ\n");
|
||||
DEAD_STRING("%.3ff,\t// ひざ丈\n");
|
||||
DEAD_STRING("%.3ff,\t// 幅\n");
|
||||
DEAD_STRING("%.3ff,\t// 腰のX角上限\n");
|
||||
DEAD_STRING("%.3ff,\t// 腰のX角下限\n");
|
||||
DEAD_STRING("%.3ff,\t// 腰のY角上限\n");
|
||||
DEAD_STRING("%.3ff,\t// 腰のY角下限\n");
|
||||
DEAD_STRING("%.3ff,\t// 頭のX角上限\n");
|
||||
DEAD_STRING("%.3ff,\t// 頭のX角下限\n");
|
||||
DEAD_STRING("%.3ff,\t// 頭のY角上限\n");
|
||||
DEAD_STRING("%.3ff,\t// 頭のY角下限\n");
|
||||
DEAD_STRING("%.3ff,\t// 首の回転比率\n");
|
||||
DEAD_STRING("%.3ff,\t// 補間フレ−ム\n");
|
||||
DEAD_STRING("%d, \t// 会話距離\n");
|
||||
DEAD_STRING("%d, \t// 会話角度\n");
|
||||
DEAD_STRING("%d, \t// 注目距離\n");
|
||||
DEAD_STRING("%d, \t// 注目角度\n");
|
||||
DEAD_STRING("%.3ff,\t// 視界\n");
|
||||
DEAD_STRING("%.3ff,\t// サ−チ距離\n");
|
||||
DEAD_STRING("%.3ff,\t// サ−チ高さ\n");
|
||||
DEAD_STRING("%.3ff,\t// サ−チ低さ\n");
|
||||
DEAD_STRING("%d, \t// 注目時間\n");
|
||||
DEAD_STRING("%d, \t// ダメ−ジ期間\n");
|
||||
DEAD_STRING("%d, \t// 表情\n");
|
||||
DEAD_STRING("%d, \t// 動作\n");
|
||||
DEAD_STRING("%d, \t// 注視モ−ド\n");
|
||||
DEAD_STRING("%d, \t// デバグモ−ドON\n");
|
||||
DEAD_STRING("%d, \t// デバグ情報ON\n");
|
||||
}
|
||||
|
||||
@@ -163,8 +163,9 @@ void rideCallBack(dBgW* param_0, fopAc_ac_c* i_this, fopAc_ac_c* i_rideActor) {
|
||||
/* 805929A0-805929A4 -00001 0004+00 3/3 0/0 0/0 .data l_arcName */
|
||||
static char* l_arcName = "D_Marm";
|
||||
|
||||
/* 80592977-8059297E 00012F 0007+00 0/0 0/0 0/0 .rodata None */
|
||||
SECTION_DEAD static char const* const stringBase_80592977 = "D_MN54";
|
||||
static void dummyStrings() {
|
||||
DEAD_STRING("D_MN54");
|
||||
}
|
||||
|
||||
/* 805929A4-805929BC 000024 0018+00 1/1 0/0 0/0 .data l_cull_box */
|
||||
static Vec l_cull_box[2] = {{-500.0f, -3000.0f, -500.0f}, {500.0f, 3000.0f, 2500.0f}};
|
||||
|
||||
@@ -1279,6 +1279,7 @@ int daObjMovebox::Act_c::Mthd_Delete() {
|
||||
return rt;
|
||||
}
|
||||
|
||||
namespace daObjMovebox {
|
||||
namespace {
|
||||
/* 80480920-80480AD4 002F20 01B4+00 1/0 0/0 0/0 .text
|
||||
* Mthd_Create__Q212daObjMovebox29@unnamed@d_a_obj_movebox_cpp@FPv */
|
||||
@@ -1317,7 +1318,8 @@ static actor_method_class Mthd_Table = {
|
||||
(process_method_func)Mthd_Execute, (process_method_func)Mthd_IsDelete,
|
||||
(process_method_func)Mthd_Draw,
|
||||
};
|
||||
} // namespace
|
||||
}; // namespace
|
||||
}; // namespace daObjMovebox
|
||||
|
||||
/* 8048178C-804817BC -00001 0030+00 0/0 0/0 1/0 .data g_profile_Obj_Movebox */
|
||||
extern actor_process_profile_definition g_profile_Obj_Movebox = {
|
||||
@@ -1331,7 +1333,7 @@ extern actor_process_profile_definition g_profile_Obj_Movebox = {
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
17, // mPriority
|
||||
&Mthd_Table, // sub_method
|
||||
&daObjMovebox::Mthd_Table, // sub_method
|
||||
0x00040504, // mStatus
|
||||
fopAc_ACTOR_e, // mActorType
|
||||
fopAc_CULLBOX_CUSTOM_e, // cullType
|
||||
|
||||
@@ -62,9 +62,8 @@ int daStairBlock_c::CreateHeap() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
J3DAnmTransform* bck = (J3DAnmTransform*)dComIfG_getObjectRes("StaBlock", l_bckIdx[i]);
|
||||
s32 res = mBckAnm[i].init(bck, 1, 0, 1.0f, 0, -1, false);
|
||||
JUT_ASSERT_MSG(290, res == 1, "res == 1");
|
||||
s32 res = mBckAnm[i].init((J3DAnmTransform*)dComIfG_getObjectRes("StaBlock", l_bckIdx[i]), 1, 0, 1.0f, 0, -1, false);
|
||||
JUT_ASSERT(290, res == 1);
|
||||
|
||||
mBckAnm[i].setEndFrame(mBckAnm[i].getEndFrame() - 1.0f);
|
||||
}
|
||||
|
||||
+13
-14
@@ -415,20 +415,19 @@ int dMsgObject_c::_create(msg_class* param_1) {
|
||||
return 4;
|
||||
}
|
||||
|
||||
#pragma push
|
||||
#pragma force_active on
|
||||
SECTION_DEAD static char const* const stringBase_80399660 = "zel_00.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_8039966B = "zel_01.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_80399676 = "zel_02.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_80399681 = "zel_03.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_8039968C = "zel_04.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_80399697 = "zel_05.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_803996A2 = "zel_06.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_803996AD = "zel_07.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_803996B8 = "zel_08.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_803996C3 = "zel_99.bmg";
|
||||
SECTION_DEAD static char const* const stringBase_803996CE = "";
|
||||
#pragma pop
|
||||
static void dummyStrings() {
|
||||
DEAD_STRING("zel_00.bmg");
|
||||
DEAD_STRING("zel_01.bmg");
|
||||
DEAD_STRING("zel_02.bmg");
|
||||
DEAD_STRING("zel_03.bmg");
|
||||
DEAD_STRING("zel_04.bmg");
|
||||
DEAD_STRING("zel_05.bmg");
|
||||
DEAD_STRING("zel_06.bmg");
|
||||
DEAD_STRING("zel_07.bmg");
|
||||
DEAD_STRING("zel_08.bmg");
|
||||
DEAD_STRING("zel_99.bmg");
|
||||
DEAD_STRING("");
|
||||
}
|
||||
|
||||
/* 8043028C-8043069C 05CFAC 0410+00 7/7 51/51 0/0 .bss g_MsgObject_HIO_c */
|
||||
dMsgObject_HIO_c g_MsgObject_HIO_c;
|
||||
|
||||
+25
-11
@@ -402,6 +402,21 @@ void mDoExt_brkAnmRemove(J3DModelData* i_modelData) {
|
||||
|
||||
// this needs a lot of work still
|
||||
static void dummy2() {
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
FORCE_DONT_INLINE;
|
||||
|
||||
J3DGXColor gxColor;
|
||||
J3DColorChan colorChan;
|
||||
J3DTexCoord texCoord;
|
||||
@@ -1261,7 +1276,6 @@ void mDoExt_McaMorf::calc() {
|
||||
u16 jntNo = getJoint()->getJntNo();
|
||||
j3dSys.setCurrentMtxCalc(this);
|
||||
|
||||
Mtx sp68;
|
||||
J3DTransformInfo sp48;
|
||||
J3DTransformInfo sp28;
|
||||
J3DTransformInfo* var_r29;
|
||||
@@ -1313,6 +1327,7 @@ void mDoExt_McaMorf::calc() {
|
||||
JMAEulerToQuat(sp28.mRotation.x, sp28.mRotation.y, sp28.mRotation.z, &sp8);
|
||||
JMAQuatLerp(var_r27, &sp8, var_f31, var_r27);
|
||||
|
||||
Mtx sp68;
|
||||
mDoMtx_quat(sp68, var_r27);
|
||||
|
||||
var_r29->mTranslate.x = var_r29->mTranslate.x * var_f30 + sp28.mTranslate.x * var_f31;
|
||||
@@ -1342,7 +1357,7 @@ void mDoExt_McaMorf::setAnm(J3DAnmTransform* param_0, int param_1, f32 param_2,
|
||||
mFrameCtrl.init(mpAnm->getFrameMax());
|
||||
}
|
||||
} else {
|
||||
mFrameCtrl.init(param_5);
|
||||
mFrameCtrl.init((s16)param_5);
|
||||
}
|
||||
if (param_0 && param_1 < 0) {
|
||||
param_1 = param_0->getAttribute();
|
||||
@@ -1623,7 +1638,7 @@ void mDoExt_McaMorfSO::setAnm(J3DAnmTransform* i_anm, int i_attr, f32 i_morf, f3
|
||||
mFrameCtrl.init(mpAnm->getFrameMax());
|
||||
}
|
||||
} else {
|
||||
mFrameCtrl.init(i_end);
|
||||
mFrameCtrl.init((s16)i_end);
|
||||
}
|
||||
|
||||
if (i_anm != NULL && i_attr < 0) {
|
||||
@@ -1636,7 +1651,7 @@ void mDoExt_McaMorfSO::setAnm(J3DAnmTransform* i_anm, int i_attr, f32 i_morf, f3
|
||||
if (i_rate >= 0.0f) {
|
||||
setFrame(i_start);
|
||||
} else {
|
||||
setFrame(mFrameCtrl.getEnd());
|
||||
setFrame(getEndFrame());
|
||||
}
|
||||
|
||||
setLoopFrame(getFrame());
|
||||
@@ -2015,7 +2030,7 @@ void mDoExt_McaMorf2::setAnm(J3DAnmTransform* param_0, J3DAnmTransform* param_1,
|
||||
mFrameCtrl.init(mpAnm->getFrameMax());
|
||||
}
|
||||
} else {
|
||||
mFrameCtrl.init(i_end);
|
||||
mFrameCtrl.init((s16)i_end);
|
||||
}
|
||||
|
||||
if (i_attr < 0) {
|
||||
@@ -2028,7 +2043,7 @@ void mDoExt_McaMorf2::setAnm(J3DAnmTransform* param_0, J3DAnmTransform* param_1,
|
||||
if (i_speed >= 0.0f) {
|
||||
setFrame(i_start);
|
||||
} else {
|
||||
setFrame(mFrameCtrl.getEnd());
|
||||
setFrame(getEndFrame());
|
||||
}
|
||||
|
||||
setLoopFrame(getFrame());
|
||||
@@ -2305,7 +2320,7 @@ void mDoExt_3DlineMat0_c::setMaterial() {
|
||||
dKy_GxFog_set();
|
||||
GXCallDisplayList(l_matDL, 0x80);
|
||||
GXLoadPosMtxImm(j3dSys.getViewMtx(), GX_PNMTX0);
|
||||
GXLoadNrmMtxImm(g_mDoMtx_identity, GX_PNMTX0);
|
||||
GXLoadNrmMtxImm(cMtx_getIdentity(), GX_PNMTX0);
|
||||
}
|
||||
|
||||
/* 80012774-80012874 00D0B4 0100+00 1/0 0/0 0/0 .text draw__19mDoExt_3DlineMat0_cFv */
|
||||
@@ -2324,13 +2339,12 @@ void mDoExt_3DlineMat0_c::draw() {
|
||||
GXSetArray(GX_VA_NRM, ((mDoExt_3Dline_c*)((int)var_r28 + field_0x16 * 4))->field_0x10, 3);
|
||||
|
||||
GXBegin(GX_TRIANGLESTRIP, GX_VTXFMT0, var_r26);
|
||||
for (u16 j = 0; j < (u16)var_r26;) {
|
||||
for (u16 j = 0; j < (u16)var_r26; j++) {
|
||||
GXPosition1x16(j);
|
||||
GXNormal1x16(j);
|
||||
j++;
|
||||
|
||||
GXPosition1x16(j);
|
||||
GXNormal1x16(j++);
|
||||
GXPosition1x16(++j);
|
||||
GXNormal1x16(j);
|
||||
}
|
||||
GXEnd();
|
||||
var_r28++;
|
||||
|
||||
Reference in New Issue
Block a user