Add initial support for reading an asset pack

This commit is contained in:
2023-10-22 23:50:22 +01:00
parent c0d9858b97
commit 276867f76a
2 changed files with 76 additions and 0 deletions

View File

@@ -4,6 +4,11 @@
#include "aliases.h"
#include <stdbool.h>
typedef struct {
u64 size;
u8 *data;
} buf_t;
typedef struct {
u64 offset;
u64 length;
@@ -32,6 +37,11 @@ typedef struct {
toc_t toc;
} pak_t;
typedef struct pak_read pak_read_t;
bool create_asset_pack(const char *dirpath, const char *output);
pak_read_t *load_asset_pack(const char *filepath);
// buf_t read_file_from_pack(pak_read_t *pack, const char *filename);
void close_asset_pack(pak_read_t **pack);
#endif // !PAK_H