diff --git a/Knossos.NET/Models/ModSettings.cs b/Knossos.NET/Models/ModSettings.cs
index 8c4d9d47..3104c79c 100644
--- a/Knossos.NET/Models/ModSettings.cs
+++ b/Knossos.NET/Models/ModSettings.cs
@@ -69,6 +69,16 @@ public bool IsDefaultConfig()
return true;
}
+ ///
+ /// Sets the filepath to the mod folder for the mod settings system, if it is not already set.
+ ///
+ ///
+ public void SetInitialFilePath(string modFullPath)
+ {
+ if (filePath == null)
+ filePath = modFullPath + Path.DirectorySeparatorChar + "mod_settings.json";
+ }
+
///
/// Load mod_settings.json data
/// Any new variabled must be added here or it will not be loaded
diff --git a/Knossos.NET/ViewModels/Templates/Tasks/InstallMod.cs b/Knossos.NET/ViewModels/Templates/Tasks/InstallMod.cs
index 9f568a29..768eb6e9 100644
--- a/Knossos.NET/ViewModels/Templates/Tasks/InstallMod.cs
+++ b/Knossos.NET/ViewModels/Templates/Tasks/InstallMod.cs
@@ -555,6 +555,8 @@ public async Task InstallMod(Mod mod, CancellationTokenSource cancelSource
mod.ClearUnusedData();
}
+ mod.modSettings.SetInitialFilePath(mod.fullPath);
+
//We have to compress?
if (compressMod)
{