public override void OnLoad(ConfigNode node)
{
try
{
// KSP Seems to want to make an instance of my partModule during initial load
if (vessel == null) return;
if (node.HasValue("activated") && !bool.Parse(node.GetValue("activated")))
{
ProcessorMode = ProcessorModes.OFF;
}
if (node.HasNode("harddisk"))
{
var newDisk = node.GetNode("harddisk").ToHardDisk();
HardDisk = newDisk;
}
InitObjects();
base.OnLoad(node);
}
catch (Exception ex) //Intentional Pokemon, if exceptions get out of here it can kill the craft
{
SafeHouse.Logger.Log("ONLOAD Exception: " + ex.TargetSite);
SafeHouse.Logger.LogException(ex);
}
}