parent
880eea762b
commit
75f3beefb8
|
|
@ -1,239 +0,0 @@
|
|||
/*
|
||||
* Created by SharpDevelop.
|
||||
* User: BITL-Gaming
|
||||
* Date: 11/28/2016
|
||||
* Time: 7:55 AM
|
||||
*
|
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers.
|
||||
*/
|
||||
namespace RBXLegacyLauncher
|
||||
{
|
||||
partial class ClientinfoEditor
|
||||
{
|
||||
/// <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)
|
||||
{
|
||||
if (disposing) {
|
||||
if (components != null) {
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
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(ClientinfoEditor));
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.checkBox5 = new System.Windows.Forms.CheckBox();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.checkBox3 = new System.Windows.Forms.CheckBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.Location = new System.Drawing.Point(9, 34);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(307, 24);
|
||||
this.checkBox1.TabIndex = 0;
|
||||
this.checkBox1.Text = "Allows players to set custom names";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
this.checkBox1.CheckedChanged += new System.EventHandler(this.CheckBox1CheckedChanged);
|
||||
//
|
||||
// checkBox2
|
||||
//
|
||||
this.checkBox2.Location = new System.Drawing.Point(9, 53);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
this.checkBox2.Size = new System.Drawing.Size(307, 20);
|
||||
this.checkBox2.TabIndex = 1;
|
||||
this.checkBox2.Text = "Allows the launcher to set custom IDs";
|
||||
this.checkBox2.UseVisualStyleBackColor = true;
|
||||
this.checkBox2.CheckedChanged += new System.EventHandler(this.CheckBox2CheckedChanged);
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(10, 218);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(310, 155);
|
||||
this.textBox1.TabIndex = 4;
|
||||
this.textBox1.TextChanged += new System.EventHandler(this.TextBox1TextChanged);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(7, 199);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(92, 16);
|
||||
this.label1.TabIndex = 5;
|
||||
this.label1.Text = "Client Description";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Location = new System.Drawing.Point(8, 9);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(307, 30);
|
||||
this.label2.TabIndex = 6;
|
||||
this.label2.Text = "Check the check boxes corresponding to what your client supports.";
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(166, 408);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(154, 30);
|
||||
this.button1.TabIndex = 7;
|
||||
this.button1.Text = "Save";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.Button1Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(7, 408);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(150, 30);
|
||||
this.button2.TabIndex = 10;
|
||||
this.button2.Text = "Load";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.Button2Click);
|
||||
//
|
||||
// checkBox5
|
||||
//
|
||||
this.checkBox5.Location = new System.Drawing.Point(9, 71);
|
||||
this.checkBox5.Name = "checkBox5";
|
||||
this.checkBox5.Size = new System.Drawing.Size(310, 20);
|
||||
this.checkBox5.TabIndex = 11;
|
||||
this.checkBox5.Text = "Loads assets from servers online";
|
||||
this.checkBox5.UseVisualStyleBackColor = true;
|
||||
this.checkBox5.CheckedChanged += new System.EventHandler(this.CheckBox5CheckedChanged);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(7, 379);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(312, 23);
|
||||
this.button3.TabIndex = 12;
|
||||
this.button3.Text = "New clientinfo.txt";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.Button3Click);
|
||||
//
|
||||
// checkBox3
|
||||
//
|
||||
this.checkBox3.Location = new System.Drawing.Point(9, 89);
|
||||
this.checkBox3.Name = "checkBox3";
|
||||
this.checkBox3.Size = new System.Drawing.Size(175, 20);
|
||||
this.checkBox3.TabIndex = 13;
|
||||
this.checkBox3.Text = "Client uses a single EXE to run";
|
||||
this.checkBox3.UseVisualStyleBackColor = true;
|
||||
this.checkBox3.CheckedChanged += new System.EventHandler(this.CheckBox3CheckedChanged);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Location = new System.Drawing.Point(8, 112);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(65, 13);
|
||||
this.label3.TabIndex = 14;
|
||||
this.label3.Text = "Client MD5";
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(9, 128);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(311, 20);
|
||||
this.textBox2.TabIndex = 15;
|
||||
this.textBox2.TextChanged += new System.EventHandler(this.TextBox2TextChanged);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Location = new System.Drawing.Point(7, 157);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(71, 16);
|
||||
this.label4.TabIndex = 16;
|
||||
this.label4.Text = "Client Version";
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(9, 176);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(232, 20);
|
||||
this.textBox3.TabIndex = 17;
|
||||
this.textBox3.TextChanged += new System.EventHandler(this.TextBox3TextChanged);
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(247, 174);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(75, 23);
|
||||
this.button4.TabIndex = 18;
|
||||
this.button4.Text = "Help";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
this.button4.Click += new System.EventHandler(this.Button4Click);
|
||||
//
|
||||
// ClientinfoEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
|
||||
this.ClientSize = new System.Drawing.Size(332, 450);
|
||||
this.Controls.Add(this.button4);
|
||||
this.Controls.Add(this.textBox3);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.checkBox3);
|
||||
this.Controls.Add(this.button3);
|
||||
this.Controls.Add(this.checkBox5);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.checkBox2);
|
||||
this.Controls.Add(this.checkBox1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "ClientinfoEditor";
|
||||
this.Text = "Clientinfo Editor";
|
||||
this.Load += new System.EventHandler(this.ClientinfoCreatorLoad);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.CheckBox checkBox3;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.CheckBox checkBox5;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.CheckBox checkBox2;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,213 +0,0 @@
|
|||
/*
|
||||
* Created by SharpDevelop.
|
||||
* User: BITL-Gaming
|
||||
* Date: 11/28/2016
|
||||
* Time: 7:55 AM
|
||||
*
|
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers.
|
||||
*/
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
|
||||
namespace RBXLegacyLauncher
|
||||
{
|
||||
/// <summary>
|
||||
/// Description of ClientinfoCreator.
|
||||
/// </summary>
|
||||
public partial class ClientinfoEditor : Form
|
||||
{
|
||||
public ClientinfoEditor()
|
||||
{
|
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add constructor code after the InitializeComponent() call.
|
||||
//
|
||||
}
|
||||
|
||||
void CheckBox1CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox1.Checked == true)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesPlayerName = true;
|
||||
}
|
||||
else if (checkBox1.Checked == false)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesPlayerName = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CheckBox2CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox2.Checked == true)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesID = true;
|
||||
}
|
||||
else if (checkBox2.Checked == false)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesID = false;
|
||||
}
|
||||
}
|
||||
|
||||
void TextBox1TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.ClientCreator_SelectedClientDesc = textBox1.Text;
|
||||
}
|
||||
|
||||
void Button2Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var ofd = new OpenFileDialog())
|
||||
{
|
||||
ofd.Filter = "Text files (*.txt)|*.txt";
|
||||
ofd.FilterIndex = 2;
|
||||
ofd.FileName = "clientinfo.txt";
|
||||
ofd.Title = "Load clientinfo.txt";
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string line1;
|
||||
string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6, Decryptline7;
|
||||
|
||||
using(StreamReader reader = new StreamReader(ofd.FileName))
|
||||
{
|
||||
line1 = reader.ReadLine();
|
||||
}
|
||||
|
||||
if (!SecurityFuncs.IsBase64String(line1))
|
||||
return;
|
||||
|
||||
string ConvertedLine = SecurityFuncs.Base64Decode(line1);
|
||||
string[] result = ConvertedLine.Split('|');
|
||||
Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
|
||||
Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
|
||||
Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
|
||||
Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
|
||||
Decryptline5 = SecurityFuncs.Base64Decode(result[4]);
|
||||
Decryptline6 = SecurityFuncs.Base64Decode(result[5]);
|
||||
Decryptline7 = SecurityFuncs.Base64Decode(result[6]);
|
||||
|
||||
Boolean bline1 = Convert.ToBoolean(Decryptline1);
|
||||
GlobalVars.ClientCreator_UsesPlayerName = bline1;
|
||||
|
||||
Boolean bline2 = Convert.ToBoolean(Decryptline2);
|
||||
GlobalVars.ClientCreator_UsesID = bline2;
|
||||
|
||||
Boolean bline3 = Convert.ToBoolean(Decryptline3);
|
||||
GlobalVars.ClientCreator_LoadsAssetsOnline = bline3;
|
||||
|
||||
Boolean bline4 = Convert.ToBoolean(Decryptline4);
|
||||
GlobalVars.ClientCreator_LegacyMode = bline4;
|
||||
|
||||
GlobalVars.ClientCreator_SelectedClientMD5 = Decryptline5;
|
||||
|
||||
GlobalVars.ClientCreator_SelectedClientVersion = Decryptline6;
|
||||
|
||||
GlobalVars.ClientCreator_SelectedClientDesc = Decryptline7;
|
||||
|
||||
checkBox1.Checked = GlobalVars.ClientCreator_UsesPlayerName;
|
||||
checkBox2.Checked = GlobalVars.ClientCreator_UsesID;
|
||||
checkBox5.Checked = GlobalVars.ClientCreator_LoadsAssetsOnline;
|
||||
checkBox3.Checked = GlobalVars.ClientCreator_LegacyMode;
|
||||
textBox2.Text = GlobalVars.ClientCreator_SelectedClientMD5.ToUpper();
|
||||
textBox1.Text = GlobalVars.ClientCreator_SelectedClientDesc;
|
||||
textBox3.Text = GlobalVars.ClientCreator_SelectedClientVersion;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Button1Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var sfd = new SaveFileDialog())
|
||||
{
|
||||
sfd.Filter = "Text files (*.txt)|*.txt";
|
||||
sfd.FilterIndex = 2;
|
||||
sfd.FileName = "clientinfo.txt";
|
||||
sfd.Title = "Save clientinfo.txt";
|
||||
|
||||
if (sfd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string[] lines = {
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_UsesPlayerName.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_UsesID.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_LoadsAssetsOnline.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_LegacyMode.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientMD5.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientVersion.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientDesc.ToString())
|
||||
};
|
||||
File.WriteAllText(sfd.FileName, SecurityFuncs.Base64Encode(string.Join("|",lines)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ClientinfoCreatorLoad(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CheckBox5CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox5.Checked == true)
|
||||
{
|
||||
GlobalVars.ClientCreator_LoadsAssetsOnline = true;
|
||||
}
|
||||
else if (checkBox5.Checked == false)
|
||||
{
|
||||
GlobalVars.ClientCreator_LoadsAssetsOnline = false;
|
||||
}
|
||||
}
|
||||
|
||||
void Button3Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesPlayerName = false;
|
||||
GlobalVars.ClientCreator_UsesID = false;
|
||||
GlobalVars.ClientCreator_LoadsAssetsOnline = false;
|
||||
GlobalVars.ClientCreator_LegacyMode = false;
|
||||
GlobalVars.ClientCreator_SelectedClientDesc = "";
|
||||
GlobalVars.ClientCreator_SelectedClientMD5 = "";
|
||||
GlobalVars.ClientCreator_SelectedClientVersion = "";
|
||||
checkBox1.Checked = GlobalVars.ClientCreator_UsesPlayerName;
|
||||
checkBox2.Checked = GlobalVars.ClientCreator_UsesID;
|
||||
checkBox5.Checked = GlobalVars.ClientCreator_LoadsAssetsOnline;
|
||||
checkBox3.Checked = GlobalVars.ClientCreator_LegacyMode;
|
||||
textBox2.Text = GlobalVars.ClientCreator_SelectedClientMD5.ToUpper();
|
||||
textBox1.Text = GlobalVars.ClientCreator_SelectedClientDesc;
|
||||
textBox3.Text = GlobalVars.ClientCreator_SelectedClientVersion;
|
||||
}
|
||||
|
||||
void CheckBox3CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox3.Checked == true)
|
||||
{
|
||||
GlobalVars.ClientCreator_LegacyMode = true;
|
||||
}
|
||||
else if (checkBox3.Checked == false)
|
||||
{
|
||||
GlobalVars.ClientCreator_LegacyMode = false;
|
||||
}
|
||||
}
|
||||
|
||||
void TextBox2TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
textBox2.Text = textBox2.Text.ToUpper();
|
||||
GlobalVars.ClientCreator_SelectedClientMD5 = textBox2.Text.ToUpper();
|
||||
}
|
||||
|
||||
void TextBox3TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.ClientCreator_SelectedClientVersion = textBox3.Text;
|
||||
}
|
||||
|
||||
void Button4Click(object sender, EventArgs e)
|
||||
{
|
||||
DocForm doc = new DocForm();
|
||||
doc.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,184 +0,0 @@
|
|||
/*
|
||||
* Created by SharpDevelop.
|
||||
* User: BITL-Gaming
|
||||
* Date: 11/28/2016
|
||||
* Time: 7:55 AM
|
||||
*
|
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers.
|
||||
*/
|
||||
namespace RBXLegacyLauncher
|
||||
{
|
||||
partial class InfoEditor
|
||||
{
|
||||
/// <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)
|
||||
{
|
||||
if (disposing) {
|
||||
if (components != null) {
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
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(InfoEditor));
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(166, 204);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(154, 30);
|
||||
this.button1.TabIndex = 7;
|
||||
this.button1.Text = "Save";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.Button1Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(7, 204);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(150, 30);
|
||||
this.button2.TabIndex = 10;
|
||||
this.button2.Text = "Load";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.Button2Click);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(8, 175);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(312, 23);
|
||||
this.button3.TabIndex = 12;
|
||||
this.button3.Text = "New info.txt";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.Button3Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(7, 2);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(44, 15);
|
||||
this.label1.TabIndex = 13;
|
||||
this.label1.Text = "Version";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Location = new System.Drawing.Point(7, 43);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(76, 17);
|
||||
this.label2.TabIndex = 14;
|
||||
this.label2.Text = "Default Client";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Location = new System.Drawing.Point(7, 86);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(76, 18);
|
||||
this.label3.TabIndex = 15;
|
||||
this.label3.Text = "Script Path";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Location = new System.Drawing.Point(7, 130);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(71, 16);
|
||||
this.label4.TabIndex = 16;
|
||||
this.label4.Text = "Script MD5";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(8, 20);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(311, 20);
|
||||
this.textBox1.TabIndex = 17;
|
||||
this.textBox1.TextChanged += new System.EventHandler(this.TextBox1TextChanged);
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(7, 63);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(313, 20);
|
||||
this.textBox2.TabIndex = 18;
|
||||
this.textBox2.TextChanged += new System.EventHandler(this.TextBox2TextChanged);
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(8, 107);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(312, 20);
|
||||
this.textBox3.TabIndex = 19;
|
||||
this.textBox3.TextChanged += new System.EventHandler(this.TextBox3TextChanged);
|
||||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Location = new System.Drawing.Point(8, 149);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(311, 20);
|
||||
this.textBox4.TabIndex = 20;
|
||||
this.textBox4.TextChanged += new System.EventHandler(this.TextBox4TextChanged);
|
||||
//
|
||||
// InfoEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
|
||||
this.ClientSize = new System.Drawing.Size(332, 247);
|
||||
this.Controls.Add(this.textBox4);
|
||||
this.Controls.Add(this.textBox3);
|
||||
this.Controls.Add(this.textBox2);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.button3);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "InfoEditor";
|
||||
this.Text = "Info Editor";
|
||||
this.Load += new System.EventHandler(this.ClientinfoCreatorLoad);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,142 +0,0 @@
|
|||
/*
|
||||
* Created by SharpDevelop.
|
||||
* User: BITL-Gaming
|
||||
* Date: 11/28/2016
|
||||
* Time: 7:55 AM
|
||||
*
|
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers.
|
||||
*/
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
|
||||
namespace RBXLegacyLauncher
|
||||
{
|
||||
/// <summary>
|
||||
/// Description of ClientinfoCreator.
|
||||
/// </summary>
|
||||
public partial class InfoEditor : Form
|
||||
{
|
||||
public InfoEditor()
|
||||
{
|
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add constructor code after the InitializeComponent() call.
|
||||
//
|
||||
}
|
||||
|
||||
void Button2Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var ofd = new OpenFileDialog())
|
||||
{
|
||||
ofd.Filter = "Text files (*.txt)|*.txt";
|
||||
ofd.FilterIndex = 2;
|
||||
ofd.FileName = "info.txt";
|
||||
ofd.Title = "Load info.txt";
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string line1;
|
||||
string Decryptline1, Decryptline2, Decryptline3, Decryptline4;
|
||||
|
||||
using(StreamReader reader = new StreamReader(ofd.FileName))
|
||||
{
|
||||
line1 = reader.ReadLine();
|
||||
}
|
||||
|
||||
if (!SecurityFuncs.IsBase64String(line1))
|
||||
return;
|
||||
|
||||
string ConvertedLine = SecurityFuncs.Base64Decode(line1);
|
||||
string[] result = ConvertedLine.Split('|');
|
||||
Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
|
||||
Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
|
||||
Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
|
||||
Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
|
||||
|
||||
GlobalVars.InfoEditor_Version = Decryptline1;
|
||||
GlobalVars.InfoEditor_DefaultClient = Decryptline2;
|
||||
GlobalVars.InfoEditor_ScriptPath = Decryptline3;
|
||||
GlobalVars.InfoEditor_ScriptMD5 = Decryptline4;
|
||||
|
||||
textBox1.Text = GlobalVars.InfoEditor_Version;
|
||||
textBox2.Text = GlobalVars.InfoEditor_DefaultClient;
|
||||
textBox3.Text = GlobalVars.InfoEditor_ScriptPath;
|
||||
textBox4.Text = GlobalVars.InfoEditor_ScriptMD5.ToUpper();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Button1Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var sfd = new SaveFileDialog())
|
||||
{
|
||||
sfd.Filter = "Text files (*.txt)|*.txt";
|
||||
sfd.FilterIndex = 2;
|
||||
sfd.FileName = "info.txt";
|
||||
sfd.Title = "Save info.txt";
|
||||
|
||||
if (sfd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string[] lines = {
|
||||
SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_Version.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_DefaultClient.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_ScriptPath.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_ScriptMD5.ToString())
|
||||
};
|
||||
File.WriteAllText(sfd.FileName, SecurityFuncs.Base64Encode(string.Join("|",lines)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ClientinfoCreatorLoad(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Button3Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.InfoEditor_Version = "";
|
||||
GlobalVars.InfoEditor_DefaultClient = "";
|
||||
GlobalVars.InfoEditor_ScriptPath = "";
|
||||
GlobalVars.InfoEditor_ScriptMD5 = "";
|
||||
textBox1.Text = GlobalVars.InfoEditor_Version;
|
||||
textBox2.Text = GlobalVars.InfoEditor_DefaultClient;
|
||||
textBox3.Text = GlobalVars.InfoEditor_ScriptPath;
|
||||
textBox4.Text = GlobalVars.InfoEditor_ScriptMD5.ToUpper();
|
||||
}
|
||||
|
||||
void TextBox1TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.InfoEditor_Version = textBox1.Text;
|
||||
}
|
||||
|
||||
void TextBox2TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.InfoEditor_DefaultClient = textBox2.Text;
|
||||
}
|
||||
|
||||
void TextBox3TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.InfoEditor_ScriptPath = textBox3.Text;
|
||||
}
|
||||
|
||||
void TextBox4TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
textBox4.Text = textBox4.Text.ToUpper();
|
||||
GlobalVars.InfoEditor_ScriptMD5 = textBox4.Text.ToUpper();
|
||||
}
|
||||
|
||||
void Button4Click(object sender, EventArgs e)
|
||||
{
|
||||
DocForm doc = new DocForm();
|
||||
doc.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -37,44 +37,355 @@ namespace RBXLegacyLauncher
|
|||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SDKForm));
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.checkBox3 = new System.Windows.Forms.CheckBox();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.checkBox5 = new System.Windows.Forms.CheckBox();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.textBox4 = new System.Windows.Forms.TextBox();
|
||||
this.textBox5 = new System.Windows.Forms.TextBox();
|
||||
this.textBox6 = new System.Windows.Forms.TextBox();
|
||||
this.textBox7 = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.button7 = new System.Windows.Forms.Button();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
// tabControl1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(12, 12);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(260, 63);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Clientinfo Editor";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.Button1Click);
|
||||
this.tabControl1.Controls.Add(this.tabPage1);
|
||||
this.tabControl1.Controls.Add(this.tabPage2);
|
||||
this.tabControl1.Location = new System.Drawing.Point(12, 12);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(336, 343);
|
||||
this.tabControl1.TabIndex = 0;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.button4);
|
||||
this.tabPage1.Controls.Add(this.textBox3);
|
||||
this.tabPage1.Controls.Add(this.label4);
|
||||
this.tabPage1.Controls.Add(this.textBox2);
|
||||
this.tabPage1.Controls.Add(this.label3);
|
||||
this.tabPage1.Controls.Add(this.checkBox3);
|
||||
this.tabPage1.Controls.Add(this.button3);
|
||||
this.tabPage1.Controls.Add(this.checkBox5);
|
||||
this.tabPage1.Controls.Add(this.button2);
|
||||
this.tabPage1.Controls.Add(this.button1);
|
||||
this.tabPage1.Controls.Add(this.label2);
|
||||
this.tabPage1.Controls.Add(this.label1);
|
||||
this.tabPage1.Controls.Add(this.textBox1);
|
||||
this.tabPage1.Controls.Add(this.checkBox2);
|
||||
this.tabPage1.Controls.Add(this.checkBox1);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(328, 317);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "CLIENTINFO EDITOR";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(243, 168);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(75, 23);
|
||||
this.button4.TabIndex = 33;
|
||||
this.button4.Text = "Help";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBox3
|
||||
//
|
||||
this.textBox3.Location = new System.Drawing.Point(5, 170);
|
||||
this.textBox3.Name = "textBox3";
|
||||
this.textBox3.Size = new System.Drawing.Size(232, 20);
|
||||
this.textBox3.TabIndex = 32;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Location = new System.Drawing.Point(3, 151);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(71, 16);
|
||||
this.label4.TabIndex = 31;
|
||||
this.label4.Text = "Client Version";
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
this.textBox2.Location = new System.Drawing.Point(5, 128);
|
||||
this.textBox2.Name = "textBox2";
|
||||
this.textBox2.Size = new System.Drawing.Size(311, 20);
|
||||
this.textBox2.TabIndex = 30;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Location = new System.Drawing.Point(4, 112);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(65, 13);
|
||||
this.label3.TabIndex = 29;
|
||||
this.label3.Text = "Client MD5";
|
||||
//
|
||||
// checkBox3
|
||||
//
|
||||
this.checkBox3.Location = new System.Drawing.Point(5, 89);
|
||||
this.checkBox3.Name = "checkBox3";
|
||||
this.checkBox3.Size = new System.Drawing.Size(175, 20);
|
||||
this.checkBox3.TabIndex = 28;
|
||||
this.checkBox3.Text = "Client uses a single EXE to run";
|
||||
this.checkBox3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(6, 249);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(312, 23);
|
||||
this.button3.TabIndex = 27;
|
||||
this.button3.Text = "New clientinfo.txt";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox5
|
||||
//
|
||||
this.checkBox5.Location = new System.Drawing.Point(5, 71);
|
||||
this.checkBox5.Name = "checkBox5";
|
||||
this.checkBox5.Size = new System.Drawing.Size(310, 20);
|
||||
this.checkBox5.TabIndex = 26;
|
||||
this.checkBox5.Text = "Loads assets from servers online";
|
||||
this.checkBox5.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(12, 81);
|
||||
this.button2.Location = new System.Drawing.Point(6, 278);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(260, 63);
|
||||
this.button2.TabIndex = 1;
|
||||
this.button2.Text = "Info Editor";
|
||||
this.button2.Size = new System.Drawing.Size(150, 30);
|
||||
this.button2.TabIndex = 25;
|
||||
this.button2.Text = "Load";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.Button2Click);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(165, 278);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(154, 30);
|
||||
this.button1.TabIndex = 24;
|
||||
this.button1.Text = "Save";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Location = new System.Drawing.Point(4, 9);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(307, 30);
|
||||
this.label2.TabIndex = 23;
|
||||
this.label2.Text = "Check the check boxes corresponding to what your client supports.";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(3, 193);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(92, 16);
|
||||
this.label1.TabIndex = 22;
|
||||
this.label1.Text = "Client Description";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(6, 211);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(310, 34);
|
||||
this.textBox1.TabIndex = 21;
|
||||
//
|
||||
// checkBox2
|
||||
//
|
||||
this.checkBox2.Location = new System.Drawing.Point(5, 53);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
this.checkBox2.Size = new System.Drawing.Size(307, 20);
|
||||
this.checkBox2.TabIndex = 20;
|
||||
this.checkBox2.Text = "Allows the launcher to set custom IDs";
|
||||
this.checkBox2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.Location = new System.Drawing.Point(5, 34);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(307, 24);
|
||||
this.checkBox1.TabIndex = 19;
|
||||
this.checkBox1.Text = "Allows players to set custom names";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.button7);
|
||||
this.tabPage2.Controls.Add(this.textBox4);
|
||||
this.tabPage2.Controls.Add(this.textBox5);
|
||||
this.tabPage2.Controls.Add(this.textBox6);
|
||||
this.tabPage2.Controls.Add(this.textBox7);
|
||||
this.tabPage2.Controls.Add(this.label5);
|
||||
this.tabPage2.Controls.Add(this.label6);
|
||||
this.tabPage2.Controls.Add(this.label7);
|
||||
this.tabPage2.Controls.Add(this.label8);
|
||||
this.tabPage2.Controls.Add(this.button5);
|
||||
this.tabPage2.Controls.Add(this.button6);
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(328, 317);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "INFO EDITOR";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBox4
|
||||
//
|
||||
this.textBox4.Location = new System.Drawing.Point(6, 154);
|
||||
this.textBox4.Name = "textBox4";
|
||||
this.textBox4.Size = new System.Drawing.Size(311, 20);
|
||||
this.textBox4.TabIndex = 31;
|
||||
//
|
||||
// textBox5
|
||||
//
|
||||
this.textBox5.Location = new System.Drawing.Point(6, 112);
|
||||
this.textBox5.Name = "textBox5";
|
||||
this.textBox5.Size = new System.Drawing.Size(312, 20);
|
||||
this.textBox5.TabIndex = 30;
|
||||
//
|
||||
// textBox6
|
||||
//
|
||||
this.textBox6.Location = new System.Drawing.Point(5, 68);
|
||||
this.textBox6.Name = "textBox6";
|
||||
this.textBox6.Size = new System.Drawing.Size(313, 20);
|
||||
this.textBox6.TabIndex = 29;
|
||||
//
|
||||
// textBox7
|
||||
//
|
||||
this.textBox7.Location = new System.Drawing.Point(6, 25);
|
||||
this.textBox7.Name = "textBox7";
|
||||
this.textBox7.Size = new System.Drawing.Size(311, 20);
|
||||
this.textBox7.TabIndex = 28;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Location = new System.Drawing.Point(5, 135);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(71, 16);
|
||||
this.label5.TabIndex = 27;
|
||||
this.label5.Text = "Script MD5";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.Location = new System.Drawing.Point(5, 91);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(76, 18);
|
||||
this.label6.TabIndex = 26;
|
||||
this.label6.Text = "Script Path";
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.Location = new System.Drawing.Point(5, 48);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(76, 17);
|
||||
this.label7.TabIndex = 25;
|
||||
this.label7.Text = "Default Client";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.Location = new System.Drawing.Point(5, 7);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(44, 15);
|
||||
this.label8.TabIndex = 24;
|
||||
this.label8.Text = "Version";
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Location = new System.Drawing.Point(5, 180);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(312, 68);
|
||||
this.button5.TabIndex = 23;
|
||||
this.button5.Text = "New info.txt";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.Location = new System.Drawing.Point(6, 254);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(150, 57);
|
||||
this.button6.TabIndex = 22;
|
||||
this.button6.Text = "Load";
|
||||
this.button6.UseVisualStyleBackColor = true;
|
||||
this.button6.Click += new System.EventHandler(this.Button6Click);
|
||||
//
|
||||
// button7
|
||||
//
|
||||
this.button7.Location = new System.Drawing.Point(167, 254);
|
||||
this.button7.Name = "button7";
|
||||
this.button7.Size = new System.Drawing.Size(150, 57);
|
||||
this.button7.TabIndex = 32;
|
||||
this.button7.Text = "Save";
|
||||
this.button7.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// SDKForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
|
||||
this.ClientSize = new System.Drawing.Size(284, 157);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.ClientSize = new System.Drawing.Size(354, 362);
|
||||
this.Controls.Add(this.tabControl1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "SDKForm";
|
||||
this.Text = "RBXLegacy SDK";
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage1.PerformLayout();
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.tabPage2.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button7;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox textBox7;
|
||||
private System.Windows.Forms.TextBox textBox6;
|
||||
private System.Windows.Forms.TextBox textBox5;
|
||||
private System.Windows.Forms.TextBox textBox4;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private System.Windows.Forms.CheckBox checkBox2;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.CheckBox checkBox5;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.CheckBox checkBox3;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox textBox2;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox textBox3;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9,6 +9,9 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
|
||||
namespace RBXLegacyLauncher
|
||||
{
|
||||
|
|
@ -29,16 +32,282 @@ namespace RBXLegacyLauncher
|
|||
//
|
||||
}
|
||||
|
||||
void Button1Click(object sender, EventArgs e)
|
||||
// clientinfo
|
||||
|
||||
void CheckBox1CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
ClientinfoEditor cie = new ClientinfoEditor();
|
||||
cie.Show();
|
||||
if (checkBox1.Checked == true)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesPlayerName = true;
|
||||
}
|
||||
else if (checkBox1.Checked == false)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesPlayerName = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CheckBox2CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox2.Checked == true)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesID = true;
|
||||
}
|
||||
else if (checkBox2.Checked == false)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesID = false;
|
||||
}
|
||||
}
|
||||
|
||||
void TextBox1TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.ClientCreator_SelectedClientDesc = textBox1.Text;
|
||||
}
|
||||
|
||||
void Button2Click(object sender, EventArgs e)
|
||||
{
|
||||
InfoEditor ie = new InfoEditor();
|
||||
ie.Show();
|
||||
using (var ofd = new OpenFileDialog())
|
||||
{
|
||||
ofd.Filter = "Text files (*.txt)|*.txt";
|
||||
ofd.FilterIndex = 2;
|
||||
ofd.FileName = "clientinfo.txt";
|
||||
ofd.Title = "Load clientinfo.txt";
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string line1;
|
||||
string Decryptline1, Decryptline2, Decryptline3, Decryptline4, Decryptline5, Decryptline6, Decryptline7;
|
||||
|
||||
using(StreamReader reader = new StreamReader(ofd.FileName))
|
||||
{
|
||||
line1 = reader.ReadLine();
|
||||
}
|
||||
|
||||
if (!SecurityFuncs.IsBase64String(line1))
|
||||
return;
|
||||
|
||||
string ConvertedLine = SecurityFuncs.Base64Decode(line1);
|
||||
string[] result = ConvertedLine.Split('|');
|
||||
Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
|
||||
Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
|
||||
Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
|
||||
Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
|
||||
Decryptline5 = SecurityFuncs.Base64Decode(result[4]);
|
||||
Decryptline6 = SecurityFuncs.Base64Decode(result[5]);
|
||||
Decryptline7 = SecurityFuncs.Base64Decode(result[6]);
|
||||
|
||||
Boolean bline1 = Convert.ToBoolean(Decryptline1);
|
||||
GlobalVars.ClientCreator_UsesPlayerName = bline1;
|
||||
|
||||
Boolean bline2 = Convert.ToBoolean(Decryptline2);
|
||||
GlobalVars.ClientCreator_UsesID = bline2;
|
||||
|
||||
Boolean bline3 = Convert.ToBoolean(Decryptline3);
|
||||
GlobalVars.ClientCreator_LoadsAssetsOnline = bline3;
|
||||
|
||||
Boolean bline4 = Convert.ToBoolean(Decryptline4);
|
||||
GlobalVars.ClientCreator_LegacyMode = bline4;
|
||||
|
||||
GlobalVars.ClientCreator_SelectedClientMD5 = Decryptline5;
|
||||
|
||||
GlobalVars.ClientCreator_SelectedClientVersion = Decryptline6;
|
||||
|
||||
GlobalVars.ClientCreator_SelectedClientDesc = Decryptline7;
|
||||
|
||||
checkBox1.Checked = GlobalVars.ClientCreator_UsesPlayerName;
|
||||
checkBox2.Checked = GlobalVars.ClientCreator_UsesID;
|
||||
checkBox5.Checked = GlobalVars.ClientCreator_LoadsAssetsOnline;
|
||||
checkBox3.Checked = GlobalVars.ClientCreator_LegacyMode;
|
||||
textBox2.Text = GlobalVars.ClientCreator_SelectedClientMD5.ToUpper();
|
||||
textBox1.Text = GlobalVars.ClientCreator_SelectedClientDesc;
|
||||
textBox3.Text = GlobalVars.ClientCreator_SelectedClientVersion;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Button1Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var sfd = new SaveFileDialog())
|
||||
{
|
||||
sfd.Filter = "Text files (*.txt)|*.txt";
|
||||
sfd.FilterIndex = 2;
|
||||
sfd.FileName = "clientinfo.txt";
|
||||
sfd.Title = "Save clientinfo.txt";
|
||||
|
||||
if (sfd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string[] lines = {
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_UsesPlayerName.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_UsesID.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_LoadsAssetsOnline.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_LegacyMode.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientMD5.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientVersion.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientDesc.ToString())
|
||||
};
|
||||
File.WriteAllText(sfd.FileName, SecurityFuncs.Base64Encode(string.Join("|",lines)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ClientinfoCreatorLoad(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CheckBox5CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox5.Checked == true)
|
||||
{
|
||||
GlobalVars.ClientCreator_LoadsAssetsOnline = true;
|
||||
}
|
||||
else if (checkBox5.Checked == false)
|
||||
{
|
||||
GlobalVars.ClientCreator_LoadsAssetsOnline = false;
|
||||
}
|
||||
}
|
||||
|
||||
void Button3Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.ClientCreator_UsesPlayerName = false;
|
||||
GlobalVars.ClientCreator_UsesID = false;
|
||||
GlobalVars.ClientCreator_LoadsAssetsOnline = false;
|
||||
GlobalVars.ClientCreator_LegacyMode = false;
|
||||
GlobalVars.ClientCreator_SelectedClientDesc = "";
|
||||
GlobalVars.ClientCreator_SelectedClientMD5 = "";
|
||||
GlobalVars.ClientCreator_SelectedClientVersion = "";
|
||||
checkBox1.Checked = GlobalVars.ClientCreator_UsesPlayerName;
|
||||
checkBox2.Checked = GlobalVars.ClientCreator_UsesID;
|
||||
checkBox5.Checked = GlobalVars.ClientCreator_LoadsAssetsOnline;
|
||||
checkBox3.Checked = GlobalVars.ClientCreator_LegacyMode;
|
||||
textBox2.Text = GlobalVars.ClientCreator_SelectedClientMD5.ToUpper();
|
||||
textBox1.Text = GlobalVars.ClientCreator_SelectedClientDesc;
|
||||
textBox3.Text = GlobalVars.ClientCreator_SelectedClientVersion;
|
||||
}
|
||||
|
||||
void CheckBox3CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (checkBox3.Checked == true)
|
||||
{
|
||||
GlobalVars.ClientCreator_LegacyMode = true;
|
||||
}
|
||||
else if (checkBox3.Checked == false)
|
||||
{
|
||||
GlobalVars.ClientCreator_LegacyMode = false;
|
||||
}
|
||||
}
|
||||
|
||||
void TextBox2TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
textBox2.Text = textBox2.Text.ToUpper();
|
||||
GlobalVars.ClientCreator_SelectedClientMD5 = textBox2.Text.ToUpper();
|
||||
}
|
||||
|
||||
void TextBox3TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.ClientCreator_SelectedClientVersion = textBox3.Text;
|
||||
}
|
||||
|
||||
void Button4Click(object sender, EventArgs e)
|
||||
{
|
||||
DocForm doc = new DocForm();
|
||||
doc.Show();
|
||||
}
|
||||
|
||||
// info
|
||||
|
||||
void Button6Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var ofd = new OpenFileDialog())
|
||||
{
|
||||
ofd.Filter = "Text files (*.txt)|*.txt";
|
||||
ofd.FilterIndex = 2;
|
||||
ofd.FileName = "info.txt";
|
||||
ofd.Title = "Load info.txt";
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string line1;
|
||||
string Decryptline1, Decryptline2, Decryptline3, Decryptline4;
|
||||
|
||||
using(StreamReader reader = new StreamReader(ofd.FileName))
|
||||
{
|
||||
line1 = reader.ReadLine();
|
||||
}
|
||||
|
||||
if (!SecurityFuncs.IsBase64String(line1))
|
||||
return;
|
||||
|
||||
string ConvertedLine = SecurityFuncs.Base64Decode(line1);
|
||||
string[] result = ConvertedLine.Split('|');
|
||||
Decryptline1 = SecurityFuncs.Base64Decode(result[0]);
|
||||
Decryptline2 = SecurityFuncs.Base64Decode(result[1]);
|
||||
Decryptline3 = SecurityFuncs.Base64Decode(result[2]);
|
||||
Decryptline4 = SecurityFuncs.Base64Decode(result[3]);
|
||||
|
||||
GlobalVars.InfoEditor_Version = Decryptline1;
|
||||
GlobalVars.InfoEditor_DefaultClient = Decryptline2;
|
||||
GlobalVars.InfoEditor_ScriptPath = Decryptline3;
|
||||
GlobalVars.InfoEditor_ScriptMD5 = Decryptline4;
|
||||
|
||||
textBox1.Text = GlobalVars.InfoEditor_Version;
|
||||
textBox2.Text = GlobalVars.InfoEditor_DefaultClient;
|
||||
textBox3.Text = GlobalVars.InfoEditor_ScriptPath;
|
||||
textBox4.Text = GlobalVars.InfoEditor_ScriptMD5.ToUpper();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Button7Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var sfd = new SaveFileDialog())
|
||||
{
|
||||
sfd.Filter = "Text files (*.txt)|*.txt";
|
||||
sfd.FilterIndex = 2;
|
||||
sfd.FileName = "info.txt";
|
||||
sfd.Title = "Save info.txt";
|
||||
|
||||
if (sfd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string[] lines = {
|
||||
SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_Version.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_DefaultClient.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_ScriptPath.ToString()),
|
||||
SecurityFuncs.Base64Encode(GlobalVars.InfoEditor_ScriptMD5.ToString())
|
||||
};
|
||||
File.WriteAllText(sfd.FileName, SecurityFuncs.Base64Encode(string.Join("|",lines)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Button5Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.InfoEditor_Version = "";
|
||||
GlobalVars.InfoEditor_DefaultClient = "";
|
||||
GlobalVars.InfoEditor_ScriptPath = "";
|
||||
GlobalVars.InfoEditor_ScriptMD5 = "";
|
||||
textBox1.Text = GlobalVars.InfoEditor_Version;
|
||||
textBox2.Text = GlobalVars.InfoEditor_DefaultClient;
|
||||
textBox3.Text = GlobalVars.InfoEditor_ScriptPath;
|
||||
textBox4.Text = GlobalVars.InfoEditor_ScriptMD5.ToUpper();
|
||||
}
|
||||
|
||||
void TextBox7TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.InfoEditor_Version = textBox7.Text;
|
||||
}
|
||||
|
||||
void TextBox6TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.InfoEditor_DefaultClient = textBox6.Text;
|
||||
}
|
||||
|
||||
void TextBox5TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
GlobalVars.InfoEditor_ScriptPath = textBox5.Text;
|
||||
}
|
||||
|
||||
void TextBox4TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
textBox4.Text = textBox4.Text.ToUpper();
|
||||
GlobalVars.InfoEditor_ScriptMD5 = textBox4.Text.ToUpper();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue