From b44496319d3027a625fcf876cf22e467720355df Mon Sep 17 00:00:00 2001 From: Aetias <144526980+AetiasHax@users.noreply.github.com> Date: Mon, 4 May 2026 22:07:42 +0200 Subject: 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 --- include/lib/files.hpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'include/lib') 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) {} }; -- cgit v1.2.3