UISettings::GameListText

Append a value to the enum to function as length counter.
Also remove magic numbers where possible, by using the enum instead.
This commit is contained in:
vitor-k 2019-09-07 00:15:07 -03:00
parent 1f1ac98f10
commit 719912786a
2 changed files with 11 additions and 10 deletions

View file

@ -52,9 +52,8 @@ enum class GameListText {
TitleName, ///< Display the name of the title
TitleID, ///< Display the title ID
LongTitleName, ///< Display the long name of the title
ListEnd, ///< Keep this at the end of the enum.
};
// The length of the GameListText, excluding NoText
constexpr int GAME_LIST_TEXT_LENGTH = 5;
struct Values {
QByteArray geometry;