Skip to content

Commit

Permalink
Loki wasn't initiated correctly after the update binary is run, now i…
Browse files Browse the repository at this point in the history
…t does

Change-Id: I598b6e47bcfd644ed4242586f514d4d82463d91e
  • Loading branch information
madmack committed Jul 26, 2013
1 parent 7a4c353 commit 355124b
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions twinstall.cpp
Expand Up @@ -169,15 +169,19 @@ extern "C" int TWinstall_zip(const char* path, int* wipe_cache) {
return INSTALL_CORRUPT;
}

ret_val = Run_Update_Binary(path, &Zip, wipe_cache);

#ifdef ENABLE_LOKI
DataManager::GetValue(TW_LOKI_SUPPORT_VAR, loki_enabled);
if(loki_enabled) {
gui_print("Checking if loki-fying is needed");
int result;
if(result = loki_check()) {
return result;
}
}
if (ret_val == INSTALL_SUCCESS) {
DataManager::GetValue(TW_LOKI_SUPPORT_VAR, loki_enabled);
if(loki_enabled) {
gui_print("Checking if loki-fying is needed");
int result;
if(result = loki_check()) {
return result;
}
}
}
#endif
return Run_Update_Binary(path, &Zip, wipe_cache);
return ret_val;
}

0 comments on commit 355124b

Please sign in to comment.