REminiscence/resource_aba.h

35 lines
583 B
C

#ifndef RESOURCE_ABA_H__
#define RESOURCE_ABA_H__
#include "file.h"
struct FileSystem;
struct ResourceAbaEntry {
char name[14];
uint32_t offset;
uint32_t compressedSize;
uint32_t size;
};
struct ResourceAba {
static const char *FILENAME;
static const int TAG = 0x442E4D2E;
FileSystem *_fs;
File _f;
ResourceAbaEntry *_entries;
int _entriesCount;
ResourceAba(FileSystem *fs);
~ResourceAba();
void readEntries();
const ResourceAbaEntry *findEntry(const char *name) const;
uint8_t *loadEntry(const char *name, uint32_t *size = 0);
};
#endif // RESOURCE_ABA_H__