mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
fix LOOT directory not found error
This commit is contained in:
parent
7e501a1c2d
commit
9d225ff518
@ -7,6 +7,8 @@
|
||||
* Only sync the VFS cache when it changes.
|
||||
* Fix a crash in GroupedByArchive()
|
||||
* Detect and zEdit Merges and include binary patches for merges (no install support yet)
|
||||
* Add unit/integration tests.
|
||||
* Don't assume *everyone* has LOOT
|
||||
|
||||
#### Version 0.9.2 - 9/18/2013
|
||||
* Fixed a bug with BSA string encoding
|
||||
|
@ -138,13 +138,20 @@ namespace Wabbajack
|
||||
var loot_path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
|
||||
"LOOT");
|
||||
|
||||
Info($"Indexing {loot_path}");
|
||||
VFS.AddRoot(loot_path);
|
||||
// TODO: make this generic so we can add more paths
|
||||
IEnumerable<RawSourceFile> loot_files = new List<RawSourceFile>();
|
||||
if (Directory.Exists(loot_path))
|
||||
{
|
||||
Info($"Indexing {loot_path}");
|
||||
VFS.AddRoot(loot_path);
|
||||
|
||||
loot_files = Directory.EnumerateFiles(loot_path, "userlist.yaml", SearchOption.AllDirectories)
|
||||
.Where(p => p.FileExists())
|
||||
.Select(p => new RawSourceFile(VFS.Lookup(p))
|
||||
{ Path = Path.Combine(Consts.LOOTFolderFilesDir, p.RelativeTo(loot_path)) });
|
||||
}
|
||||
|
||||
|
||||
var loot_files = Directory.EnumerateFiles(loot_path, "userlist.yaml", SearchOption.AllDirectories)
|
||||
.Where(p => p.FileExists())
|
||||
.Select(p => new RawSourceFile(VFS.Lookup(p))
|
||||
{Path = Path.Combine(Consts.LOOTFolderFilesDir, p.RelativeTo(loot_path))});
|
||||
|
||||
|
||||
Info("Indexing Archives");
|
||||
|
Loading…
Reference in New Issue
Block a user