mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
fix when badges are shown (reverse)
This commit is contained in:
parent
b3ea037221
commit
4959e72b35
|
@ -450,10 +450,10 @@ void VideoGameListView::updateInfoPanel()
|
|||
|
||||
// Generate badges slots value based on the game metadata.
|
||||
std::stringstream ss;
|
||||
ss << (file->metadata.get("favorite").compare("true") ? "favorite " : "");
|
||||
ss << (file->metadata.get("completed").compare("true") ? "completed " : "");
|
||||
ss << (file->metadata.get("kidgame").compare("true") ? "kidgame " : "");
|
||||
ss << (file->metadata.get("broken").compare("true") ? "broken " : "");
|
||||
ss << (file->metadata.get("favorite").compare("true") ? "" : "favorite ");
|
||||
ss << (file->metadata.get("completed").compare("true") ? "" : "completed ");
|
||||
ss << (file->metadata.get("kidgame").compare("true") ? "" : "kidgame ");
|
||||
ss << (file->metadata.get("broken").compare("true") ? "" : "broken ");
|
||||
std::string slots = ss.str();
|
||||
if (!slots.empty())
|
||||
slots.pop_back();
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#define DEFAULT_MARGIN_X 10.0f
|
||||
#define DEFAULT_MARGIN_Y 10.0f
|
||||
#define DEFAULT_ITEM_SIZE_X 64.0f
|
||||
#define DEFAULT_ITEM_SIZE_Y 64.0f
|
||||
|
||||
class TextureResource;
|
||||
|
||||
|
|
Loading…
Reference in a new issue