Beispiel #1
0
        static void Main()
        {
            string gamePath = RegistryFunctions.searchGamePath();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new PatchSwitcher(gamePath));
        }
Beispiel #2
0
        public Fixer()
        {
            string leafPath = RegistryFunctions.searchLeafPath();

            if (leafPath == null)
            {
                leafPath = @"My Battle for Middle-earth(tm) II Files";
            }
            destinationDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\" + leafPath + @"\Options.ini";
            destinationPath      = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\" + leafPath + @"\";
        }