checking if all bse folders exist now

This commit is contained in:
NicoAICP 2020-07-31 21:03:12 +02:00
parent 696701d741
commit 2b7a589366
3 changed files with 13 additions and 4 deletions

View file

@ -19,7 +19,7 @@ namespace UWUVCI_AIO_WPF
{
Timer t = new Timer(5000);
private void Application_Startup(object sender, StartupEventArgs e)
{
{
if (Directory.Exists(@"custom"))
{

View file

@ -211,6 +211,10 @@ namespace UWUVCI_AIO_WPF
//Custom Base Functionality here
CopyBase($"Custom", Configuration.CBasePath);
}
if(!Directory.Exists(Path.Combine(baseRomPath, "code")) || !Directory.Exists(Path.Combine(baseRomPath, "content")) || !Directory.Exists(Path.Combine(baseRomPath, "meta")))
{
throw new Exception("MISSINGF");
}
mvm.Progress = 10;
mvm.msg = "Injecting ROM...";
if (mvm.GC)
@ -249,7 +253,12 @@ namespace UWUVCI_AIO_WPF
Clean();
return false;
}
if (e.Message.Contains("Images")){
if (e.Message == "MISSINGF")
{
MessageBox.Show("Injection Failed because there are base files missing. \nPlease redownload the base, or redump if you used a custom base! ", "Injection Failed", MessageBoxButton.OK, MessageBoxImage.Error);
}
else if (e.Message.Contains("Images")){
MessageBox.Show("Injection Failed due to wrong BitDepth, please check if your Files are in a different bitdepth than 32bit or 24bit", "Injection Failed", MessageBoxButton.OK, MessageBoxImage.Error);
}

View file

@ -477,8 +477,8 @@ namespace UWUVCI_AIO_WPF
(FindResource("mvm") as MainViewModel).saveworkaround = true;
spc.Visibility = Visibility.Visible;
spc.Text = "Space Bypass Mode";
spc.ToolTip = "Disables all Space checks. May cause issues.";
}
spc.ToolTip = "Disables all Space checks. May cause issues.";
}
private void Window_MouseUp(object sender, MouseButtonEventArgs e)
{