mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-21 12:53:18 +12:00
Added check and Warning for BSIPA
Simple check if IPA.exe and IPA Directory exists before trying to delete it.
This commit is contained in:
parent
1c1332f1b5
commit
5f814ab58e
|
@ -693,8 +693,15 @@ namespace ModAssistant.Pages
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (mod.name.ToLower() == "bsipa")
|
||||
UninstallBSIPA(links);
|
||||
if (mod.name.ToLower() == "bsipa") {
|
||||
if (Directory.Exists(Path.Combine(App.BeatSaberInstallDirectory, "IPA")) & File.Exists(Path.Combine(App.BeatSaberInstallDirectory, "IPA.exe"){
|
||||
UninstallBSIPA(links);
|
||||
}
|
||||
else
|
||||
{
|
||||
System.Windows.Forms.MessageBox.Show("BSIPA was not uninstalled as it was not found.", "Failed to uninstall BSIPA.", MessageBoxButtons.OK,MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
foreach (Mod.FileHashes files in links.hashMd5)
|
||||
{
|
||||
if (File.Exists(Path.Combine(App.BeatSaberInstallDirectory, files.file)))
|
||||
|
|
Loading…
Reference in a new issue