Fixed an error bug
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user