| 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 | { |