示例#1
0
//---------------------------------------------------------------------------
void CoreInitialize()
{
  Randomize();
  CryptographyInitialize();

  // configuration needs to be created and loaded before putty is initialized,
  // so that random seed path is known
  Configuration = CreateConfiguration();

  try
  {
    Configuration->Load();
  }
  catch (Exception & E)
  {
    ShowExtendedException(&E);
  }

  PuttyInitialize();
  #ifndef NO_FILEZILLA
  TFileZillaIntf::Initialize();
  #endif

  StoredSessions = new TStoredSessionList();

  try
  {
    StoredSessions->Load();
  }
  catch (Exception & E)
  {
    ShowExtendedException(&E);
  }
}
示例#2
0
void CoreInitialize()
{
  WinInitialize();
  Randomize();
  CryptographyInitialize();

  // we do not expect configuration re-creation
  assert(GetConfiguration() != nullptr);
  // configuration needs to be created and loaded before putty is initialized,
  // so that random seed path is known
//  Configuration = CreateConfiguration();

  PuttyInitialize();
  #ifndef NO_FILEZILLA
  TFileZillaIntf::Initialize();
  #endif
  NeonInitialize();

  CoreLoad();
}