File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
xivModdingFramework/Cache Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -481,13 +481,15 @@ private static async Task MigrateCache(Version lastCacheVersion) {
481
481
int uncompressedSize = - 1 ;
482
482
long seekTo = Dat . OffsetCorrection ( datNum , mod . data . modOffset ) + 8 ;
483
483
484
- // Seek to and read the uncompressed texture size
484
+ // Seek to and read the uncompressed texture size catching any exceptions
485
+ // because we handle further processing with the initial value of -1
486
+ try
485
487
{
486
488
using var reader = new BinaryReader ( File . OpenRead ( datPath ) ) ;
487
489
reader . BaseStream . Position = seekTo ;
488
490
489
491
uncompressedSize = reader . ReadInt32 ( ) ;
490
- }
492
+ } catch ( Exception ) { }
491
493
492
494
// If we read an uncompressed size, seek to the same position and write the fixed uncompressed texture size
493
495
if ( uncompressedSize != - 1 )
You can’t perform that action at this time.
0 commit comments