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

81 lines
2.2 KiB
C++

#pragma once
#include "Game/Screen/LayoutActor.hpp"
#include "Game/System/NerveExecutor.hpp"
namespace FileSelectInfoSub {
class SlideState;
class CharaState;
}; // namespace FileSelectInfoSub
class FileSelectInfo : public LayoutActor {
public:
/// @brief Creates a new `FileSelectInfo`.
/// @param nameBufferSize The number of wide characters to allocate memory for in the file name buffer.
/// @param pName The pointer to the null-terminated name of the object.
FileSelectInfo(s32 nameBufferSize, const char* pName);
virtual void init(const JMapInfoIter& rIter);
virtual void appear();
virtual void control();
void disappear();
void slide();
void slideBack();
void setInfo(u16*, s32, s32, s32, bool, bool, bool, const wchar_t*, const wchar_t*, s32);
void change();
void forceChange();
void exeAppear();
void exeDisplay();
void exeDisappear();
void reflectInfo();
private:
/* 0x20 */ s32 mNumber;
/* 0x24 */ s32 mStarNum;
/* 0x28 */ s32 mStarPieceNum;
/* 0x2C */ s32 mNameBufferSize;
/* 0x30 */ wchar_t* mName;
/* 0x34 */ wchar_t mDateMessage[32];
/* 0x74 */ wchar_t mTimeMessage[32];
/* 0xB4 */ s32 mMissNum;
/* 0xB8 */ bool mIsSelectedMarioPrev;
/* 0xB9 */ bool mIsSelectedMario;
/* 0xBA */ bool mIsViewNormalEnding;
/* 0xBB */ bool mIsViewCompleteEnding;
/* 0xBC */ FileSelectInfoSub::SlideState* mSlideState;
/* 0xC0 */ FileSelectInfoSub::CharaState* mCharaState;
};
namespace FileSelectInfoSub {
class SlideState : public NerveExecutor {
public:
/// @brief Creates a new `SlideState`.
/// @param pHost TODO.
SlideState(FileSelectInfo* pHost);
void exeNormalPos();
void exeSliding();
void exeSlidePos();
void exeSlidingBack();
private:
/* 0x8 */ FileSelectInfo* mHost;
};
class CharaState : public NerveExecutor {
public:
/// @brief Creates a new `CharaState`.
/// @param pHost TODO.
CharaState(FileSelectInfo* pHost);
void exeMario();
void exeToLuigi();
void exeLuigi();
void exeToMario();
private:
/* 0x8 */ FileSelectInfo* mHost;
};
}; // namespace FileSelectInfoSub