Filesystem: Store pointer to beginning of FST in file infos

Needed for the next commit.
This commit is contained in:
JosJuice
2015-08-02 17:39:03 +02:00
parent 1262f08ac1
commit ee2b88ebb6
2 changed files with 15 additions and 10 deletions

View File

@ -21,7 +21,7 @@ class FileInfoGCWii : public FileInfo
{
public:
// Does not take ownership of pointers
FileInfoGCWii(u8 offset_shift, const u8* fst_entry, const u8* name_table_start);
FileInfoGCWii(const u8* fst, u8 offset_shift, u32 index, u32 total_file_infos);
~FileInfoGCWii() override;
@ -40,9 +40,10 @@ private:
u32 Get(EntryProperty entry_property) const;
const u8* const m_fst;
const u8 m_offset_shift;
const u8* const m_fst_entry;
const u8* const m_name_table_start;
const u32 m_index;
const u32 m_total_file_infos;
};
class FileSystemGCWii : public FileSystem