mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 23:01:13 +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>
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "Game/NameObj/NameObj.hpp"
|
|
|
|
class JUTTexture;
|
|
class ResTIMG;
|
|
|
|
struct TimingInfo {
|
|
/* 0x0 */ const char* mName;
|
|
/* 0x0 */ s32 mTiming;
|
|
/* 0x0 */ bool _8;
|
|
/* 0x0 */ u32 _C;
|
|
};
|
|
|
|
class CaptureScreenDirector : public NameObj {
|
|
public:
|
|
/// @brief Creates a new `CaptureScreenDirector`.
|
|
CaptureScreenDirector();
|
|
|
|
void captureIfAllow(const char* pName);
|
|
void capture();
|
|
void requestCaptureTiming(const char* pName);
|
|
void invalidateCaptureTiming(const char* pName);
|
|
const ResTIMG* getResTIMG() const;
|
|
u8* getTexImage() const;
|
|
const TimingInfo* getUsingTiming() const;
|
|
const TimingInfo* getCurrentTiming() const;
|
|
const TimingInfo* findFromName(const char* pName) const;
|
|
|
|
private:
|
|
/* 0x0C */ const char* _C;
|
|
/* 0x10 */ const char* mTimingType;
|
|
/* 0x14 */ JUTTexture* mTexture;
|
|
/* 0x18 */ bool _18;
|
|
};
|
|
|
|
class CaptureScreenActor : public NameObj {
|
|
public:
|
|
/// @brief Creates a new `CaptureScreenActor`.
|
|
/// @param drawType TODO.
|
|
/// @param pCameraName TODO.
|
|
CaptureScreenActor(u32 drawType, const char* pCameraName);
|
|
|
|
/// @brief Draws the `CaptureScreenActor` to the screen.
|
|
virtual void draw() const;
|
|
|
|
private:
|
|
/* 0xC */ const char* mCameraName;
|
|
};
|