Added system view support for the 'rating' text metadata type.

This commit is contained in:
Leon Styhre 2022-06-06 22:44:48 +02:00
parent 2e3ac5bf0e
commit 76384d1d34

View file

@ -1002,6 +1002,9 @@ void SystemView::updateGameSelectors()
text->setValue(games.front()->metadata.get("name")); text->setValue(games.front()->metadata.get("name"));
if (metadata == "description") if (metadata == "description")
text->setValue(games.front()->metadata.get("desc")); text->setValue(games.front()->metadata.get("desc"));
if (metadata == "rating")
text->setValue(
RatingComponent::getRatingValue(games.front()->metadata.get("rating")));
if (metadata == "developer") if (metadata == "developer")
text->setValue(games.front()->metadata.get("developer")); text->setValue(games.front()->metadata.get("developer"));
if (metadata == "publisher") if (metadata == "publisher")