PSP now reads data directly from EBOOT if requested

This commit is contained in:
2025-11-09 15:42:26 -06:00
parent aaa8622956
commit 5206d47b43
5 changed files with 160 additions and 20 deletions

View File

@@ -11,10 +11,21 @@
#if ASSET_TYPE == wad
#if PSP
#define ASSET_PBP_READ_PBP_FROM_HOST 0
#define ASSET_PBP_SIGNATURE_LEN 4
#define ASSET_PBP_SIGNATURE "\0PBP"
typedef struct {
uint8_t signature[4];
uint16_t version[2];
unsigned int offset[8];
char_t signature[ASSET_PBP_SIGNATURE_LEN];
uint32_t version;
uint32_t sfoOffset;
uint32_t icon0Offset;
uint32_t icon1Offset;
uint32_t pic0Offset;
uint32_t pic1Offset;
uint32_t snd0Offset;
uint32_t pspOffset;
uint32_t psarOffset;
} assetpbp_t;
#endif
#else
@@ -44,6 +55,11 @@ typedef struct {
zip_t *zip;
char_t systemPath[FILENAME_MAX];
uint8_t assetCount;
#if PSP
FILE *pbpFile;
assetpbp_t pbpHeader;
#endif
} asset_t;
static asset_t ASSET;