Skip to content

Commit

Permalink
Decompile most of zNPCGlyph (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgsm authored Aug 4, 2024
1 parent 27fac4e commit 6a95333
Show file tree
Hide file tree
Showing 6 changed files with 617 additions and 19 deletions.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def Rel(lib_name: str, objects: List[Object]) -> Dict[str, Any]:
Object(NonMatching, "SB/Core/x/xPtankPool.cpp"),
Object(NonMatching, "SB/Core/gc/iTRC.cpp"),
Object(NonMatching, "SB/Game/zNPCSupplement.cpp"),
Object(NonMatching, "SB/Game/zNPCGlyph.cpp"),
Object(NonMatching, "SB/Game/zNPCGlyph.cpp", extra_cflags=["-sym on"]),
Object(NonMatching, "SB/Game/zNPCHazard.cpp"),
Object(NonMatching, "SB/Game/zNPCGoalAmbient.cpp"),
Object(NonMatching, "SB/Game/zNPCFXCinematic.cpp"),
Expand Down
1 change: 1 addition & 0 deletions src/SB/Core/x/xMath3.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ extern xVec3 g_X3;
extern xVec3 g_Y3;
extern xVec3 g_Z3;
extern xMat4x3 g_I3;
extern xVec3 g_Onez;

// For some reason, this function is copied across 29 object files...
// and each instance of this function has a LOCAL symbol (see symbols.txt)
Expand Down
1 change: 1 addition & 0 deletions src/SB/Core/x/xVec3.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct xVec3
F32 length2() const;
xVec3& invert();
F32 dot(const xVec3& c) const;
xVec3& normalize();
};

F32 xVec3Normalize(xVec3* o, const xVec3* v);
Expand Down
Loading

0 comments on commit 6a95333

Please sign in to comment.