mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 22:01: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>
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "Game/System/ResourceInfo.hpp"
|
|
#include <nw4r/lyt/resourceAccessor.h>
|
|
|
|
class JKRArcFinder;
|
|
class JKRArchive;
|
|
|
|
class LayoutHolder : public nw4r::lyt::ResourceAccessor {
|
|
public:
|
|
LayoutHolder(JKRArchive&);
|
|
|
|
virtual ~LayoutHolder();
|
|
virtual void* GetResource(u32, const char*, u32*);
|
|
virtual nw4r::ut::Font* GetFont(const char*);
|
|
virtual void* getResOther(const char* pName) const {
|
|
return mResOther.getRes(pName);
|
|
}
|
|
virtual u32 getResOtherNum() const {
|
|
return mResOther.mCount;
|
|
}
|
|
virtual const char* getResOtherName(u32 fileID) const {
|
|
return mResOther.getResName(fileID);
|
|
}
|
|
virtual void* getResOther(u32 fileID) const {
|
|
return mResOther.getRes(fileID);
|
|
}
|
|
virtual bool isExistResOther(const char* pName) const {
|
|
return mResOther.isExistRes(pName);
|
|
}
|
|
|
|
bool isAnimationHashEqual(u32, u32) const;
|
|
void initializeArc();
|
|
JKRArcFinder* getFileFinder(const char*);
|
|
u32 initEachResTable(ResTable*, const char* const*);
|
|
u32 count(const char*, const char*);
|
|
void mount(char*);
|
|
ResFileInfo* createAndRegisterObject(const char*, void*);
|
|
|
|
/* 0x04 */ JKRArchive* mArchive;
|
|
/* 0x08 */ ResTable mLayoutRes;
|
|
/* 0x10 */ ResTable mAnimRes;
|
|
/* 0x18 */ ResTable mResOther;
|
|
};
|