Exemple #1
0
        private void CreateLua()
        {
            Debug.WriteLine("Building Lua");
            //write to proper data file
            string wowPath = DataSource.WoWPath;

            if (string.IsNullOrEmpty(wowPath))
            {
                Debug.WriteLine("WoW Data Path is null");
                return;
            }
            try
            {
                string fpath = Path.Combine(wowPath, LUA_NAME);
                using (FileStream fs = new FileStream(fpath, FileMode.Create, FileAccess.Write, FileShare.None))
                {
                    Lua.Build(selected, fs, includeRegionData);
                }
                Debug.WriteLine("Lua Built");
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.ToString());
            }
        }