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

Method getDataPath

Platforms/Ogre/OgrePlatform/src/MyGUI_OgreDataManager.cpp:135–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 }
134
135 std::string OgreDataManager::getDataPath(const std::string& _name) const
136 {
137 const VectorString& files = getDataListNames(_name, true);
138 if (!files.empty())
139 {
140 const std::string& result = files[0];
141 if (files.size() > 1)
142 {
143 MYGUI_PLATFORM_LOG(
144 Warning,
145 "There are several files with name '" << _name << "'. '" << result << "' was used.");
146 MYGUI_PLATFORM_LOG(Warning, "Other candidates are:");
147 for (size_t index = 1; index < files.size(); index++)
148 MYGUI_PLATFORM_LOG(Warning, " - '" << files[index] << "'");
149 }
150 return result;
151 }
152
153 return {};
154 }
155
156 void OgreDataManager::addResourceLocation(const std::string& _name, bool _recursive)
157 {

Callers 1

loadMethod · 0.45

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected