static void Main() { string gamePath = RegistryFunctions.searchGamePath(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new PatchSwitcher(gamePath)); }
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 + @"\"; }