| 98 | } |
| 99 | |
| 100 | std::string Environment::GetPath(std::string const& name) const |
| 101 | { |
| 102 | for (auto const& directory : mDirectories) |
| 103 | { |
| 104 | std::string decorated = directory + name; |
| 105 | std::ifstream input(decorated, std::ios::binary); |
| 106 | if (input) |
| 107 | { |
| 108 | input.close(); |
| 109 | return decorated; |
| 110 | } |
| 111 | } |
| 112 | return ""; |
| 113 | } |
| 114 | |
| 115 | std::string Environment::GetGTEPath() const |
| 116 | { |
no outgoing calls