mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 14:01:12 +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>
131 lines
5.8 KiB
C++
131 lines
5.8 KiB
C++
#pragma once
|
|
|
|
#include <revolution.h>
|
|
|
|
class AudSeKeeper;
|
|
class AudSoundObject;
|
|
class JAISoundHandle;
|
|
class JAISoundID;
|
|
class LiveActor;
|
|
|
|
namespace MR {
|
|
enum BossBgmID {
|
|
BossBgmID_01_A,
|
|
BossBgmID_01_B,
|
|
BossBgmID_02_A,
|
|
BossBgmID_02_B,
|
|
BossBgmID_03_A,
|
|
BossBgmID_03_B,
|
|
BossBgmID_05_A,
|
|
BossBgmID_05_B,
|
|
BossBgmID_Begoman = BossBgmID_01_A,
|
|
BossBgmID_StinkBugA = BossBgmID_01_A,
|
|
BossBgmID_StinkBugB = BossBgmID_01_B,
|
|
BossBgmID_DinoPackunA = BossBgmID_03_A,
|
|
BossBgmID_DinoPackunB = BossBgmID_03_B,
|
|
BossBgmID_DodoryuA = BossBgmID_05_A,
|
|
BossBgmID_DodoryuB = BossBgmID_05_B,
|
|
BossBgmID_OtaKing = BossBgmID_01_A,
|
|
BossBgmID_TombSpiderA = BossBgmID_03_A,
|
|
BossBgmID_TombSpiderB = BossBgmID_03_B,
|
|
BossBgmID_TripodBossA = BossBgmID_02_A,
|
|
BossBgmID_TripodBossB = BossBgmID_02_B,
|
|
};
|
|
|
|
enum EventBgmID {
|
|
EventBgmID_Hurry,
|
|
EventBgmID_Chase,
|
|
EventBgmID_Race_01,
|
|
EventBgmID_Race_02,
|
|
EventBgmID_PenguinRace = EventBgmID_Race_01,
|
|
EventBgmID_TeresaRace = EventBgmID_Race_02,
|
|
EventBgmID_Surfing = EventBgmID_Race_01,
|
|
};
|
|
|
|
JAISoundHandle* startSystemSE(const char* pName, s32 param2 = -1, s32 param3 = -1);
|
|
JAISoundHandle* startSystemSE(JAISoundID id, s32 param2 = -1, s32 param3 = -1);
|
|
JAISoundHandle* startSystemLevelSE(const char*, s32 param2 = -1, s32 param3 = -1);
|
|
JAISoundHandle* startSystemLevelSE(JAISoundID, s32 param2 = -1, s32 param3 = -1);
|
|
void stopSystemSE(const char* pName, u32 param2 = 0);
|
|
void stopSystemSE(JAISoundID id, u32 param2 = 0);
|
|
JAISoundHandle* startAtmosphereSE(const char* pName, s32 param2 = -1, s32 param3 = -1);
|
|
JAISoundHandle* startAtmosphereLevelSE(const char* pName, s32 param2 = -1, s32 param3 = -1);
|
|
JAISoundHandle* startSoundObject(AudSoundObject* pSoundObject, const char* pName);
|
|
JAISoundHandle* startSoundObjectLevel(AudSoundObject* pSoundObject, const char* pName, s32 param3 = -1);
|
|
JAISoundHandle* startSoundObjectLevel(AudSoundObject* pSoundObject, JAISoundID id, s32 param3 = -1);
|
|
JAISoundHandle* startSoundObjectLevelParam(AudSoundObject* pSoundObject, const char* pName, s32 param3 = -1, s32 param4 = -1, s32 param5 = -1);
|
|
JAISoundHandle* startSoundObjectLevelParam(AudSoundObject* pSoundObject, JAISoundID id, s32 param3 = -1, s32 param4 = -1, s32 param5 = -1);
|
|
JAISoundHandle* startSound(const LiveActor*, const char*, s32 param3 = -1, s32 param4 = -1);
|
|
JAISoundHandle* startSound(const LiveActor*, JAISoundID, s32 param3 = -1, s32 param4 = -1);
|
|
JAISoundHandle* startSoundSeVer(const LiveActor* pActor, const char* pName, s32 param3 = -1, s32 param4 = -1);
|
|
JAISoundHandle* startLevelSound(const LiveActor* pActor, const char* pName, s32 param3 = -1, s32 param4 = -1, s32 param5 = -1);
|
|
JAISoundHandle* startLevelSound(const LiveActor* pActor, JAISoundID id, s32 param3 = -1, s32 param4 = -1, s32 param5 = -1);
|
|
JAISoundHandle* startLevelSoundSeVer(const LiveActor* pActor, const char* pName, s32 param3 = -1, s32 param4 = -1, s32 param5 = -1);
|
|
void stopSound(const LiveActor* pActor, const char* pName, u32 param3 = 0);
|
|
void stopSound(const LiveActor* pActor, JAISoundID id, u32 param3 = 0);
|
|
void setSeVersion(const LiveActor*, u32);
|
|
void releaseSoundHandle(const LiveActor*, const char*);
|
|
void startBas(const LiveActor*, const char*, bool, f32, f32);
|
|
void actorSoundMovement(LiveActor*);
|
|
void addJointToSeKeeper(AudSeKeeper*, const char*, const char*);
|
|
void startLevelSoundSeKeeper(AudSeKeeper*, const char*, const char*);
|
|
bool hasME();
|
|
void startSystemME(const char*);
|
|
s32 getMapSoundCodeFoot(const LiveActor*);
|
|
void setMapSondCodeGravity(const LiveActor*, s32);
|
|
void startTalkSound(u8, const LiveActor*);
|
|
void startRemixSound(s32, s32, f32);
|
|
s32 getRemixMelodyNoteNum(s32);
|
|
void limitedSound(const char*, s32) NO_INLINE;
|
|
JAISoundHandle* startStageBGM(const char*, bool);
|
|
JAISoundHandle* startStageBGMFromStageName(const char*, const char*, s32);
|
|
void stopStageBGM(u32);
|
|
void unlockStageBGM();
|
|
void setNextStageBGM(const char*);
|
|
void moveVolumeStageBGM(f32, u32);
|
|
void moveVolumeStageBGMForNoteFairy(f32, u32);
|
|
JAISoundHandle* startLastStageBGM();
|
|
bool isPlayingStageBgm();
|
|
bool isPlayingStageBgmID(u32);
|
|
bool isPlayingStageBgmName(const char*);
|
|
bool isStopOrFadeoutStageBgmID(u32);
|
|
bool isStopOrFadeoutBgmName(const char*);
|
|
bool isPreparedStageBgm();
|
|
void setStageBGMState(s32, u32);
|
|
void setStageBGMStateBit(u32);
|
|
JAISoundHandle* startSubBGM(const char*, bool);
|
|
void stopSubBGM(u32);
|
|
void moveVolumeSubBGM(f32, u32);
|
|
bool isPlayingSubBgmID(u32);
|
|
void playLevelMarioPinchBGM(bool);
|
|
void stopMarioPinchBGMSoon();
|
|
void submitTrigSE();
|
|
void permitTrigSE();
|
|
void submitLevelSE();
|
|
void permitLevelSE();
|
|
void submitSE();
|
|
void permitSE();
|
|
bool isPermitSE();
|
|
void setCubeBgmChangeInvalid();
|
|
bool isCubeBgmChangeInvalid();
|
|
void clearBgmQueue();
|
|
void setMicMtx(MtxPtr, s32);
|
|
void setSoundVolumeSetting(s32, u32);
|
|
void recoverSoundVolumeSetting(u32);
|
|
void setAudioEffectType(s32, s32);
|
|
void startCSSound(const char*, const char*, s32);
|
|
void startCSSound2P(const char*, const char*);
|
|
void startSpinHitSound(const LiveActor*);
|
|
void startBlowHitSound(const LiveActor*);
|
|
void startDPDHitSound();
|
|
void startDPDFreezeLevelSound(const LiveActor*);
|
|
void start2PJumpAssistSound();
|
|
void start2PJumpAssistJustSound();
|
|
void start2PAttackAssistSound();
|
|
void limitedStarPieceHitSound();
|
|
void startCurrentStageBGM();
|
|
JAISoundHandle* startBossBGM(s32);
|
|
JAISoundHandle* startEventBGM(s32);
|
|
JAISoundHandle* startAfterBossBGM();
|
|
}; // namespace MR
|