public void LoadConfiguration()
{
// Load patch fetcher URL. Error checking is done in DownloadLatestACR.
PatchURL = Properties.Settings.Default.PatchURL;
// Check for the NWN2 install path.
NWN2InstallPath = Properties.Settings.Default.NWN2InstallPath;
if (!Directory.Exists(NWN2InstallPath)) throw new Exception(string.Format("NWN2 instal path '{0}' does not exist. Check the config file.",NWN2InstallPath));
// Check for the NWN2 install path.
NWNX4Path = Properties.Settings.Default.NWNX4Path;
if (!Directory.Exists(NWNX4Path)) throw new Exception(string.Format("NWNx4 path '{0}' does not exist. Check the config file.", NWNX4Path));
// Check for the NWN2 home directory.
NWN2HomePath = Properties.Settings.Default.NWN2HomePath;
if (!Directory.Exists(NWN2HomePath)) throw new Exception(string.Format("NWNx4 home '{0}' does not exist. Check the config file.", NWN2HomePath));
// Check for the module.
ModuleName = Properties.Settings.Default.ModuleName;
string ModuleDirectory = NWN2HomePath + "\\modules\\" + ModuleName + Path.DirectorySeparatorChar;
if (!Directory.Exists(ModuleDirectory)) throw new Exception("Module could not be found. Ensure that the NWN2HomePath and ModuleName config setting are correct. Checked dir: " + ModuleDirectory);
}