From 13cb9802663c41cc80f0106ae0c287ed6fd49b53 Mon Sep 17 00:00:00 2001 From: NicoAICP Date: Mon, 22 Jun 2020 22:19:39 +0200 Subject: [PATCH] almost every reported bug fixed --- UWUVCI AIO WPF/Classes/BootImage.cs | 4 +-- UWUVCI AIO WPF/Classes/Injection.cs | 30 +++++++++---------- UWUVCI AIO WPF/Models/MainViewModel.cs | 26 ++++++++++++++-- UWUVCI AIO WPF/UI/Frames/InjectFrame.xaml | 2 +- UWUVCI AIO WPF/UI/Frames/InjectFrame.xaml.cs | 4 ++- ...OtherConfigs - Kopieren - Kopieren.xaml.cs | 4 +-- UWUVCI AIO WPF/UI/Windows/MenuWindow.xaml.cs | 2 ++ 7 files changed, 49 insertions(+), 23 deletions(-) diff --git a/UWUVCI AIO WPF/Classes/BootImage.cs b/UWUVCI AIO WPF/Classes/BootImage.cs index 8c4d16c..88df08a 100644 --- a/UWUVCI AIO WPF/Classes/BootImage.cs +++ b/UWUVCI AIO WPF/Classes/BootImage.cs @@ -205,7 +205,7 @@ namespace UWUVCI_AIO_WPF.Classes GraphicsPath r = new GraphicsPath(); r.AddString("Released: " + Released.ToString(), font.FontFamily, (int)(FontStyle.Regular), - g.DpiY * 25.0F / 72.0F, new Rectangle(586, 450, 300, 40), format); + g.DpiY * 25.0F / 72.0F, new Rectangle(586, 450, 600, 40), format); g.DrawPath(shadow, r); g.DrawPath(outline, r); g.FillPath(brush, r); @@ -218,7 +218,7 @@ namespace UWUVCI_AIO_WPF.Classes p.AddString("Players: " + pStr, font.FontFamily, (int)(FontStyle.Regular), - g.DpiY * 25.0F / 72.0F, new Rectangle(586, 496, 400, 40), format); + g.DpiY * 25.0F / 72.0F, new Rectangle(586, 496, 600, 40), format); g.DrawPath(shadow, p); diff --git a/UWUVCI AIO WPF/Classes/Injection.cs b/UWUVCI AIO WPF/Classes/Injection.cs index 0f31880..3f75a6e 100644 --- a/UWUVCI AIO WPF/Classes/Injection.cs +++ b/UWUVCI AIO WPF/Classes/Injection.cs @@ -1821,12 +1821,12 @@ namespace UWUVCI_AIO_WPF string gameName = string.Empty; if(gameNameOr != string.Empty && gameNameOr != null) { - Regex reg = new Regex("[^a-zA-Z0-9 éÉ - |]"); - gameName= reg.Replace(gameNameOr, ""); + + gameName = gameNameOr; if (gameName.Contains('|')) { var split = gameName.Split('|'); - gameName = split[0] + ", " + split[1]; + gameName = split[0] + "," + split[1]; } } @@ -1844,18 +1844,18 @@ namespace UWUVCI_AIO_WPF doc.Load(metaXml); if (gameName != null && gameName != string.Empty) { - doc.SelectSingleNode("menu/longname_ja").InnerText = gameName.Replace(",", "" ); - doc.SelectSingleNode("menu/longname_en").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_fr").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_de").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_it").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_es").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_zhs").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_ko").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_nl").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_pt").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_ru").InnerText = gameName.Replace(",", ""); - doc.SelectSingleNode("menu/longname_zht").InnerText = gameName.Replace(",", ""); + doc.SelectSingleNode("menu/longname_ja").InnerText = gameName.Replace(",", "\n" ); + doc.SelectSingleNode("menu/longname_en").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_fr").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_de").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_it").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_es").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_zhs").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_ko").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_nl").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_pt").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_ru").InnerText = gameName.Replace(",", "\n"); + doc.SelectSingleNode("menu/longname_zht").InnerText = gameName.Replace(",", "\n"); } /* if(code != null) diff --git a/UWUVCI AIO WPF/Models/MainViewModel.cs b/UWUVCI AIO WPF/Models/MainViewModel.cs index 86f9b19..3861c46 100644 --- a/UWUVCI AIO WPF/Models/MainViewModel.cs +++ b/UWUVCI AIO WPF/Models/MainViewModel.cs @@ -36,6 +36,18 @@ namespace UWUVCI_AIO_WPF { public class MainViewModel : BaseModel { + private bool Injected2 = false; + public bool injected2 + { + + get { return Injected2; } + set + { + Injected2 = value; + OnPropertyChanged(); + } + + } public string prodcode = ""; //public GameConfig GameConfiguration { get; set; } private GameConfig gameConfiguration = new GameConfig(); @@ -1068,8 +1080,18 @@ namespace UWUVCI_AIO_WPF task.Start();*/ Task.Run(() => { - if (Injection.Inject(GameConfiguration, RomPath, this, force)) Injected = true; - else Injected = false; + if (Injection.Inject(GameConfiguration, RomPath, this, force)) + { + + Injected = true; + injected2 = true; + if(GameConfiguration.Console == GameConsoles.WII || GameConfiguration.Console == GameConsoles.GCN) + { + injected2 = false; + } + + } + else { Injected = false; injected2 = false; } }); DownloadWait dw = new DownloadWait("Injecting Game - Please Wait", "", this); try diff --git a/UWUVCI AIO WPF/UI/Frames/InjectFrame.xaml b/UWUVCI AIO WPF/UI/Frames/InjectFrame.xaml index 2a913f7..4dadbd5 100644 --- a/UWUVCI AIO WPF/UI/Frames/InjectFrame.xaml +++ b/UWUVCI AIO WPF/UI/Frames/InjectFrame.xaml @@ -15,7 +15,7 @@