Implement pack reading functions
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
typedef struct {
|
||||
u64 size;
|
||||
u8 *data;
|
||||
u8 data[];
|
||||
} buf_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -41,7 +41,8 @@ typedef struct asset_pack asset_pack_t;
|
||||
|
||||
bool create_asset_pack(const char *dirpath, const char *output);
|
||||
asset_pack_t *load_asset_pack(const char *filepath);
|
||||
// buf_t read_file_from_pack(pak_read_t *pack, const char *filename);
|
||||
buf_t *read_file_from_pack(asset_pack_t *pack, const char *filename);
|
||||
void close_pack_file(buf_t **buf);
|
||||
void close_asset_pack(asset_pack_t **pack);
|
||||
|
||||
#endif // !PAK_H
|
||||
|
Reference in New Issue
Block a user