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

84 lines
3.1 KiB
C++

#pragma once
#include <revolution/types.h>
class DemoDirector;
class DemoCastGroupHolder;
class DemoExecutor;
class JMapInfo;
class JMapInfoIter;
class LayoutActor;
class LiveActor;
class NameObj;
class Nerve;
class ResourceHolder;
class TalkMessageCtrl;
namespace MR {
class FunctorBase;
}; // namespace MR
namespace DemoFunction {
DemoDirector* getDemoDirector();
DemoCastGroupHolder* getDemoCastSubGroupHolder();
void registerDemoSimpleCastAllFunction(LiveActor*);
void registerDemoSimpleCastAllFunction(LayoutActor*);
void registerDemoSimpleCastAllFunction(NameObj*);
void registerDemoActionFunctorFunction(const LiveActor*, const MR::FunctorBase&, const char*);
void registerDemoActionFunctorFunction(const LiveActor*, const MR::FunctorBase&, const char*, const char*);
void registerDemoActionNerveFunction(const LiveActor*, const Nerve*, const char*);
bool tryCreateDemoTalkAnimCtrlForActor(LiveActor*, const char*, const char*);
bool tryCreateDemoTalkAnimCtrlForActorDirect(LiveActor*, const char*, const char*, const char*);
bool tryCreateDemoTalkAnimCtrlForScene(LiveActor*, const JMapInfoIter&, const char*, const char*, s32, s32);
bool tryStartDemoRegistered(LiveActor*, const char*);
bool tryStartDemoRegisteredMarioPuppetable(LiveActor*, const char*);
void registerDemoExecutor(DemoExecutor*);
DemoExecutor* findDemoExecutor(const char*);
DemoExecutor* findDemoExecutor(const LiveActor*);
DemoExecutor* findDemoExecutorActive(const LiveActor*);
bool isDemoCast(const DemoExecutor*, const LiveActor*);
bool isExistDemoPart(const DemoExecutor*, const char*);
bool isDemoPartActiveFunction(const char*);
s32 getDemoPartStepFunction(const char*);
s32 getDemoPartTotalStepFunction(const char*);
bool isDemoLastPartLastStep();
bool isDemoSuspendOrLastPartLastStep();
const char* getCurrentDemoPartNameMain(const char*);
bool isTargetDemoCast(LiveActor*, const JMapInfoIter&, const char*, s32);
bool isRegisteredDemoActionAppear(const LiveActor*);
bool isRegisteredDemoActionFunctor(const LiveActor*);
bool isRegisteredDemoActionFunctor(const LiveActor*, const char*);
bool isRegisteredDemoActionNerve(const LiveActor*);
void requestDemoCastMovementOn(LiveActor*);
bool isRegisteredDemoCast(const LiveActor*, const char*);
void pauseTimeKeepDemo(LiveActor*);
void resumeTimeKeepDemo(LiveActor*);
bool isPauseTimeKeepDemo(LiveActor*);
void pauseTimeKeepDemo(const char*);
void resumeTimeKeepDemo(const char*);
bool isPauseTimeKeepDemo(const char*);
bool tryCreateDemoTalkAnimCtrlForSceneDirect(LiveActor*, const char*, const JMapInfoIter&, const char*, const char*, s32, s32);
void registerDemoTalkMessageCtrl(LiveActor*, TalkMessageCtrl*);
void registerDemoTalkMessageCtrlDirect(LiveActor*, TalkMessageCtrl*, const char*);
void setDemoTalkMessageCtrlDirect(const LiveActor*, TalkMessageCtrl*, const char*);
ResourceHolder* loadDemoArchive();
s32 createSheetParser(const DemoExecutor*, const char*, JMapInfo**);
bool isDemoPartTalk(const char*);
}; // namespace DemoFunction