mirror of
https://github.com/tihmstar/futurerestore.git
synced 2024-12-22 17:35:29 +00:00
added a little more error logging
This commit is contained in:
parent
b3f684d61b
commit
d1e5c41aff
|
@ -493,11 +493,16 @@ void get_custom_component(struct idevicerestore_client_t* client, plist_t build_
|
|||
#ifndef HAVE_LIBIPATCHER
|
||||
reterror(-404, "compiled without libipatcher");
|
||||
#else
|
||||
try {
|
||||
auto comp = getIPSWComponent(client, build_identity, component);
|
||||
comp = move(libipatcher::decryptFile3((char*)comp.first, comp.second, libipatcher::getFirmwareKey(client->device->product_type, client->build, component)));
|
||||
*data = (unsigned char*)(char*)comp.first;
|
||||
*size = comp.second;
|
||||
comp.first = NULL; //don't free on destruction
|
||||
} catch (libipatcher::exception &e) {
|
||||
reterror(e.code(),"ERROR: libipatcher failed with reason %s\n",e.what());
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue