Skip to content

Commit

Permalink
Fix unwanted loading of chequip
Browse files Browse the repository at this point in the history
Regression in 9e67b3c
  • Loading branch information
nickgal committed Oct 4, 2023
1 parent a58e715 commit b8bda98
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions LanternExtractor/EqFileHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq;

Expand Down Expand Up @@ -158,8 +158,14 @@ public static string ObjArchivePath(string archivePath)

private static bool IsValidArchive(string archiveName)
{
return archiveName.EndsWith(".s3d") || archiveName.EndsWith(".t3d") || archiveName.EndsWith(".pfs")
&& !archiveName.Contains("chequip") && !archiveName.EndsWith("_lit.s3d");
// chequip contains broken/conflicting data.
// _lit archives get injected later during archive extraction
if (archiveName.Contains("chequip") || archiveName.EndsWith("_lit.s3d"))
{
return false;
}

return archiveName.EndsWith(".s3d") || archiveName.EndsWith(".t3d") || archiveName.EndsWith(".pfs");
}

private static bool IsZoneArchive(string archiveName)
Expand Down

0 comments on commit b8bda98

Please sign in to comment.