diff --git a/Wabbajack.Lib/VortexCompiler.cs b/Wabbajack.Lib/VortexCompiler.cs index f8789ecd..6ea1b2ce 100644 --- a/Wabbajack.Lib/VortexCompiler.cs +++ b/Wabbajack.Lib/VortexCompiler.cs @@ -28,23 +28,29 @@ namespace Wabbajack.Lib public VortexCompiler(string gameName, string gamePath) { + _vortexCompiler = this; _mo2Compiler = null; ModManager = ModManager.Vortex; // TODO: only for testing IgnoreMissingFiles = true; + string[] args = Environment.GetCommandLineArgs(); GamePath = gamePath; GameName = gameName; Game = GameRegistry.GetByNexusName(GameName).Game; - // currently only works if staging and downloads folder is in the standard directory - // aka %APPDATADA%\Vortex\ + //args: wabbajacke.exe gameName gamePath vortexfolder stagingfolder downloadsfolder VortexFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Vortex"); StagingFolder = Path.Combine(VortexFolder, gameName, "mods"); DownloadsFolder = Path.Combine(VortexFolder, "downloads", gameName); + if (args.Length >= 4) + StagingFolder = args[3]; + if (args.Length == 5) + DownloadsFolder = args[4]; + ModListOutputFolder = "output_folder"; // TODO: add custom modlist name