StreamAttack: moved to new config

This commit is contained in:
alterNERDtive 2020-12-03 13:49:10 +01:00
parent e5183a6d5f
commit c17355229f
3 changed files with 18 additions and 1 deletions

View file

@ -70,6 +70,8 @@ namespace alterNERDtive
// ===========
// === 4.0 ===
// ===========
// RatAttack
string prefix = "RatAttack";
foreach (string option in new string[] { "autoCloseCase", "announceNearestCMDR", "announcePlatform", "confirmCalls", "onDuty" })
{
@ -95,6 +97,21 @@ namespace alterNERDtive
Commands.Run("alterNERDtive-base.unsetVariableFromProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}", "text" } });
}
}
// StreamAttack
prefix = "StreamAttack";
foreach (string option in new string[] { "outputDir" })
{
string name = $"{prefix}.{option}";
Commands.Run("alterNERDtive-base.loadVariableFromProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}", "text" } });
string value = VA!.GetText(name);
if (!string.IsNullOrEmpty(value))
{
Log.Info($"Migrating option {name} …");
Commands.Run("alterNERDtive-base.saveVariableToProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}#", value } });
Commands.Run("alterNERDtive-base.unsetVariableFromProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}", "text" } });
}
}
}
private static void Context_DistanceBetween(dynamic vaProxy)

View file

@ -52,7 +52,7 @@ namespace alterNERDtive.util
{
"StreamAttack",
new OptDict<string, Option>{
{ new Option("outputDir", @"%appdata%\StreamAttack\", voiceTrigger: "StreamAttack output directory") }
}
}
};

Binary file not shown.