Ejemplo n.º 1
0
 private void method_1(object sender, EventArgs e)
 {
     if (PErkava.IsSupported)
     {
         PErkava.smethod_3();
     }
 }
Ejemplo n.º 2
0
 private void method_8(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.NewItems == null)
     {
         return;
     }
     foreach (object obj in e.NewItems)
     {
         GClass871 gclass = (GClass871)obj;
         PErkava.smethod_0()[int.Parse(gclass.Context.Account.UserId)] = gclass.Context;
     }
 }
Ejemplo n.º 3
0
    public GClass5()
    {
        GClass5.smethod_0();
        this.logger_0 = LogManager.GetLogger("DOPE");
        this.logger_0.Info("Loading DOPE {arch} {version} on {architecture} ({os})", new object[]
        {
            GClass927.smethod_1() ? "x86" : "x64",
            Constants.VersionString,
            Environment.Is64BitOperatingSystem ? "x64" : "x86",
            Environment.OSVersion.VersionString
        });
        AppDomain.CurrentDomain.FirstChanceException += this.method_0;
        AppDomain.CurrentDomain.UnhandledException   += this.method_2;
        base.ShutdownMode = ShutdownMode.OnMainWindowClose;
        GClass82.smethod_2();
        bool flag;

        using (WindowsIdentity current = WindowsIdentity.GetCurrent())
        {
            flag = new WindowsPrincipal(current).IsInRole(WindowsBuiltInRole.Administrator);
        }
        PErkava.IsSupported = flag;
        try
        {
            PErkava.smethod_3();
        }
        catch
        {
            PErkava.IsSupported = false;
        }
        if (flag && PErkava.IsSupported)
        {
            try
            {
                GClass933 gclass = new GClass933();
                gclass.Start();
                PErkava.Host = gclass;
            }
            catch
            {
            }
        }
        this.logger_0.Info("PErkava support status: {status}", PErkava.IsSupported);
        if (PErkava.IsSupported)
        {
            this.logger_0.Info("Use legacy proxy: {proxy}", PErkava.smethod_2());
        }
        AppDomain.CurrentDomain.ProcessExit += this.method_1;
    }
Ejemplo n.º 4
0
    private void method_14(GClass239 gclass239_0)
    {
        this.bool_2 = false;
        IPErkavaBotController iperkavaBotController;

        if (!PErkava.smethod_0().TryGetValue(gclass239_0.int_0, out iperkavaBotController))
        {
            return;
        }
        this.gameManager_0 = iperkavaBotController.Game;
        this.gameManager_0.Settings.MapHosts = PErkava.concurrentDictionary_3[iperkavaBotController.GameServer].method_1();
        if (!iperkavaBotController.AttachPErkava(gclass239_0))
        {
            return;
        }
        this.gameManager_0.Connection.ProxySocket = this.method_0();
        this.method_12();
        this.method_16();
    }
Ejemplo n.º 5
0
 protected void method_0 <H7FaWSpP5y5EqiqU1DA>(ref H7FaWSpP5y5EqiqU1DA gparam_0, H7FaWSpP5y5EqiqU1DA KisVGDpEZdTG16y8oM2, [CallerMemberName] string name = null)
 {
     if (!EqualityComparer <H7FaWSpP5y5EqiqU1DA> .Default.Equals(gparam_0, KisVGDpEZdTG16y8oM2))
     {
         gparam_0 = KisVGDpEZdTG16y8oM2;
         PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
         if (propertyChanged != null)
         {
             propertyChanged(this, new PropertyChangedEventArgs(name));
         }
         if (name == "Enabled")
         {
             if ((bool)((object)KisVGDpEZdTG16y8oM2))
             {
                 PErkava.smethod_5(this);
                 return;
             }
             PErkava.smethod_6(this);
         }
     }
 }
Ejemplo n.º 6
0
 protected void method_0 <ndZaklNKpVscBkILKEu>(ref ndZaklNKpVscBkILKEu gparam_0, ndZaklNKpVscBkILKEu KAA0tmNibBFg8ypKRgo, [CallerMemberName] string name = null)
 {
     if (!EqualityComparer <ndZaklNKpVscBkILKEu> .Default.Equals(gparam_0, KAA0tmNibBFg8ypKRgo))
     {
         gparam_0 = KAA0tmNibBFg8ypKRgo;
         PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
         if (propertyChanged != null)
         {
             propertyChanged(this, new PropertyChangedEventArgs(name));
         }
         if (name == "Enabled")
         {
             if ((bool)((object)KAA0tmNibBFg8ypKRgo))
             {
                 PErkava.smethod_5(this);
                 return;
             }
             PErkava.smethod_6(this);
         }
     }
 }
Ejemplo n.º 7
0
    private void method_6(GClass91 gclass91_0, ErrorReason errorReason_0, Exception exception_0)
    {
        GameManager game = this.Game;
        int?        num;

        if (game == null)
        {
            num = null;
        }
        else
        {
            Settings settings = game.Settings;
            if (settings == null)
            {
                num = null;
            }
            else
            {
                FlashSettings flashSettings = settings.FlashSettings;
                num = ((flashSettings != null) ? new int?(flashSettings.userID) : null);
            }
        }
        int?num2 = num;
        IPErkavaBotController iperkavaBotController;

        if (!PErkava.smethod_0().TryGetValue(num2 ?? -1, out iperkavaBotController))
        {
            return;
        }
        this.gameManager_0.Connection.Socket.method_5().method_1(new Action <GInterface0>(GClass82.smethod_3));
        iperkavaBotController.DetachPErkava();
        this.gclass84_0.method_1(null);
        try
        {
            this.bEyMqhdnuGd.method_8();
        }
        catch
        {
        }
    }