public BossSorter(IEnvironmentInfo p_eifEnvironmentInfo, MorrowindGameMode p_gmdGameMode, FileUtil p_futFileUtility, string p_strMasterlistPath)
{
EnvironmentInfo = p_eifEnvironmentInfo;
GameMode = p_gmdGameMode;
FileUtility = p_futFileUtility;
string strBAPIPath = Path.Combine(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "data"), p_eifEnvironmentInfo.Is64BitProcess ? "boss64.dll" : "boss32.dll");
m_ptrBossApi = LoadLibrary(strBAPIPath);
if (m_ptrBossApi == IntPtr.Zero)
throw new BossException(String.Format("Could not load BAPI library: {0}", strBAPIPath));
LoadMethods();
m_ptrBossDb = CreateBossDb();
MasterlistPath = p_strMasterlistPath;
UserlistPath = null;
if (!String.IsNullOrEmpty(MasterlistPath) && File.Exists(MasterlistPath) ||
!String.IsNullOrEmpty(UserlistPath) && File.Exists(UserlistPath))
Load(MasterlistPath, UserlistPath);
}