From 6ffe327fecb67d42793c3de649285861c2c11802 Mon Sep 17 00:00:00 2001 From: RetroDriven Date: Mon, 20 Nov 2023 12:26:09 -0500 Subject: [PATCH] Prep for v1.5.9 --- Controls/Manage_Cores/ManageCores.cs | 18 +++++++++++++++++- Controls/Update_Pocket/Update_Pocket.cs | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Controls/Manage_Cores/ManageCores.cs b/Controls/Manage_Cores/ManageCores.cs index baace70..82c3254 100644 --- a/Controls/Manage_Cores/ManageCores.cs +++ b/Controls/Manage_Cores/ManageCores.cs @@ -11,6 +11,7 @@ using pannella.analoguepocket; using System.Text.Json; using Pocket_Updater.Forms.Message_Box; +using System.Xml.Linq; namespace Pocket_Updater.Controls.Manage_Cores { @@ -137,7 +138,22 @@ public async Task LoadCores() string Core_Author = Identifier.Substring(0, (Identifier.Length - 1)); //array containing the data for the 3 columns - object[] rows = { !_settingsManager.GetCoreSettings(core.identifier).skip, core.platform.name, Core_Author }; + //the core platform name from the api + var platform = core.ReadPlatformFile(); + + //readt he platform json file + var name = core.platform.name; + + //if it finds one, use the name from there instead + if (platform != null) + { + name = platform.name; + } + if (core.requires_license) + { + name += " (Beta Key Required from Patreon)"; + } + object[] rows = { !_settingsManager.GetCoreSettings(core.identifier).skip, name, Core_Author }; int index = dataGridView1.Rows.Add(rows); dataGridView1.Rows[index].Tag = core.identifier; diff --git a/Controls/Update_Pocket/Update_Pocket.cs b/Controls/Update_Pocket/Update_Pocket.cs index 397e7c9..5e79eb5 100644 --- a/Controls/Update_Pocket/Update_Pocket.cs +++ b/Controls/Update_Pocket/Update_Pocket.cs @@ -337,6 +337,7 @@ private void _updater_UpdateProcessComplete(object? sender, UpdateProcessComplet //JT Beta Key if (e.MissingBetaKeys.Count > 0) { + Summary.textBox1.AppendText(Environment.NewLine); Summary.textBox1.AppendText("Missing/Incorrect JT Beta Key For:"); Summary.textBox1.AppendText(Environment.NewLine); Summary.textBox1.AppendText("-----------------------");