Ejemplo n.º 1
0
        protected override void LoadContent()
        {
            base.LoadContent();

            // Replace contInitialLoad
            GameContentManager contentManager = CreateContentManager(this.Content.ServiceProvider, this.Content.RootDirectory);
            FieldInfo          f = typeof(Game1).GetField("contInitialLoad", BindingFlags.NonPublic | BindingFlags.Instance);

            f.SetValue(this, contentManager);
            RenderMaster.LoadingScreenAssets.txSplash = contentManager.Load <Texture2D>("Splash");

            this.OnContentLoaded();
        }