public override int PrepareToLoad() { _globalBundlesPath = PYBundleFolderScanner.GetGlobalBundlesPath(PYBundleType.Data); _localBundlesPath = PYBundleFolderScanner.GetExpansionBundlesPath(PYBundleManager.Instance.ExpansionName, PYBundleType.Data); return(_globalBundlesPath.Count + _localBundlesPath.Count); }
public override int PrepareToLoad() { _globalBundlesPath = PYBundleFolderScanner.GetGlobalLocalizedBundlesPath(PYBundleType.Content, PYBundleManager.Instance.Language); if (_globalBundlesPath.Count == 0) { _globalBundlesPath = PYBundleFolderScanner.GetGlobalBundlesPath(PYBundleType.Content); } _localBundlesPath = PYBundleFolderScanner.GetExpansionLocalizedBundlesPath(PYBundleManager.Instance.ExpansionName, PYBundleType.Content, PYBundleManager.Instance.Language); if (_localBundlesPath.Count == 0) { _localBundlesPath = PYBundleFolderScanner.GetExpansionBundlesPath(PYBundleManager.Instance.ExpansionName, PYBundleType.Content); } return(_globalBundlesPath.Count + _localBundlesPath.Count); }