benamehdi7 / tesv-snip

Automatically exported from code.google.com/p/tesv-snip
0 stars 0 forks source link

Game Specific references. #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Remove all game specific references such a Fallout or Oblivion.

Describe how it is now.

From MainView.Spells.cs

bool firstwasfallout = false;
                if (r != null && r.Name == "TES4")
                {
                    foreach (SubRecord sr in r.SubRecords)
                    {
                        if (sr.Name == "MAST")
                        {
                            if (sr.GetStrData().ToLowerInvariant() == "skyrim.esm")
                            {
                                firstwasfallout = true;
                            }

                            break;
                        }
                    }
                }

                if (!firstwasfallout)
                {
                    MessageBox.Show("Only works on plugin's whose first master is Skyrim.esm", "Error");
                    return;

Describe the desired change.

make references generic to make way for making Snip work with Morrowind, 
Oblivion, and Skyrim.

Outline the goals/benefits of the enhancement.

Please provide any additional information below.

The game mode should specify what Game Specific information is displaied.

Original issue reported on code.google.com by danielhmpdx16@gmail.com on 22 Sep 2012 at 11:39