Beispiel #1
0
        public static Heroes3Master LoadInfo(string executablePath)
        {
            var master = new Heroes3Master();

            master.Executable    = new ExeFile(executablePath);
            master.ResourceFiles = new List <LodFile>();

            master.OriginalDataFolder = Path.Combine(Path.GetDirectoryName(executablePath), "Data");

            master.LoadAllWithExtension(master.OriginalDataFolder, ".lod");
            master.LoadAllWithExtension(master.OriginalDataFolder, ".pac");

            master.BuildMap();
            if (master.GetByName("HotA.lod") != null)
            {
                master.Routing = Routing.Hota;
            }

            master.RefreshData();
            Master = master;
            return(Master);
        }