Skip to content

Commit

Permalink
Fixed logging when copying paks and setting up
Browse files Browse the repository at this point in the history
  • Loading branch information
TekkaGB committed Jun 28, 2022
1 parent b74c191 commit 21f6f9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Unverum/ModLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static void Build(string path, List<Mod> mods, bool? patched, string movi
// Copy over .paks and .sigs to ~mods folder in order
if (CopyFolder(mod.paks, modPath, folder, sig) > 0)
{
Global.logger.WriteLine($"Copied paks and sigs from {mod} over to {folder}", LoggerType.Info);
Global.logger.WriteLine($"Copied paks and sigs from {mod.name} over to {folder}", LoggerType.Info);
folderLetter++;
if (folderLetter == '{')
{
Expand Down
10 changes: 5 additions & 5 deletions Unverum/Setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ public static bool Generic(string exe, string projectName, string defaultPath, s
}
catch (Exception e)
{
Global.logger.WriteLine($"Couldn't find install path in registry ({e.Message})", LoggerType.Error);
}
}
if (!File.Exists(defaultPath))
{
Global.logger.WriteLine($"Couldn't find install path in registry, select path to exe instead", LoggerType.Warning);
OpenFileDialog dialog = new OpenFileDialog();
dialog.DefaultExt = ".exe";
dialog.Filter = otherExe == null ? $"Executable Files ({exe})|{exe}"
Expand Down Expand Up @@ -155,10 +155,10 @@ public static bool MHOJ2()
}
catch (Exception e)
{
Global.logger.WriteLine($"Couldn't find install path in registry ({e.Message})", LoggerType.Error);
}
if (!File.Exists(defaultPath))
{
Global.logger.WriteLine($"Couldn't find install path in registry, select path to exe instead", LoggerType.Warning);
OpenFileDialog dialog = new OpenFileDialog();
dialog.DefaultExt = ".exe";
dialog.Filter = $"Executable Files (MHOJ2.exe)|MHOJ2.exe";
Expand Down Expand Up @@ -198,10 +198,10 @@ public static bool ToA()
}
catch (Exception e)
{
Global.logger.WriteLine($"Couldn't find install path in registry ({e.Message})", LoggerType.Error);
}
if (!File.Exists(defaultPath))
{
Global.logger.WriteLine($"Couldn't find install path in registry, select path to exe instead", LoggerType.Warning);
OpenFileDialog dialog = new OpenFileDialog();
dialog.DefaultExt = ".exe";
dialog.Filter = $"Executable Files (Tales of Arise.exe)|Tales of Arise.exe";
Expand Down Expand Up @@ -283,10 +283,10 @@ public static bool JF()
}
catch (Exception e)
{
Global.logger.WriteLine($"Couldn't find install path in registry ({e.Message})", LoggerType.Error);
}
if (!File.Exists(defaultPath))
{
Global.logger.WriteLine($"Couldn't find install path in registry, select path to exe instead", LoggerType.Warning);
OpenFileDialog dialog = new OpenFileDialog();
dialog.DefaultExt = ".exe";
dialog.Filter = "Executable Files (JUMP_FORCE.exe)|JUMP_FORCE.exe";
Expand Down Expand Up @@ -328,10 +328,10 @@ public static bool DBFZ()
}
catch (Exception e)
{
Global.logger.WriteLine($"Couldn't find install path in registry ({e.Message})", LoggerType.Error);
}
if (!File.Exists(defaultPath))
{
Global.logger.WriteLine($"Couldn't find install path in registry, select path to exe instead", LoggerType.Warning);
OpenFileDialog dialog = new OpenFileDialog();
dialog.DefaultExt = ".exe";
dialog.Filter = "Executable Files (DBFighterZ.exe)|DBFighterZ.exe";
Expand Down

0 comments on commit 21f6f9c

Please sign in to comment.