1
0
Fork 0
mirror of https://github.com/halpz/re3.git synced 2024-12-28 18:35:29 +00:00
re3/src/core/Directory.h
2019-07-07 13:09:11 +02:00

23 lines
429 B
C++

#pragma once
class CDirectory
{
public:
struct DirectoryInfo {
uint32 offset;
uint32 size;
char name[24];
};
DirectoryInfo *entries;
int32 maxEntries;
int32 numEntries;
CDirectory(int32 maxEntries);
~CDirectory(void);
void ReadDirFile(const char *filename);
bool WriteDirFile(const char *filename);
void AddItem(const DirectoryInfo &dirinfo);
bool FindItem(const char *name, uint32 &offset, uint32 &size);
};