Search in sources :

Example 1 with BundleWriter

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);
    }
}
Also used : Bundle(info.ata4.junity.bundle.Bundle) BundleWriter(info.ata4.junity.bundle.BundleWriter) IOException(java.io.IOException)

Aggregations

Bundle (info.ata4.junity.bundle.Bundle)1 BundleWriter (info.ata4.junity.bundle.BundleWriter)1 IOException (java.io.IOException)1