diff options
-rw-r--r-- | twrp.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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(); |