Ejemplo n.º 1
0
 public static void LoadLastConfig()
 {
     CreateCfg("stock_low.csgo.cfg", laExternalMulti.Properties.Resources.stock_low_csgo);
     CreateCfg("stock_mid.csgo.cfg", laExternalMulti.Properties.Resources.stock_low_csgo);
     CreateCfg("stock_high.csgo.cfg", laExternalMulti.Properties.Resources.stock_low_csgo);
     CreateCfg("custom_01.csgo.cfg");
     CreateCfg("custom_02.csgo.cfg");
     CreateCfg("custom_03.csgo.cfg");
     if (File.Exists("lastConfig"))
     {
         string cfg = File.ReadAllText("lastConfig");
         PrintInfo("LastConfig: \"{0}\"", cfg);
         PrintInfo("LastConfig: \"{0}\"", cfg);
         if (string.IsNullOrEmpty(cfg))
         {
             cfg = "stock_mid.csgo.cfg";
         }
         if (File.Exists(cfg))
         {
             implementation.ReadSettings(cfg);
             PrintSideInfo(" > OK");
         }
         else
         {
             PrintError(" > NOPE: File does not exist.");
         }
     }
 }