use of info.ata4.junity.bundle.BundleWriter in project disunity by ata4.
the class BundlePack method runFile.
@Override
protected void runFile(Path file) {
if (outFile == null) {
String fileName = PathUtils.getBaseName(file);
outFile = file.getParent().resolve(fileName + ".unity3d");
}
Bundle bundle = new Bundle();
try (BundleWriter bundleWriter = new BundleWriter(outFile)) {
BundleProps.read(file, bundle);
bundleWriter.write(bundle, progress);
} catch (IOException ex) {
L.log(Level.WARNING, "Can't pack asset bundle " + file, ex);
}
}
Aggregations