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

Function app_callback

refresh.c:219–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217} license_data_t;
218
219void app_callback(void* data, const char* dir, const char* subdir)
220{
221 refresh_data_t *refresh_data = (refresh_data_t*)data;
222 char path[MAX_PATH_LENGTH];
223
224 if (strcasecmp(subdir, vitashell_titleid) == 0)
225 return;
226
227 if (refresh_data->refresh_pass) {
228 snprintf(path, MAX_PATH_LENGTH, "%s/%s", dir, subdir);
229 if (refreshNeeded(path, "app")) {
230 // Move the directory to temp for installation
231 removePath(APP_TEMP, NULL);
232 sceIoRename(path, APP_TEMP);
233 if (refreshApp(APP_TEMP) == 1)
234 refresh_data->refreshed++;
235 else
236 // Restore folder on error
237 sceIoRename(APP_TEMP, path);
238 }
239 SetProgress(++refresh_data->processed, refresh_data->count);
240 } else {
241 refresh_data->count++;
242 }
243}
244
245void dlc_callback_inner(void* data, const char* dir, const char* subdir)
246{

Callers

nothing calls this directly

Calls 4

refreshNeededFunction · 0.85
removePathFunction · 0.85
refreshAppFunction · 0.85
SetProgressFunction · 0.85

Tested by

no test coverage detected