Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
7fbc500
add claude.md
lindskogen Jun 5, 2026
8798f9f
update workflow
lindskogen Jun 5, 2026
eb9e062
Add decomp batch-matching workflow and harness
lindskogen Jun 6, 2026
2fcad9e
Match AddWaterExternalAccelerations and zpd-reset helper in water.c
lindskogen Jun 6, 2026
19bb095
Match alo/so/sw object accessors (25 functions)
lindskogen Jun 6, 2026
49923bd
Match assorted P2 leaf functions (22 functions)
lindskogen Jun 6, 2026
e7f9555
Fix VU_VECTOR to a 128-bit quadword; match ClipVismapSphereOneHop
lindskogen Jun 6, 2026
6e3b233
Fix VU_FLOAT to a 128-bit quadword
lindskogen Jun 6, 2026
310ddbf
Fix VU_VECTOR to a 128-bit quadword; match ClipVismapSphereOneHop
lindskogen Jun 6, 2026
0645253
Fix VU_FLOAT to a 128-bit quadword
lindskogen Jun 6, 2026
b19aae2
Match VU0 SIMD primitives in splice/bif (inline-asm foundation)
lindskogen Jun 7, 2026
de69664
Match CalculateWaterCurrent (water.c) using the VU0 inline-asm idiom
lindskogen Jun 7, 2026
ac73e43
Match UpdateWaterBounds (water.c) via VU0 inline asm
lindskogen Jun 7, 2026
221133e
Refresh remaining water.c TODOs (VU0 infra now exists)
lindskogen Jun 7, 2026
6ddec1f
Drop stale TODO comments in water.c
lindskogen Jun 7, 2026
95f11db
Fix LSG to 16-byte vectors (0x70); UGetWaterSubmerged ~95% WIP
lindskogen Jun 7, 2026
92efbf5
Match 8 leaf functions (cplcy/cm/tn/stepguard/crusher) via LHF harness
lindskogen Jun 7, 2026
b30a221
Match 6 more leaf functions via LHF harness (wave 2)
lindskogen Jun 7, 2026
5bd1f87
Match 3 tail-call wrappers (pzo/frm/step) via LHF harness
lindskogen Jun 7, 2026
09aad7c
Match call_search_level_by_id (game) and FUN_001d34e0 (steprail)
lindskogen Jun 7, 2026
3381a3b
Match 5 leaf functions in crv/rip via LHF harness
lindskogen Jun 7, 2026
cfbeaa6
Match 5 functions in act/frzg/rwm/stephide via LHF harness
lindskogen Jun 7, 2026
25b46e6
Match GetSuvCpdefi (suv) and SetAsegaSpeed (asega) via LHF harness
lindskogen Jun 7, 2026
0815234
Match 5 crv functions via LHF harness (SFromCrvU/UFromCrvS/Invalidate…
lindskogen Jun 7, 2026
dfbad75
Match 6 leaf functions in suv/sm/rip/dysh/dartgun via LHF harness
lindskogen Jun 7, 2026
7ad2fd6
Match 14 leaf functions in binoc/jt/lgn/rog/stepguard/turret via LHF …
lindskogen Jun 7, 2026
e9d8103
Match 11 leaf functions in coin/glbs/path/puffer/rwm/screen/wm via LH…
lindskogen Jun 7, 2026
ed8f0f0
Match 6 leaf functions in cplcy/credit/light/pzo/shadow via LHF harness
lindskogen Jun 7, 2026
3b845dd
Match FUN_001aec90 (screen) via LHF harness
lindskogen Jun 7, 2026
d04bfc4
Match RobkCur (rog) via LHF harness
lindskogen Jun 7, 2026
af95e87
Match GLBS::SetNormal (glbs) via LHF harness
lindskogen Jun 7, 2026
687c52e
Match NCmpWkr (jt) via LHF harness
lindskogen Jun 7, 2026
babfe1a
Match GetAloFrozen (freeze) and DtVisibleCtr (screen) via LHF harness
lindskogen Jun 7, 2026
0daedd7
Match FUN_001c29e8 (sqtr) and FUN_001e29e8 (tn) via LHF harness
lindskogen Jun 7, 2026
127633a
Match ProddCurRob (rog) and PcgtExtract (path) via LHF harness
lindskogen Jun 7, 2026
80d641c
Match FUN_001f0468 (wm) via LHF harness
lindskogen Jun 7, 2026
922a1f1
Match SetJtPuppet (jt) via LHF harness
lindskogen Jun 7, 2026
b97e0fc
Match FindPathzoneClosestPoint and FUN_00191aa8 (path) via LHF harness
lindskogen Jun 7, 2026
44cb5fc
Match GetActScale (act) and FUN_00197a68 (puffer) via LHF harness
lindskogen Jun 7, 2026
19c1080
Match MATRIX4::PostCopyMatrix3 (mat) via LHF harness
lindskogen Jun 7, 2026
324ac18
Match CFontBrx::FValid (font) via LHF harness
lindskogen Jun 7, 2026
75b21ab
Match FUN_001419A0/FUN_001419C0 (chkpnt) via LHF harness
lindskogen Jun 7, 2026
171975d
Match 12 array-append functions via LHF harness (pzo/button/sensor/mi…
lindskogen Jun 7, 2026
8eaae8e
Match LookkPopCplook (cplcy) via LHF harness
lindskogen Jun 7, 2026
b6e743a
Match FReachedStepguardGoal (stepguard) and FFilterFastShadows (shadow)
lindskogen Jun 7, 2026
8b6ca96
Match GLBS::SetUv (glbs) via LHF harness
lindskogen Jun 7, 2026
e3b5a38
Match FUN_001cac28 (stepguard) via LHF harness
lindskogen Jun 7, 2026
2c96a8f
Match GLBS::SetRgba (glbs) via LHF harness
lindskogen Jun 7, 2026
7375164
Match LookkCurCplook (cplcy) via LHF harness
lindskogen Jun 7, 2026
4310482
Match InitAct (act) via LHF harness
lindskogen Jun 7, 2026
f0f1515
Match LoadHndFromBrx (hnd) via LHF harness
lindskogen Jun 7, 2026
0af2f42
Remove dead #ifdef SKIP_ASM attempt-blocks (cm/sensor)
lindskogen Jun 7, 2026
312de9d
Match 28 medium (11-20 instr) functions via LHF harness
lindskogen Jun 7, 2026
d4e46f0
Match 18 more medium functions via LHF harness (round 2)
lindskogen Jun 7, 2026
6423975
Match 23 more medium functions via LHF harness (round 3)
lindskogen Jun 7, 2026
4b7be8a
Match 10 more medium functions via LHF harness (round 4)
lindskogen Jun 7, 2026
37f1595
Match UseStepguardPhys/UseStepguardAnimation (stepguard) via LHF harness
lindskogen Jun 7, 2026
d5b696f
Strip non-matching agent-cruft SKIP_ASM blocks in font.c
lindskogen Jun 7, 2026
b5a6f17
Match 4 rwm functions via LHF harness (recovered from stray-file fals…
lindskogen Jun 7, 2026
8e07332
Match 7 more functions via LHF harness (round-3 clean re-process)
lindskogen Jun 7, 2026
e595210
Match 4 rog Brx-loaders via LHF harness
lindskogen Jun 7, 2026
03b1cf8
Match 4 more SNIP-loaders (puffer/pzo) via LHF harness
lindskogen Jun 7, 2026
c3ce690
Match FUN_001aca30/FUN_001aca68 (screen) via LHF harness
lindskogen Jun 7, 2026
2e1050e
Strip duplicate SKIP_ASM stubs in pzo.c (manual-apply cleanup)
lindskogen Jun 7, 2026
08c1922
Match 4 functions in gs/mb/pzo/rog (21-30 instr window, round 1)
lindskogen Jun 7, 2026
dd41e0a
Match InitRoh (rog) via LHF harness (21-30 window, round 2)
lindskogen Jun 7, 2026
a9e4cb0
Match 3 functions in bomb/crv (21-30 window, round 3)
lindskogen Jun 7, 2026
78ca57d
Match 13 medium functions via LHF harness (21-30 window, editable re-…
lindskogen Jun 7, 2026
c030d7d
Match 14 medium functions via LHF harness (21-30 window, editable re-…
lindskogen Jun 7, 2026
0da2988
Match 13 medium functions via LHF harness (21-30 window, editable re-…
lindskogen Jun 7, 2026
e2506db
Match 19 medium functions via LHF harness (21-30 window, editable re-…
lindskogen Jun 7, 2026
6cc2cd7
Match 11 medium functions via LHF harness (21-30 window, editable re-…
lindskogen Jun 7, 2026
d2b0ea9
Match 6 medium functions via LHF harness (21-30 window, editable re-d…
lindskogen Jun 7, 2026
8ce4de0
Match 3 medium functions via LHF harness (21-30 window, editable re-d…
lindskogen Jun 7, 2026
8d152d3
Match 8 functions via LHF harness (31-40 window, editable wave 1)
lindskogen Jun 7, 2026
8de0bb8
Match 17 functions via LHF harness (31-40 window, editable wave 2)
lindskogen Jun 7, 2026
eb36c4e
Match 10 functions via LHF harness (31-40 window, editable wave 3)
lindskogen Jun 7, 2026
3e31d64
Match 10 functions via LHF harness (31-40 window, editable wave 4)
lindskogen Jun 7, 2026
061aa14
Match 3 functions via LHF harness (31-40 window, editable wave 5)
lindskogen Jun 7, 2026
42d8cb7
Match 7 functions via LHF harness (41-60 window, editable wave 1)
lindskogen Jun 8, 2026
450d613
Match 5 functions via LHF harness (41-60 window, editable wave 2)
lindskogen Jun 8, 2026
a2da977
Match 6 functions via LHF harness (41-60 window, editable wave 3)
lindskogen Jun 8, 2026
bb530d7
Match 5 functions via LHF harness (41-60 window, editable wave 4)
lindskogen Jun 8, 2026
19b46c0
Match 4 functions via LHF harness (41-60 window, editable wave 5)
lindskogen Jun 8, 2026
4031d29
Match 4 functions via LHF harness (41-60 window, editable wave 6)
lindskogen Jun 8, 2026
399a44b
Match 5 functions via LHF harness (61-80 window, editable wave 1)
lindskogen Jun 8, 2026
51e84ac
Match 4 functions via LHF harness (61-80 window, editable wave 2)
lindskogen Jun 8, 2026
a5564b9
Match 3 functions via LHF harness (61-80 window, editable wave 3)
lindskogen Jun 8, 2026
6204e06
Match LoadCrvcFromBrx via LHF harness (61-80 window, editable wave 4)
lindskogen Jun 8, 2026
3515ac0
Match 3 functions via LHF harness (81-110 window, editable wave 1)
lindskogen Jun 8, 2026
c0d13a7
Move cross-TU extern "C" forward decls into owning headers
lindskogen Jun 8, 2026
4072809
Access SO-base fields in water via STRUCT_OFFSET
lindskogen Jun 9, 2026
100044d
add claude.md
lindskogen Jun 5, 2026
96b5842
update workflow
lindskogen Jun 5, 2026
b5ed65e
Add decomp batch-matching workflow and harness
lindskogen Jun 6, 2026
9b114c3
Match CalculateWaterCurrent (water.c) using the VU0 inline-asm idiom
lindskogen Jun 7, 2026
15aebb9
Document STRUCT_OFFSET rule for base fields past the truncated base
lindskogen Jun 9, 2026
15da083
Match InitPipe (pipe.c) — pipe.c now fully decompiled
lindskogen Jun 10, 2026
ac26d64
Match PostFrzgLoad (frzg.c) — frzg.c fully decompiled
lindskogen Jun 10, 2026
e8eea34
Match 14 so.c functions (grfso setters, XA list ops, constraints, phy…
lindskogen Jun 10, 2026
aca5b98
Match 5 more so.c functions (OnSoAdd, EnableSoPhys, SetSoParent, Rebu…
lindskogen Jun 10, 2026
eecf79b
Match HeapSort (sort.c) — sort.c fully decompiled
lindskogen Jun 10, 2026
3761615
Match 5 splice functions — Splice perfect match crosses 20%
lindskogen Jun 10, 2026
9e3679f
Match RefOpCar, RefOpCdr, RefOpCurrentTime (splice bif)
lindskogen Jun 10, 2026
ba7aeb7
Match 8 more splice functions (float ops, modulo, music register, Ref…
lindskogen Jun 10, 2026
f90a8a5
Match 8 more splice functions (matrix RefOps, find-object RefOps, CFr…
lindskogen Jun 10, 2026
b22a845
Match 8 more splice functions (binding ops, Random, RandomSeed, Conve…
lindskogen Jun 10, 2026
b87198d
Match RefOpHitTestObjects/First, RefOpLength, RefOpDeferObjectUpdate
lindskogen Jun 10, 2026
e2a4d4f
Match 18 wave-1 LHF functions (alo lookat/throb getters, sound VAG, s…
lindskogen Jun 12, 2026
7b7bd77
Match 25 more wave-1 functions (sound VAG/music, mpeg queue callbacks…
lindskogen Jun 12, 2026
e6dca32
Match 25 wave-2 functions (alo act/lookat/snd, sound AM/intermittent,…
lindskogen Jun 12, 2026
159316c
Match 33 more wave-2 functions (alo lookat/act setters, sound music/V…
lindskogen Jun 12, 2026
257e1ab
Match 27 wave-3 functions (alo damping/spring/shadow/throb, sound all…
lindskogen Jun 13, 2026
c436f8a
Match 13 wave-4 functions (po/dmas/sm/joy/util/xform/screen/break/act…
lindskogen Jun 13, 2026
29ed5ae
Match 5 wave-5 functions (rog message/killed, emitter skeleton, jt st…
lindskogen Jun 13, 2026
57f0b8c
Match 17 wave-6 functions (alo/font/sound/screen/rip/rog/sensor/step/…
lindskogen Jun 13, 2026
4ddec33
Match 14 wave-7 functions (sound/cm/font/screen/emitter/puffer/splice…
lindskogen Jun 13, 2026
e02bf9b
Match 25 wave-8 functions (alo/sound/sm/aseg/fly/gs/light/po/sw/tank/…
lindskogen Jun 13, 2026
459b0b1
Match wave-9 functions (alo rotation setters, aseg/crv/freeze/jlo/jt,…
lindskogen Jun 13, 2026
5a38764
wip: more function matching
lindskogen Jun 17, 2026
11862c5
Recover green build from broken "wip" commit
lindskogen Jun 17, 2026
1cdd9cc
Apply decomp/p2-leaf-matches changes (AM register naming, SO 0x550 pa…
lindskogen Jun 17, 2026
95b770e
Drop extern "C" warts via pre-mangled symbols; trim decomp comments
lindskogen Jun 22, 2026
ab0cc5e
Untrack CLAUDE.md and local-only .gitignore entries
lindskogen Jun 22, 2026
f636d05
Merge origin/main into fable
lindskogen Jun 22, 2026
3e67f3a
Convert PchzFriendlyFromWid to plain C++; drop its extern "C" in game.h
lindskogen Jun 22, 2026
4eab3db
Strip decomp-noise comments from jt.h, so.h, sidebag.cpp
lindskogen Jun 22, 2026
0a6cc84
Untrack local decomp tooling scripts
lindskogen Jun 22, 2026
8c68053
Drop extern "C" from decompiled FUN_/func_ placeholders
lindskogen Jun 23, 2026
0db4c60
Merge upstream/main into fable
lindskogen Jun 23, 2026
22dcd68
Drop unnecessary extern "C" on tally_world_completion
lindskogen Jun 23, 2026
2b80af6
Relocate inline forward-declarations to owning headers
lindskogen Jun 24, 2026
c4e8657
Restore matches accidentally dropped by wave-N commits
lindskogen Jun 24, 2026
09b96a8
Merge branch 'main' into fable
TheOnlyZac Jul 2, 2026
fcf131e
Fix a bunch of review comments
lindskogen Jul 2, 2026
4804054
Restore matching status after review fixes
lindskogen Jul 2, 2026
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
282 changes: 142 additions & 140 deletions config/symbol_addrs.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion include/alo.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void UpdateAlo(ALO *palo, float dt);

void InvalidateAloLighting(ALO *palo);

void UpdateAloXfWorld__FP3ALO(ALO * palo);
void UpdateAloXfWorld(ALO *palo);

void UpdateAloXfWorldHierarchy(ALO *palo);

Expand Down
2 changes: 2 additions & 0 deletions include/binoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,6 @@ class CTextBox
enum JV m_jv; // Vertical text justification;
};

extern "C" void open_close_binoc(BINOC *pbinoc, int state);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


#endif /* BINOC_H */
4 changes: 3 additions & 1 deletion include/blip.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ struct RPL;
typedef int GRFZON;

/**
* @brief 128-bit VU scalar (the value lives in the x lane), 16-byte aligned.
* Passed by value in a single 128-bit GP register and stored with sq.
* @todo Move elsewhere?
*/
struct VU_FLOAT
{
uint16_t data;
qword data;
};

/**
Expand Down
6 changes: 3 additions & 3 deletions include/bsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ struct VBSP
*/
struct LSG
{
VECTOR apos[2];
VECTOR anormal[2];
VECTOR4 apos[2];
VECTOR4 anormal[2];
float au[2];
LSGK lsgk;
undefined4 unk1;
undefined8 unk2;
EDGE *pedge;
int iiposSwap;
LSG *plsgNext;
};
} __attribute__((aligned(16)));

/**
* @brief Unknown.
Expand Down
7 changes: 7 additions & 0 deletions include/cm.h
Original file line number Diff line number Diff line change
Expand Up @@ -553,4 +553,11 @@ extern int g_rgbaFog; //Just to get the code matching -Kestin
// extern float D_0026198c;
// extern CM* g_pcm;

void ResetCmLookAtSmooth(CM *pcm, void *pv);

void SetupCmRotateToCam(CM *pcm);
void SetCmLookAtSmooth(CM *pcm, int a1, VECTOR *pposEye, VECTOR *pposCenter, int a4, float u0, float u1, float u2, float u3, float u4, float u5);
void ConvertCylindToWorldVelocity(void *a, void *b, void *c, float f0, float f1, float f2);
void ConvertWorldToCylindVelocity(void *a, void *b, void *c, void *d, void *e, void *f);
Comment on lines +556 to +561

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's either make sure these are in the correct order in the header, or add a @todo comment to come back and do that later


#endif // CM_H
2 changes: 2 additions & 0 deletions include/cplcy.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ LOOKK LookkPopCplook(CPLOOK *pcplook);

LOOKK LookkCurCplook(CPLOOK *pcplook);

int FActiveCplcy(CPLCY *pcplcy);

#endif // CPLCY_H
6 changes: 6 additions & 0 deletions include/crusher.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,10 @@ void InitCrbrain(CRBRAIN *pcrbrain);

// TODO: Add unknown functions here.

extern "C" void FUN_0014c5e8(void *p);

extern "C" void FUN_0014c858(void *p);

extern "C" void FUN_0014cba8(void *p);
Comment on lines +76 to +80

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


#endif // CRUSHER_H
4 changes: 4 additions & 0 deletions include/font.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ extern CFont *g_pfont;

void StartupFont();

CFont *FUN_0015c1c0(int i);

int FUN_0015c188(int i);

void PostFontsLoad();

#endif // FONT_H
2 changes: 2 additions & 0 deletions include/frm.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ extern FRM *g_pfrmOpen;

extern uchar g_abRenderLoopStack[0x20000]; // TODO: Move elsewhere?

extern "C" void func_0015F618(int, int);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


#endif // FRM_H
4 changes: 2 additions & 2 deletions include/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void StartupGame();

// LevelLoadData * search_level_by_load_data(LevelLoadData *search_level);

// LevelLoadData * search_level_by_id(int search_id);
extern "C" LevelLoadData *search_level_by_id(int search_id);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


/**
* @brief Gets the friendly name of a level from its world ID.
Expand Down Expand Up @@ -401,7 +401,7 @@ bool FCharmAvailable();
* @param pls Pointer to level state.
* @param param_2 OID of the dialog.
*/
//int PfLookupDialog(LS *pls, OID oidDialog);
int *PfLookupDialog(LS *pls, OID oidDialog);

/**
* @brief Clears 8 bytes of memory.
Expand Down
5 changes: 3 additions & 2 deletions include/glbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

// Forward.
struct UV;
struct UVF;

/**
* @brief (?) kind.
Expand Down Expand Up @@ -92,9 +93,9 @@ struct GLBS

void SetNormal(VECTOR *ppos); // Might be SetPos?

void SetRgba(RGBA &rgba); // Might not be correct.
void SetRgba(RGBA *prgba);

void SetUv(UV *puv);
void SetUv(UVF *puv);

void SetVtx(int fAdc);
};
Expand Down
2 changes: 2 additions & 0 deletions include/gomer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ struct GOMER : public STEPGUARD
/* 0xc40 */ int fAbandonExternal;
};

void PostGomerLoad(GOMER *pgomer);

#endif // GOMER_H
6 changes: 6 additions & 0 deletions include/gs.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,10 @@ void ClearFrameBuffers();

void UploadBitmaps(GRFZON grfzon, GSB *pgsb);

struct GIFS;

int FBuildUploadBitmapGifs(GRFZON grfzon, GSB *pgsb, GIFS *pgifs);

void PropagateSurs();

#endif // GS_H
11 changes: 11 additions & 0 deletions include/hide.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@

#include "common.h"

/**
* @todo Implement the HPNT and HSHAPE structs.
*/
struct HPNT;
struct HSHAPE;
struct VECTOR;

// ...

void StartupHide();

void GetHshapeHidePos(HSHAPE *phshape, float s, VECTOR *ppos, float *pf);

void GetHpntClosestHidePos(HPNT *phpnt, VECTOR *ppos, float *pf);

#endif // HIDE_H
14 changes: 14 additions & 0 deletions include/jp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @file jp.h
*/
#ifndef JP_H
#define JP_H

#include "common.h"

struct JT;
struct LOCKG;

extern "C" void func_001781E0(JT *pjt, LOCKG *plockg);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


#endif // JP_H
13 changes: 8 additions & 5 deletions include/jt.h

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please re-add the deleted comments

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ enum JTBS
JTBS_Zap_Electric = 34,
JTBS_Zap_Fire = 35,
JTBS_Zap_Water = 36,
// ...
JTBS_Unk_54 = 54,
JTBS_Unk_55 = 55

Expand All @@ -103,7 +102,6 @@ enum JTHS
*/
enum JTCS
{
// ...
};

/**
Expand Down Expand Up @@ -145,14 +143,14 @@ struct JT : public STEP
STRUCT_PADDING(930);
undefined2 padding0_extra;

ALO *paloMine_0x1518; // 0x1518
ALO *paloMine_0x1518;

STRUCT_PADDING(832);
undefined2 padding1_extra;

JTS jts; // 0x2220
JTS jts;
int unk_0x2224;
JTBS jtbs; // 0x2228
JTBS jtbs;

STRUCT_PADDING(328);
undefined1 padding2_extra;
Expand All @@ -179,6 +177,11 @@ void SetJtJts(JT *pjt, JTS jts, JTBS jtbs);
*/
void ProfileJt(JT *pjt, int fProfile);

struct XMG;
struct ACTADJ;

int FMatchJtXmg(JT *pjt, XMG *pxmg, ACTADJ *pactadj);

extern JT *g_pjt;

#endif // JT_H
3 changes: 2 additions & 1 deletion include/mat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
struct MATRIX4
{
float mat[4][4];

void PostCopyMatrix3();
};

/**
Expand All @@ -25,7 +27,6 @@ struct MATRIX3
float mat[3][3];
};

void PostCopyMatrix3(MATRIX4 *pmat);

MATRIX3 *MatMulMatTransMat(MATRIX3 *matLeft, MATRIX3 *matRight);

Expand Down
8 changes: 8 additions & 0 deletions include/mpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ void StartupMpeg();

extern CMpeg g_mpeg;

extern "C" void FUN_0018f0e8(CMpeg *pmpeg, void *pv);

extern "C" int FAccept__10CMpegAudioiPUc(void *pmpega, int cb, uchar *pb);

extern "C" void CbDemuxed__5CMpegi(CMpeg *pmpeg, int nParam);

extern "C" void Execute__5CMpeg(CMpeg *pmpeg, OID *poid);
Comment on lines +31 to +37

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


#endif // MPEG_H
7 changes: 6 additions & 1 deletion include/path.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

#include "common.h"

// ...
struct CG;
struct VECTOR;

int CposFindPath(CG *pcg, VECTOR *pvec0, VECTOR *pvec1, int n, VECTOR *pvec2);

void FindClosestPointInCg(CG *pcg, VECTOR *pvec0, VECTOR *pvec1);

#endif // PATH_H
8 changes: 7 additions & 1 deletion include/pipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "common.h"
#include <lo.h>
#include <vec.h>

/**
* @class PIPE
Expand All @@ -16,7 +17,12 @@ struct PIPE : public LO
{
/* 0x34 */ undefined4 unk;
/* 0x38 */ DLE dlePipe;
/* 0x40 */ STRUCT_PADDING(9);
/* 0x40 */ VU_VECTOR normal; // TODO: Verify name.
/* 0x50 */ int unk_0x50;
/* 0x54 */ int unk_0x54;
/* 0x58 */ int unk_0x58;
/* 0x5C */ float unk_0x5c;
/* 0x60 */ STRUCT_PADDING(1);
/* 0x64 */ OID oid; // TODO: Verify name.
/* 0x68 */ LO *plo; // TODO: Verify type and name.
};
Expand Down
2 changes: 2 additions & 0 deletions include/puffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,6 @@ int FCanPuffcAttack(PUFFC *ppuffc);

void PostPuffbLoad(PUFFB *ppuffb);

extern "C" void FUN_001973d8(void *p);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


#endif // PUFFER_H
2 changes: 2 additions & 0 deletions include/rumble.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ void TriggerRumbleRumk(RUMBLE *prumble, RUMK rumk, float dt);

void SetRumbleRums(RUMBLE *prumble, RUMS rums);

void TriggerRumbleRumpat(RUMBLE *prumble, RUMPAT *prumpat, float dt);

void StopRumbleActuators(RUMBLE *prumble);

#endif // RUMBLE_H
2 changes: 2 additions & 0 deletions include/rwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,6 @@ void GetRwacPan(RWAC *prwac, float *pradPan);

void GetRwacTilt(RWAC *prwac, float *pradTilt);

extern "C" void FUN_001a93c8(RWM *prwm);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


#endif // RWM_H
13 changes: 13 additions & 0 deletions include/sce/libs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* @file sce/libs.h
*
* @brief Declarations for SDK library functions (asm/sce/libs.s).
*/
#ifndef SCE_LIBS_H
#define SCE_LIBS_H

extern "C" int func_00202120();
extern "C" void func_00202058(int);
extern "C" void *memmove(void *dst, const void *src, int cb);

#endif // SCE_LIBS_H
4 changes: 4 additions & 0 deletions include/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,4 +387,8 @@ void UpdateAttract(ATTRACT *pattract);

void DrawLineScreen(uint x1, uint y1, uint z1, uint x2, uint y2, uint z2, RGBA *rgba, int fDepthTest);

extern "C" char FUN_001aea08(void);

extern "C" void FUN_001aea70(int, int);
Comment on lines +390 to +392

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No extern C


#endif // SCREEN_H
3 changes: 0 additions & 3 deletions include/sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ struct SENSOR : public SO
STRUCT_PADDING(2);
/* 0x564 */ uint ctriggerObjects; // Current count of trigger object IDs.
/* 0x568 */ OID atriggerObjects[4]; // Array of trigger object IDs.
STRUCT_PADDING(4);
/* 0x578 */ uint cnoTriggerObjects; // Current count of no-trigger object IDs.
/* 0x57C */ OID anoTriggerObjects[4]; // Array of no-trigger object IDs.
STRUCT_PADDING(4);
/* 0x58c */ uint ctriggerClasses; // Current count of trigger class IDs.
/* 0x590 */ CID atriggerClasses[4]; // Array of trigger class IDs.
STRUCT_PADDING(4);
/* 0x5a0 */ uint cnoTriggerClasses; // Current count of no-trigger class IDs.
/* 0x5a4 */ CID anoTriggerClasses[4]; // Array of no-trigger class IDs.
};
Expand Down
Loading
Loading