Fixed an error bug

This commit is contained in:
2025-09-02 09:23:46 -05:00
parent f915a4208b
commit 71080682cc
9 changed files with 111 additions and 24 deletions

View File

@@ -7,7 +7,9 @@
#pragma once
#include "assetpaletteimage.h"
#include "error/error.h"
#include "util/reflist.h"
#include <zip.h>
#define ASSET_HEADER_SIZE 3
#define ASSET_REFERENCE_COUNT_MAX 8
@@ -31,4 +33,15 @@ typedef struct {
assetstate_t state;
assettype_t type;
void *data;
} asset_t;
zip_file_t *file;
} asset_t;
/**
* Initializes an asset structure. This should be called by the asset manager
* only.
*
* @param asset The asset structure to initialize.
* @param filename The filename of the asset.
* @return An error code.
*/
errorret_t assetInit(asset_t *asset, const char_t *filename);