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

Function WriteFile

file.c:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82int WriteFile(const char *file, const void *buf, int size) {
83 SceUID fd = sceIoOpen(file, SCE_O_WRONLY | SCE_O_CREAT | SCE_O_TRUNC, 0777);
84 if (fd < 0)
85 return fd;
86
87 int written = sceIoWrite(fd, buf, size);
88
89 sceIoClose(fd);
90 return written;
91}
92
93int getFileSize(const char *file) {
94 SceUID fd = sceIoOpen(file, SCE_O_RDONLY, 0);

Callers 7

installDefaultFilesFunction · 0.85
makeHeadBinFunction · 0.85
installUpdaterFunction · 0.85
fileBrowserMenuCtrlFunction · 0.85
fileBrowserHandleFolderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected