static void Main() { //UnlockDLC(); if (System.Diagnostics.Debugger.IsAttached) { NativeScriptCompiler.CompileIfChanged(); } Manager = new Manager(); Manager.Load(); YdkHelper.LoadIdMap(); //YdkHelper.GenerateIdMap(); MemTools = new MemTools(); MemTools.UseScreenStateTransitions = true; MemTools.CustomYdcBattlePacksEnabled = true; MemTools.RunProcessWatcher(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new DuelStarterForm()); MemTools.StopProcessWatcher(); }
static void Main() { //TestModifyCardNamedBin(GameVersion.LinkEvolution2); //UnlockDLC(GameVersion.LinkEvolution2); //Dump(GameVersion.LinkEvolution2); if (System.Diagnostics.Debugger.IsAttached) { NativeScriptCompiler.CompileIfChanged(); } Dictionary <GameVersion, string> installedVersions = new Dictionary <GameVersion, string>(); foreach (GameVersion version in Enum.GetValues(typeof(GameVersion))) { if (version == GameVersion.LinkEvolution1) { continue; } string dir = LotdArchive.GetInstallDirectory(version); if (!string.IsNullOrEmpty(dir) && Directory.Exists(dir)) { installedVersions[version] = dir; } } if (installedVersions.Count == 0) { MessageBox.Show("Failed to find LOTD install directory. Make sure you have LOTD installed via Steam (and hopefully not pirated!)"); return; } else if (installedVersions.Count == 1) { Version = installedVersions.First().Key; } else { if (MessageBox.Show("Target LOTD original version from 2016?", "LOTD", MessageBoxButtons.YesNo) == DialogResult.Yes) { Version = GameVersion.Lotd; } else { Version = GameVersion.LinkEvolution2; } } Manager = new Manager(Version); Manager.Load(); YdkHelper.LoadIdMap(); //YdkHelper.GenerateIdMap(); MemTools = new MemTools(Version); MemTools.UseScreenStateTransitions = true; MemTools.CustomYdcBattlePacksEnabled = true; MemTools.RunProcessWatcher(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new DuelStarterForm()); MemTools.StopProcessWatcher(); }