mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added theme support for the 'manual' metadata type for the text element
This commit is contained in:
parent
be2b761356
commit
07d390ccda
|
@ -849,6 +849,8 @@ void GamelistView::updateView(const CursorState& state)
|
|||
return file->metadata.get("kidgame") == "true" ? "yes" : "no";
|
||||
else if (metadata == "broken")
|
||||
return file->metadata.get("broken") == "true" ? "yes" : "no";
|
||||
else if (metadata == "manual")
|
||||
return file->getManualPath() != "" ? "yes" : "no";
|
||||
else if (metadata == "playcount")
|
||||
return file->metadata.get("playcount");
|
||||
else if (metadata == "altemulator")
|
||||
|
|
|
@ -1345,6 +1345,8 @@ void SystemView::updateGameSelectors()
|
|||
else if (metadata == "broken")
|
||||
text->setValue(
|
||||
games.at(gameSelectorEntry)->metadata.get("broken") == "true" ? "yes" : "no");
|
||||
else if (metadata == "manual")
|
||||
text->setValue(games.at(gameSelectorEntry)->getManualPath() != "" ? "yes" : "no");
|
||||
else if (metadata == "playcount")
|
||||
text->setValue(games.at(gameSelectorEntry)->metadata.get("playcount"));
|
||||
else if (metadata == "altemulator")
|
||||
|
|
|
@ -105,10 +105,10 @@ private:
|
|||
"gamecountFavoritesNoText"};
|
||||
|
||||
static inline std::vector<std::string> supportedMetadataTypes {
|
||||
"name", "description", "rating", "developer", "publisher",
|
||||
"genre", "players", "favorite", "completed", "kidgame",
|
||||
"broken", "playcount", "controller", "altemulator", "emulator",
|
||||
"systemName", "systemFullname", "sourceSystemName", "sourceSystemFullname"};
|
||||
"name", "description", "rating", "developer", "publisher",
|
||||
"genre", "players", "favorite", "completed", "kidgame",
|
||||
"broken", "playcount", "controller", "altemulator", "emulator",
|
||||
"manual", "systemName", "systemFullname", "sourceSystemName", "sourceSystemFullname"};
|
||||
|
||||
Renderer* mRenderer;
|
||||
std::string mDefaultValue;
|
||||
|
|
Loading…
Reference in a new issue