mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added StagingLocation to InstallationSettings
This commit is contained in:
parent
3724d0d296
commit
7ca874551a
@ -53,6 +53,7 @@ namespace Wabbajack
|
||||
public class InstallationSettings
|
||||
{
|
||||
public string InstallationLocation { get; set; }
|
||||
public string StagingLocation { get; set; }
|
||||
public string DownloadLocation { get; set; }
|
||||
}
|
||||
|
||||
|
@ -129,12 +129,15 @@ namespace Wabbajack
|
||||
};
|
||||
|
||||
// Load settings
|
||||
InstallationSettings settings = this.MWVM.Settings.InstallationSettings.TryCreate(source);
|
||||
var settings = MWVM.Settings.InstallationSettings.TryCreate(source);
|
||||
this.MWVM.Settings.SaveSignal
|
||||
.Subscribe(_ =>
|
||||
{
|
||||
settings.InstallationLocation = this.Location.TargetPath;
|
||||
settings.DownloadLocation = this.DownloadLocation.TargetPath;
|
||||
settings.DownloadLocation = DownloadLocation.TargetPath;
|
||||
if (IsMO2ModList)
|
||||
settings.InstallationLocation = Location.TargetPath;
|
||||
else
|
||||
settings.StagingLocation = StagingLocation.TargetPath;
|
||||
})
|
||||
.DisposeWith(this.CompositeDisposable);
|
||||
|
||||
@ -163,6 +166,8 @@ namespace Wabbajack
|
||||
if (modList.ModManager == ModManager.Vortex)
|
||||
{
|
||||
IsMO2ModList = false;
|
||||
StagingLocation.TargetPath = settings.StagingLocation;
|
||||
|
||||
var vortexFolder =
|
||||
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
|
||||
"Vortex");
|
||||
|
Loading…
Reference in New Issue
Block a user