mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 16:01:14 +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>
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <nw4r/lyt/drawInfo.h>
|
|
|
|
namespace nw4r {
|
|
namespace lyt {
|
|
class ArcResourceAccessor;
|
|
class Layout;
|
|
}; // namespace lyt
|
|
}; // namespace nw4r
|
|
|
|
struct MEMAllocator;
|
|
|
|
class IsbnManager {
|
|
private:
|
|
/* 0x00 */ bool _0;
|
|
/* 0x04 */ MEMAllocator* mpAllocator;
|
|
/* 0x08 */ nw4r::lyt::Layout* mpLayout;
|
|
/* 0x0C */ nw4r::lyt::ArcResourceAccessor* mpResAccessor;
|
|
/* 0x10 */ nw4r::lyt::DrawInfo mDrawInfo;
|
|
/* 0x64 */ u16 _64;
|
|
/* 0x66 */ u16 _66;
|
|
/* 0x68 */ u16 _68;
|
|
/* 0x6C */ void* mpIsbnBuffer;
|
|
/* 0x70 */ void* mpLayoutBuffer;
|
|
/* 0x74 */ void* mpResAccBuffer;
|
|
|
|
static const char* cIsbnNumberPaneName[];
|
|
static const char* cRegistNumberPaneName[];
|
|
static const char* cOtherNumberPaneName[];
|
|
|
|
public:
|
|
/// @brief Creates a new `IsbnManager`.
|
|
/// @param pAllocator A pointer to the memory allocator.
|
|
IsbnManager(MEMAllocator* pAllocator);
|
|
|
|
/// @brief Destroys the `IsbnManager`.
|
|
virtual ~IsbnManager();
|
|
|
|
void setAdjustRate(f32 x, f32 y);
|
|
void setDrawTime(u16 minDraw, u16 maxDraw);
|
|
void setNumber(const wchar_t* pIsbnNumber, const wchar_t* pRegistNumber, const wchar_t* pOtherNumber);
|
|
void calculateView();
|
|
static IsbnManager* create(void* pArchiveBuf, MEMAllocator* pAllocator);
|
|
bool calc(bool allowSkip);
|
|
void draw();
|
|
void reset();
|
|
};
|