cFileIcons::cFileIcons() { cIconPaths* paths=new cIconPaths; LoadFolder(*paths,SFN_UI_ICONS_DIRECTORY); LoadFolder(*paths,SFN_ICONS_DIRECTORY); for(cIconPaths::const_iterator it=paths->begin();it!=paths->end();++it) { _icons.push_back(*it); } delete paths; }
void CFontMgr::ReloadFontlist() { // delete the fonts from memory first and clear the list while(m_FontFiles.size() > 0) { if(m_FontFiles[0].m_pFont) TextRender()->DestroyFont(m_FontFiles[0].m_pFont); m_FontFiles.remove_index_fast(0); } LoadFolder("fonts"); }