コード例 #1
0
        void ReadConfigValues(string cfgpath)
        {
            LauncherFuncs.ReadConfigValues(cfgpath);

            if (GlobalVars.UserID == 0)
            {
                GeneratePlayerID();
                LauncherFuncs.WriteConfigValues(cfgpath);
            }
            else
            {
                textBox2.Text = GlobalVars.UserID.ToString();
            }

            textBox1.Text = GlobalVars.PlayerName;
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: AndrewChief/RBXLegacy-src
		void ReadConfigValues()
		{
			LauncherFuncs.ReadConfigValues("rbxlegacy_config.txt");
			
			if (GlobalVars.CloseOnLaunch == true)
			{
				checkBox1.Checked = true;
			}
			else if (GlobalVars.CloseOnLaunch == false)
			{
				checkBox1.Checked = false;
			}
			
			if (GlobalVars.UserID == 0)
			{
				GeneratePlayerID();
				WriteConfigValues();
			}
			else
			{
				textBox5.Text = GlobalVars.UserID.ToString();
			}
			
			if (GlobalVars.PlayerLimit == 0)
			{
				//We need at least a limit of 12 players.
				GlobalVars.PlayerLimit = 12;
			}
			
			textBox2.Text = GlobalVars.PlayerName;
			label26.Text = GlobalVars.SelectedClient;
			label28.Text = GlobalVars.Map;
			listBox1.SelectedItem = GlobalVars.Map;
			numericUpDown1.Text = GlobalVars.RobloxPort.ToString();
			label37.Text = GlobalVars.IP;
			label38.Text = GlobalVars.RobloxPort.ToString();
			ConsolePrint("Configuration has been loaded.", 3);
			ReadServerPrefs();
			ReadClientValues(GlobalVars.SelectedClient);
		}
コード例 #3
0
 void ReadConfigValues()
 {
     LauncherFuncs.ReadConfigValues(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\rbxlegacy_config.txt");
 }