MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / getFileSize

Function getFileSize

file.c:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93int getFileSize(const char *file) {
94 SceUID fd = sceIoOpen(file, SCE_O_RDONLY, 0);
95 if (fd < 0)
96 return fd;
97
98 int fileSize = sceIoLseek(fd, 0, SCE_SEEK_END);
99
100 sceIoClose(fd);
101 return fileSize;
102}
103
104int checkFileExist(const char *file) {
105 SceUID fd = sceIoOpen(file, SCE_O_RDONLY, 0);

Callers 2

hash_threadFunction · 0.85
lrcParseLoadWithFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected