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

86 lines
3.2 KiB
C++

#pragma once
#include <JSystem/JGeometry/TMatrix.hpp>
#include <JSystem/JGeometry/TVec.hpp>
#include <revolution/types.h>
class JKRMemArchive;
class JMapIdInfo;
class JMapInfo;
class JMapInfoIter;
class JMapLinkInfo;
class NameObj;
namespace MR {
s32 getCurrentScenarioNo();
s32 getCurrentSelectedScenarioNo();
void setCurrentScenarioNo(s32, s32);
bool isScenarioDecided();
const char* getCurrentStageName();
bool isEqualSceneName(const char*);
bool isEqualStageName(const char*);
bool isStageBeginPrologueEvent();
bool isStageBeginFadeWipe();
bool isStageBeginTitleWipe();
bool isStageBeginWithoutWipe();
bool isStageDisablePauseMenu();
bool isStageAstroLocation();
bool isStageSwimAngleLimit();
bool isStageStarPieceFollowGroupLimit();
bool isStageFileSelect();
bool isStageKoopaVs();
bool isStageKoopaVs1();
bool isStageKoopaVs2();
bool isStageKoopaVs3();
bool isStageEpilogueDemo();
bool isBeginScenarioStarter();
bool isStageSuddenDeathDodoryu();
void setInitializeStatePlacementPlayer();
void setInitializeStatePlacementHighPriority();
void setInitializeStatePlacement();
void setInitializeStateAfterPlacement();
bool isInitializeStateEnd();
bool isInitializeStatePlacementSomething();
void stopSceneForScenarioOpeningCamera();
void playSceneForScenarioOpeningCamera();
const JMapIdInfo& getCurrentMarioStartIdInfo();
s32 getStartPosNum();
s32 getCurrentStartZoneId();
const JMapIdInfo& getInitializeStartIdInfo();
JKRMemArchive* getStageArchive(const char*);
s32 getGeneralPosNum();
void getGeneralPosData(const char**, TVec3f*, TVec3f*, JMapLinkInfo**, int);
s32 getChildObjNum(const JMapInfoIter&);
void getChildObjName(const char**, const JMapInfoIter&, int);
void initChildObj(NameObj*, const JMapInfoIter&, int);
const char* getAppearPowerStarObjName(s32);
s32 getCurrentStageNormalScenarioNum();
s32 getCurrentStagePowerStarNum();
s32 getZoneNum();
const char* getZoneNameFromZoneId(s32);
s32 getPlacedHiddenStarScenarioNo(const char*, s32);
void getRailInfo(JMapInfoIter*, const JMapInfo**, const JMapInfoIter&);
bool getNextLinkRailInfo(JMapInfoIter*, const JMapInfo**, const JMapInfoIter&);
s32 getCurrentStartCameraId();
void getStartCameraIdInfoFromStartDataIndex(JMapIdInfo*, int);
s32 getPlacedRailNum(s32);
void getCameraRailInfo(JMapInfoIter*, const JMapInfo**, s32, s32);
bool getCameraRailInfoFromRailDataIndex(JMapInfoIter*, const JMapInfo**, int, s32);
void getStageCameraData(void**, s32*, s32);
void getCurrentScenarioStartAnimCameraData(void**, s32*);
void incCoin(int);
void incPurpleCoin();
s32 getCoinNum();
s32 getPurpleCoinNum();
s32 getPowerStarNum();
bool isPlacementLocalStage();
s32 getPlacedZoneId(const JMapInfoIter&);
const TPos3f* getZonePlacementMtx(const JMapInfoIter&);
const TPos3f* getZonePlacementMtx(s32);
const char* getJapaneseObjectName(const char*);
void setCurrentPlacementZoneId(s32);
void clearCurrentPlacementZoneId();
s32 getCurrentPlacementZoneId();
const char* getCurrentPlacementZoneName();
}; // namespace MR