Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //How to read 2 files (SPRX)
- #include <cell/fs/cell_fs_errno.h>
- #include <cell/fs/cell_fs_file_api.h>
- int fd;
- uint64_t nrw;
- char* Read(const char* p,uint64_t nbytes,int64_t offset)
- {
- char* buff;
- cellFsOpen(p,CELL_FS_O_RDWR|CELL_FS_O_CREAT, &fd, NULL, 0);
- uint64_t pos;
- cellFsLseek(fd, offset, CELL_FS_SEEK_SET, &pos);
- cellFsRead(fd, (void *)buff, (uint64_t)nbytes, &nrw);
- cellFsClose(fd);
- return buff;
- }
- //Credits: Milky4444
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement