Use English game title when available.
This commit is contained in:
@@ -102,6 +102,10 @@ std::string XdbfGameData::title() const {
|
||||
return GetStringTableEntry(default_language(), kXdbfIdTitle);
|
||||
}
|
||||
|
||||
std::string XdbfGameData::title(XdbfLocale locale) const {
|
||||
return GetStringTableEntry(locale, kXdbfIdTitle);
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
} // namespace kernel
|
||||
} // namespace xe
|
||||
|
||||
@@ -137,6 +137,8 @@ class XdbfGameData : public XdbfWrapper {
|
||||
|
||||
// The game's title in its default language.
|
||||
std::string title() const;
|
||||
|
||||
std::string title(XdbfLocale locale) const;
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
|
||||
Reference in New Issue
Block a user