Added -nofilelist

This commit is contained in:
Bitl 2022-07-29 16:51:44 -07:00
parent cc14235219
commit 3040917d5a
4 changed files with 10 additions and 1 deletions

View File

@ -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))

View File

@ -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

View File

@ -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();
}

View File

@ -43,6 +43,11 @@ namespace NovetusLauncher
{
System.Windows.Forms.Application.Run(new NovetusSDK());
}
if (CommandLine["nofilelist"] != null)
{
GlobalVars.NoFileList = true;
}
}
}