| 217 | } license_data_t; |
| 218 | |
| 219 | void 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 | |
| 245 | void dlc_callback_inner(void* data, const char* dir, const char* subdir) |
| 246 | { |
nothing calls this directly
no test coverage detected