forked from rosebudai/OpenRCT2-Web
Desnake some stuff, small string passing cleanup (#19388)
* Rename scenario_index_entry to ScenarioIndexEntry * Desnake members of ScenarioIndexEntry * Pass const u8string& instead of utf8 pointer
This commit is contained in:
1 parent
d8c09e5214
commit
7b61c6352a
15 files changed
+228
-228
No files matched your search
@@ -687,18 +687,18 @@ std::unique_ptr<Object> ObjectRepositoryLoadObject(const RCTObjectEntry* objectE
|
||||
return object;
|
||||
}
|
||||
|
||||
void ScenarioTranslate(scenario_index_entry* scenarioEntry)
|
||||
void ScenarioTranslate(ScenarioIndexEntry* scenarioEntry)
|
||||
{
|
||||
StringId localisedStringIds[3];
|
||||
if (LanguageGetLocalisedScenarioStrings(scenarioEntry->name, localisedStringIds))
|
||||
if (LanguageGetLocalisedScenarioStrings(scenarioEntry->Name, localisedStringIds))
|
||||
{
|
||||
if (localisedStringIds[0] != STR_NONE)
|
||||
{
|
||||
String::Set(scenarioEntry->name, sizeof(scenarioEntry->name), LanguageGetString(localisedStringIds[0]));
|
||||
String::Set(scenarioEntry->Name, sizeof(scenarioEntry->Name), LanguageGetString(localisedStringIds[0]));
|
||||
}
|
||||
if (localisedStringIds[2] != STR_NONE)
|
||||
{
|
||||
String::Set(scenarioEntry->details, sizeof(scenarioEntry->details), LanguageGetString(localisedStringIds[2]));
|
||||
String::Set(scenarioEntry->Details, sizeof(scenarioEntry->Details), LanguageGetString(localisedStringIds[2]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user