Port backup name checking to Partition Manager

This commit is contained in:
Dees_Troy
2012-09-27 10:09:41 -04:00
parent a58beade0a
commit c9ff7a341b
6 changed files with 60 additions and 54 deletions
+4
View File
@@ -198,6 +198,10 @@ int OpenRecoveryScript::run_script_file(void) {
strncpy(value2, tok, line_len - remove_nl);
DataManager_SetStrValue(TW_BACKUP_NAME, value2);
ui_print("Backup folder set to '%s'\n", value2);
if (PartitionManager.Check_Backup_Name(true) != 0) {
ret_val = 1;
continue;
}
} else {
char empt[50];
strcpy(empt, "(Current Date)");