diff --git a/Assemblies/ModSwitch.dll b/Assemblies/ModSwitch.dll index be2135d..81a6016 100644 Binary files a/Assemblies/ModSwitch.dll and b/Assemblies/ModSwitch.dll differ diff --git a/README.md b/README.md index a6b4c76..0a4bb36 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,19 @@ # ModSwitch -_A Rimworld mod manager *(in the making)*_ +_A Rimworld mod manager_ -## Powered by ![Harmony](https://github.com/pardeike/Harmony) +Allows you to save and switch between sets of active mods with one click. + +Supports importing your sets from ModListBackup. + +## Third party acknowledgements + +### Uses ![Open Iconic](www.useiconic.com/open) + +Open Iconic is lisenced under a [MIT license](http://opensource.org/licenses/MIT). + +### Powered by ![Harmony](https://github.com/pardeike/Harmony)
diff --git a/Source/ModSwitch/ModSwitch.cs b/Source/ModSwitch/ModSwitch.cs
index bd17ea5..c2af395 100644
--- a/Source/ModSwitch/ModSwitch.cs
+++ b/Source/ModSwitch/ModSwitch.cs
@@ -7,7 +7,9 @@
using Verse;
namespace DoctorVanGogh.ModSwitch {
+
class ModSwitch : Mod {
+
private Settings _settings;
public ModSwitch(ModContentPack content) : base(content) {
@@ -30,5 +32,10 @@ public override void DoSettingsWindowContents(Rect inRect) {
public void DoModsConfigWindowContents(Rect bottom) {
_settings.DoModsConfigWindowContents(bottom);
}
+
+ public void DeleteSet(ModSet modSet) {
+ if (_settings.Sets.Remove(modSet))
+ WriteSettings();
+ }
}
}
diff --git a/Source/ModSwitch/ModSwitch.csproj b/Source/ModSwitch/ModSwitch.csproj
index 8f2a507..9f7a8b1 100644
--- a/Source/ModSwitch/ModSwitch.csproj
+++ b/Source/ModSwitch/ModSwitch.csproj
@@ -51,12 +51,17 @@