mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-23 03:23:03 +00:00
checking if all bse folders exist now
This commit is contained in:
parent
696701d741
commit
2b7a589366
3 changed files with 13 additions and 4 deletions
|
@ -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"))
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue