Пример #1
0
        private bool ImportResourceBundle(AbcFile abc, AbcMetaEntry e)
        {
            if (e.NameString != MetadataTags.ResourceBundle)
            {
                return(false);
            }

            string name = e.GetResourceBundleName();

            if (string.IsNullOrEmpty(name))
            {
                throw Errors.RBC.BadMetaEntry.CreateException();
            }

            var swc = abc.Swc;

            if (swc != null)
            {
                swc.LoadResourceBundles();
            }

            var context = new ResourceBundleContext {
                Swc = swc
            };

            ImportResourceBundle(name, context);
            return(true);
        }