Remove unnecessary reference to library Wabbajack.Common

Remove if that is always true
This commit is contained in:
trawzified 2019-12-21 19:50:25 +01:00
parent 46b8f97bd0
commit aa13a363bf
4 changed files with 4 additions and 5 deletions

View File

@ -45,14 +45,13 @@ namespace Wabbajack.Lib
ConfigureProcessor(18, await RecommendQueueSize());
var game = ModList.GameType.MetaData();
if (GameFolder == null)
GameFolder = game.GameLocation();
GameFolder = game.GameLocation();
if (GameFolder == null)
{
MessageBox.Show(
$"In order to do a proper install Wabbajack needs to know where your {game.MO2Name} folder resides. We tried looking the" +
"game location up in the windows registry but were unable to find it, please make sure you launch the game once before running this installer. ",
"game installation location up in the Windows registry but were unable to find it, please make sure you launch the game once before running this installer.",
"Could not find game location", MessageBoxButton.OK);
Utils.Log("Exiting because we couldn't find the game folder.");
return false;

View File

@ -24,10 +24,10 @@ namespace Wabbajack
AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
{
// Don't do any special logging side effects
Wabbajack.Common.Utils.Error(((Exception)e.ExceptionObject), "Uncaught error");
Utils.Error(((Exception)e.ExceptionObject), "Uncaught error");
};
Wabbajack.Common.Utils.Log($"Wabbajack Build - {ThisAssembly.Git.Sha}");
Utils.Log($"Wabbajack Build - {ThisAssembly.Git.Sha}");
// Run some init tasks in background
Task.Run(async () =>