Esempio n. 1
0
 // Token: 0x06001E6C RID: 7788 RVA: 0x0000BA60 File Offset: 0x00009C60
 protected override void vmethod_2(BinaryReader reader, int version)
 {
     this.Username            = reader.ReadString();
     this.Password            = reader.ReadString();
     this.ReferenceName       = reader.ReadString();
     this.ToonTownAccountType = (Enum101)reader.ReadInt16();
 }
Esempio n. 2
0
 // Token: 0x06001E6A RID: 7786 RVA: 0x0000BA3B File Offset: 0x00009C3B
 public Class91(string referenceName, string username, string password, Enum101 type)
 {
     this.ReferenceName       = referenceName;
     this.Username            = username;
     this.Password            = password;
     this.ToonTownAccountType = type;
 }
Esempio n. 3
0
 // Token: 0x060028CA RID: 10442 RVA: 0x00012A70 File Offset: 0x00010C70
 private Class142(Process p, Enum101 serverType, string username, bool isOpen = true) : this(serverType, username)
 {
     if (p == null)
     {
         throw new ArgumentNullException("p");
     }
     this.ToonTownProcess = new Class141(p, true, isOpen);
     this.ToonTownProcess.ProcessExited += this.method_7;
 }
Esempio n. 4
0
 // Token: 0x060028CC RID: 10444 RVA: 0x00099D8C File Offset: 0x00097F8C
 private Class142(Enum101 serverType, string username)
 {
     this.list_3     = new List <Class309>();
     this.ServerType = serverType;
     this.Username   = username;
     this.Playground = Enum57.const_0;
     lock (((ICollection)Class142.list_1).SyncRoot)
     {
         Class142.list_1.Add(this);
     }
 }
 // Token: 0x06001999 RID: 6553 RVA: 0x00046448 File Offset: 0x00044648
 public Installing(Class96 patchData, Enum101 type, string username, Dictionary <string, string> variables)
 {
     this.object_0        = new object();
     this.InstallerResult = Enum42.const_0;
     this.class96_0       = patchData;
     this.string_20       = username;
     this.dictionary_0    = variables;
     this.ServerType      = type;
     this.InitializeComponent();
     base.FormClosing += this.Installing_FormClosing;
 }
