Advertisement
Terbaddo

PSP PBP File Input/Output API v0.1 - pbpio.h

Aug 8th, 2011
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.55 KB | None | 0 0
  1. #include <pspiofilemgr.h>
  2. #include <stdio.h>
  3.  
  4. typedef enum { ParamSfo = 0, Icon0Png = 1, Icon1Png = 2, Pic0Png = 3, Pic1Png = 4, Snd0At3 = 5, DataPsp = 6, DataPsar = 7 } PbpIoSlot;
  5.  
  6. typedef struct {
  7.     SceUID fd;
  8.     int slot;
  9.     int slotOffset;
  10. } PbpIoFile;
  11.  
  12. PbpIoFile *pbpIoOpen(const char *file, PbpIoSlot slot, int flags, SceMode mode);
  13. int pbpIoClose(PbpIoFile *fd);
  14. SceOff pbpIoLseek(PbpIoFile *fd, SceOff offset, int whence);
  15. int pbpIoRead(PbpIoFile *fd, void *data, SceSize size);
  16. int pbpIoWrite(PbpIoFile *fd, const void *data, SceSize size);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement