mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
4a350951c3
@ -101,13 +101,9 @@ namespace Compression.BSA
|
|||||||
file.FullPath = Encoding.UTF8.GetString(_rdr.ReadBytes(_rdr.ReadInt16()));
|
file.FullPath = Encoding.UTF8.GetString(_rdr.ReadBytes(_rdr.ReadInt16()));
|
||||||
}
|
}
|
||||||
Files = files;
|
Files = files;
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public async ValueTask DisposeAsync()
|
|
||||||
{
|
|
||||||
_stream?.Dispose();
|
_stream?.Dispose();
|
||||||
_rdr?.Dispose();
|
_rdr.Dispose();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<IFile> Files { get; private set; }
|
public IEnumerable<IFile> Files { get; private set; }
|
||||||
|
@ -164,8 +164,7 @@ namespace Wabbajack.Common
|
|||||||
|
|
||||||
public static bool operator ==(Extension a, Extension b)
|
public static bool operator ==(Extension a, Extension b)
|
||||||
{
|
{
|
||||||
// Super fast comparison because extensions are interned
|
return string.Equals(a._extension, b._extension, StringComparison.CurrentCultureIgnoreCase);
|
||||||
return ReferenceEquals(a._extension, b._extension);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool operator !=(Extension a, Extension b)
|
public static bool operator !=(Extension a, Extension b)
|
||||||
|
@ -42,6 +42,25 @@ namespace Wabbajack.Test
|
|||||||
await utils.VerifyInstalledFile(mod, @"Data\scripts\test.pex");
|
await utils.VerifyInstalledFile(mod, @"Data\scripts\test.pex");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task TestCacheFileAreIgnored()
|
||||||
|
{
|
||||||
|
|
||||||
|
var profile = utils.AddProfile();
|
||||||
|
var mod = await utils.AddMod();
|
||||||
|
var testCache = await utils.AddModFile(mod, @"Data\scripts\test.cache", 10);
|
||||||
|
var testPex = await utils.AddModFile(mod, @"Data\scripts\test.pex", 10);
|
||||||
|
|
||||||
|
await utils.Configure();
|
||||||
|
|
||||||
|
await utils.AddManualDownload(
|
||||||
|
new Dictionary<string, byte[]> {{"/baz/biz.pex", await testPex.ReadAllBytesAsync()}});
|
||||||
|
|
||||||
|
await CompileAndInstall(profile);
|
||||||
|
|
||||||
|
await utils.VerifyInstalledFile(mod, @"Data\scripts\test.pex");
|
||||||
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ExtraFilesInDownloadFolderDontStopCompilation()
|
public async Task ExtraFilesInDownloadFolderDontStopCompilation()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user