Esempio n. 6
0
 // Token: 0x060028A2 RID: 10402 RVA: 0x000997D0 File Offset: 0x000979D0
 public static bool smethod_1(Enum101 type, string username)
 {
     lock (((ICollection)Class142.list_1).SyncRoot)
     {
         foreach (Class142 @class in Class142.list_1)
         {
             if (@class.ServerType == type && @class.Username == username)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Esempio n. 7
0
        // Token: 0x060028C9 RID: 10441 RVA: 0x00099D58 File Offset: 0x00097F58
        public static Class142 smethod_9(IntPtr hWnd, Enum101 serverType, string username)
        {
            Class142 result;

            try
            {
                result = new Class142(hWnd, serverType, username);
            }
            catch (Exception ex)
            {
                ex.smethod_0();
                result = null;
            }
            return(result);
        }
Esempio n. 8
0
        public static Class142 smethod_8(Process p, Enum101 serverType, string username, bool isOpen = true)
        {
            Class142 result;

            try
            {
                p.EnableRaisingEvents = true;
                result = new Class142(p, serverType, username, isOpen);
            }
            catch (Exception ex)
            {
                ex.smethod_0();
                result = null;
            }
            return(result);
        }
Esempio n. 9
0
 // Token: 0x06002B40 RID: 11072 RVA: 0x000A7BF4 File Offset: 0x000A5DF4
 public Class147(Enum101 type, string username, string password)
 {
     type.smethod_0();
     if (string.IsNullOrEmpty(username))
     {
         throw new ArgumentNullException("username");
     }
     if (string.IsNullOrEmpty(password))
     {
         throw new ArgumentNullException("password");
     }
     this.memoryStream_0            = new MemoryStream();
     this.enum101_0                 = type;
     this.string_0                  = username;
     this.string_1                  = password;
     this.cancellationTokenSource_0 = new CancellationTokenSource();
 }
        public static bool smethod_0(Enum101 type, string username, Dictionary <string, string> variables, out Class142 toontownWindow)
        {
            toontownWindow = null;
            Process process = null;
            bool    result;

            try
            {
                Class96 @class;
                switch (type)
                {
                case Enum101.const_1:
                {
                    Class99 connectSettings = Class110.Instance.ConnectSettings;
                    if (connectSettings.SpoofedToonTownEnabled)
                    {
                        @class = Class110.Instance.ConnectSettings.SpoofedToonTownVersionData;
                        Class80.smethod_1(Class80.string_0, connectSettings.PatchServer.PANDA_DOWNLOAD_URL);
                    }
                    else
                    {
                        @class = Class110.Instance.ConnectSettings.ActualToonTownVersionData;
                        Class80.smethod_1(Class80.string_0, @class.Properties.PANDA_DOWNLOAD_URL);
                    }
                    Class80.smethod_1(Class80.string_1, Class80.string_19);
                    Class80.smethod_1(Class80.string_2, Class80.string_25);
                    break;
                }

                case Enum101.const_2:
                    @class = Class110.Instance.ConnectSettings.ActualTestToonTownVersionData;
                    Class80.smethod_1(Class80.string_0, @class.Properties.PANDA_DOWNLOAD_URL);
                    Class80.smethod_1(Class80.string_1, Class80.string_20);
                    Class80.smethod_1(Class80.string_2, Class80.string_24);
                    break;

                default:
                    throw new NotSupportedException(Class80.string_3);
                }
                Class80.smethod_1(Class80.string_4, string.Empty);
                Class80.smethod_1(Class80.string_5, string.Empty);
                Class80.smethod_1(Class80.string_6, Class80.string_22);
                Class80.smethod_1(Class80.string_7, Class80.string_23);
                Class80.smethod_1(Class80.string_8, string.Empty);
                Class80.smethod_1(Class80.string_9, Class80.string_21);
                Class80.smethod_1(Class80.string_10, @class.Properties.GAME_VERSION_TEXT);
                Class80.smethod_1(Class80.string_11, @class.Properties.GAME_SERVER);
                Class80.smethod_1(Class80.string_12, @class.Properties.ACCOUNT_SERVER);
                string key = Class80.string_13;
                if (Class80.action_0 == null)
                {
                    Class80.action_0 = new Action <KeyValuePair <string, string> >(Class80.smethod_2);
                }
                variables.smethod_5(key, Class80.action_0);
                string key2 = Class80.string_14;
                if (Class80.action_1 == null)
                {
                    Class80.action_1 = new Action <KeyValuePair <string, string> >(Class80.smethod_3);
                }
                variables.smethod_5(key2, Class80.action_1);
                string key3 = Class80.string_15;
                if (Class80.action_2 == null)
                {
                    Class80.action_2 = new Action <KeyValuePair <string, string> >(Class80.smethod_4);
                }
                variables.smethod_5(key3, Class80.action_2);
                string key4 = Class80.string_16;
                if (Class80.action_3 == null)
                {
                    Class80.action_3 = new Action <KeyValuePair <string, string> >(Class80.smethod_5);
                }
                variables.smethod_5(key4, Class80.action_3);
                string key5 = Class80.string_17;
                if (Class80.action_4 == null)
                {
                    Class80.action_4 = new Action <KeyValuePair <string, string> >(Class80.smethod_6);
                }
                variables.smethod_5(key5, Class80.action_4);
                process = new Process();
                process.EnableRaisingEvents = true;
                ProcessStartInfo processStartInfo = new ProcessStartInfo();
                switch (type)
                {
                default:
                    processStartInfo.WorkingDirectory = Class291.ToonTownOpenDataDirectory;
                    processStartInfo.FileName         = Path.Combine(Class291.ToonTownOpenDataDirectory, Class502.string_8);
                    break;

                case Enum101.const_2:
                    processStartInfo.WorkingDirectory = Class291.ToonTownTestDataDirectory;
                    processStartInfo.FileName         = Path.Combine(Class291.ToonTownTestDataDirectory, Class502.string_8);
                    break;
                }
                processStartInfo.CreateNoWindow  = true;
                processStartInfo.WindowStyle     = ProcessWindowStyle.Hidden;
                processStartInfo.Arguments       = string.Empty;
                processStartInfo.UseShellExecute = true;
                process.StartInfo = processStartInfo;
                toontownWindow    = Class142.smethod_8(process, type, username, false);
                process.Start();
                result = true;
            }
            catch (Exception ex)
            {
                if (process != null)
                {
                    process.Dispose();
                }
                ex.smethod_0();
                result = false;
            }
            return(result);
        }
Esempio n. 11
0
 // Token: 0x060028CB RID: 10443 RVA: 0x00012AAE File Offset: 0x00010CAE
 private Class142(IntPtr hWnd, Enum101 serverType, string username) : this(serverType, username)
 {
     this.ToonTownProcess = new Class141();
     this.ToonTownProcess.ProcessExited   += this.method_7;
     this.ToonTownProcess.MainWindowHandle = hWnd;
 }