示例#1
0
文件: lang.cpp 项目: drodin/Crimson
void Locale::RemoveLanguage( Language &lang ) {
  if ( this->lang && (this->lang->ID() == lang.ID()) ) this->lang = NULL;
  lib.erase( lang.ID() );
}
示例#2
0
文件: lang.cpp 项目: drodin/Crimson
void Locale::AddLanguage( Language &lang ) {
  lib[lang.ID()] = lang;
  if ( this->lang == NULL ) this->lang = &lib[lang.ID()];
}