Fixes for supporting Fallout New Vegas

This commit is contained in:
Timothy Baldridge 2019-08-22 17:29:44 -06:00
parent 07df55383e
commit 114fefb38d
4 changed files with 11 additions and 3 deletions

View File

@ -121,10 +121,14 @@ namespace VFS
{
if (f.IsConcrete)
return !File.Exists(f.StagedPath);
if (f.Hash == null)
return true;
while (f.ParentPath != null)
{
if (Lookup(f.ParentPath) == null)
return true;
if (f.Hash == null)
return true;
f = Lookup(f.ParentPath);
}
return false;

View File

@ -51,7 +51,10 @@ namespace Wabbajack.Common
stream.Write(data, 0, data.Length);
if (!leave_open)
stream.Dispose();
{
stream.Flush();
stream.Close();
}
}
}
}

View File

@ -298,7 +298,7 @@ namespace Wabbajack
{
while (ex.InnerException != null) ex = ex.InnerException;
LogMsg(ex.StackTrace);
LogMsg(ex.InnerException.ToString());
LogMsg(ex.ToString());
LogMsg($"{ex.Message} - Can't continue");
}
});
@ -320,7 +320,7 @@ namespace Wabbajack
{
while (ex.InnerException != null) ex = ex.InnerException;
LogMsg(ex.StackTrace);
LogMsg(ex.InnerException.ToString());
LogMsg(ex.ToString());
LogMsg($"{ex.Message} - Can't continue");
}
});

View File

@ -82,6 +82,7 @@ namespace Wabbajack
private static string ConvertGameName(string gameName)
{
if (gameName == "SkyrimSE") return "skyrimspecialedition";
if (gameName == "FalloutNV") return "newvegas";
return gameName;
}