From 3040917d5ae8be300b8d7e02f785fca7b69bd2e2 Mon Sep 17 00:00:00 2001 From: Bitl Date: Fri, 29 Jul 2022 16:51:44 -0700 Subject: [PATCH] Added -nofilelist --- Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs | 3 +++ Novetus/NovetusCore/StorageAndFunctions/GlobalVars.cs | 1 + Novetus/NovetusLauncher/Forms/SDK/ModCreator.cs | 2 +- Novetus/NovetusLauncher/NovetusLauncherEntryPoint.cs | 5 +++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs b/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs index 2c283fa..6e6ae07 100644 --- a/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs +++ b/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs @@ -2920,6 +2920,9 @@ public class GlobalFuncs public static void CreateInitialFileListIfNeededMulti() { + if (GlobalVars.NoFileList) + return; + string filePath = GlobalPaths.ConfigDir + "\\InitialFileList.txt"; if (!File.Exists(filePath)) diff --git a/Novetus/NovetusCore/StorageAndFunctions/GlobalVars.cs b/Novetus/NovetusCore/StorageAndFunctions/GlobalVars.cs index 1cbbd2b..27bf00e 100644 --- a/Novetus/NovetusCore/StorageAndFunctions/GlobalVars.cs +++ b/Novetus/NovetusCore/StorageAndFunctions/GlobalVars.cs @@ -95,6 +95,7 @@ public static class GlobalVars public static bool AdminMode = false; public static bool ColorsLoaded = false; public static int ValidatedExtraFiles = 0; + public static bool NoFileList = false; #endregion } #endregion diff --git a/Novetus/NovetusLauncher/Forms/SDK/ModCreator.cs b/Novetus/NovetusLauncher/Forms/SDK/ModCreator.cs index 1111e24..c0fb11a 100644 --- a/Novetus/NovetusLauncher/Forms/SDK/ModCreator.cs +++ b/Novetus/NovetusLauncher/Forms/SDK/ModCreator.cs @@ -76,7 +76,7 @@ public partial class ModCreator : Form } else { - MessageBox.Show("The initial file list has not been generated. Please launch the Novetus Launcher to initalize it.\n\nNote: Use a fresh Novetus install for this process. Do NOT use a client with mods (Addon scripts, items, maps, etc.) already created, as they won't show up in the file listing. After initalizing a fresh copy of Novetus, you are free to build Mod Packages for it.", + MessageBox.Show("The initial file list has not been generated. Please launch the Novetus Launcher to initalize it or remove -nofilelist from the command line parameters.\n\nNote: Use a fresh Novetus install for this process. Do NOT use a client with mods (Addon scripts, items, maps, etc.) already created, as they won't show up in the file listing. After initalizing a fresh copy of Novetus, you are free to build Mod Packages for it.", "Mod Creator - Initial file list not found", MessageBoxButtons.OK, MessageBoxIcon.Error); this.Close(); } diff --git a/Novetus/NovetusLauncher/NovetusLauncherEntryPoint.cs b/Novetus/NovetusLauncher/NovetusLauncherEntryPoint.cs index 627cf45..5660af4 100644 --- a/Novetus/NovetusLauncher/NovetusLauncherEntryPoint.cs +++ b/Novetus/NovetusLauncher/NovetusLauncherEntryPoint.cs @@ -43,6 +43,11 @@ namespace NovetusLauncher { System.Windows.Forms.Application.Run(new NovetusSDK()); } + + if (CommandLine["nofilelist"] != null) + { + GlobalVars.NoFileList = true; + } } }