Add reset mode for later use

This commit is contained in:
Aoran Zeng 2024-09-04 17:03:00 +08:00
parent bbc773ee36
commit 34cb47fbfa
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
3 changed files with 2 additions and 3 deletions

View File

@ -21,6 +21,7 @@
static int chsrc_get_cpucore ();
bool ProgMode_CMD_Measure = false;
bool ProgMode_CMD_Reset = false;
/* 命令行选项 */

View File

@ -793,6 +793,7 @@ main (int argc, char const *argv[])
return 1;
}
ProgMode_CMD_Reset = true;
target = argv[cli_arg_Target_pos];
matched = get_target (target, TargetOp_Reset_Source, NULL);
if (!matched) goto not_matched;

View File

@ -85,9 +85,6 @@ pl_ruby_setsrc (char *option)
chsrc_run (cmd, RunOpt_No_Last_New_Line);
chsrc_conclude (&source, chsrc_type);
// chsrc_note2 ("Ruby的镜像源目前仅有 腾讯软件源RubyChina 实现正确");
// chsrc_note2 ("而其它如Tuna,Bfsu,Ali目前都实现的有问题请勿使用");
}
void