Use correct language for scan-objects

This commit is contained in:
Ted John committed 2018-05-11 20:39:00 +01:00
1 parent 238079ef7f
commit 7075f6ca25
8 files changed
+38 -9

No files matched your search

+12
View File
@@ -101,6 +101,18 @@ std::string StringTable::GetString(uint8 id) const
return std::string();
}
std::string StringTable::GetString(uint8 language, uint8 id) const
{
for (auto &string : _strings)
{
if (string.LanguageId == language && string.Id == id)
{
return string.Text;
}
}
return std::string();
}
void StringTable::SetString(uint8 id, uint8 language, const std::string &text)
{
StringTableEntry entry;