Пример #1
0
        private void AutoloadBsp()
        {
            var demo = Demos.First();

            if (demo == null || demo.Models.Count < 1)
            {
                return;
            }

            foreach (PackFile pak in LoadedPaks)
            {
                string bspfile = demo.Models[0];
                if (pak.Contains(bspfile))
                {
                    Bsp bsp = new Bsp(pak.GetFile(bspfile));
                    Display.Bsp = bsp;
                }
            }
        }