fixes
This commit is contained in:
@@ -18,6 +18,8 @@ public static class Program
|
||||
|
||||
public static ILogger Log => log;
|
||||
|
||||
internal static Options Options { get; private set; }
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
static extern nint GetConsoleWindow();
|
||||
|
||||
@@ -33,15 +35,15 @@ public static class Program
|
||||
[STAThread]
|
||||
internal static void Main(string[] args)
|
||||
{
|
||||
var options = new Options(args);
|
||||
if (options.Help)
|
||||
options.DrawHelp();
|
||||
else if (options.NoUi)
|
||||
InstallWithoutGui(options.UpdateOptions, options.Silent);
|
||||
Options = new Options(args);
|
||||
if (Options.Help)
|
||||
Options.DrawHelp();
|
||||
else if (Options.NoUi)
|
||||
InstallWithoutGui(Options.UpdateOptions, Options.Silent);
|
||||
else
|
||||
{
|
||||
ShowWindow(GetConsoleWindow(), 0);
|
||||
RunApp(options.UpdateOptions);
|
||||
RunApp(Options.UpdateOptions);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,6 +105,7 @@ public static class Program
|
||||
// Check for update
|
||||
var installer = new ModpackInstaller(config, info)
|
||||
{
|
||||
OverwriteRefTag = Options.RefTag,
|
||||
Log = Log,
|
||||
};
|
||||
var result = installer.Check(updateOptions).Result;
|
||||
|
||||
Reference in New Issue
Block a user