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

Function installDefaultFiles

init.c:315–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void installDefaultFiles() {
316 // Make VitaShell folders
317 sceIoMkdir("ux0:VitaShell", 0777);
318 sceIoMkdir("ux0:VitaShell/internal", 0777);
319 sceIoMkdir("ux0:VitaShell/language", 0777);
320 sceIoMkdir("ux0:VitaShell/module", 0777);
321 sceIoMkdir("ux0:VitaShell/theme", 0777);
322 sceIoMkdir("ux0:VitaShell/theme/Default", 0777);
323 sceIoMkdir("ux0:VitaShell/theme/Electron", 0777);
324
325 // Write default files if they don't exist
326 int i;
327 for (i = 0; i < (sizeof(default_files) / sizeof(DefaultFile)); i++) {
328 SceIoStat stat;
329 memset(&stat, 0, sizeof(stat));
330 if (sceIoGetstat(default_files[i].path, &stat) < 0 || (default_files[i].replace && (int)stat.st_size != default_files[i].size))
331 WriteFile(default_files[i].path, default_files[i].buffer, default_files[i].size);
332 }
333}
334
335void initVitaShell() {
336 // Set CPU to 444mhz

Callers 1

initVitaShellFunction · 0.85

Calls 1

WriteFileFunction · 0.85

Tested by

no test coverage detected