mirror of
https://github.com/tihmstar/futurerestore.git
synced 2024-12-22 17:35:29 +00:00
fixed done message
This commit is contained in:
parent
e4332ed20a
commit
c71a4e73dc
|
@ -79,7 +79,6 @@ using namespace std;
|
||||||
using namespace tihmstar;
|
using namespace tihmstar;
|
||||||
int main_r(int argc, const char * argv[]) {
|
int main_r(int argc, const char * argv[]) {
|
||||||
int err=0;
|
int err=0;
|
||||||
int res = -1;
|
|
||||||
printf("Version: " VERSION_COMMIT_SHA " - " VERSION_COMMIT_COUNT "\n");
|
printf("Version: " VERSION_COMMIT_SHA " - " VERSION_COMMIT_COUNT "\n");
|
||||||
#ifdef HAVE_LIBIPATCHER
|
#ifdef HAVE_LIBIPATCHER
|
||||||
printf("%s\n",libipatcher::version().c_str());
|
printf("%s\n",libipatcher::version().c_str());
|
||||||
|
@ -271,14 +270,16 @@ int main_r(int argc, const char * argv[]) {
|
||||||
client.doJustBoot(ipsw,bootargs);
|
client.doJustBoot(ipsw,bootargs);
|
||||||
else
|
else
|
||||||
client.doRestore(ipsw);
|
client.doRestore(ipsw);
|
||||||
|
printf("Done: restoring succeeded!\n");
|
||||||
} catch (tihmstar::exception &e) {
|
} catch (tihmstar::exception &e) {
|
||||||
e.dump();
|
e.dump();
|
||||||
|
printf("Done: restoring failed!\n");
|
||||||
}
|
}
|
||||||
cout << "Done: restoring "<< (!res ? "succeeded" : "failed")<<"." <<endl;
|
|
||||||
|
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (err) cout << "Failed with errorcode="<<err << endl;
|
if (err){
|
||||||
|
printf("Failed with errorcode=%d\n",err);
|
||||||
|
}
|
||||||
return err;
|
return err;
|
||||||
#undef reterror
|
#undef reterror
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue