Exemple #1
0
 public static void a(string A_0, k A_1)
 {
     string[] files = Directory.GetFiles(PluginCore.ci, "*.usd");
     foreach (string str in files)
     {
         string[] strArray2 = str.Split(new char[] { '\\' });
         string   str2      = strArray2[strArray2.Length - 1];
         if (str2 == PluginCore.cq.l.m)
         {
             er.b(A_0, A_1);
         }
         else
         {
             bf bf = new bf(str);
             v  v  = bf["Settings"].a(0, k.a(A_0));
             if (v == null)
             {
                 v v2 = new v(bf["Settings"]);
                 v2[0] = k.a(A_0);
                 v2[1] = A_1;
                 bf["Settings"].c(v2);
             }
             else
             {
                 v[1] = A_1;
             }
             bf.c(str);
         }
     }
     string[] strArray4 = new string[] { "Done saving setting ", A_0, " to all profiles. (Changed ", files.Length.ToString(), " profiles)" };
     PluginCore.e(string.Concat(strArray4));
 }
Exemple #2
0
 public void k()
 {
     if (!string.IsNullOrEmpty(this.j()))
     {
         bf bf = new bf();
         a0 a  = new a0(new string[] { "CType", "AType", "CData", "AData", "State" });
         bf.Add("CondAct", a);
         foreach (KeyValuePair <string, List <d8> > pair in this.c)
         {
             foreach (d8 d in pair.Value)
             {
                 v v = new v(a);
                 v[0] = k.a((int)d.a.f());
                 v[1] = k.a((int)d.b.d());
                 v[2] = d.a.i();
                 v[3] = d.b.i();
                 v[4] = k.a(d.c);
                 a.c(v);
             }
         }
         bf.c(Path.Combine(PluginCore.ci, this.j()));
     }
 }