* Get the name of this grf. In case the name isn't known * the filename is returned. * @return The name of filename of this grf. */
| 83 | * @return The name of filename of this grf. |
| 84 | */ |
| 85 | std::string GRFConfig::GetName() const |
| 86 | { |
| 87 | auto name = GetGRFStringFromGRFText(this->name); |
| 88 | return name.has_value() && !name->empty() ? std::string(*name) : this->filename; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Get the grf info. |
no test coverage detected