diff --git a/NovetusLauncher/NovetusCMD/CommandLineArguments.cs b/NovetusLauncher/NovetusCMD/CommandLineArguments.cs index f097979..990d089 100644 --- a/NovetusLauncher/NovetusCMD/CommandLineArguments.cs +++ b/NovetusLauncher/NovetusCMD/CommandLineArguments.cs @@ -90,6 +90,8 @@ namespace NovetusCMD Parameter = null; break; + default: + break; } } // In case a parameter is still waiting diff --git a/NovetusLauncher/NovetusFuncs/Downloader.cs b/NovetusLauncher/NovetusFuncs/Downloader.cs index abb4c25..a578c24 100644 --- a/NovetusLauncher/NovetusFuncs/Downloader.cs +++ b/NovetusLauncher/NovetusFuncs/Downloader.cs @@ -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() { diff --git a/NovetusLauncher/NovetusFuncs/ScriptGenerator.cs b/NovetusLauncher/NovetusFuncs/ScriptGenerator.cs index 4ee66c3..779e271 100644 --- a/NovetusLauncher/NovetusFuncs/ScriptGenerator.cs +++ b/NovetusLauncher/NovetusFuncs/ScriptGenerator.cs @@ -26,10 +26,6 @@ using System.Text.RegularExpressions; public class ScriptGenerator { - public ScriptGenerator() - { - } - public enum ScriptType { Client = 0, diff --git a/NovetusLauncher/NovetusLauncher/SDK/ItemMaker.cs b/NovetusLauncher/NovetusLauncher/SDK/ItemMaker.cs index f77649a..5b30d8c 100644 --- a/NovetusLauncher/NovetusLauncher/SDK/ItemMaker.cs +++ b/NovetusLauncher/NovetusLauncher/SDK/ItemMaker.cs @@ -18,8 +18,8 @@ namespace NovetusLauncher /// 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() { diff --git a/NovetusLauncher/NovetusLauncher/SDK/SplashTester.cs b/NovetusLauncher/NovetusLauncher/SDK/SplashTester.cs index 6df2653..2b061d5 100644 --- a/NovetusLauncher/NovetusLauncher/SDK/SplashTester.cs +++ b/NovetusLauncher/NovetusLauncher/SDK/SplashTester.cs @@ -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()