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;
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 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())
{

View file

@ -297,7 +297,6 @@ namespace UWUVCI_AIO_WPF
{
NKITFLAG = false;
}
MessageBox.Show(NKITFLAG.ToString());
}
}
@ -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;
}