Vortex folder will be detected and set if found

This commit is contained in:
erri120 2019-11-14 18:49:38 +01:00 committed by Timothy Baldridge
parent f391254f1d
commit c41e1999f8

View File

@ -41,7 +41,9 @@ namespace Wabbajack.Lib
//args: wabbajacke.exe gameName gamePath vortexfolder stagingfolder downloadsfolder //args: wabbajacke.exe gameName gamePath vortexfolder stagingfolder downloadsfolder
VortexFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Vortex"); VortexFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Vortex");
if (File.Exists(Path.Combine(VortexFolder, gameName, "mods", "__vortex_staging_folder")))
StagingFolder = Path.Combine(VortexFolder, gameName, "mods"); StagingFolder = Path.Combine(VortexFolder, gameName, "mods");
if (File.Exists(Path.Combine(VortexFolder, "downloads", gameName, "__vortex_downloads_folder")))
DownloadsFolder = Path.Combine(VortexFolder, "downloads", gameName); DownloadsFolder = Path.Combine(VortexFolder, "downloads", gameName);
if (args.Length >= 4) if (args.Length >= 4)