* Get the string pointer of a particular game string. * @param id The ID of the game string. * @return The encoded string. */
| 313 | * @return The encoded string. |
| 314 | */ |
| 315 | std::string_view GetGameStringPtr(StringIndexInTab id) |
| 316 | { |
| 317 | if (_current_gamestrings_data == nullptr || _current_gamestrings_data->cur_language == nullptr || id.base() >= _current_gamestrings_data->cur_language->lines.size()) return GetStringPtr(STR_UNDEFINED); |
| 318 | return _current_gamestrings_data->cur_language->lines[id]; |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Get the string parameters of a particular game string. |
no test coverage detected