Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
2.5 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ic3w0lf22 committed Nov 1, 2021
1 parent dd1d856 commit dc77899
Show file tree
Hide file tree
Showing 13 changed files with 212 additions and 333 deletions.
19 changes: 11 additions & 8 deletions Auto Update/Updater.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Auto_Update
Expand Down Expand Up @@ -154,7 +150,7 @@ private void Extract()
catch (Exception x)
{
SetStatus("Error");
this.Invoke(new Action(() => { MessageBox.Show(this, "Failed to extract file, make sure the alt manager is completely closed.\n" + x.Message); }));
Invoke(new Action(() => { MessageBox.Show(this, "Failed to extract file, make sure the alt manager is completely closed.\n" + x.Message); }));
Environment.Exit(0);
}
}
Expand All @@ -165,11 +161,18 @@ private void Extract()
} catch(Exception x)
{
SetStatus("Error");
this.Invoke(new Action(() => { MessageBox.Show(this, "Something went wrong! " + x.Message); }));
Invoke(new Action(() => { MessageBox.Show(this, "Something went wrong! " + x.Message); }));
Environment.Exit(0);
}

SetStatus("Done!"); Thread.Sleep(2500); Environment.Exit(0);
SetStatus("Done!");
Thread.Sleep(2500);
File.Delete(FileName);

if (File.Exists("RBX Alt Manager.exe"))
Process.Start("RBX Alt Manager.exe");

Environment.Exit(0);
}

private void AutoUpdater_FormClosing(object sender, FormClosingEventArgs e)
Expand Down
75 changes: 50 additions & 25 deletions RBX Alt Manager/AccountManager.Designer.cs

Large diffs are not rendered by default.

369 changes: 145 additions & 224 deletions RBX Alt Manager/AccountManager.cs

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions RBX Alt Manager/Classes/Account.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.Win32;
using Newtonsoft.Json;
using Newtonsoft.Json;
using RestSharp;
using System;
using System.Collections.Generic;
Expand Down
6 changes: 1 addition & 5 deletions RBX Alt Manager/Classes/GameClass.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace RBX_Alt_Manager
{
Expand Down
4 changes: 0 additions & 4 deletions RBX Alt Manager/Classes/ProductInfo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBX_Alt_Manager
{
Expand Down
5 changes: 1 addition & 4 deletions RBX Alt Manager/Classes/WebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ public class WebServer
if (prefixes == null || prefixes.Length == 0)
throw new ArgumentException("prefixes");

if (method == null)
throw new ArgumentException("method");

foreach (string s in prefixes)
_listener.Prefixes.Add(s);

_responderMethod = method;
_responderMethod = method ?? throw new ArgumentException("method");
_listener.Start();
}

Expand Down
2 changes: 1 addition & 1 deletion RBX Alt Manager/Forms/AccountAdder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public AccountAdder()
{
InitializeComponent();
CefSettings settings = new CefSettings();
settings.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36"; // just your normal browser visiting your website @ roblox! dont hurt alt manager pls : )
settings.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36"; // just your normal browser visiting your website @ roblox! dont hurt alt manager pls : )
// Initialize cef with the provided settings
Cef.EnableHighDPISupport();
Cef.Initialize(settings);
Expand Down
33 changes: 0 additions & 33 deletions RBX Alt Manager/Forms/AccountFields.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using RBX_Alt_Manager.Classes;

Expand Down Expand Up @@ -39,35 +35,6 @@ public void FlashGreen()

private void AddField(string Field, string Value)
{
/*TextBox FieldBox = new TextBox
{
Text = Field,
Location = new Point(20, 45 + (25 * FieldCount)),
Size = new Size(125, 25),
Parent = this
};
TextBox ValueBox = new TextBox
{
Text = Value,
Location = new Point(20 + 125 + 5, 45 + (25 * FieldCount)),
Size = new Size(125, 25),
Parent = this
};
Button XButton = new Button
{
Text = "X",
Location = new Point(20 + 125 + 10 + 125, 45 + (25 * FieldCount) - 1),
Size = new Size(22, 22),
Font = new Font("Verdana", 9, FontStyle.Bold),
ForeColor = Color.Red,
Parent = this
};
ValueBox.KeyPress += Value_KeyPress;
XButton.MouseClick += XButton_MouseClick;*/

Field f = new Field(Viewing, Field, Value);
f.Parent = this;
f.Location = new Point(10, 45 + (25 * FieldCount));
Expand Down
7 changes: 0 additions & 7 deletions RBX Alt Manager/Forms/ArgumentsForm.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RBX_Alt_Manager
Expand Down
7 changes: 0 additions & 7 deletions RBX Alt Manager/Forms/ImportForm.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace RBX_Alt_Manager
Expand Down
13 changes: 1 addition & 12 deletions RBX Alt Manager/Forms/ServerList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
Expand All @@ -25,7 +20,6 @@ public ServerList()

public static RestClient rbxclient;
public static RestClient gamesclient;
private long PlaceId;
private bool Busy;
private int Page = 0;
private List<FavoriteGame> Favorites;
Expand Down Expand Up @@ -68,7 +62,7 @@ private void ServerList_FormClosing(object sender, FormClosingEventArgs e)

private void RefreshServers_Click(object sender, EventArgs e)
{
if (Busy || !Int64.TryParse(Program.MainForm.PlaceID.Text, out PlaceId)) return;
if (Busy || !Int64.TryParse(Program.MainForm.PlaceID.Text, out long PlaceId)) return;

ServerListView.Items.Clear();
IRestResponse response;
Expand Down Expand Up @@ -96,7 +90,6 @@ private void RefreshServers_Click(object sender, EventArgs e)
servers.Add(data);
ServerListView.AddObject(data);
}
// ServerListView.SetObjects(servers);
}
}

Expand All @@ -123,8 +116,6 @@ private void RefreshServers_Click(object sender, EventArgs e)
}
}

// ServerListView.SetObjects(servers);

Busy = false;
});
}
Expand Down Expand Up @@ -221,7 +212,6 @@ private void SearchPlayer_Click(object sender, EventArgs e)

for (int i = 0; i < instances.TotalCollectionSize; i += 50)
{
// shitty coding here ignore this
int startIndex = i;
int tindex = startIndex;
bool FirstTime = true;
Expand Down Expand Up @@ -266,7 +256,6 @@ private void SearchPlayer_Click(object sender, EventArgs e)
ServerListView.ClearObjects();
ServerListView.SetObjects(new List<ServerData> { serverData });
}
// else MessageBox.Show("User not found!", "Search", MessageBoxButtons.OK, MessageBoxIcon.Hand);

Busy = false;
});
Expand Down
2 changes: 1 addition & 1 deletion RBX Alt Manager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("2.4.0.0")]
[assembly: AssemblyFileVersion("2.5.0.0")]

0 comments on commit dc77899

Please sign in to comment.