mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-04-20 14:31:41 +00:00
An unplugged cable is not 32-bit (#24)
* An unplugged cable is not 32-bit * Better practice * Forgot extra parentheses
This commit is contained in:
parent
aeb94dcdd2
commit
a1d8cfaf95
|
@ -119,11 +119,13 @@ futurerestore::futurerestore(bool isUpdateInstall, bool isPwnDfu, bool noIBSS) :
|
|||
|
||||
bool futurerestore::init(){
|
||||
if (_didInit) return _didInit;
|
||||
_didInit = (check_mode(_client) != MODE_UNKNOWN);
|
||||
if (!(_client->image4supported = is_image4_supported(_client))){
|
||||
info("[INFO] 32-bit device detected\n");
|
||||
}else{
|
||||
info("[INFO] 64-bit device detected\n");
|
||||
// If device is in an invalid state, don't check if it supports img4
|
||||
if ((_didInit = check_mode(_client) != MODE_UNKNOWN)) {
|
||||
if (!(_client->image4supported = is_image4_supported(_client))){
|
||||
info("[INFO] 32-bit device detected\n");
|
||||
}else{
|
||||
info("[INFO] 64-bit device detected\n");
|
||||
}
|
||||
}
|
||||
return _didInit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue