SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
LayoutHolder.hpp
1#pragma once
2
3#include "Game/System/ResourceInfo.hpp"
4#include "JSystem/JKernel/JKRArchive.hpp"
5#include "nw4r/lyt/lyt_resourceAccessor.hpp"
6
7typedef const char* Something;
8
9namespace {
10 Something sLayoutExt = ".brlyt";
11 Something sAnimationExt = ".brlan";
12};
13
14class LayoutHolder : public nw4r::lyt::ResourceAccessor {
15public:
16 LayoutHolder(JKRArchive &);
17
18 virtual ~LayoutHolder();
19 virtual void* GetResource(u32, const char*, u32*);
20 virtual nw4r::ut::Font* GetFont(const char *);
21 virtual void* getResOther(const char *) const;
22 virtual u32 getResOtherNum() const;
23 virtual const char* getResOtherName(u32) const;
24 virtual void* getResOther(u32) const;
25 virtual bool isExistResOther(const char *) const;
26
27 void initializeArc();
28
29 u32 initEachResTable(ResTable *, const Something *);
30
31 void mount(char *);
32
33 JKRArchive* mArchive; // _4
34 ResTable mLayoutRes; // _8
35 ResTable mAnimRes; // _10
36 ResTable mResOther; // _18
37};