Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Commit 996d9f4

Browse files
committed
Small BepInEx changes
- Will now remove the .zip when uninstalling
1 parent bbefe32 commit 996d9f4

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

VSM/ModManager.xaml.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,11 @@ private async void UninstallBepInEx(Server server)
296296

297297
foreach (ModInfo mod in Mods.ModList)
298298
{
299-
if (mod.Full_Name == "BepInEx-BepInExPack_V_Rising")
299+
if (mod.Uuid4 == "b86fcaaf-297a-45c8-82a0-fcbd7806fdc4")
300+
{
300301
mod.Installed = false;
302+
RemoveMod(mod);
303+
}
301304
}
302305

303306
server.InstalledMods = new();
@@ -308,15 +311,6 @@ private async void UninstallBepInEx(Server server)
308311
foreach (ModInfo modInfo in Mods.ModList)
309312
modInfo.Installed = false;
310313

311-
//foreach (Mod downloadedMod in vsmSettings.DownloadedMods)
312-
//{
313-
// if (downloadedMod.Uuid4 == "b86fcaaf-297a-45c8-82a0-fcbd7806fdc4")
314-
// {
315-
// vsmSettings.DownloadedMods.Remove(downloadedMod);
316-
// break;
317-
// }
318-
//}
319-
320314
_ = new ContentDialog
321315
{
322316
Owner = this,

0 commit comments

Comments
 (0)