From 76384d1d34b459cb1cc1c1142fa1a7f9971f6b0d Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 6 Jun 2022 22:44:48 +0200 Subject: [PATCH] Added system view support for the 'rating' text metadata type. --- es-app/src/views/SystemView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index c2a3db8a4..3b3591733 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -1002,6 +1002,9 @@ void SystemView::updateGameSelectors() text->setValue(games.front()->metadata.get("name")); if (metadata == "description") text->setValue(games.front()->metadata.get("desc")); + if (metadata == "rating") + text->setValue( + RatingComponent::getRatingValue(games.front()->metadata.get("rating"))); if (metadata == "developer") text->setValue(games.front()->metadata.get("developer")); if (metadata == "publisher")