Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 70 additions & 58 deletions configure.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion include/Enemy/CoasterKiller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class TCoasterEnemy : public TWalkerEnemy {
public:
TCoasterEnemy(const char* name)
: TWalkerEnemy(name)
, mPathIdx(0) { };
, mPathDir(0) { };
virtual ~TCoasterEnemy() { }

virtual void calcRootMatrix();
Expand Down
3 changes: 3 additions & 0 deletions include/MarioUtil/ShadowUtil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class TMBindShadowBody {
bool isBodyJoint(int);
void entryDrawShadow();
void calc();

private:
/* 0x0 */ u8 unk0[0x1C];
};

class TAlphaShadowQuad;
Expand Down
12 changes: 12 additions & 0 deletions include/SMS.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef SMS_PCH
#define SMS_PCH

#include <math.h>
#include <JSystem/J3D/J3DGraphBase/Blocks/J3DTexGenBlocks.hpp>
#include <JSystem/J3D/J3DGraphBase/Blocks/J3DTevBlocks.hpp>
#include <JSystem/J3D/J3DGraphBase/Blocks/J3DPEBlocks.hpp>
#include <JSystem/J3D/J3DGraphBase/Blocks/J3DIndBlocks.hpp>
#include <JSystem/J3D/J3DGraphBase/Blocks/J3DColorBlocks.hpp>
#include <JSystem/J3D/J3DGraphAnimator/J3DJoint.hpp>

#endif
2 changes: 1 addition & 1 deletion src/Enemy/Kumokun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ void TKumokunManager::load(JSUMemoryInputStream& stream)
unk38 = params;

params->mSLAttackRadius.set(60);
params->mSLAttackRadius.set(50);
params->mSLAttackHeight.set(50);
params->mSLDamageRadius.set(60);
params->mSLDamageHeight.set(70);
TSmallEnemyManager::load(stream);
Expand Down
5 changes: 4 additions & 1 deletion src/Enemy/bgtentacle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,10 @@ void TBGTentacle::calcAttackGuideAnm()
void TBGTentacle::resetAllNodes(const JGeometry::TVec3<f32>& param_1)
{
JGeometry::TVec3<f32> local_78 = param_1;
JGeometry::TVec3<f32> zero(0.0f, 0.0f, 0.0f);
JGeometry::TVec3<f32> zero;
zero.z = 0.0f;
zero.y = 0.0f;
zero.x = 0.0f;

getFirstNode()->onUnk24();

Expand Down
7 changes: 0 additions & 7 deletions src/Enemy/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
#include <stdlib.h>
#include <types.h>

static void dummy(Vec* v)
{
static Vec v1 = { 1.0f, 1.0f, 1.0f };
static Vec v2 = { 1.0f, 1.0f, 1.0f };
static int a[] = { 0, 2, 1, 3 };
}

// rogue include
#include <M3DUtil/InfectiousStrings.hpp>

Expand Down
5 changes: 0 additions & 5 deletions src/MSound/MSModBgm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
#include <MSound/MSSetSound.hpp>
#include <MSound/MSoundBGM.hpp>

// TODO: this is from the PCH
static Vec dummy1 = { 1.0f, 1.0f, 1.0f };
static Vec dummy2 = { 1.0f, 1.0f, 1.0f };
static u32 dummy3[] = { 0, 2, 1, 3 };

JAISound* MSModBgm::modBgm(u8 param_1, u8 param_2)
{
switch (param_1) {
Expand Down
2 changes: 1 addition & 1 deletion src/Map/MapEventMare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void TMareWallRock::appear()
(void)0;

unk10C[0]->setUp();
unk104->alive();
unk104->awake();
JGeometry::TVec3<f32> t(0.0f, 0.0f, unkFC);
unk10C[0]->moveTrans(t);
f32 rotY = unk128;
Expand Down
4 changes: 0 additions & 4 deletions src/MarioUtil/MathUtil.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#include <MarioUtil/MathUtil.hpp>
#include <JSystem/JMath.hpp>

static Vec dummy1 = { 1.0f, 1.0f, 1.0f };
static Vec dummy2 = { 1.0f, 1.0f, 1.0f };
static int dummy3[] = { 0, 2, 1, 3 };

static u16 atntable[] = {
0, 10, 20, 31, 41, 51, 61, 71, 81, 92, 102, 112,
122, 132, 143, 153, 163, 173, 183, 194, 204, 214, 224, 234,
Expand Down
3 changes: 0 additions & 3 deletions src/NPC/NpcInitData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#include <types.h>

// pch issues
static f32 dummy0[3] = { 1.0f, 1.0f, 1.0f };
static f32 dummy1[3] = { 1.0f, 1.0f, 1.0f };
static u32 dummy2[4] = { 0, 2, 1, 3 };
static const char dummy3[] = "\0\0\0\0\0\0\0\0\0\0\0";
static const char dummy4[] = "メモリが足りません\n";
static const char dummy5[] = "__ROOT_JOINT__";
Expand Down
3 changes: 0 additions & 3 deletions src/NPC/NpcSound.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#include <NPC/NpcBase.hpp>

// pch issues with J3DJoint and co
static Vec dummy0 = { 1.0f, 1.0f, 1.0f };
static Vec dummy1 = { 1.0f, 1.0f, 1.0f };
static u32 dummy2[] = { 0, 2, 1, 3 };
static const char dummy3[] = "\0\0\0\0\0\0\0\0\0\0\0";
static const char dummy4[] = "メモリが足りません\n";
static const char* MtxCalcTypeName[] = {
Expand Down
4 changes: 0 additions & 4 deletions src/System/CardManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#include <JSystem/JSupport/JSUMemoryOutputStream.hpp>
#include <System/FlagManager.hpp>

f32 dummy[] = { 1.0f, 1.0f, 1.0f };
f32 dummy2[] = { 1.0f, 1.0f, 1.0f };
u32 dummy3[] = { 0, 2, 1, 3 };

static u8 sDetach[2];
const char CardFileName[0x20] = "super_mario_sunshine\0\0\0\0\0\0\0\0\0\0\0";

Expand Down
4 changes: 2 additions & 2 deletions tools/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,11 +664,11 @@ def write_cargo_rule():
mwcc_sjis_implicit: List[Optional[Path]] = [*mwcc_implicit, sjiswrap]

# MWCC for precompiled headers
mwcc_pch_cmd = f"{wrapper_cmd}{mwcc} $cflags -MMD -c $in -o $basedir -precompile $basefilestem.mch"
mwcc_pch_cmd = f'{wrapper_cmd}{mwcc} $cflags -MMD -c $in -o "$basedir" -precompile $basefilestem.mch'
mwcc_pch_implicit: List[Optional[Path]] = [*mwcc_implicit]

# MWCC for precompiled headers with UTF-8 to Shift JIS wrapper
mwcc_pch_sjis_cmd = f"{wrapper_cmd}{sjiswrap} {mwcc} $cflags -MMD -c $in -o $basedir -precompile $basefilestem.mch"
mwcc_pch_sjis_cmd = f'{wrapper_cmd}{sjiswrap} {mwcc} $cflags -MMD -c $in -o "$basedir" -precompile $basefilestem.mch'
mwcc_pch_sjis_implicit: List[Optional[Path]] = [*mwcc_implicit, sjiswrap]

# MWCC with extab post-processing
Expand Down
Loading