mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Removed support for the deprecated text element systemdata property values gamecount_games and gamecount_favorites.
This commit is contained in:
parent
b617cc0f3b
commit
0fdb0500fe
|
@ -439,19 +439,7 @@ void TextComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
|
|
||||||
if (properties & METADATA && elem->has("systemdata")) {
|
if (properties & METADATA && elem->has("systemdata")) {
|
||||||
mThemeSystemdata = "";
|
mThemeSystemdata = "";
|
||||||
std::string systemdata {elem->get<std::string>("systemdata")};
|
const std::string& systemdata {elem->get<std::string>("systemdata")};
|
||||||
if (systemdata == "gamecount_games") {
|
|
||||||
systemdata = "gamecountGames";
|
|
||||||
LOG(LogWarning) << "TextComponent: Property value \"gamecount_games\" has been "
|
|
||||||
"deprecated and will be removed in a future release, use "
|
|
||||||
"\"gamecountGames\" instead";
|
|
||||||
}
|
|
||||||
else if (systemdata == "gamecount_favorites") {
|
|
||||||
systemdata = "gamecountFavorites";
|
|
||||||
LOG(LogWarning) << "TextComponent: Property value \"gamecount_favorites\" has been "
|
|
||||||
"deprecated and will be removed in a future release, use "
|
|
||||||
"\"gamecountFavorites\" instead";
|
|
||||||
}
|
|
||||||
|
|
||||||
for (auto& type : supportedSystemdataTypes) {
|
for (auto& type : supportedSystemdataTypes) {
|
||||||
if (type == systemdata) {
|
if (type == systemdata) {
|
||||||
|
|
Loading…
Reference in a new issue