summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/yuzu/configuration/configure_gamelist.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/yuzu/configuration/configure_gamelist.cpp b/src/yuzu/configuration/configure_gamelist.cpp
index 1238356a8..20090ed29 100644
--- a/src/yuzu/configuration/configure_gamelist.cpp
+++ b/src/yuzu/configuration/configure_gamelist.cpp
@@ -2,11 +2,14 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/core.h" 5#include <array>
6#include <utility>
7
8#include "common/common_types.h"
6#include "core/settings.h" 9#include "core/settings.h"
7#include "ui_configure_gamelist.h" 10#include "ui_configure_gamelist.h"
8#include "ui_settings.h"
9#include "yuzu/configuration/configure_gamelist.h" 11#include "yuzu/configuration/configure_gamelist.h"
12#include "yuzu/ui_settings.h"
10 13
11ConfigureGameList::ConfigureGameList(QWidget* parent) 14ConfigureGameList::ConfigureGameList(QWidget* parent)
12 : QWidget(parent), ui(new Ui::ConfigureGameList) { 15 : QWidget(parent), ui(new Ui::ConfigureGameList) {
@@ -39,11 +42,11 @@ void ConfigureGameList::setConfiguration() {
39} 42}
40 43
41void ConfigureGameList::InitializeIconSizeComboBox() { 44void ConfigureGameList::InitializeIconSizeComboBox() {
42 static const std::vector<std::pair<u32, std::string>> default_icon_sizes{ 45 static const std::array<std::pair<u32, std::string>, 5> default_icon_sizes{{
43 std::make_pair(0, "None"), std::make_pair(32, "Small"), 46 std::make_pair(0, "None"), std::make_pair(32, "Small"),
44 std::make_pair(64, "Standard"), std::make_pair(128, "Large"), 47 std::make_pair(64, "Standard"), std::make_pair(128, "Large"),
45 std::make_pair(256, "Full Size"), 48 std::make_pair(256, "Full Size"),
46 }; 49 }};
47 50
48 for (const auto& size : default_icon_sizes) { 51 for (const auto& size : default_icon_sizes) {
49 ui->icon_size_combobox->addItem(QString::fromStdString(size.second + " (" + 52 ui->icon_size_combobox->addItem(QString::fromStdString(size.second + " (" +
@@ -54,12 +57,12 @@ void ConfigureGameList::InitializeIconSizeComboBox() {
54} 57}
55 58
56void ConfigureGameList::InitializeRowComboBoxes() { 59void ConfigureGameList::InitializeRowComboBoxes() {
57 static const std::vector<std::string> row_text_names{ 60 static const std::array<std::string, 4> row_text_names{{
58 "Filename", 61 "Filename",
59 "Filetype", 62 "Filetype",
60 "Title ID", 63 "Title ID",
61 "Title Name", 64 "Title Name",
62 }; 65 }};
63 66
64 for (size_t i = 0; i < row_text_names.size(); ++i) { 67 for (size_t i = 0; i < row_text_names.size(); ++i) {
65 ui->row_1_text_combobox->addItem(QString::fromStdString(row_text_names[i]), 68 ui->row_1_text_combobox->addItem(QString::fromStdString(row_text_names[i]),