| 313 | } |
| 314 | |
| 315 | void 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 | |
| 335 | void initVitaShell() { |
| 336 | // Set CPU to 444mhz |
no test coverage detected