BundleInfo IBundleServices.GetBundleInfo(AssetInfo assetInfo)
        {
            if (assetInfo.IsInvalid)
            {
                throw new Exception("Should never get here !");
            }

            string bundleName = _appPatchManifest.GetBundleName(assetInfo.AssetPath);

            return(CreateBundleInfo(bundleName));
        }
Beispiel #2
0
        BundleInfo IBundleServices.GetBundleInfo(AssetInfo assetInfo)
        {
            if (assetInfo.IsInvalid)
            {
                throw new Exception("Should never get here !");
            }

            string bundleName = _simulatePatchManifest.GetBundleName(assetInfo.AssetPath);

            if (_simulatePatchManifest.Bundles.TryGetValue(bundleName, out PatchBundle patchBundle))
            {
                BundleInfo bundleInfo = new BundleInfo(patchBundle, BundleInfo.ELoadMode.LoadFromEditor, assetInfo.AssetPath);
                return(bundleInfo);
            }
            else
            {
                throw new Exception("Should never get here !");
            }
        }