Fix compile error
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
errorret_t assetInitPBP(const char_t *pbpPath) {
|
||||
assertNotNull(pbpPath, "PBP path cannot be null.");
|
||||
assertStrLenMin(pbpPath, 1, "PBP path cannot be empty.");
|
||||
assertStrLenMax(pbpPath, ASSET_FILE_PATH_MAX, "PBP path is too long.");
|
||||
assertStrLenMax(pbpPath, ASSET_PBP_PATH_MAX, "PBP path is too long.");
|
||||
|
||||
ASSET.platform.pbpFile = fopen(pbpPath, "rb");
|
||||
if(ASSET.platform.pbpFile == NULL) {
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#define ASSET_PBP_SIGNATURE_SIZE 4
|
||||
#define ASSET_PBP_SIGNATURE "\0PBP"
|
||||
|
||||
#define ASSET_PBP_PATH_MAX FILENAME_MAX
|
||||
|
||||
typedef struct {
|
||||
char_t signature[ASSET_PBP_SIGNATURE_SIZE];
|
||||
uint32_t version;
|
||||
|
||||
Reference in New Issue
Block a user