Пример #1
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            BlepOut Currblep = new BlepOut();

            Application.Run(Currblep);
        }
Пример #2
0
        public ModRelay(string path)
        {
            ModPath      = path;
            this.isValid = !ModData.AbsolutelyIgnore(ModPath);
            if (isValid)
            {
                if (BlepOut.AintThisPS(path))
                {
                    this.AssociatedModData = new InvalidModData(path);
                    this.MyType            = ModType.Invalid;
                    return;
                }
                ModType mt = GetModType(ModPath);
                switch (mt)
                {
                case ModType.Unknown:
                    this.AssociatedModData = new ModData(path);
                    this.MyType            = ModType.Unknown;
                    break;

                case ModType.Patch:
                    this.AssociatedModData = new PtModData(path);
                    this.MyType            = ModType.Patch;
                    break;

                case ModType.Partmod:
                    this.AssociatedModData = new HkModData(path);
                    this.MyType            = ModType.Partmod;
                    break;

                case ModType.BepPlugin:
                    this.AssociatedModData = new BepPluginData(path);
                    this.MyType            = ModType.BepPlugin;
                    break;

                case ModType.Invalid:
                    this.AssociatedModData = new InvalidModData(path);
                    this.MyType            = ModType.Invalid;
                    break;
                }
            }
        }