Skip to content

Commit c4844f6

Browse files
committed
- Downgrade missing textures to warnings, rather than critical errors.
- Don't attempt to copy Offset 0 files.
1 parent 8155cf5 commit c4844f6

File tree

1 file changed

+5
-0
lines changed
  • xivModdingFramework/SqPack/FileTypes

1 file changed

+5
-0
lines changed

xivModdingFramework/SqPack/FileTypes/Dat.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,11 @@ public async Task<long> CopyFile(string sourcePath, string targetPath, string ca
14501450
{
14511451
var _index = new Index(_gameDirectory);
14521452
var offset = await _index.GetDataOffset(sourcePath);
1453+
if(offset == 0)
1454+
{
1455+
return 0;
1456+
}
1457+
14531458
var dataFile = IOUtil.GetDataFileFromPath(sourcePath);
14541459
return await CopyFile(offset, dataFile, targetPath, category, itemName, source, overwrite);
14551460
}

0 commit comments

Comments
 (0)