This commit is contained in:
Razmoth
2023-08-01 01:47:05 +04:00
parent f79a87b8b4
commit 4d66f243b2

View File

@@ -127,14 +127,6 @@ namespace AssetStudio
}
return true;
}
public static bool IsReadable(string path, Game game)
{
var reader = new FileReader(path);
reader = reader.PreProcessing(game);
reader.Dispose();
return reader.FileType != FileType.ResourceFile;
}
}
public static class FileReaderExtensions
@@ -172,6 +164,9 @@ namespace AssetStudio
case GameType.AnchorPanic:
reader = DecryptAnchorPanic(reader);
break;
case GameType.DreamscapeAlbireo:
reader = DecryptDreamscapeAlbireo(reader);
break;
}
}
if (reader.FileType == FileType.BundleFile && game.Type.IsBlockFile())