more cleaning

This commit is contained in:
Bitl 2020-01-04 13:30:59 -07:00
parent d64d05c01a
commit d67336bf9f
5 changed files with 9 additions and 22 deletions

View File

@ -90,6 +90,8 @@ namespace NovetusCMD
Parameter = null;
break;
default:
break;
}
}
// In case a parameter is still waiting

View File

@ -5,11 +5,10 @@ using System.IO;
class Downloader
{
private string fileURL;
private string fileName;
private string fileFilter;
private readonly string fileURL;
private readonly string fileName;
private readonly string fileFilter;
private string downloadOutcome;
private string downloadOutcomeAddText;
private static string downloadOutcomeException;
public Downloader(string url, string name, string filter)
@ -38,7 +37,7 @@ class Downloader
public void InitDownload(string path, string fileext, string additionalText = "")
{
downloadOutcomeAddText = additionalText;
string downloadOutcomeAddText = additionalText;
string outputfilename = fileName + fileext;
string fullpath = path + "\\" + outputfilename;
@ -56,7 +55,7 @@ class Downloader
public void InitDownload(string additionalText = "")
{
downloadOutcomeAddText = additionalText;
string downloadOutcomeAddText = additionalText;
SaveFileDialog saveFileDialog1 = new SaveFileDialog()
{

View File

@ -26,10 +26,6 @@ using System.Text.RegularExpressions;
public class ScriptGenerator
{
public ScriptGenerator()
{
}
public enum ScriptType
{
Client = 0,

View File

@ -18,8 +18,8 @@ namespace NovetusLauncher
/// </summary>
public partial class ItemMaker : Form
{
private static string url = "http://www.roblox.com/asset?id=";
private static bool isWebSite = false;
private string url = "http://www.roblox.com/asset?id=";
private bool isWebSite = false;
public ItemMaker()
{

View File

@ -53,16 +53,6 @@ namespace NovetusLauncher
GlobalVars.Version = version;
ReadConfigValues();
string rbxexe = "";
if (GlobalVars.LegacyMode == true)
{
rbxexe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\clients\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
}
else
{
rbxexe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\clients\\" + GlobalVars.SelectedClient + @"\\RobloxApp_client.exe";
}
}
void ReadConfigValues()