Example #1
0
    private VfsSystem VfsIphoneCreateAbSystem()
    {
        VfsSystem abVfs = new VfsSystem();

        //优先读取sdcard里的ab目录
        abVfs.AddVfsDriver(new VfsLocalFsDriver(AssetBundleUtil.GetExternAssetBundleDir())); //, "file://"));
        abVfs.AddVfsDriver(new VfsLocalFsDriver(Application.streamingAssetsPath + "/ab/"));  //, "file://"));
        return(abVfs);
    }
Example #2
0
    private VfsSystem VfsWindowsCreateAbSystem()
    {
        VfsSystem abVfs = new VfsSystem();

        //优先读取sdcard里的ab目录
        abVfs.AddVfsDriver(new VfsLocalFsDriver(AssetBundleUtil.GetExternAssetBundleDir()));//, "file:///"));

        /*abVfs.AddVfsDriver(new VfsLocalFsDriver(Application.dataPath + "/../ab_enc/cab/",
         *  "file:///"));*/
        abVfs.AddVfsDriver(new VfsLocalFsDriver(Application.dataPath + "/../ab_enc/ab/"));/*,
                                                                                           * "file:///"));*/
        return(abVfs);
    }
Example #3
0
    private VfsSystem VfsAndroidCreateAbSystem()
    {
        VfsSystem abVfs = new VfsSystem();

        //优先读取sdcard里的ab目录
        var localPath = AssetBundleUtil.GetExternAssetBundleDir();

        abVfs.AddVfsDriver(new VfsLocalFsDriver(localPath));//, "file://"));

        BLogger.Info("Init local fs driver: {0}", localPath);

        string zipPath = Application.dataPath;

        abVfs.AddVfsDriver(new ZipVfsDriver(zipPath));

        BLogger.Info("Init driver zipPath: {0}", zipPath);

        return(abVfs);
    }