Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrus88 committed May 28, 2016
1 parent 81e2255 commit b5e8d53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CascLib/WowRootHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ private bool LoadPreHashedListFile(string pathbin, string pathtext, BackgroundWo
{
string dirName = br.ReadString();

//Logger.WriteLine(dirName);
Logger.WriteLine(dirName);

int numFiles = br.ReadInt32();

Expand Down Expand Up @@ -350,7 +350,7 @@ public override void LoadListFile(string path, BackgroundWorkerEx worker = null)
{
bw.Write(dir.Key); // dir name

//Logger.WriteLine(dir.Key);
Logger.WriteLine(dir.Key);

bw.Write(dirData[dir.Key].Count); // count of files in dir

Expand Down Expand Up @@ -410,7 +410,7 @@ protected override CASCFolder CreateStorageTree()
return root;
}

public bool IsUnknownFile(ulong hash) => !CASCFile.FileNames.ContainsKey(hash);
public bool IsUnknownFile(ulong hash) => RootData.ContainsKey(hash) && !CASCFile.FileNames.ContainsKey(hash);

public override void Clear()
{
Expand Down

0 comments on commit b5e8d53

Please sign in to comment.