diff options
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 3b95702..8c7ad83 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -941,6 +941,19 @@ void idevicerestore_set_ipsw(struct idevicerestore_client_t* client, const char* } } +void idevicerestore_set_cache_path(struct idevicerestore_client_t* client, const char* path) +{ + if (!client) + return; + if (client->cache_dir) { + free(client->cache_dir); + client->cache_dir = NULL; + } + if (path) { + client->cache_dir = strdup(path); + } +} + void idevicerestore_set_progress_callback(struct idevicerestore_client_t* client, idevicerestore_progress_cb_t cbfunc, void* userdata) { if (!client) |