Run TWFunc::Fixup_Time_On_Boot() before OpenRecoveryScript

* Fixes possible issues with names of backups made with ORS

Change-Id: If8da1b3abb0960e527bb0eb3dd8a04d184aaea4d
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
This commit is contained in:
Vojtech Bocek
2014-03-11 19:40:34 +01:00
parent 99c8dbf215
commit 2005a84b24
+4 -2
View File
@@ -264,13 +264,15 @@ int main(int argc, char **argv) {
// Read the settings file
DataManager::ReadSettingsFile();
// Fixup the RTC clock on devices which require it
TWFunc::Fixup_Time_On_Boot();
// Run any outstanding OpenRecoveryScript
if (DataManager::GetIntValue(TW_IS_ENCRYPTED) == 0 && (TWFunc::Path_Exists(SCRIPT_FILE_TMP) || TWFunc::Path_Exists(SCRIPT_FILE_CACHE))) {
OpenRecoveryScript::Run_OpenRecoveryScript();
}
TWFunc::Fixup_Time_On_Boot();
// Launch the main GUI
gui_start();