diff options
| -rw-r--r-- | externals/microprofile/microprofileui.h | 6 | ||||
| -rw-r--r-- | src/yuzu/configuration/config.cpp | 3 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 31 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.ui | 40 | ||||
| -rw-r--r-- | src/yuzu_cmd/default_ini.h | 4 |
5 files changed, 11 insertions, 73 deletions
diff --git a/externals/microprofile/microprofileui.h b/externals/microprofile/microprofileui.h index 7670fec5d..ddaebe55b 100644 --- a/externals/microprofile/microprofileui.h +++ b/externals/microprofile/microprofileui.h | |||
| @@ -1991,7 +1991,7 @@ const char* MicroProfileUIMenuGroups(int nIndex, bool* bSelected) | |||
| 1991 | else | 1991 | else |
| 1992 | { | 1992 | { |
| 1993 | nIndex = nIndex-1; | 1993 | nIndex = nIndex-1; |
| 1994 | if(nIndex < UI.GroupMenuCount) | 1994 | if(static_cast<uint32_t>(nIndex) < UI.GroupMenuCount) |
| 1995 | { | 1995 | { |
| 1996 | MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex]; | 1996 | MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex]; |
| 1997 | static char buffer[MICROPROFILE_NAME_MAX_LEN+32]; | 1997 | static char buffer[MICROPROFILE_NAME_MAX_LEN+32]; |
| @@ -2134,7 +2134,7 @@ const char* MicroProfileUIMenuCustom(int nIndex, bool* bSelected) | |||
| 2134 | case 1: return "--"; | 2134 | case 1: return "--"; |
| 2135 | default: | 2135 | default: |
| 2136 | nIndex -= 2; | 2136 | nIndex -= 2; |
| 2137 | if(nIndex < UI.nCustomCount) | 2137 | if(static_cast<uint32_t>(nIndex) < UI.nCustomCount) |
| 2138 | { | 2138 | { |
| 2139 | return UI.Custom[nIndex].pName; | 2139 | return UI.Custom[nIndex].pName; |
| 2140 | } | 2140 | } |
| @@ -2184,7 +2184,7 @@ void MicroProfileUIClickGroups(int nIndex) | |||
| 2184 | else | 2184 | else |
| 2185 | { | 2185 | { |
| 2186 | nIndex -= 1; | 2186 | nIndex -= 1; |
| 2187 | if(nIndex < UI.GroupMenuCount) | 2187 | if(static_cast<uint32_t>(nIndex) < UI.GroupMenuCount) |
| 2188 | { | 2188 | { |
| 2189 | MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex]; | 2189 | MicroProfileGroupMenuItem& Item = UI.GroupMenu[nIndex]; |
| 2190 | if(Item.nIsCategory) | 2190 | if(Item.nIsCategory) |
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 9ce851d17..ab6ba0ec9 100644 --- a/src/yuzu/configuration/config.cpp +++ b/src/yuzu/configuration/config.cpp | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | #include "yuzu/configuration/config.h" | 8 | #include "yuzu/configuration/config.h" |
| 9 | #include "yuzu/ui_settings.h" | 9 | #include "yuzu/ui_settings.h" |
| 10 | 10 | ||
| 11 | |||
| 12 | Config::Config() { | 11 | Config::Config() { |
| 13 | // TODO: Don't hardcode the path; let the frontend decide where to put the config files. | 12 | // TODO: Don't hardcode the path; let the frontend decide where to put the config files. |
| 14 | qt_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "qt-config.ini"; | 13 | qt_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "qt-config.ini"; |
| @@ -88,7 +87,7 @@ void Config::ReadValues() { | |||
| 88 | qt_config->endGroup(); | 87 | qt_config->endGroup(); |
| 89 | 88 | ||
| 90 | qt_config->beginGroup("Miscellaneous"); | 89 | qt_config->beginGroup("Miscellaneous"); |
| 91 | Settings::values.log_filter = qt_config->value("log_filter", "*:Trace").toString().toStdString(); | 90 | Settings::values.log_filter = qt_config->value("log_filter", "*:Info").toString().toStdString(); |
| 92 | qt_config->endGroup(); | 91 | qt_config->endGroup(); |
| 93 | 92 | ||
| 94 | qt_config->beginGroup("Debugging"); | 93 | qt_config->beginGroup("Debugging"); |
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index 5f91d5492..47b9b6e95 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #include "ui_configure_graphics.h" | 7 | #include "ui_configure_graphics.h" |
| 8 | #include "yuzu/configuration/configure_graphics.h" | 8 | #include "yuzu/configuration/configure_graphics.h" |
| 9 | 9 | ||
| 10 | |||
| 11 | ConfigureGraphics::ConfigureGraphics(QWidget* parent) | 10 | ConfigureGraphics::ConfigureGraphics(QWidget* parent) |
| 12 | : QWidget(parent), ui(new Ui::ConfigureGraphics) { | 11 | : QWidget(parent), ui(new Ui::ConfigureGraphics) { |
| 13 | 12 | ||
| @@ -23,12 +22,6 @@ enum class Resolution : int { | |||
| 23 | Scale2x, | 22 | Scale2x, |
| 24 | Scale3x, | 23 | Scale3x, |
| 25 | Scale4x, | 24 | Scale4x, |
| 26 | Scale5x, | ||
| 27 | Scale6x, | ||
| 28 | Scale7x, | ||
| 29 | Scale8x, | ||
| 30 | Scale9x, | ||
| 31 | Scale10x, | ||
| 32 | }; | 25 | }; |
| 33 | 26 | ||
| 34 | float ToResolutionFactor(Resolution option) { | 27 | float ToResolutionFactor(Resolution option) { |
| @@ -43,18 +36,6 @@ float ToResolutionFactor(Resolution option) { | |||
| 43 | return 3.f; | 36 | return 3.f; |
| 44 | case Resolution::Scale4x: | 37 | case Resolution::Scale4x: |
| 45 | return 4.f; | 38 | return 4.f; |
| 46 | case Resolution::Scale5x: | ||
| 47 | return 5.f; | ||
| 48 | case Resolution::Scale6x: | ||
| 49 | return 6.f; | ||
| 50 | case Resolution::Scale7x: | ||
| 51 | return 7.f; | ||
| 52 | case Resolution::Scale8x: | ||
| 53 | return 8.f; | ||
| 54 | case Resolution::Scale9x: | ||
| 55 | return 9.f; | ||
| 56 | case Resolution::Scale10x: | ||
| 57 | return 10.f; | ||
| 58 | } | 39 | } |
| 59 | return 0.f; | 40 | return 0.f; |
| 60 | } | 41 | } |
| @@ -70,18 +51,6 @@ Resolution FromResolutionFactor(float factor) { | |||
| 70 | return Resolution::Scale3x; | 51 | return Resolution::Scale3x; |
| 71 | } else if (factor == 4.f) { | 52 | } else if (factor == 4.f) { |
| 72 | return Resolution::Scale4x; | 53 | return Resolution::Scale4x; |
| 73 | } else if (factor == 5.f) { | ||
| 74 | return Resolution::Scale5x; | ||
| 75 | } else if (factor == 6.f) { | ||
| 76 | return Resolution::Scale6x; | ||
| 77 | } else if (factor == 7.f) { | ||
| 78 | return Resolution::Scale7x; | ||
| 79 | } else if (factor == 8.f) { | ||
| 80 | return Resolution::Scale8x; | ||
| 81 | } else if (factor == 9.f) { | ||
| 82 | return Resolution::Scale9x; | ||
| 83 | } else if (factor == 10.f) { | ||
| 84 | return Resolution::Scale10x; | ||
| 85 | } | 54 | } |
| 86 | return Resolution::Auto; | 55 | return Resolution::Auto; |
| 87 | } | 56 | } |
diff --git a/src/yuzu/configuration/configure_graphics.ui b/src/yuzu/configuration/configure_graphics.ui index 489156805..366931a9a 100644 --- a/src/yuzu/configuration/configure_graphics.ui +++ b/src/yuzu/configuration/configure_graphics.ui | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | <item> | 34 | <item> |
| 35 | <widget class="QLabel" name="label"> | 35 | <widget class="QLabel" name="label"> |
| 36 | <property name="text"> | 36 | <property name="text"> |
| 37 | <string>Internal Resolution:</string> | 37 | <string>Internal Resolution:(Currently does nothing.)</string> |
| 38 | </property> | 38 | </property> |
| 39 | </widget> | 39 | </widget> |
| 40 | </item> | 40 | </item> |
| @@ -47,52 +47,22 @@ | |||
| 47 | </item> | 47 | </item> |
| 48 | <item> | 48 | <item> |
| 49 | <property name="text"> | 49 | <property name="text"> |
| 50 | <string>Native (400x240)</string> | 50 | <string>Native (1280x720)</string> |
| 51 | </property> | 51 | </property> |
| 52 | </item> | 52 | </item> |
| 53 | <item> | 53 | <item> |
| 54 | <property name="text"> | 54 | <property name="text"> |
| 55 | <string>2x Native (800x480)</string> | 55 | <string>2x Native (2560x1440)</string> |
| 56 | </property> | 56 | </property> |
| 57 | </item> | 57 | </item> |
| 58 | <item> | 58 | <item> |
| 59 | <property name="text"> | 59 | <property name="text"> |
| 60 | <string>3x Native (1200x720)</string> | 60 | <string>3x Native (3840x2160)</string> |
| 61 | </property> | 61 | </property> |
| 62 | </item> | 62 | </item> |
| 63 | <item> | 63 | <item> |
| 64 | <property name="text"> | 64 | <property name="text"> |
| 65 | <string>4x Native (1600x960)</string> | 65 | <string>4x Native (5120x2880)</string> |
| 66 | </property> | ||
| 67 | </item> | ||
| 68 | <item> | ||
| 69 | <property name="text"> | ||
| 70 | <string>5x Native (2000x1200)</string> | ||
| 71 | </property> | ||
| 72 | </item> | ||
| 73 | <item> | ||
| 74 | <property name="text"> | ||
| 75 | <string>6x Native (2400x1440)</string> | ||
| 76 | </property> | ||
| 77 | </item> | ||
| 78 | <item> | ||
| 79 | <property name="text"> | ||
| 80 | <string>7x Native (2800x1680)</string> | ||
| 81 | </property> | ||
| 82 | </item> | ||
| 83 | <item> | ||
| 84 | <property name="text"> | ||
| 85 | <string>8x Native (3200x1920)</string> | ||
| 86 | </property> | ||
| 87 | </item> | ||
| 88 | <item> | ||
| 89 | <property name="text"> | ||
| 90 | <string>9x Native (3600x2160)</string> | ||
| 91 | </property> | ||
| 92 | </item> | ||
| 93 | <item> | ||
| 94 | <property name="text"> | ||
| 95 | <string>10x Native (4000x2400)</string> | ||
| 96 | </property> | 66 | </property> |
| 97 | </item> | 67 | </item> |
| 98 | </widget> | 68 | </widget> |
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h index 469df96cc..5a2f539b1 100644 --- a/src/yuzu_cmd/default_ini.h +++ b/src/yuzu_cmd/default_ini.h | |||
| @@ -90,8 +90,8 @@ use_hw_renderer = | |||
| 90 | use_shader_jit = | 90 | use_shader_jit = |
| 91 | 91 | ||
| 92 | # Resolution scale factor | 92 | # Resolution scale factor |
| 93 | # 0: Auto (scales resolution to window size), 1: Native 3DS screen resolution, Otherwise a scale | 93 | # 0: Auto (scales resolution to window size), 1: Native Switch screen resolution, Otherwise a scale |
| 94 | # factor for the 3DS resolution | 94 | # factor for the Switch resolution |
| 95 | resolution_factor = | 95 | resolution_factor = |
| 96 | 96 | ||
| 97 | # Whether to enable V-Sync (caps the framerate at 60FPS) or not. | 97 | # Whether to enable V-Sync (caps the framerate at 60FPS) or not. |