REminiscence/resource_aba.h

36 lines
605 B
C
Raw Normal View History

2016-03-20 17:00:00 +01:00
#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;
2021-05-27 18:00:00 +02:00
int fileIndex;
2016-03-20 17:00:00 +01:00
};
struct ResourceAba {
static const int TAG = 0x442E4D2E;
FileSystem *_fs;
2021-05-27 18:00:00 +02:00
File _f[3];
int _filesCount;
2016-03-20 17:00:00 +01:00
ResourceAbaEntry *_entries;
int _entriesCount;
ResourceAba(FileSystem *fs);
~ResourceAba();
2021-05-27 18:00:00 +02:00
void readEntries(const char *aba);
2016-03-20 17:00:00 +01:00
const ResourceAbaEntry *findEntry(const char *name) const;
uint8_t *loadEntry(const char *name, uint32_t *size = 0);
};
#endif // RESOURCE_ABA_H__