diff --git a/include/install/hfs0.hpp b/include/install/hfs0.hpp index 9989931..d886d27 100755 --- a/include/install/hfs0.hpp +++ b/include/install/hfs0.hpp @@ -28,29 +28,29 @@ namespace tin::install static_assert(sizeof(HFS0BaseHeader) == 0x10, "HFS0BaseHeader must be 0x10"); - NX_CONSTEXPR const HFS0FileEntry *hfs0GetFileEntry(const HFS0BaseHeader *header, u32 i) + NX_INLINE const HFS0FileEntry *hfs0GetFileEntry(const HFS0BaseHeader *header, u32 i) { if (i >= header->numFiles) return NULL; return (const HFS0FileEntry*)(header + 0x1 + i * 0x4); } - NX_CONSTEXPR const char *hfs0GetStringTable(const HFS0BaseHeader *header) + NX_INLINE const char *hfs0GetStringTable(const HFS0BaseHeader *header) { return (const char*)(header + 0x1 + header->numFiles * 0x4); } - NX_CONSTEXPR u64 hfs0GetHeaderSize(const HFS0BaseHeader *header) + NX_INLINE u64 hfs0GetHeaderSize(const HFS0BaseHeader *header) { return 0x1 + header->numFiles * 0x4 + header->stringTableSize; } - NX_CONSTEXPR const char *hfs0GetFileName(const HFS0BaseHeader *header, u32 i) + NX_INLINE const char *hfs0GetFileName(const HFS0BaseHeader *header, u32 i) { return hfs0GetStringTable(header) + hfs0GetFileEntry(header, i)->stringTableOffset; } - NX_CONSTEXPR const char *hfs0GetFileName(const HFS0BaseHeader *header, const HFS0FileEntry *entry) + NX_INLINE const char *hfs0GetFileName(const HFS0BaseHeader *header, const HFS0FileEntry *entry) { return hfs0GetStringTable(header) + entry->stringTableOffset; }