mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Small symbol cleanup (#20229)
* Remove unused generate_string_file() declaration * Move IsUserStringID() to RCT12.h The function is only used by RCT1/2 code, and the implementation is in RCT12.cpp * Move ScenarioTranslate() to ScenarioRepository.cpp Seems to have ended up in ObjectRepository.cpp by accident.
This commit is contained in:
committed by
GitHub
parent
d72fce1721
commit
fe2d1e2372
@@ -690,22 +690,6 @@ std::unique_ptr<Object> ObjectRepositoryLoadObject(const RCTObjectEntry* objectE
|
||||
return object;
|
||||
}
|
||||
|
||||
void ScenarioTranslate(ScenarioIndexEntry* scenarioEntry)
|
||||
{
|
||||
StringId localisedStringIds[3];
|
||||
if (LanguageGetLocalisedScenarioStrings(scenarioEntry->Name, localisedStringIds))
|
||||
{
|
||||
if (localisedStringIds[0] != STR_NONE)
|
||||
{
|
||||
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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
size_t ObjectRepositoryGetItemsCount()
|
||||
{
|
||||
auto& objectRepository = GetContext()->GetObjectRepository();
|
||||
|
||||
Reference in New Issue
Block a user