Beispiel #1
0
    // Token: 0x06000546 RID: 1350 RVA: 0x0002D67C File Offset: 0x0002B87C
    public CaptchaQueue(bool bool_0 = true)
    {
        this.InitializeComponent();
        Dictionary <int, GClass1> dictionary = new Dictionary <int, GClass1>();

        dictionary[1] = new GClass1
        {
            bunifuThinButton2_0 = this.solverButton1,
            bunifuCustomLabel_0 = this.solverLine1,
            bunifuThinButton2_1 = this.closeButton1
        };
        dictionary[2] = new GClass1
        {
            bunifuThinButton2_0 = this.solverButton2,
            bunifuCustomLabel_0 = this.solverLine2,
            bunifuThinButton2_1 = this.closeButton2
        };
        dictionary[3] = new GClass1
        {
            bunifuThinButton2_0 = this.solverButton3,
            bunifuCustomLabel_0 = this.solverLine3,
            bunifuThinButton2_1 = this.closeButton3
        };
        dictionary[4] = new GClass1
        {
            bunifuThinButton2_0 = this.solverButton4,
            bunifuCustomLabel_0 = this.solverLine4,
            bunifuThinButton2_1 = this.closeButton4
        };
        this.dictionary_0 = dictionary;
        this.method_1();
        this.method_9(1);
        this.method_6(this.dictionary_0[1]);
    }
Beispiel #2
0
            public static GClass1 ReadDecal(this SCMap scMap)
            {
                GClass1 gClass1 = new GClass1();

                gClass1.unk0   = scMap.ReadInt();
                gClass1.gEnum7 = scMap.ReadInt();

                int texturesCount = scMap.ReadInt();

                gClass1.texturePaths = new string[texturesCount];
                for (int i = 0; i < texturesCount; i++)
                {
                    int strLenght = scMap.ReadInt();
                    gClass1.texturePaths[i] = scMap.ReadString(strLenght);
                }

                gClass1.scale    = scMap.ReadVector3();
                gClass1.position = scMap.ReadVector3();
                Vector3 rot = scMap.ReadVector3();

                gClass1.rotation      = Quaternion.Euler(rot);
                gClass1.cutOffLOD     = scMap.ReadFloat();
                gClass1.nearCutOffLOD = scMap.ReadFloat();
                gClass1.id            = scMap.ReadInt();

                return(gClass1);
            }
Beispiel #3
0
    // Token: 0x0600055A RID: 1370 RVA: 0x0002E0DC File Offset: 0x0002C2DC
    private void method_7(GClass1 gclass1_0)
    {
        CaptchaQueue.Class127 @class = new CaptchaQueue.Class127();
        if (CaptchaQueue.dictionary_1.Count == 1)
        {
            return;
        }
        @class.short_0 = Convert.ToInt16(gclass1_0.bunifuThinButton2_0.ButtonText.Split(new char[]
        {
            ' '
        }).Last <string>());
        gclass1_0.method_1();
        CaptchaQueue.dictionary_1[(int)@class.short_0].webView_0.Engine.Stop(true);
        CaptchaQueue.dictionary_1[(int)@class.short_0].webView_0.Dispose();
        CaptchaQueue.dictionary_1.Remove((int)@class.short_0);
        Class131 class2 = CaptchaQueue.concurrentDictionary_0.Values.FirstOrDefault(new Func <Class131, bool>(@class.method_0));

        if (class2 != null)
        {
            class2.int_1  = 0;
            class2.bool_0 = false;
            CaptchaQueue.smethod_1(null, null);
        }
        this.method_9(this.int_1);
        if (CaptchaQueue.int_0 == (int)@class.short_0 && !this.method_8())
        {
            int num = this.dictionary_0.Values.ToList <GClass1>().IndexOf(gclass1_0);
            this.method_6(this.dictionary_0[(num > 0) ? num : 4]);
        }
    }
Beispiel #4
0
    // Token: 0x06000105 RID: 261 RVA: 0x00006234 File Offset: 0x00004434
    protected virtual void OnPaint(PaintEventArgs e)
    {
        Bitmap   bitmap   = GClass1.smethod_32(GClass1.smethod_30(this), GClass1.smethod_31(this));
        Graphics graphics = GClass1.smethod_33(bitmap);

        this.int_0 = GClass1.smethod_30(this);
        this.int_1 = GClass1.smethod_31(this);
        Rectangle    rectangle_    = new Rectangle(0, 0, this.int_0, this.int_1);
        Rectangle    rectangle_2   = new Rectangle(GClass1.smethod_34(this.int_0 - 40), 0, this.int_0, this.int_1);
        GraphicsPath graphicsPath_ = GClass1.smethod_35();

        GClass1.smethod_35();
        GClass1.smethod_36(graphics, Color.FromArgb(45, 45, 48));
        GClass1.smethod_7(graphics, SmoothingMode.HighQuality);
        GClass1.smethod_8(graphics, PixelOffsetMode.HighQuality);
        GClass1.smethod_9(graphics, TextRenderingHint.ClearTypeGridFit);
        GClass1.smethod_13(graphics, GClass1.smethod_11(this.color_1), rectangle_);
        GClass1.smethod_37(graphicsPath_);
        GClass1.smethod_38(graphicsPath_, rectangle_2);
        GClass1.smethod_39(graphics, graphicsPath_);
        GClass1.smethod_13(graphics, GClass1.smethod_11(this.color_0), rectangle_2);
        GClass1.smethod_40(graphics);
        GClass1.smethod_42(graphics, GClass1.smethod_41(), this.int_0 - 10, 6, this.int_0 - 30, 6);
        GClass1.smethod_42(graphics, GClass1.smethod_41(), this.int_0 - 10, 12, this.int_0 - 30, 12);
        GClass1.smethod_42(graphics, GClass1.smethod_41(), this.int_0 - 10, 18, this.int_0 - 30, 18);
        graphics.DrawString(GClass1.smethod_43(this), GClass1.smethod_44(this), GClass1.smethod_18(), new Point(4, 6), GClass6.stringFormat_0);
        graphics.Dispose();
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
        e.Graphics.DrawImageUnscaled(bitmap, 0, 0);
        bitmap.Dispose();
    }
Beispiel #5
0
    public void imethod_7(string string_1, ushort ushort_0)
    {
        GClass1         body       = new GClass1(ushort_0);
        IMessageHandler interface2 = this.interface9_0.imethod_4 <GClass1>(this.string_0, this.p2PSessionMessageTypeRoom_0.Help4UDP_PMTUTestAck, body, string_1);

        this.interface31_0.imethod_3(interface2, null);
    }
Beispiel #6
0
    // Token: 0x060003BC RID: 956 RVA: 0x0103A260 File Offset: 0x01038460
    public void method_0()
    {
        string   text    = string.Format("\\\\{0}\\pipe\\{1}", ".", "IHMPipe");
        IntPtr   intPtr  = IntPtr.Zero;
        GStruct1 gstruct = default(GStruct1);
        GStruct0 structure;

        GClass2.InitializeSecurityDescriptor(out structure, 1);
        GClass2.SetSecurityDescriptorDacl(ref structure, true, IntPtr.Zero, false);
        gstruct.intptr_0 = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(GStruct0)));
        Marshal.StructureToPtr <GStruct0>(structure, gstruct.intptr_0, false);
        gstruct.bool_0 = false;
        gstruct.int_0  = Marshal.SizeOf(typeof(GStruct1));
        intPtr         = Marshal.AllocHGlobal(gstruct.int_0);
        Marshal.StructureToPtr <GStruct1>(gstruct, intPtr, false);
        IntPtr intptr_ = GClass1.CreateNamedPipe(text, GEnum3.PIPE_ACCESS_DUPLEX, (GEnum4)6u, 255u, 4096u, 4096u, 0u, intPtr);

        if (intptr_.ToInt32() == -1)
        {
            Console.WriteLine("Unable to create named pipe {0} w/err 0x{1:X}", text, GClass1.GetLastError());
            return;
        }
        Console.WriteLine("The named pipe, {0}, is created.", text);
        Console.WriteLine("Waiting for the client's connection...");
        if (!GClass1.ConnectNamedPipe(intptr_, IntPtr.Zero) && (ulong)GClass1.GetLastError() != 535UL)
        {
            Console.WriteLine("Error occurred while connecting to the client: 0x{0:X}", GClass1.GetLastError());
            GClass1.CloseHandle(intptr_);
            return;
        }
        for (;;)
        {
            byte[] array = new byte[4096];
            uint   num;
            if (!GClass1.ReadFile(intptr_, array, 4096u, out num, IntPtr.Zero))
            {
                goto IL_12A;
            }
            if (num == 0u)
            {
                goto IL_12A;
            }
IL_134:
            string text2 = Encoding.Default.GetString(array).TrimEnd(new char[1]);
            Console.WriteLine("Receives {0} bytes; Message: \"{1}\"", num, text2);
            if (!(text2 == "why are you gao\nlol\t\r\n"))
            {
                continue;
            }
            break;
IL_12A:
            Console.WriteLine("Read Failed or Finished!");
            goto IL_134;
        }
        Class17.bool_0 = true;
        GClass1.FlushFileBuffers(intptr_);
        GClass1.DisconnectNamedPipe(intptr_);
        GClass1.CloseHandle(intptr_);
    }
