Files
bigmak94andClaude Opus 5.5 4b395efe5c Add the Petari decompilation (SMGCommunity/Petari@0a5c660)
The sources of Petari (https://github.com/SMGCommunity/Petari), the
Super Mario Galaxy decompilation by the SMGCommunity, at commit
0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line
endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and
src/.  Left out: the game data Petari keeps from the original
executable, the error message archive (include/Game/System/
ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and
StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's
own disc.  The port's changes follow in the next commit, so
`git diff petari-base -- decomp` shows them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 01:59:38 +02:00

54 lines
1.1 KiB
C++

#pragma once
#include <revolution/types.h>
class FurCtrl;
class FurParam;
class J3DModel;
class J3DModelData;
class LiveActor;
struct ResTIMG;
class FurMulti {
public:
FurMulti(LiveActor*, u32);
void setLayerDirect(u32, u32, u32, u32, FurParam*, ResTIMG*, ResTIMG*, ResTIMG*, ResTIMG*);
void addToManager();
void offDraw(u32);
void onDraw(u32);
/* 0x00 */ u8 mAddedToManager;
/* 0x01 */ u8 _1;
/* 0x02 */ u8 mCount;
/* 0x04 */ u8* mShapeIndices;
/* 0x08 */ u8* mDrawOrders;
/* 0x0C */ u32 _C;
/* 0x10 */ u32 _10;
/* 0x14 */ u32 _14;
/* 0x18 */ LiveActor* mActor;
/* 0x1C */ J3DModel* mModel;
/* 0x20 */ FurCtrl** mFurCtrls;
};
class FurBank {
public:
FurBank() : mCount() {
for (u32 i = 0; i < 32; i++) {
mEntries[i] = nullptr;
mLayerMasks[i] = 0;
}
}
FurMulti* check(J3DModelData*, u32);
void regist(FurMulti*, u32);
/* 0x00 */ u32 mCount;
/* 0x04 */ FurMulti* mEntries[32];
/* 0x84 */ u32 mLayerMasks[32];
};
namespace MR {
FurMulti* initMultiFur(LiveActor*, s32);
}