Codechange: use std::string_view for FS2OTTD and OTTD2FS

This commit is contained in:
Rubidium
2025-04-29 22:33:32 +02:00
committed by rubidium42
parent ef71ce0a9d
commit f4ad614285
10 changed files with 37 additions and 36 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ void SurveyConfiguration(nlohmann::json &survey)
{
survey["network"] = _networking ? (_network_server ? "server" : "client") : "no";
if (_current_language != nullptr) {
survey["language"]["filename"] = FS2OTTD(_current_language->file.filename());
survey["language"]["filename"] = FS2OTTD(_current_language->file.filename().native());
survey["language"]["name"] = _current_language->name;
survey["language"]["isocode"] = _current_language->isocode;
}