Beispiel #7
0
    // Token: 0x06000135 RID: 309 RVA: 0x00007154 File Offset: 0x00005354
    private void method_2(object object_0)
    {
        bool      flag       = (bool)object_0;
        Stopwatch stopwatch  = new Stopwatch();
        Stopwatch stopwatch2 = new Stopwatch();
        Stopwatch stopwatch3 = new Stopwatch();
        Stopwatch stopwatch_ = new Stopwatch();

        try
        {
            Thread.Sleep(10);
            while (this.bool_0)
            {
                try
                {
                    stopwatch2.Reset();
                    stopwatch.Reset();
                    stopwatch3.Reset();
                    stopwatch2.Start();
                    stopwatch3.Start();
                    if (flag)
                    {
                        GClass1.smethod_2(this.gclass7_0.Int32_0);
                        ValueTuple <ValueTuple <int, int, int, int, int, int, int, ValueTuple <int> >, long> valueTuple = this.gclass15_0.method_0(this.settings_0.DebugMode);
                        this.method_9(< Module >.smethod_6 <string>(2564884211u) + valueTuple.Item2.ToString() + < Module >.smethod_8 <string>(2166202289u));
                        this.gclass14_0.method_0(this.gclass7_0.Int32_0);
                        this.method_6(stopwatch, valueTuple.Item1, stopwatch2);
                        if (this.method_7(stopwatch_, valueTuple.Item1))
                        {
                            continue;
                        }
                        this.method_8(valueTuple.Item1, stopwatch, stopwatch2);
                    }
                    else
                    {
                        stopwatch2.Stop();
                        this.keyboardSimulator_0.KeyPress(121);
                        stopwatch.Start();
                    }
                    GClass8 gclass8_ = this.gclass7_0.GClass8_0;
                    stopwatch.Stop();
                    long num = this.method_4(gclass8_, (int)stopwatch.ElapsedMilliseconds);
                    this.method_9(< Module >.smethod_8 <string>(3718370795u) + gclass8_.Int32_0.ToString() + < Module >.smethod_6 <string>(666351105u));
                    this.method_9(< Module >.smethod_7 <string>(3406421762u) + (num + stopwatch.ElapsedMilliseconds).ToString() + < Module >.smethod_7 <string>(1313282621u));
                    this.mouseSimulator_0.RightButtonClick();
                    this.method_9(< Module >.smethod_7 <string>(3623799790u) + stopwatch2.ElapsedMilliseconds.ToString());
                    long num2 = this.method_5(gclass8_, stopwatch2, stopwatch3);
                    this.method_9(< Module >.smethod_8 <string>(4185924635u) + num2.ToString());
                    stopwatch3.Stop();
                    this.method_9(string.Concat(new string[]
                    {
                        < Module >.smethod_5 <string>(3394515951u),
                        (gclass8_.Int32_1 + gclass8_.Int32_0).ToString(),
                        <Module> .smethod_5 <string>(2301657760u),
                        stopwatch3.ElapsedMilliseconds.ToString(),
                        <Module> .smethod_5 <string>(387403200u)
                    }));
                }
 // Token: 0x06000168 RID: 360 RVA: 0x00002EEE File Offset: 0x000010EE
 public void method_30()
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_0 = "Default Sort Filter";
     GClass1.smethod_7(this.gclass2_0);
 }
 // Token: 0x0600015A RID: 346 RVA: 0x00002E50 File Offset: 0x00001050
 public void method_22()
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_0 = "In Menus: Main Menu";
     GClass1.smethod_6(this.gclass2_0);
 }
 // Token: 0x06000146 RID: 326 RVA: 0x00002D63 File Offset: 0x00000F63
 public void method_13()
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_0 = "These folders either have no valid metadata file (song.ini), or the metadata does not include a valid song name!";
     GClass1.smethod_8(this.gclass2_0);
 }
 // Token: 0x0600013A RID: 314 RVA: 0x00002CEE File Offset: 0x00000EEE
 public void method_5()
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_0 = "savewarning";
     GClass1.smethod_40(this.gclass2_0);
 }
 // Token: 0x0600017A RID: 378 RVA: 0x00002F8C File Offset: 0x0000118C
 public void method_40()
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_0 = "In Menus: Stats";
     GClass1.smethod_13(this.gclass2_0);
 }
Beispiel #13
0
 // Token: 0x060000FC RID: 252 RVA: 0x000027E2 File Offset: 0x000009E2
 protected virtual void OnDrawItem(DrawItemEventArgs e)
 {
     base.OnDrawItem(e);
     GClass1.smethod_0(this);
     if ((GClass1.smethod_2(e) & DrawItemState.Selected) == DrawItemState.Selected)
     {
         GClass1.smethod_0(this);
     }
 }
 // Token: 0x06000183 RID: 387 RVA: 0x00002FE8 File Offset: 0x000011E8
 public void method_46()
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_0 = "Animated";
     GClass1.smethod_22(this.gclass2_0);
 }
 // Token: 0x06000133 RID: 307 RVA: 0x0001BBD8 File Offset: 0x00019DD8
 public void method_1(int int_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "game";
     this.gclass2_0.string_0 = int_0 + "6 Fret Lead Guitar";
     GClass1.smethod_16(this.gclass2_0);
 }
 // Token: 0x06000176 RID: 374 RVA: 0x0001CE84 File Offset: 0x0001B084
 public void method_38(int int_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "isHidden";
     this.gclass2_0.string_0 = int_0 + "full_playlist";
     GClass1.smethod_20(this.gclass2_0);
 }
 // Token: 0x0600016F RID: 367 RVA: 0x0001CBD8 File Offset: 0x0001ADD8
 public void method_33(int int_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "In Menus: Stats";
     this.gclass2_0.string_0 = int_0 + " Stars Earned";
     GClass1.smethod_6(this.gclass2_0);
 }
 // Token: 0x06000140 RID: 320 RVA: 0x0001C228 File Offset: 0x0001A428
 public void method_9(int int_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "offsets";
     this.gclass2_0.string_0 = int_0 + "</color> ";
     GClass1.smethod_11(this.gclass2_0);
 }
 // Token: 0x06000156 RID: 342 RVA: 0x0001C8D0 File Offset: 0x0001AAD0
 public void method_21(int int_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "Track Mute";
     this.gclass2_0.string_0 = int_0 + "Expert";
     GClass1.smethod_36(this.gclass2_0);
 }
 // Token: 0x06000148 RID: 328 RVA: 0x0001C510 File Offset: 0x0001A710
 public void method_14(int int_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "debug_fps";
     this.gclass2_0.string_0 = int_0 + "Don't Scan Songs";
     GClass1.smethod_4(this.gclass2_0);
 }
 // Token: 0x06000167 RID: 359 RVA: 0x0001CB34 File Offset: 0x0001AD34
 public void method_29(int int_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = " ";
     this.gclass2_0.string_0 = int_0 + "Background Video";
     GClass1.smethod_3(this.gclass2_0);
 }
 // Token: 0x06000174 RID: 372 RVA: 0x0001CDE0 File Offset: 0x0001AFE0
 public void method_36(int int_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "%y";
     this.gclass2_0.string_0 = int_0 + "B: ";
     GClass1.smethod_28(this.gclass2_0);
 }
 // Token: 0x06000179 RID: 377 RVA: 0x0001CED0 File Offset: 0x0001B0D0
 public void method_39(SongEntry songEntry_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "volume";
     this.gclass2_0.string_0 = songEntry_0.artistName + "+" + songEntry_0.songName;
     this.method_53();
     GClass1.smethod_14(this.gclass2_0);
 }
