-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from Pistonight/layout_resource_mgr
LayoutResourceMgr
- Loading branch information
Showing
12 changed files
with
536 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule NintendoSDK
updated
140 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#pragma once | ||
|
||
#include <heap/seadDisposer.h> | ||
#include <prim/seadSafeString.h> | ||
#include "KingSystem/Utils/Types.h" | ||
|
||
namespace ksys { | ||
namespace res { | ||
class Handle; | ||
} | ||
namespace ui { | ||
|
||
class ArcResourceMgr; | ||
|
||
class ArcResource : public sead::IDisposer { | ||
public: | ||
ArcResource() = default; | ||
|
||
void init(ArcResourceMgr* mgr, const sead::SafeString& name, u8* data, res::Handle* handle); | ||
|
||
private: | ||
void* _20; | ||
void* _28; | ||
ArcResourceMgr* mArcResourceMgr; | ||
sead::FixedSafeString<0x40> mName; | ||
u8* mData; | ||
void* mFile; | ||
res::Handle* mHandle; | ||
}; | ||
KSYS_CHECK_SIZE_NX150(ArcResource, 0xA8); | ||
|
||
} // namespace ui | ||
} // namespace ksys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
#include <container/seadTList.h> | ||
#include <prim/seadSafeString.h> | ||
#include "KingSystem/System/UI/ArcResource.h" | ||
#include "KingSystem/Utils/Types.h" | ||
|
||
namespace sead { | ||
class ExpHeap; | ||
} | ||
|
||
namespace ksys::ui { | ||
|
||
class ArcResourceMgr { | ||
public: | ||
ArcResourceMgr() = default; | ||
virtual ~ArcResourceMgr(); | ||
|
||
virtual void sub_10(); | ||
virtual void loadArchive(sead::Heap* heap, const sead::SafeString& path); | ||
virtual void sub_20(); | ||
virtual void sub_28(); | ||
virtual void addArchive(ArcResource* archive); | ||
|
||
private: | ||
// TODO: fields | ||
/* sead::TList */ | ||
char list[0x10]; | ||
int _18 = 0; | ||
int _1c = 0x20; | ||
}; | ||
KSYS_CHECK_SIZE_NX150(ArcResourceMgr, 0x20); | ||
|
||
} // namespace ksys::ui |
Oops, something went wrong.