//--------------------------------------------------------------------------- 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); } }
void CGenericProcessingMachine::Initialize(void) { CreateConfiguration(); PSC().ProcessParameters(m_ParameterString); Configure(ConfigurationName()); m_FileNameLength = 12; }
TConfiguration * GetConfiguration() { static TConfiguration * Configuration = nullptr; if (Configuration == nullptr) { Configuration = CreateConfiguration(); } return Configuration; }