github PSP-Archive/ARK-4 rev193
r193: Extended API

latest releases: rev202, v1761650337, v1761036027...
3 months ago

** NOTE: while this release does include some important fixes (such as a crash fix), it is mainly focused for developers.

The following libraries used by ARK and many other homebrews are now dynamic and available to be loaded on demand:

  • LibPNG: standard open source library for handling PNG files.
  • PSPFTP: FTP server and client library for PSP.
  • PSPAV: audio and video player for PSP formats (AT3, PMF, MPS).
  • Unarchiver: library to extract zip, rar, tar and 7z files.
  • VLF: library to create homebrew that mimicks the XMB.

To use these libraries ARK has extended the functionality of the official utility module functions sceUtilityLoadModule and sceUtililtyUnloadModule by providing new custom module IDs.
Developers don't have to worry about finding the .prx file and load/start-ing it, the CFW will handle that much like how the original firmware does for official libraries.

The new module IDs are as follows:

#define PSP_MODULE_NET_FTP     0x0107
#define PSP_MODULE_AV_PNG      0x0308
#define PSP_MODULE_AV_PLAYER   0x0390
#define PSP_MODULE_VLF         0x0700
#define PSP_MODULE_INTRAFONT   0x0701   // not yet implemented
#define PSP_MODULE_UNARCHIVER  0x0702

For example:

if (sceUtilityLoadModule(PSP_MODULE_AV_PNG) >= 0){
    // use PNG functions here

Don't miss a new ARK-4 release

NewReleases is sending notifications on new releases.