mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixes for supporting Fallout New Vegas
This commit is contained in:
parent
07df55383e
commit
114fefb38d
@ -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;
|
||||
|
@ -51,7 +51,10 @@ namespace Wabbajack.Common
|
||||
stream.Write(data, 0, data.Length);
|
||||
|
||||
if (!leave_open)
|
||||
stream.Dispose();
|
||||
{
|
||||
stream.Flush();
|
||||
stream.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
@ -82,6 +82,7 @@ namespace Wabbajack
|
||||
private static string ConvertGameName(string gameName)
|
||||
{
|
||||
if (gameName == "SkyrimSE") return "skyrimspecialedition";
|
||||
if (gameName == "FalloutNV") return "newvegas";
|
||||
return gameName;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user