Skip to content

Commit 3b0a072

Browse files
committed
Fix for flag check, removed extraneous var.
1 parent f714dda commit 3b0a072

File tree

1 file changed

+1
-2
lines changed
  • xivModdingFramework/SqPack/FileTypes

1 file changed

+1
-2
lines changed

xivModdingFramework/SqPack/FileTypes/Index.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public async Task<bool> IsDefaultFilePath(string fullPath)
395395
var hasFlag = await FileExists(fullPath + ".flag");
396396

397397
// In order to be considered a DEFAULT file, the file must both EXIST *and* not have a flag.
398-
var stockFile = exists && hasFlag;
398+
var stockFile = exists && !hasFlag;
399399
return stockFile;
400400
}
401401

@@ -1046,7 +1046,6 @@ public bool AddFileDescriptor(string fullPath, int dataOffset, XivDataFile dataF
10461046

10471047
// Update the folder structure
10481048
var folderCount = SegmentSizes[3] / 16;
1049-
var foundFolder2 = false;
10501049

10511050
for (int i = 0; i < folderCount; i++)
10521051
{

0 commit comments

Comments
 (0)