mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 11:01:26 +02:00
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>
87 lines
3.4 KiB
C++
87 lines
3.4 KiB
C++
#pragma once
|
|
|
|
#include <revolution/os.h>
|
|
|
|
class GameDataHolder;
|
|
class GameDataSomeScenarioAccessor;
|
|
class JMapInfoIter;
|
|
|
|
namespace GameDataFunction {
|
|
bool isDataMario();
|
|
bool hasPowerStar(const char*, s32);
|
|
bool hasGrandStar(int);
|
|
void setGameFlagPowerStarSuccess(const char*, s32, bool);
|
|
GameDataSomeScenarioAccessor makeGalaxyScenarioAccessor(const char*, s32);
|
|
bool isOnGalaxyScenarioFlagAlreadyVisited(const char*, s32);
|
|
void onGalaxyScenarioFlagAlreadyVisited(const char*, s32);
|
|
bool isAppearGalaxy(const char*);
|
|
s32 calcCurrentPowerStarNum();
|
|
s32 getPowerStarNumOwned(const char*);
|
|
s32 getPowerStarNumMax();
|
|
s32 getPictureBookChapterCanRead();
|
|
u32 getPictureBookChapterAlreadyRead();
|
|
void setPictureBookChapterAlreadyRead(int);
|
|
void onGameEventFlag(const char*);
|
|
bool canOnGameEventFlag(const char*);
|
|
bool canOnAndIsOffGameEventFlag(const char*);
|
|
bool isOnGameEventFlag(const char*);
|
|
u32 getGameEventValue(const char*);
|
|
void setGameEventValue(const char*, u16);
|
|
bool isOnGameEventValueForBit(const char*, int);
|
|
void setGameEventValueForBit(const char*, int, bool);
|
|
s32 setupAlreadyDoneFlag(const char*, const JMapInfoIter&, u32*);
|
|
void updateAlreadyDoneFlag(int, u32);
|
|
void restoreGalaxyCometStatus(int, u16*, u16*);
|
|
void setRaceBestTime(const char*, u32);
|
|
s32 getRaceBestTime(const char*);
|
|
void addMissPoint(int);
|
|
void resetMissPoint();
|
|
bool isPointCollectForLetter();
|
|
void incPlayerMissNum();
|
|
s32 registerStorageSpinDriverPathDrawRange(const char*, int, int, int, f32*);
|
|
void updateStorageSpinDriverPathDrawRange(const char*, int, int, f32);
|
|
u32 getStarPieceNumGivingToTicoSeed(int);
|
|
u32 getStarPieceNumMaxGivingToTicoSeed(int);
|
|
void addStarPieceGivingToTicoSeed(int, int);
|
|
bool isPassedStoryEvent(const char*);
|
|
void followStoryEventByName(const char*);
|
|
s32 getPlayerLeft();
|
|
void addPlayerLeft(int);
|
|
bool isPlayerLeftSupply();
|
|
void offPlayerLeftSupply();
|
|
s32 getStockedStarPieceNum();
|
|
s32 getStarPieceNum();
|
|
void addStarPiece(int);
|
|
void setLast1upStarPieceNum(int);
|
|
s32 getLast1upStarPieceNum();
|
|
const wchar_t* getUserName();
|
|
u16 getUserFileIndex();
|
|
void resetAllGameData();
|
|
bool isOnJustGameEventFlag(const char*);
|
|
bool canOnJustGameEventFlag(const char*);
|
|
bool isOnJustAppearGalaxy(const char*);
|
|
bool isEqualJustPowerStarNum(int);
|
|
GameDataHolder* getCurrentGameDataHolder();
|
|
GameDataHolder* getSceneStartGameDataHolder();
|
|
s32 calcTicoGalaxyNum(const GameDataHolder*);
|
|
s32 calcGrandStarNum(const GameDataHolder*);
|
|
void resetGameDataGoToGalaxyFirst();
|
|
void resetGameDataGoToGalaxyRetry();
|
|
void onCompleteEndingCurrentPlayer();
|
|
bool isOnCompleteEndingMarioAndLuigi();
|
|
OSTime getSysConfigFileTimeAnnounced();
|
|
void updateSysConfigFileTimeAnnounced();
|
|
OSTime getSysConfigFileTimeSent();
|
|
void setSysConfigFileTimeSent(OSTime);
|
|
u32 getSysConfigFileSentBytes();
|
|
void setSysConfigFileSentBytes(u32);
|
|
bool isLuigiLeftSupply();
|
|
void offLuigiLeftSupply();
|
|
bool isOnGameEventFlagNormalComet(const char*);
|
|
bool isOnGameEventFlagCoin100Comet(const char*);
|
|
void updateGalaxyCometStatus(int, u16, u16);
|
|
void addStockedStarPiece(int);
|
|
bool isPowerStarLeftInCometOnly();
|
|
s32 calcGreenStarNum(const GameDataHolder*);
|
|
}; // namespace GameDataFunction
|