Exemple #1
0
            public override void Process(CmdTrigger <ToolCmdArgs> trigger)
            {
                var mod = trigger.Text.NextModifiers();

                if (mod == "e")
                {
                    WCellEnumWriter.WriteAllEnums();
                }
                else if (!mod.Contains("f") && VersionUpdater.WoWFile.Version <= WCellInfo.RequiredVersion)
                {
                    trigger.Reply("WCell does already have the same or higher version as the given client: " +
                                  WCellInfo.RequiredVersion);
                    trigger.Reply("Use the -f switch (force) to update again.");
                }
                else
                {
                    var dumpDBCs = trigger.Text.NextBool() || !Directory.Exists(VersionUpdater.DBCFolder);
                    if (dumpDBCs)
                    {
                        trigger.Reply("Dumping DBC files...");
                        VersionUpdater.DumpDBCs();
                    }
                    trigger.Reply("Updating changes for client: {0} ...", VersionUpdater.WoWFile);
                    VersionUpdater.DoUpdate();
                    trigger.Reply("Done.");
                }
            }
Exemple #2
0
            public override void Process(CmdTrigger <ToolCmdArgs> trigger)
            {
                var    mod = trigger.Text.NextModifiers();
                string dir;

                if (mod == "a")
                {
                    dir = ToolConfig.Instance.GetWoWDir();
                }
                else
                {
                    dir = Path.GetFullPath(trigger.Text.Remainder);
                    if (trigger.Text.Remainder.EndsWith(".exe"))
                    {
                        dir = Path.GetDirectoryName(dir);
                    }
                }

                if (!Directory.Exists(dir))
                {
                    trigger.Reply("Directory does not exist: " + dir);
                }
                else
                {
                    ToolConfig.Instance.Save();
                    VersionUpdater.SetWowDir(ToolConfig.Instance.WoWFileLocation);
                    trigger.Reply("Selected client: {0}", VersionUpdater.WoWFile);
                }
            }
Exemple #3
0
 public override void Process(CmdTrigger <ToolCmdArgs> trigger)
 {
     trigger.Reply("Dumping DBC files...");
     VersionUpdater.DumpDBCs();
 }