diff --git a/CEMU Mod Importer/JSON_importer.cs b/CEMU Mod Importer/JSON_importer.cs index a623180..7fa2857 100644 --- a/CEMU Mod Importer/JSON_importer.cs +++ b/CEMU Mod Importer/JSON_importer.cs @@ -58,8 +58,10 @@ public void Import(string JSONfile) } if (added == false) { - GameInfo gameInfo = new GameInfo(); - gameInfo.Name = gameInfoJSON.name; + GameInfo gameInfo = new GameInfo + { + Name = gameInfoJSON.name + }; gameInfo.Ids.Add(gameInfoJSON.titleID + " [" + gameInfoJSON.region + "]"); gameInfos.Add(gameInfo); } diff --git a/CEMU Mod Importer/Main.Designer.cs b/CEMU Mod Importer/Main.Designer.cs index a530d5a..b84b9e9 100644 --- a/CEMU Mod Importer/Main.Designer.cs +++ b/CEMU Mod Importer/Main.Designer.cs @@ -278,7 +278,7 @@ private void InitializeComponent() private System.Windows.Forms.Button ImportGameInfoButton; private System.Windows.Forms.OpenFileDialog TitlekeysJSON_path; private System.Windows.Forms.ComboBox GameDropdown; - private System.Windows.Forms.TextBox DragDrop; + private new System.Windows.Forms.TextBox DragDrop; private System.Windows.Forms.Button ClearModFiles; private System.Windows.Forms.RichTextBox Debug; private System.Windows.Forms.Button LoadMod; diff --git a/CEMU Mod Importer/Main.cs b/CEMU Mod Importer/Main.cs index 7f8fe16..42b3472 100644 --- a/CEMU Mod Importer/Main.cs +++ b/CEMU Mod Importer/Main.cs @@ -13,7 +13,7 @@ namespace CEMU_Mod_Importer { public partial class Main : Form { - Mod CurrentMod = new Mod(); + readonly Mod CurrentMod = new Mod(); string[] titleids; int wrongids = 0; bool CEMU_Set = false; diff --git a/CEMU Mod Importer/Mod.cs b/CEMU Mod Importer/Mod.cs index a559505..dd532d4 100644 --- a/CEMU Mod Importer/Mod.cs +++ b/CEMU Mod Importer/Mod.cs @@ -4,7 +4,6 @@ class Mod { public string Name; public string[] TitleIds; - public string Path; public string Description; public int Version = 3; public int fsPriority = 100;