clean out more sharpdevelop stuff and canihazip

This commit is contained in:
Quacky 2017-08-06 19:44:51 -05:00
parent 3962d13767
commit f10d2ccbad
18 changed files with 19 additions and 229 deletions

View File

@ -2,14 +2,7 @@ namespace RBXLegacyLauncher
{
partial class CharacterCustomization
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
@ -20,12 +13,6 @@ namespace RBXLegacyLauncher
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CharacterCustomization));

View File

@ -12,9 +12,6 @@ using System.Text.RegularExpressions;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of CharacterCustomization.
/// </summary>
public partial class CharacterCustomization : Form
{
public static string SelectedPart = "Head";
@ -22,9 +19,6 @@ namespace RBXLegacyLauncher
public CharacterCustomization()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
LauncherFuncs.ReadClientValuesBCC(GlobalVars.SelectedClient);
if (GlobalVars.SelectedClientVersion < 6)
@ -175,7 +169,7 @@ namespace RBXLegacyLauncher
{
if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage1"])
{
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])//your specific tabname
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])
{
string partdir;
if (SelectedPart == "Head")
@ -327,7 +321,7 @@ namespace RBXLegacyLauncher
listBox3.Items.Clear();
listBox4.Items.Clear();
}
else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])//your specific tabname
else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])
{
string facedir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\faces";
if (Directory.Exists(facedir))
@ -354,7 +348,7 @@ namespace RBXLegacyLauncher
listBox3.Items.Clear();
listBox5.Items.Clear();
}
else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage3"])//your specific tabname
else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage3"])
{
string hatdir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\hats";
if (Directory.Exists(hatdir))
@ -406,7 +400,7 @@ namespace RBXLegacyLauncher
void tabControl2_SelectedIndexChanged(object sender, EventArgs e)
{
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])//your specific tabname
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])
{
string partdir;
if (SelectedPart == "Head")
@ -1209,7 +1203,7 @@ namespace RBXLegacyLauncher
{
SelectedPart = "Head";
PartSelectionLabel2.Text = SelectedPart;
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])//your specific tabname
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])
{
string partdir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\heads";
if (Directory.Exists(partdir))
@ -1239,7 +1233,7 @@ namespace RBXLegacyLauncher
SelectedPart = "Torso";
PartSelectionLabel2.Text = SelectedPart;
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])//your specific tabname
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])
{
string partdir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\bodies\\2";
if (Directory.Exists(partdir))
@ -1269,7 +1263,7 @@ namespace RBXLegacyLauncher
SelectedPart = "Right Arm";
PartSelectionLabel2.Text = SelectedPart;
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])//your specific tabname
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])
{
string partdir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\bodies\\3";
if (Directory.Exists(partdir))
@ -1299,7 +1293,7 @@ namespace RBXLegacyLauncher
SelectedPart = "Left Arm";
PartSelectionLabel2.Text = SelectedPart;
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])//your specific tabname
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])
{
string partdir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\bodies\\4";
if (Directory.Exists(partdir))
@ -1329,7 +1323,7 @@ namespace RBXLegacyLauncher
SelectedPart = "Right Leg";
PartSelectionLabel2.Text = SelectedPart;
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])//your specific tabname
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])
{
string partdir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\bodies\\5";
if (Directory.Exists(partdir))
@ -1359,7 +1353,7 @@ namespace RBXLegacyLauncher
SelectedPart = "Left Leg";
PartSelectionLabel2.Text = SelectedPart;
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])//your specific tabname
if (tabControl2.SelectedTab == tabControl2.TabPages["tabPage6"])
{
string partdir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\charcustom\\bodies\\6";
if (Directory.Exists(partdir))

View File

@ -1,42 +1,24 @@
using System;
using System.Security.Cryptography;
///<summary>
/// Represents a pseudo-random number generator, a device that produces random data.
///</summary>
class CryptoRandom : RandomNumberGenerator
{
private static RandomNumberGenerator r;
///<summary>
/// Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.
///</summary>
public CryptoRandom()
{
r = RandomNumberGenerator.Create();
}
///<summary>
/// Fills the elements of a specified array of bytes with random numbers.
///</summary>
///<param name=”buffer”>An array of bytes to contain random numbers.</param>
public override void GetBytes(byte[] buffer)
{
r.GetBytes(buffer);
}
///
/// Fills an array of bytes with a cryptographically strong random sequence of nonzero values.
///
/// The array to fill with cryptographically strong random nonzero bytes
public override void GetNonZeroBytes(byte[] data)
{
r.GetNonZeroBytes(data);
}
///<summary>
/// Returns a random number between 0.0 and 1.0.
///</summary>
public double NextDouble()
{
byte[] b = new byte[4];
@ -44,27 +26,17 @@ class CryptoRandom : RandomNumberGenerator
return (double)BitConverter.ToUInt32(b, 0) / UInt32.MaxValue;
}
///<summary>
/// Returns a random number within the specified range.
///</summary>
///<param name=”minValue”>The inclusive lower bound of the random number returned.</param>
///<param name=”maxValue”>The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.</param>
public int Next(int minValue, int maxValue)
{
return (int)Math.Round(NextDouble() * (maxValue - minValue - 1)) + minValue;
}
///<summary>
/// Returns a nonnegative random number.
///</summary>
public int Next()
{
return Next(0, Int32.MaxValue);
}
///<summary>
/// Returns a nonnegative random number less than the specified maximum
///</summary>
///<param name=”maxValue”>The inclusive upper bound of the random number returned. maxValue must be greater than or equal 0</param>
public int Next(int maxValue)
{

View File

@ -2,14 +2,7 @@
{
partial class DocForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
@ -20,12 +13,6 @@
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DocForm));

View File

@ -4,21 +4,11 @@ using System.Windows.Forms;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of DocForm.
/// </summary>
public partial class DocForm : Form
{
public DocForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
}
}

View File

@ -11,9 +11,6 @@ using System.Text;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of LauncherFuncs.
/// </summary>
public class LauncherFuncs
{
public LauncherFuncs()

View File

@ -2,14 +2,7 @@
{
partial class LoaderForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
@ -20,12 +13,6 @@
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LoaderForm));

View File

@ -11,21 +11,11 @@ using System.Text.RegularExpressions;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of LoaderForm.
/// </summary>
public partial class LoaderForm : Form
{
public LoaderForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void LoaderFormLoad(object sender, EventArgs e)

View File

@ -1,23 +1,8 @@
/*
* Created by SharpDevelop.
* User: BITL-Gaming
* Date: 10/7/2016
* Time: 3:01 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
namespace RBXLegacyLauncher
namespace RBXLegacyLauncher
{
partial class MainForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
@ -28,12 +13,6 @@ namespace RBXLegacyLauncher
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));

View File

@ -1,11 +1,3 @@
/*
* Created by SharpDevelop.
* User: BITL-Gaming
* Date: 10/7/2016
* Time: 3:01 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
@ -20,25 +12,15 @@ using System.Text.RegularExpressions;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class MainForm : Form
{
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])//your specific tabname
if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])
{
string mapdir = GlobalVars.MapsDir;
DirectoryInfo dinfo = new DirectoryInfo(mapdir);
@ -52,7 +34,7 @@ namespace RBXLegacyLauncher
listBox3.Items.Clear();
listBox4.Items.Clear();
}
else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage3"])//your specific tabname
else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage3"])
{
string clientdir = GlobalVars.ClientDir;
DirectoryInfo dinfo = new DirectoryInfo(clientdir);
@ -66,7 +48,7 @@ namespace RBXLegacyLauncher
listBox3.Items.Clear();
listBox4.Items.Clear();
}
else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage6"])//your specific tabname
else if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage6"])
{
string[] lines_server = File.ReadAllLines("servers.txt");
string[] lines_ports = File.ReadAllLines("ports.txt");

View File

@ -3,19 +3,12 @@ using System.Windows.Forms;
namespace RBXLegacyLauncher
{
/// <summary>
/// Class with program entry point.
/// </summary>
internal sealed class Program
{
static string ProcessInput(string s)
{
return s;
}
/// <summary>
/// Program entry point.
/// </summary>
[STAThread]
private static void Main(string[] args)
{

View File

@ -6,9 +6,6 @@ using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RBXLegacyLauncher")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
@ -17,15 +14,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCopyright("Copyright 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]

View File

@ -9,21 +9,11 @@ using System.IO;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of QuickConfigure.
/// </summary>
public partial class QuickConfigure : Form
{
public QuickConfigure()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void QuickConfigureLoad(object sender, EventArgs e)

View File

@ -2,14 +2,9 @@
{
partial class SDKForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
@ -21,11 +16,7 @@
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SDKForm));

View File

@ -7,21 +7,11 @@ using System.Threading;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of SDKForm.
/// </summary>
public partial class SDKForm : Form
{
public SDKForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
// clientinfo

View File

@ -10,9 +10,6 @@ using Microsoft.Win32;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of SecurityFuncs.
/// </summary>
public class SecurityFuncs
{
public SecurityFuncs()

View File

@ -1,15 +1,8 @@
namespace RBXLegacyLauncher
{
partial class ServerInfo
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
{>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
@ -20,12 +13,6 @@
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServerInfo));

View File

@ -5,21 +5,11 @@ using System.Net;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of ServerInfo.
/// </summary>
public partial class ServerInfo : Form
{
public ServerInfo()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void ServerInfoLoad(object sender, EventArgs e)
@ -64,7 +54,7 @@ namespace RBXLegacyLauncher
{
try
{
ipAddress = wc.DownloadString("http://icanhazip.com/");
ipAddress = wc.DownloadString("http://canihazip.com/s");
}
catch (Exception)
{