Exemplo n.º 1
0
 public GClass23(GClass22 gclass22_1, GClass26 gclass26_1, long long_1, GClass14 gclass14_1)
 {
     gclass22_0 = gclass22_1;
     gclass26_0 = gclass26_1;
     long_0     = long_1;
     gclass14_0 = gclass14_1;
 }
Exemplo n.º 2
0
        private List <GClass16> method_11(string string_0)
        {
            GClass14 gclass14_0 = this.method_2(string_0);

            if (!this.method_9(string_0))
            {
                this.method_10(gclass14_0);
            }
            using (MD5 md5 = MD5.Create())
            {
                if (!md5.ComputeHash(Alphaleonis.Win32.Filesystem.File.ReadAllBytes(this.method_12(string_0))).smethod_5(gclass14_0.Md5.smethod_6()))
                {
                    this.method_10(gclass14_0);
                }
            }
            GClass6.Unzip(Alphaleonis.Win32.Filesystem.File.ReadAllBytes(this.method_12(string_0)), this.String_0);
            using (FileStream fileStream = Alphaleonis.Win32.Filesystem.File.OpenRead(this.method_12(string_0)))
            {
                using (ZipArchive zipArchive = new ZipArchive((Stream)fileStream, ZipArchiveMode.Read))
                {
                    try
                    {
                        return(JsonConvert.DeserializeObject <List <GClass16> >(zipArchive.Entries.First <ZipArchiveEntry>((Func <ZipArchiveEntry, bool>)(zipArchiveEntry_0 => zipArchiveEntry_0.Name == "usbhelper.mappings")).smethod_7()));
                    }
                    catch
                    {
                        return(new List <GClass16>());
                    }
                }
            }
        }
Exemplo n.º 3
0
        private void Hotspotform_Load(object sender, EventArgs e)
        {
            List <GClass1.GClass2> .Enumerator enumerator;

            string_1 = Application.StartupPath + "\\" + string_0 + "\\hotSpotTeleport.ini";
            List <GClass1.GClass2> list = GClass1.list_0.FindAll(new Predicate <GClass1.GClass2>(method_6));

            try
            {
                enumerator = list.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    GClass1.GClass2 gclass2 = enumerator.get_Current();
                    process_0        = gclass2.method_0();
                    long_0           = (long)GClass22.OpenProcess(GClass22.GEnum3.const_1, true, process_0.Id);
                    gclass22_0.int_0 = checked ((int)long_0);
                }
            }
            finally
            {
                enumerator.Dispose();
            }
            gclass14_0 = bot_0.gclass14_0;
            method_0();
            gclass0_0           = new GClass0(bot_0, bot_0.gclass26_0, gclass22_0, bot_0.gclass4_0);
            vmethod_2().Enabled = true;
        }
Exemplo n.º 4
0
 private void Main_Load(object sender, EventArgs e)
 {
     Main.gclass6_0.method_0();
     Main.gclass6_0.method_2();
     Main.gclass6_0.method_1();
     GClass14.smethod_5();
     GClass14.smethod_4();
 }
Exemplo n.º 5
0
        public List <string> method_0(string string_0)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            GClass15.Class13 class13 = new GClass15.Class13();
            string_0 = string_0.ToUpper();
            // ISSUE: reference to a compiler-generated field
            class13.gclass14_0 = this.method_2(string_0);
            List <string> stringList = new List <string>();

            // ISSUE: reference to a compiler-generated field
            if (this.method_3(string_0) || class13.gclass14_0 == null)
            {
                return(stringList);
            }
            foreach (string installedMod in this.InstalledMods)
            {
                GClass14 gclass14 = this.method_2(installedMod);
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated field
                // ISSUE: reference to a compiler-generated method
                if (gclass14 != null && ((IEnumerable <string>)gclass14.Files).Any <string>(class13.func_0 ?? (class13.func_0 = new Func <string, bool>(class13.method_0))))
                {
                    int num = (int)RadMessageBox.Show(string.Format("You cannot add the mod {0} since it conflicts with {1}.", (object)string_0, (object)installedMod));
                    return(stringList);
                }
            }
            // ISSUE: reference to a compiler-generated field
            foreach (string recommendedMod in class13.gclass14_0.RecommendedMods)
            {
                if (this.method_2(recommendedMod) != null && !this.method_3(recommendedMod) && RadMessageBox.Show(string.Format("It is recommended that you also add the mod {0}. Should I add it for you?", (object)recommendedMod), "Add mode", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    stringList.Add(recommendedMod);
                    stringList.AddRange((IEnumerable <string>) this.method_0(recommendedMod));
                }
            }
            // ISSUE: reference to a compiler-generated field
            foreach (string requiredMod in class13.gclass14_0.RequiredMods)
            {
                if (this.method_2(requiredMod) != null && !this.method_3(requiredMod))
                {
                    int num = (int)RadMessageBox.Show(string.Format("The mod additional mod {0} is required. It will be enabled automatically.", (object)requiredMod));
                    stringList.Add(requiredMod);
                    stringList.AddRange((IEnumerable <string>) this.method_0(requiredMod));
                }
            }
            stringList.Add(string_0);
            this.method_8(string_0);
            this.method_6();
            return(stringList);
        }
Exemplo n.º 6
0
 public bool method_5(string string_0)
 {
     string_0 = string_0.ToUpper();
     if (!this.method_3(string_0))
     {
         return(true);
     }
     foreach (string installedMod in this.InstalledMods)
     {
         GClass14 gclass14 = this.method_2(installedMod);
         if (gclass14 != null && ((IEnumerable <string>)gclass14.RequiredMods).Contains <string>(string_0))
         {
             int num = (int)RadMessageBox.Show(string.Format("The mod {0} is dependant on this mod. Please disable it first.", (object)installedMod));
             return(false);
         }
     }
     this.InstalledMods.Remove(string_0);
     this.method_6();
     return(true);
 }
Exemplo n.º 7
0
 private void method_10(GClass14 gclass14_0)
 {
     GClass27.smethod_9(gclass14_0.DownloadLink, this.method_12(gclass14_0.Name), string.Format("Downloading {0}", (object)gclass14_0.Name));
 }
Exemplo n.º 8
0
 public static bool smethod_0(int int_2)
 {
     GClass0.Class8 class8 = new GClass0.Class8();
     class8.int_0 = int_2;
     GClass14.GClass21 gclass21 = Enumerable.FirstOrDefault <GClass14.GClass21>(GClass14.smethod_2(), new Func <GClass14.GClass21, bool>(class8, class8.method_0));
     if (gclass21 != null)
     {
         return(true);
     }
     return(false);
 }