AssetBundleInfo IBundleServices.GetAssetBundleInfo(string manifestPath) { if (_variantCollector != null) { PatchManifest patchManifest = _patcher.GetPatchManifest(); manifestPath = _variantCollector.RemapVariantName(patchManifest, manifestPath); } return(_patcher.GetAssetBundleInfo(manifestPath)); }
AssetBundleInfo IBundleServices.GetAssetBundleInfo(string bundleName) { if (_variantCollector != null) { PatchManifest patchManifest = _patcher.GetPatchManifest(); bundleName = _variantCollector.RemapVariantName(patchManifest, bundleName); } return(_patcher.GetAssetBundleInfo(bundleName)); }
AssetBundleInfo IBundleServices.GetAssetBundleInfo(string bundleName) { if (_variantCollector != null) { bundleName = _variantCollector.RemapVariantName(_patchManifest, bundleName); } if (_patchManifest.Elements.TryGetValue(bundleName, out PatchElement element)) { string localPath = AssetPathHelper.MakeStreamingLoadPath(element.MD5); AssetBundleInfo bundleInfo = new AssetBundleInfo(bundleName, localPath, string.Empty, element.Version, element.IsEncrypted); return(bundleInfo); } else { MotionLog.Warning($"Not found element in patch manifest : {bundleName}"); AssetBundleInfo bundleInfo = new AssetBundleInfo(bundleName, string.Empty); return(bundleInfo); } }