mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 06:02:24 +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>
128 lines
4.6 KiB
C++
128 lines
4.6 KiB
C++
#pragma once
|
|
|
|
#include <JSystem/JGeometry/TVec.hpp>
|
|
#include <JSystem/JUtility/JUTVideo.hpp>
|
|
#include <revolution/types.h>
|
|
|
|
struct ResTIMG;
|
|
|
|
namespace MR {
|
|
u32 getViWidth();
|
|
f32 getSafetyVIScreenWidthRatio();
|
|
s32 getScreenWidth();
|
|
inline s32 getScreenHeight() NO_INLINE {
|
|
return JUTVideo::getManager()->getEfbHeight();
|
|
}
|
|
s32 getSafetyFrameWidth();
|
|
s32 getSafetyFrameLeft();
|
|
s32 getSafetyFrameRight();
|
|
s32 getFrameBufferWidth() NO_INLINE;
|
|
inline s32 getFrameBufferHeight() NO_INLINE {
|
|
return JUTVideo::getManager()->getEfbHeight();
|
|
}
|
|
void convertFrameBufferPosToScreenPos(TVec2f*, const TVec2f&);
|
|
void convertScreenPosToFrameBufferPos(TVec2f*, const TVec2f&);
|
|
void startToCaptureScreen(const char*);
|
|
void endToCaptureScreen(const char*);
|
|
void captureScreenIfAllow(const char*);
|
|
const ResTIMG* getScreenResTIMG();
|
|
u8* getScreenTexImage();
|
|
void closeWipeCircle(s32 frame = -1);
|
|
void forceOpenWipeCircle();
|
|
void forceCloseWipeCircle();
|
|
void closeWipeFade(s32 frame = -1);
|
|
void forceOpenWipeFade();
|
|
void forceCloseWipeFade();
|
|
void closeWipeWhiteFade(s32 frame = -1);
|
|
void forceOpenWipeWhiteFade();
|
|
void forceCloseWipeWhiteFade();
|
|
bool isWipeActive();
|
|
bool isWipeBlank();
|
|
bool isWipeOpen();
|
|
void closeSystemWipeCircle(s32 frame = -1);
|
|
void openSystemWipeFade(s32 frame = -1);
|
|
void closeSystemWipeFade(s32 frame = -1);
|
|
void forceOpenSystemWipeFade();
|
|
void openSystemWipeWhiteFade(s32 frame = -1);
|
|
void closeSystemWipeWhiteFade(s32 frame = -1);
|
|
void forceCloseSystemWipeWhiteFade();
|
|
bool isSystemWipeActive();
|
|
void closeSystemWipeCircleWithCaptureScreen(s32 frame = -1);
|
|
void closeSystemWipeFadeWithCaptureScreen(s32 frame = -1);
|
|
void setWipeCircleCenterPos(const TVec3f&);
|
|
void requestMovementOnImageEffect();
|
|
void setImageEffectControlAuto();
|
|
void turnOffDOFInSubjective();
|
|
void turnOnDOFInSubjective();
|
|
void turnOnNormalBloom();
|
|
void turnOnDepthOfField(bool);
|
|
void turnOffImageEffect();
|
|
void forceOffImageEffect();
|
|
void createNormalBloom();
|
|
bool isNormalBloomOn();
|
|
bool isNormalBloomForEachModel();
|
|
void setNormalBloomIntensity(u8);
|
|
void setNormalBloomThreshold(u8);
|
|
void setNormalBloomBlurIntensity1(u8);
|
|
void setNormalBloomBlurIntensity2(u8);
|
|
void createSimpleBloom();
|
|
void createScreenBlur();
|
|
void createDepthOfFieldBlur();
|
|
void setDepthOfFieldBlurIntensity(f32);
|
|
void createCenterScreenBlur();
|
|
void startCenterScreenBlur(s32, f32, u8, s32, s32);
|
|
void startGlobalTimer();
|
|
void resetGlobalTimer();
|
|
bool isGlobalTimerEnd();
|
|
void startGlobalTimerTimeUp();
|
|
void requestPowerUpHPMeter();
|
|
void requestForceAppearHPMeter();
|
|
void startMissLayout();
|
|
bool isMissLayoutAnimEnd();
|
|
void activateDefaultGameLayout();
|
|
void deactivateDefaultGameLayout();
|
|
bool isActiveDefaultGameLayout();
|
|
void forceAppearDefaultGameLayout();
|
|
void pauseOffLensFlare();
|
|
void tryScreenToFrameCinemaFrame();
|
|
void tryFrameToBlankCinemaFrame();
|
|
void tryBlankToFrameCinemaFrame();
|
|
void tryFrameToScreenCinemaFrame();
|
|
void forceToScreenCinemaFrame();
|
|
void forceToFrameCinemaFrame();
|
|
void forceToBlankCinemaFrame();
|
|
bool isStopCinemaFrame();
|
|
void appearInformationMessage(const char*, bool);
|
|
void appearInformationMessageCenter(const char*, bool);
|
|
void appearInformationMessage(const wchar_t*, bool);
|
|
void setInformationMessageReplaceString(const wchar_t*, s32);
|
|
void disappearInformationMessage();
|
|
bool isDeadInformationMessage();
|
|
void appearYesNoSelector(const char*, const char*, const char*);
|
|
bool isYesNoSelected() NO_INLINE;
|
|
bool isYesNoSelectedYes() NO_INLINE;
|
|
void setYesNoSelectorSE(const char*, const char*, const char*);
|
|
void resetYesNoSelectorSE();
|
|
void startMoviePlayer(const char*);
|
|
void stopMoviePlayer();
|
|
bool isActiveMoviePlayer();
|
|
bool isMoviePlayerPlaying();
|
|
s32 getMovieCurrentFrame();
|
|
u32 getMovieTotalFrame();
|
|
void setMovieVolume(f32, s32);
|
|
void appearStarCounter();
|
|
void disappearStarCounter();
|
|
void forceSyncStarPieceCounter();
|
|
void forceAppearStarPieceCounterForTicoFat();
|
|
void disappearStarPieceCounterForTicoFat();
|
|
void createPurpleCoinCounter();
|
|
void validatePurpleCoinCounter();
|
|
void requestCounterLayoutAppearanceForTicoEat(bool);
|
|
void openWipeCircle(s32 frame = -1);
|
|
void openWipeFade(s32 frame = -1);
|
|
void openWipeWhiteFade(s32 frame = -1);
|
|
void startGameOverWipe();
|
|
void startDownWipe();
|
|
void requestOneUp();
|
|
}; // namespace MR
|