diff options
| author | Aetias <144526980+AetiasHax@users.noreply.github.com> | 2026-05-04 22:07:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-04 22:07:42 +0200 |
| commit | b44496319d3027a625fcf876cf22e467720355df (patch) | |
| tree | 4eff75d3a7855824487f1e87c99394640fb3387d /include/lib/files.hpp | |
| parent | fe6681a298f089c5bbbee077ad9c06dc801df476 (diff) | |
ActorShopItem 98% (#151)
* ActorShopItem 93%
* Fix build
* Add missing symbols to usa
* Document BMG message ID functions
* Create bmg.py for inspecting BMG files
* ActorShopItem 98%
* Match func_ov031_0217dfec
* Port reloc changes to usa
* Make `ModelRender::GetLcdcAddress` non-const
Diffstat (limited to 'include/lib/files.hpp')
| -rw-r--r-- | include/lib/files.hpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/lib/files.hpp b/include/lib/files.hpp index 78b435f4..e58feb21 100644 --- a/include/lib/files.hpp +++ b/include/lib/files.hpp @@ -1,5 +1,6 @@ #pragma once +#include "System/SysNew.hpp" #include "global.h" #include "types.h" @@ -7,13 +8,14 @@ struct FileEntry_Unk8 { /* 00 */ unk8 mUnk_00[0x8]; /* 08 */ u16 mUnk_08; /* 0a */ u16 mUnk_0a; - /* 0c */ // more fields, probably + /* 0c */ u16 mUnk_0c; + /* 10 */ // more fields, probably }; -class FileEntry { +class FileEntry : public SysObject { public: /* 00 (vtable) */ - /* 04 */ char *path; + /* 04 */ const char *path; /* 08 */ FileEntry_Unk8 *mUnk_08; /* 0c */ unk32 mUnk_0c; /* 10 */ @@ -23,6 +25,11 @@ public: /* 0c */ virtual void vfunc_0c() = 0; /* 10 */ virtual u32 vfunc_10(u32 param1) = 0; /* 14 */ + + FileEntry(const char *path) : + path(path), + mUnk_08(NULL), + mUnk_0c(0) {} }; class FileEntryFlag : public FileEntry { @@ -36,4 +43,8 @@ public: /* 0c */ virtual void vfunc_0c() override; /* 10 */ virtual u32 vfunc_10(u32 param1) override; /* 14 */ + + FileEntryFlag(const char *path) : + FileEntry(path), + mUnk_10(0) {} }; |
