message chagne, fixed the most annoying bug

This commit is contained in:
NicoAICP 2020-08-26 05:02:21 +02:00
parent 9b15105111
commit e4dc3a17bb
2 changed files with 18 additions and 10 deletions

View file

@ -169,13 +169,22 @@ namespace UWUVCI_AIO_WPF
long freeSpaceInBytes = 0; long freeSpaceInBytes = 0;
if (!mvm.saveworkaround) if (!mvm.saveworkaround)
{ {
try
{
long gamesize = new FileInfo(RomPath).Length;
var drive = new DriveInfo(tempPath);
done = true;
freeSpaceInBytes = drive.AvailableFreeSpace;
}
catch(Exception e)
{
mvm.saveworkaround = true;
}
long gamesize = new FileInfo(RomPath).Length;
var drive = new DriveInfo(tempPath);
done = true;
freeSpaceInBytes = drive.AvailableFreeSpace;
} }
long neededspace = 0; long neededspace = 0;
@ -662,7 +671,7 @@ namespace UWUVCI_AIO_WPF
private static void WII(string romPath, MainViewModel mvm) private static void WII(string romPath, MainViewModel mvm)
{ {
string savedir = Directory.GetCurrentDirectory(); string savedir = Directory.GetCurrentDirectory();
if (romPath.Contains("nkit") || mvm.NKITFLAG) if (mvm.NKITFLAG || romPath.Contains("nkit"))
{ {
using (Process toiso = new Process()) using (Process toiso = new Process())
{ {

View file

@ -297,7 +297,6 @@ namespace UWUVCI_AIO_WPF
{ {
NKITFLAG = false; NKITFLAG = false;
} }
MessageBox.Show(NKITFLAG.ToString());
} }
} }
@ -560,7 +559,7 @@ namespace UWUVCI_AIO_WPF
string ret = string.Empty; 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 try
{ {
cm.Owner = mw; cm.Owner = mw;
@ -953,7 +952,7 @@ namespace UWUVCI_AIO_WPF
} }
gc2rom = ""; 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; cm.Owner = mw;
} }