MCPcopy Create free account
hub / github.com/MyGUI/mygui / loadLanguage

Method loadLanguage

MyGUIEngine/src/MyGUI_LanguageManager.cpp:124–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 bool LanguageManager::loadLanguage(const std::string& _file, bool _user)
125 {
126 DataStreamHolder data = DataManager::getInstance().getData(_file);
127 if (data.getData() == nullptr)
128 {
129 MYGUI_LOG(Error, "file '" << _file << "' not found");
130 return false;
131 }
132
133 if (_file.find(".xml") != std::string::npos)
134 _loadLanguageXML(data.getData(), _user);
135 else
136 _loadLanguage(data.getData(), _user);
137
138 return true;
139 }
140
141 void LanguageManager::_loadLanguageXML(IDataStream* _stream, bool _user)
142 {

Callers

nothing calls this directly

Calls 2

getDataMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected