mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Readded start from .wabbajack logic to navigate to installer
This commit is contained in:
parent
da75aca5ca
commit
833213e8f4
@ -51,8 +51,29 @@ namespace Wabbajack
|
||||
.Subscribe()
|
||||
.DisposeWith(CompositeDisposable);
|
||||
|
||||
// Start on mode selection
|
||||
ActivePane = ModeSelectionVM;
|
||||
if (IsStartingFromModlist(out var path))
|
||||
{
|
||||
Installer.Value.ModListPath.TargetPath = path;
|
||||
ActivePane = Installer.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Start on mode selection
|
||||
ActivePane = ModeSelectionVM;
|
||||
}
|
||||
}
|
||||
|
||||
private static bool IsStartingFromModlist(out string modlistPath)
|
||||
{
|
||||
string[] args = Environment.GetCommandLineArgs();
|
||||
if (args.Length != 3 || !args[1].Contains("-i"))
|
||||
{
|
||||
modlistPath = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
modlistPath = args[2];
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user