void TeX2img::ReadSetting(){ m_filedir = g_Setting.ToAbsolutePath(g_Setting.ReadSysINI(_T("TeX2img"),_T("FileDir"))); if(m_filedir == _T(""))m_filedir = g_Setting.ToAbsolutePath(g_Setting.ReadSysINI(_T("abtlinst"),_T("DownloadDir"))); if(m_filedir != _T("") && m_filedir[m_filedir.length() - 1] != '\\')m_filedir += _T("\\"); m_filereg = g_Setting.ReadSysINI(_T("TeX2img"),_T("Reg")); if(g_Setting.ReadINI(_T("TeX2img"),_T("install")) != _T("0"))m_doinst = true; else m_doinst = false; #ifndef INSTALL_FROM_LOCAL m_url = g_Setting.ReadINI(_T("TeX2img"),_T("URL")); #endif }
void Ghostscript::ReadSetting(){ if(g_Setting.ReadINI(_T("Ghostscript"),_T("install")) != _T("0"))m_doinst = true; else m_doinst = false; }