Fix compile error

This commit is contained in:
2026-05-08 23:11:20 -05:00
parent 7415944e0a
commit bafbf2ec2f
5 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -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) {
+2
View File
@@ -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;