File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -427,8 +427,16 @@ where modPack.name.Equals(modPackName)
427
427
if ( modToRemove . source == "FilesAddedByTexTools" )
428
428
{
429
429
var index = new Index ( _gameDirectory ) ;
430
- index . DeleteFileDescriptor ( modToRemove . fullPath , XivDataFiles . GetXivDataFile ( modToRemove . datFile ) ) ;
431
- index . DeleteFileDescriptor ( $ "{ modToRemove . fullPath } .flag", XivDataFiles . GetXivDataFile ( modToRemove . datFile ) ) ;
430
+ var success = index . DeleteFileDescriptor ( modToRemove . fullPath , XivDataFiles . GetXivDataFile ( modToRemove . datFile ) ) ;
431
+ if ( ! success )
432
+ {
433
+ throw new Exception ( "Failed to delete file descriptor." ) ;
434
+ }
435
+ success = index . DeleteFileDescriptor ( $ "{ modToRemove . fullPath } .flag", XivDataFiles . GetXivDataFile ( modToRemove . datFile ) ) ;
436
+ if ( ! success )
437
+ {
438
+ throw new Exception ( "Failed to delete file descriptor." ) ;
439
+ }
432
440
}
433
441
if ( modToRemove . enabled )
434
442
{
You can’t perform that action at this time.
0 commit comments