diff --git a/UWUVCI AIO WPF/Classes/Injection.cs b/UWUVCI AIO WPF/Classes/Injection.cs index 44a9852..17857c4 100644 --- a/UWUVCI AIO WPF/Classes/Injection.cs +++ b/UWUVCI AIO WPF/Classes/Injection.cs @@ -169,13 +169,22 @@ namespace UWUVCI_AIO_WPF long freeSpaceInBytes = 0; if (!mvm.saveworkaround) { - - long gamesize = new FileInfo(RomPath).Length; - - var drive = new DriveInfo(tempPath); + try + { + long gamesize = new FileInfo(RomPath).Length; - done = true; - freeSpaceInBytes = drive.AvailableFreeSpace; + var drive = new DriveInfo(tempPath); + + done = true; + freeSpaceInBytes = drive.AvailableFreeSpace; + } + catch(Exception e) + { + mvm.saveworkaround = true; + } + + + } long neededspace = 0; @@ -662,7 +671,7 @@ namespace UWUVCI_AIO_WPF private static void WII(string romPath, MainViewModel mvm) { string savedir = Directory.GetCurrentDirectory(); - if (romPath.Contains("nkit") || mvm.NKITFLAG) + if (mvm.NKITFLAG || romPath.Contains("nkit")) { using (Process toiso = new Process()) { diff --git a/UWUVCI AIO WPF/Models/MainViewModel.cs b/UWUVCI AIO WPF/Models/MainViewModel.cs index a488124..a206106 100644 --- a/UWUVCI AIO WPF/Models/MainViewModel.cs +++ b/UWUVCI AIO WPF/Models/MainViewModel.cs @@ -297,7 +297,6 @@ namespace UWUVCI_AIO_WPF { NKITFLAG = false; } - MessageBox.Show(NKITFLAG.ToString()); } } @@ -560,7 +559,7 @@ namespace UWUVCI_AIO_WPF string ret = string.Empty; - Custom_Message cm = new Custom_Message("Information", " Please put a TurboGrafX CD ROM into a folder and select said folder.\n\n The Folder should at least contain:\n EXACTLY ONE *.hcd file\n One or more *.ogg files\n One or More *.bin files\n\n Not doing so will result in a faulty Inject. You have been warned!"); + Custom_Message cm = new Custom_Message("Information", " Please put a TurboGrafX CD ROM into a folder and select said folder. \n\n The Folder should at least contain: \n EXACTLY ONE *.hcd file \n One or more *.ogg files \n One or More *.bin files \n\n Not doing so will result in a faulty Inject. You have been warned! "); try { cm.Owner = mw; @@ -953,7 +952,7 @@ namespace UWUVCI_AIO_WPF } gc2rom = ""; - Custom_Message cm = new Custom_Message("Injection Complete", $" It's recommended to install onto USB to avoid brick risks.{extra}\n To Open the Location of the Inject press Open Folder.\n If you want the inject to be put on your SD now, press {names}. ", Settings.Default.OutPath); try + Custom_Message cm = new Custom_Message("Injection Complete", $" You need CFW (example: haxchi or mocha) to run and install this inject! \n It's recommended to install onto USB to avoid brick risks.{extra}\n To Open the Location of the Inject press Open Folder.\n If you want the inject to be put on your SD now, press {names}. ", Settings.Default.OutPath); try { cm.Owner = mw; }