Beispiel #24
0
 // Token: 0x06000134 RID: 308 RVA: 0x00007108 File Offset: 0x00005308
 public void method_1()
 {
     if (this.thread_0 != null && this.gclass7_0.Thread_0 != null)
     {
         GClass1.smethod_1();
         this.bool_0 = false;
         this.gclass7_0.method_2();
         this.thread_0.Interrupt();
         return;
     }
 }
 // Token: 0x06000175 RID: 373 RVA: 0x0001CE2C File Offset: 0x0001B02C
 public void method_37(SongEntry songEntry_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "Songs Scanned";
     this.gclass2_0.string_0 = songEntry_0.artistName + "No Part" + songEntry_0.songName;
     this.method_50();
     GClass1.smethod_12(this.gclass2_0);
 }
 // Token: 0x06000166 RID: 358 RVA: 0x0001CADC File Offset: 0x0001ACDC
 public void method_28(SongEntry songEntry_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "Highway SP Effects";
     this.gclass2_0.string_0 = songEntry_0.artistName + "Disabled" + songEntry_0.songName;
     this.method_34();
     GClass1.smethod_33(this.gclass2_0);
 }
 // Token: 0x0600016A RID: 362 RVA: 0x0001CB80 File Offset: 0x0001AD80
 public void method_31(SongEntry songEntry_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "In Menus: Song Select";
     this.gclass2_0.string_0 = songEntry_0.artistName + " - " + songEntry_0.songName;
     this.method_34();
     GClass1.smethod_6(this.gclass2_0);
 }
 // Token: 0x06000181 RID: 385 RVA: 0x0001D034 File Offset: 0x0001B234
 private void method_45()
 {
     this.gstruct0_0 = default(GClass1.GStruct0);
     this.gstruct0_0.gdelegate0_0 = new GClass1.GDelegate0(DiscordController.smethod_12);
     this.gstruct0_0.gdelegate1_0 = (GClass1.GDelegate1)Delegate.Combine(this.gstruct0_0.gdelegate1_0, new GClass1.GDelegate1(DiscordController.smethod_22));
     this.gstruct0_0.gdelegate2_0 = (GClass1.GDelegate2)Delegate.Combine(this.gstruct0_0.gdelegate2_0, new GClass1.GDelegate2(DiscordController.smethod_16));
     GClass1.Discord_Initialize(this.string_0, ref this.gstruct0_0, true, null);
     this.gclass2_0.string_2 = "notes.chart";
     this.gclass2_0.string_3 = "video";
     DiscordController.discordController_0 = this;
 }
 // Token: 0x06000180 RID: 384 RVA: 0x0001CF80 File Offset: 0x0001B180
 private void method_44()
 {
     this.gstruct0_0 = default(GClass1.GStruct0);
     this.gstruct0_0.gdelegate0_0 = new GClass1.GDelegate0(DiscordController.smethod_12);
     this.gstruct0_0.gdelegate1_0 = (GClass1.GDelegate1)Delegate.Combine(this.gstruct0_0.gdelegate1_0, new GClass1.GDelegate1(DiscordController.smethod_30));
     this.gstruct0_0.gdelegate2_0 = (GClass1.GDelegate2)Delegate.Combine(this.gstruct0_0.gdelegate2_0, new GClass1.GDelegate2(DiscordController.smethod_34));
     GClass1.Discord_Initialize(this.string_0, ref this.gstruct0_0, false, null);
     this.gclass2_0.string_2 = "Easy";
     this.gclass2_0.string_3 = "All Strums";
     DiscordController.discordController_0 = this;
 }
 // Token: 0x0600017E RID: 382 RVA: 0x0001CF28 File Offset: 0x0001B128
 public void method_42(SongEntry songEntry_0)
 {
     if (!base.enabled)
     {
         return;
     }
     this.gclass2_0.string_1 = "Gameplay";
     this.gclass2_0.string_0 = songEntry_0.artistName + "setlistSongCountSingular" + songEntry_0.songName;
     this.method_0();
     GClass1.smethod_4(this.gclass2_0);
 }