diff --git a/PCK-Studio/App.config b/PCK-Studio/App.config index 732c8327..66b366dd 100644 --- a/PCK-Studio/App.config +++ b/PCK-Studio/App.config @@ -80,6 +80,9 @@ True + + Unknown + diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 1f334468..92f2264f 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -38,9 +38,7 @@ namespace PckStudio public MainForm() { InitializeComponent(); -#if DEBUG - DLCManager.Default.Platform = ConsolePlatform.WiiU; -#endif + Text = Application.ProductName; labelVersion.Text = $"{Application.ProductName}: {ApplicationScope.CurrentVersion}"; diff --git a/PCK-Studio/Program.cs b/PCK-Studio/Program.cs index 5d11a7d5..59ef2743 100644 --- a/PCK-Studio/Program.cs +++ b/PCK-Studio/Program.cs @@ -7,6 +7,8 @@ using System.Linq; using PckStudio.Internal; using PckStudio.Core.App; using PckStudio.Properties; +using PckStudio.Core.DLC; +using PckStudio.Forms.Additional_Popups; namespace PckStudio @@ -30,8 +32,16 @@ namespace PckStudio static void Main(string[] args) { Updater.Initialize(RawProjectUrl, Settings.Default.AutoUpdate); + if (Settings.Default.Platform == Core.ConsolePlatform.Unknown) + { + MessageBox.Show("Please choose on which console you're playing on.", "Select Platform", MessageBoxButtons.OK, MessageBoxIcon.Question); + var platformChooser = new ItemSelectionPopUp(Enum.GetNames(typeof(Core.ConsolePlatform))); + if (platformChooser.ShowDialog() == DialogResult.OK && Enum.IsDefined(typeof(Core.ConsolePlatform), platformChooser.SelectedItem)) + Settings.Default.Platform = (Core.ConsolePlatform)Enum.Parse(typeof(Core.ConsolePlatform), platformChooser.SelectedItem); + } ApplicationScope.Initialize(); + DLCManager.Default.Platform = Settings.Default.Platform; Trace.TraceInformation("Startup"); RPC.Initialize(); MainInstance = new MainForm(); diff --git a/PCK-Studio/Properties/Settings.Designer.cs b/PCK-Studio/Properties/Settings.Designer.cs index 4d098b08..b8198f4a 100644 --- a/PCK-Studio/Properties/Settings.Designer.cs +++ b/PCK-Studio/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace PckStudio.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.10.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -126,5 +126,17 @@ namespace PckStudio.Properties { this["ValidateImageDimension"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Unknown")] + public global::PckStudio.Core.ConsolePlatform Platform { + get { + return ((global::PckStudio.Core.ConsolePlatform)(this["Platform"])); + } + set { + this["Platform"] = value; + } + } } } diff --git a/PCK-Studio/Properties/Settings.settings b/PCK-Studio/Properties/Settings.settings index 3753a5f9..53c7283e 100644 --- a/PCK-Studio/Properties/Settings.settings +++ b/PCK-Studio/Properties/Settings.settings @@ -29,5 +29,8 @@ True + + Unknown + \ No newline at end of file