From b41902815d4757db18ba997a564eac929cb15b9a Mon Sep 17 00:00:00 2001 From: erri120 Date: Thu, 12 Sep 2019 17:32:13 +0200 Subject: [PATCH] Changed all modpack references to modlist --- README.md | 4 ++-- Wabbajack.Common/Consts.cs | 2 +- Wabbajack/Compiler.cs | 4 ++-- Wabbajack/Installer.cs | 6 +++--- Wabbajack/MainWindow.xaml.cs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3bade7b5..d9afea38 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ continuum). 5) Wabbajack will start by indexing all your downloaded archives. This will take some time on most machines as the application has to performa `SHA-256` hash on every file in every archive. However the results of this operation are cached, so you'll only need to do this once for every downloaded file. -6) Once completed, Wabbajack will collect the files required for the modpack install and begin running them through the compilation stack. +6) Once completed, Wabbajack will collect the files required for the modlist install and begin running them through the compilation stack. 7) If all goes well, you should see a new `.exe` file next to `Wabbajack.exe` that you just ran. This new `.exe` is the one you want to hand out as a auto modlist installer. @@ -152,7 +152,7 @@ copyrighted material. Instead we copy instructions on how to modify the copyrigh Look at the [`RECIPES.md`] file, we keep a knowledgebase of how to deal with given types of mods in that file. -**Why does each modpack install another copy of Mod Organizer 2?** +**Why does each modlist install another copy of Mod Organizer 2?** Self-contained folders are a cleaner abstraction than dumping tons of modlists into the same set of folders. It's easy to uninstall a modlist (simply delete the folder), and MO2 really isn't designed to support lots of disparate modlists. For example if two modlists both wanted a given texture mod, but different options they would diff --git a/Wabbajack.Common/Consts.cs b/Wabbajack.Common/Consts.cs index e5819c4c..b0c5564c 100644 --- a/Wabbajack.Common/Consts.cs +++ b/Wabbajack.Common/Consts.cs @@ -12,7 +12,7 @@ namespace Wabbajack.Common { public static string GameFolderFilesDir = "Game Folder Files"; public static string LOOTFolderFilesDir = "LOOT Config Files"; - public static string ModPackMagic = "Celebration!, Cheese for Everyone!"; + public static string ModListMagic = "Celebration!, Cheese for Everyone!"; public static string BSACreationDir = "TEMP_BSA_FILES"; public static string MegaPrefix = "https://mega.nz/#!"; diff --git a/Wabbajack/Compiler.cs b/Wabbajack/Compiler.cs index c265a46f..6fa6f9de 100644 --- a/Wabbajack/Compiler.cs +++ b/Wabbajack/Compiler.cs @@ -499,7 +499,7 @@ namespace Wabbajack } else { - Error("No way to handle archive {0} but it's required by the modpack", found.Name); + Error("No way to handle archive {0} but it's required by the modlist", found.Name); return null; } @@ -1120,7 +1120,7 @@ namespace Wabbajack bw.Write(data.LongLength); bw.Write(data); bw.Write(orig_pos); - bw.Write(Encoding.ASCII.GetBytes(Consts.ModPackMagic)); + bw.Write(Encoding.ASCII.GetBytes(Consts.ModListMagic)); } } } diff --git a/Wabbajack/Installer.cs b/Wabbajack/Installer.cs index ebed4718..944eeaab 100644 --- a/Wabbajack/Installer.cs +++ b/Wabbajack/Installer.cs @@ -630,18 +630,18 @@ namespace Wabbajack return HashArchive(e); } - public static string CheckForModPack() + public static string CheckForModList() { Utils.Log("Looking for attached modlist"); using (var s = File.OpenRead(Assembly.GetExecutingAssembly().Location)) { - var magic_bytes = Encoding.ASCII.GetBytes(Consts.ModPackMagic); + var magic_bytes = Encoding.ASCII.GetBytes(Consts.ModListMagic); s.Position = s.Length - magic_bytes.Length; using (var br = new BinaryReader(s)) { var bytes = br.ReadBytes(magic_bytes.Length); var magic = Encoding.ASCII.GetString(bytes); - if (magic != Consts.ModPackMagic) + if (magic != Consts.ModListMagic) { return null; diff --git a/Wabbajack/MainWindow.xaml.cs b/Wabbajack/MainWindow.xaml.cs index 4fa1bd7b..e0aab4bc 100644 --- a/Wabbajack/MainWindow.xaml.cs +++ b/Wabbajack/MainWindow.xaml.cs @@ -76,7 +76,7 @@ namespace Wabbajack { new Thread(() => { - var modlist = Installer.CheckForModPack(); + var modlist = Installer.CheckForModList(); if (modlist == null) { Utils.Log("No Modlist found, running in Compiler mode.");