lat9nq
9186f08c3c
shared_translation: Deobfuscate auto time zone
3 years ago
lat9nq
8497fb0a04
settings_enums: Remove casting
Not sure how I missed this earlier, but these vectors can be constructed
using the type of the enum.
3 years ago
lat9nq
54d58130a0
settings_setting: Silence shadowing warnings
3 years ago
lat9nq
926f3e3d3e
settings,configuration: Add a default suffix
3 years ago
lat9nq
9de50d6194
configuration: Use paired settings
3 years ago
lat9nq
7f708e8d77
settings: Define paired settings
settings_common: Remove unused optional
3 years ago
lat9nq
d1de1c3bed
shared_widget: Internalize component restoring
3 years ago
lat9nq
21723879e7
configuration: Use specialization of settings
Reduces some ugliness in frontend code.
3 years ago
lat9nq
b2438f1fb7
settings: Define specializations for settings
Suggests to a frontend how to represent each setting.
3 years ago
lat9nq
ad645c29a4
configuration: Use a builder to create widgets
This gets rid of some repeated code and sets us up to send more
information to the new widget.
3 years ago
lat9nq
62ffaa730f
shared_translation: Fix context usage
Currently unused, but I don't want to start headaches when someone
decides to use it the first time.
3 years ago
lat9nq
8b28aa45b9
settings,translation: Fix time zone enum
Renames enum values to conform to naming convention.
3 years ago
lat9nq
8366736b67
settings,opengl,yuzu-qt: Fix AA, Filter maximums
The new enum macros don't support setting values directly.
For LastAA and LastFilter, this means we need a simpler approach to loop
around the toggle in the frontend...
3 years ago
lat9nq
7ffbffe170
settings_enums: More aggressively use macros
This lets us define an enum and all the textual representations
of its values in one swing. All for the price of some ugly macros.
3 years ago
lat9nq
02c48a80f6
config_shared: Remove storing the group from tab
3 years ago
lat9nq
fdbeb84168
settings,uisettings: Remove leading underscore
3 years ago
lat9nq
81a96bafe2
configuration: Move speed_limit to core
3 years ago
lat9nq
3a7705e774
settings: Move speed_limit to core
3 years ago
lat9nq
69bc8ea148
android-config: Update enum labels
3 years ago
lat9nq
3f0cc544cf
common,yuzu-qt: Avoid explicit instantiation on old clang
Clang versions < 15 have compile issues with explicit instantiation.
Disable it for these versions.
3 years ago
lat9nq
c97cbd089b
settings_setting: Fix MSVC error
3 years ago
lat9nq
246740f102
codespellrc: Ignore canonicalizations
3 years ago
lat9nq
89f89cf1df
shared_widget: Correct spelling
3 years ago
lat9nq
ab795fe0e2
(android)config: Clang format
3 years ago
lat9nq
ee32b17782
common,yuzu-qt: GCC warning silences
Fixes -Wshadow, -Wdeprecated, and catch by copy rather than by ref.
3 years ago
lat9nq
916c6cd1a0
configure_graphics: Simplify UpdateAPILayout
Reduces branching/swictch cases for simplicity/code size
3 years ago
lat9nq
57a00e01d6
configure_graphcs: Fix setting shader/device in custom config
3 years ago
lat9nq
a7ee9d999f
configuration: Use shorter constructor as needed
Reduces some confusion hopefully, since some parameters specified were not
specific to the setting in question.
3 years ago
lat9nq
6935332cba
shared_widget: Some documentation, add shorter constructor
The shorter constructor enables us to specify some options without needing to
specify the default values of multiplier which wasn't always appropriate and
could be confusing.
3 years ago
lat9nq
3240d199a2
config: Remove unused functions
3 years ago
lat9nq
a0883526d6
settings: Delete cpu_accuracy_first_time
Almost a 2 year old migration setting now
3 years ago
lat9nq
7c52bb2772
shared_widget: Improve logging, use Setting::Ranged
3 years ago
lat9nq
27e53990ed
settings: Document BasicSetting, add Ranged
3 years ago
lat9nq
b4f2ad3ff5
settings: Move IsConfiguringGlobal to settings_common
3 years ago
lat9nq
3b0650b70d
configuration/shared: Clean up includes [IWYU]
3 years ago
lat9nq
512fb3abff
configure_graphics: Fix vulkan_device bug
3 years ago
lat9nq
11e7e1b8ce
settings: Move some simple data to BasicSetting
Reduces the need for the compiler to duplicate this code, by about
100KB executable size.
3 years ago
lat9nq
4903f40efe
settings_setting: Fix errors
ToString didn't have a constexpr if statement where needed.
Canonicalize missed an else, causing unreachable code error on MSVC.
3 years ago
lat9nq
04d4b6ab80
(ui,)settings: Use explicit instantiation
Reduces compile times a tad on clang.
3 years ago
lat9nq
02265f19d9
settings: Remove redundant false literals
3 years ago
lat9nq
7515c502c5
shared_widget: Avoid calling QWidgetPrivate::setVisible
This particular setVisible function is unnecessary.
It also has horrible runtime performance, so much that it consumed maybe
80% of the time used to create a widget.
3 years ago
lat9nq
79024bb955
FIXME configuration: Avoid unnecessary allocations
ConfigurationShared::Widget needs to be created with a builder. This
would avoid some duplicated code.
3 years ago
lat9nq
c5f8b909ec
shared_widget: Add SPDX header
3 years ago
lat9nq
0193add060
general: Add typeinfo where needed
Using typeid without including typeinfo first produces an ill-formed program.
3 years ago
lat9nq
2fba913d0b
settings_enums: Add const type where needed
3 years ago
lat9nq
fe6e765b2d
shared_widget: Use actionTriggered for user input signals
Clicking the slider without directly interacting with the slider handle would
change the value, but not trigger the restore button.
3 years ago
lat9nq
47d870b11f
shared_translation: Populate combobox enums with macro
3 years ago
lat9nq
b86171d2b5
settings: yuzu is not capitalized why is it capitalized stop no bad
3 years ago
lat9nq
81e9cf0934
configuration: Document odd widget cases
Explain why we need to do things differently at times, to serve as a
reference.
3 years ago
lat9nq
163f229d26
settings: Reorder
Groups graphics audio and system settings together in a way that
reflects the frontend. This also just conceptually groups them more
nicely than they were.
3 years ago