Exemplo n.º 1
0
 // Token: 0x060061D8 RID: 25048 RVA: 0x002286D0 File Offset: 0x00226AD0
 public void ReadCommandLine()
 {
     string[] commandLineArgs = Environment.GetCommandLineArgs();
     this.DebugFlags.Clear();
     Debug.Log("Launching with args: " + commandLineArgs.Length);
     foreach (string text in commandLineArgs)
     {
         Debug.Log("Arg: " + text);
         if (text.StartsWith("vrchat://"))
         {
             this.Url = text;
         }
         else if (text.StartsWith("--url="))
         {
             this.Url = text.Split(new char[]
             {
                 '='
             }, 2)[1];
         }
         else if (text.StartsWith("--api="))
         {
             ApiModel.SetApiUrl(text.Split(new char[]
             {
                 '='
             }, 2)[1]);
         }
         else if (text.StartsWith("--photon="))
         {
             VRCApplicationSetup.Instance.gameServerVersionOverride = text.Split(new char[]
             {
                 '='
             }, 2)[1];
         }
         else if (text.CompareTo("--no-vr") == 0)
         {
             this.DisableVR = true;
         }
         else if (text.CompareTo("--debug-fake-public-ban") == 0)
         {
             this.DebugFlags.Add(VRCFlowCommandLine.DebugFlag.SimulatePublicBan);
         }
         else if (text.CompareTo("--debug-fake-load-error") == 0)
         {
             this.DebugFlags.Add(VRCFlowCommandLine.DebugFlag.SimulateRoomLoadError);
         }
     }
     this.LoadSavedUrl();
     this.ParseUrl(this.Url);
 }