mirror of
https://github.com/joel16/VitaShell.git
synced 2024-12-11 13:33:41 +00:00
Fixed lseek in wrapper
This commit is contained in:
parent
b2164a9e42
commit
d49254aa2d
@ -71,10 +71,10 @@ int fileIoWrite(SceUID fd, const void *data, SceSize size) {
|
||||
return sceIoWrite(fd, data, size);
|
||||
}
|
||||
|
||||
int fileIoLseek(SceUID fd, int offset, int whence) {
|
||||
SceOff fileIoLseek(SceUID fd, SceOff offset, int whence) {
|
||||
int res = verifyFd(fd);
|
||||
if (res < 0) {
|
||||
return psp2LinkIoLseek(fd, offset, whence);
|
||||
return (SceOff)psp2LinkIoLseek(fd, offset, whence);
|
||||
}
|
||||
|
||||
return sceIoLseek(fd, offset, whence);
|
||||
|
@ -23,7 +23,7 @@ int fileIoOpen(const char *file, int flags, SceMode mode);
|
||||
int fileIoClose(SceUID fd);
|
||||
int fileIoRead(SceUID fd, void *data, SceSize size);
|
||||
int fileIoWrite(SceUID fd, const void *data, SceSize size);
|
||||
int fileIoLseek(SceUID fd, int offset, int whence);
|
||||
SceOff fileIoLseek(SceUID fd, SceOff offset, int whence);
|
||||
int fileIoRemove(const char *file);
|
||||
int fileIoMkdir(const char *dirname, SceMode mode);
|
||||
int fileIoRmdir(const char *dirname);
|
||||
|
Loading…
Reference in New Issue
Block a user