Merge pull request #4917 from vitor-k/long-title

Allow displaying the long_title of the game
This commit is contained in:
Weiyi Wang 2019-09-20 12:59:04 -04:00 committed by GitHub
commit 176b8b4a0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 60 additions and 18 deletions

View file

@ -308,17 +308,19 @@ void Config::ReadValues() {
}
UISettings::values.game_list_icon_size = icon_size;
int row_1 = ReadSetting("row1", 2).toInt();
if (row_1 < 0 || row_1 > 3) {
row_1 = 2;
UISettings::GameListText row_1 = UISettings::GameListText{
ReadSetting("row1", static_cast<int>(UISettings::GameListText::TitleName)).toInt()};
if (row_1 <= UISettings::GameListText::NoText || row_1 >= UISettings::GameListText::ListEnd) {
row_1 = UISettings::GameListText::TitleName;
}
UISettings::values.game_list_row_1 = UISettings::GameListText{row_1};
UISettings::values.game_list_row_1 = row_1;
int row_2 = ReadSetting("row2", 0).toInt();
if (row_2 < -1 || row_2 > 3) {
row_2 = 0;
UISettings::GameListText row_2 = UISettings::GameListText{
ReadSetting("row2", static_cast<int>(UISettings::GameListText::FileName)).toInt()};
if (row_2 < UISettings::GameListText::NoText || row_2 >= UISettings::GameListText::ListEnd) {
row_2 = UISettings::GameListText::FileName;
}
UISettings::values.game_list_row_2 = UISettings::GameListText{row_2};
UISettings::values.game_list_row_2 = row_2;
UISettings::values.game_list_hide_no_icon = ReadSetting("hideNoIcon", false).toBool();
UISettings::values.game_list_single_line_mode = ReadSetting("singleLineMode", false).toBool();