summaryrefslogtreecommitdiff
path: root/src/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* android: Expose interface for getting settings from native codeGravatar Charles Lombardo2023-08-293-0/+5
| | | | Completely removes code related to parsing the settings file on the java side. Now all settings are accessed via NativeConfig.kt and config.cpp has been modified to be closer to the core counterpart. Since the core currently uses QSettings, we can't remove reliance from Wini yet. This also includes simplifications to each settings interface to get closer to native code and prepare for per-game settings.
* Merge pull request #11356 from lat9nq/console-mode-pgGravatar liamwhite2023-08-264-1/+17
|\ | | | | general,config-qt: Present Console Mode as an enum with separate options in game properties
| * settings: Add docked mode helper functionGravatar lat9nq2023-08-222-0/+7
| |
| * general: Convert use_docked_mode to an enumerationGravatar lat9nq2023-08-223-1/+10
| | | | | | | | Allows some special interactions with it in the Qt frontend.
* | Warnings cleanup for GCC 13 and Clang 16Gravatar comex2023-08-251-5/+0
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: For GCC there are still a huge number of `-Warray-bounds` warnings coming from `externals/dynarmic`. I could have added a workaround in `externals/CMakeLists.txt` similar to what this PR does for other externals, but given Dynarmic's close affiliation with Yuzu, it would be better to fix it upstream. Besides that, on my machine, this makes the build warning-free except for some warnings from glslangValidator and AutoMoc. Details: - Disable some warnings in externals. - Disable `-Wnullability-completeness`, which is a Clang warning triggered by the Vulkan SDK where if any pointers in the header are marked _Nullable, it wants all pointers to be marked _Nullable or _Nonnull. Most of them are, but some aren't. Who knows why. - `src/web_service/verify_user_jwt.cpp`: Disable another warning when including `jwt.hpp`. - `src/input_common/input_poller.cpp`: Add missing `override` specifiers. - src/common/swap.h: Remove redundant `operator&`. In general, this file declares three overloads of each operator. Using `+` as an example, the overloads are: - a member function for `swapped_t + integer` - a member function for `swapped_t + swapped_t` - a free function for `integer + swapped_t` But for `operator&`, there was an additional free function for `swapped_t + integer`, which was redundant with the member function. This caused a GCC warning saying "ISO C++ says that these are ambiguous".
* Merge pull request #11303 from lat9nq/screenshots-configurableGravatar liamwhite2023-08-222-3/+8
|\ | | | | yuzu-qt: Add configuration for screenshot resolution
| * yuzu-qt: Screenshots depend more on the graphics settingsGravatar lat9nq2023-08-161-2/+0
| |
| * yuzu-qt: Implement unspecified screenshot ratioGravatar lat9nq2023-08-161-1/+1
| |
| * settings: Add AspectRatio enum, split res scale functionGravatar lat9nq2023-08-153-3/+10
| |
* | fssystem: rework for yuzu styleGravatar Liam2023-08-153-4/+8
| |
* | vfs: expand support for NCA readingGravatar Liam2023-08-153-2/+35
|/
* general: fix apple clang buildGravatar Liam2023-08-093-13/+15
|
* Merge pull request #10839 from lat9nq/pgc-plusGravatar liamwhite2023-08-028-592/+1455
|\ | | | | general: Reimplement per-game configurations
| * (ui)settings: Add more runtime_modifiable settingsGravatar lat9nq2023-07-251-4/+5
| |
| * backend: Remove usage of explicit operator overloadGravatar lat9nq2023-07-251-1/+1
| | | | | | | | | | | | Causes a crash on MSVC from a race condition on application quit. Intended to address yuzu-emu/yuzu/issues/11137
| * settings: Correct Linkage member impl locationGravatar lat9nq2023-07-252-3/+3
| |
| * settings: Set GPU as default ASTC decoderGravatar lat9nq2023-07-241-1/+1
| |
| * settings_common: Document specializationsGravatar lat9nq2023-07-231-9/+10
| |
| * common,qt-config: Remove usage of forward_listGravatar lat9nq2023-07-212-2/+0
| |
| * settings_common: Use a vector in category linkageGravatar lat9nq2023-07-212-2/+2
| | | | | | | | Improve storage requirements.
| * settings: Remove sorting from logGravatar lat9nq2023-07-211-4/+0
| | | | | | | | Unecessary, and would run every time the settings are logged.
| * common: Move global configuration state modifiers back to settingsGravatar lat9nq2023-07-214-13/+13
| |
| * settings_setting: Fix typoGravatar lat9nq2023-07-211-4/+4
| |
| * common,configure_system: Rename method to GetCategoryGravatar lat9nq2023-07-213-7/+7
| | | | | | | | Fixes essentially a shadowing issue.
| * settings: CleanupGravatar lat9nq2023-07-213-32/+51
| | | | | | | | | | | | Addresses review feedback Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
| * core,common: Give memory layout setting an enumGravatar lat9nq2023-07-212-2/+8
| | | | | | | | Allows for 6GB and 8GB layouts to be selected.
| * settings: Require time zone setting value for stirngGravatar lat9nq2023-07-212-3/+3
| |
| * settings: Give indices to enumsGravatar lat9nq2023-07-213-6/+36
| |
| * settings_common: Remove unncessary enum specGravatar lat9nq2023-07-211-2/+2
| |
| * settings_enums: Remove castingGravatar lat9nq2023-07-211-55/+55
| | | | | | | | | | Not sure how I missed this earlier, but these vectors can be constructed using the type of the enum.
| * settings_setting: Silence shadowing warningsGravatar lat9nq2023-07-211-17/+18
| |
| * settings,configuration: Add a default suffixGravatar lat9nq2023-07-214-32/+48
| |
| * settings: Define paired settingsGravatar lat9nq2023-07-214-21/+49
| | | | | | | | settings_common: Remove unused optional
| * settings: Define specializations for settingsGravatar lat9nq2023-07-214-64/+130
| | | | | | | | Suggests to a frontend how to represent each setting.
| * settings,translation: Fix time zone enumGravatar lat9nq2023-07-211-4/+4
| | | | | | | | Renames enum values to conform to naming convention.
| * settings,opengl,yuzu-qt: Fix AA, Filter maximumsGravatar lat9nq2023-07-211-2/+2
| | | | | | | | | | | | 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...
| * settings_enums: More aggressively use macrosGravatar lat9nq2023-07-211-351/+149
| | | | | | | | | | 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.
| * settings,uisettings: Remove leading underscoreGravatar lat9nq2023-07-213-3/+3
| |
| * settings: Move speed_limit to coreGravatar lat9nq2023-07-211-4/+4
| |
| * common,yuzu-qt: Avoid explicit instantiation on old clangGravatar lat9nq2023-07-213-3/+12
| | | | | | | | | | Clang versions < 15 have compile issues with explicit instantiation. Disable it for these versions.
| * settings_setting: Fix MSVC errorGravatar lat9nq2023-07-211-1/+1
| |
| * common,yuzu-qt: GCC warning silencesGravatar lat9nq2023-07-212-7/+9
| | | | | | | | Fixes -Wshadow, -Wdeprecated, and catch by copy rather than by ref.
| * settings: Delete cpu_accuracy_first_timeGravatar lat9nq2023-07-211-2/+0
| | | | | | | | Almost a 2 year old migration setting now
| * settings: Document BasicSetting, add RangedGravatar lat9nq2023-07-212-9/+110
| |
| * settings: Move IsConfiguringGlobal to settings_commonGravatar lat9nq2023-07-214-12/+13
| |
| * settings: Move some simple data to BasicSettingGravatar lat9nq2023-07-215-108/+129
| | | | | | | | | | Reduces the need for the compiler to duplicate this code, by about 100KB executable size.
| * settings_setting: Fix errorsGravatar lat9nq2023-07-211-2/+3
| | | | | | | | | | ToString didn't have a constexpr if statement where needed. Canonicalize missed an else, causing unreachable code error on MSVC.
| * (ui,)settings: Use explicit instantiationGravatar lat9nq2023-07-215-471/+587
| | | | | | | | Reduces compile times a tad on clang.
| * settings: Remove redundant false literalsGravatar lat9nq2023-07-211-19/+16
| |
| * general: Add typeinfo where neededGravatar lat9nq2023-07-212-0/+2
| | | | | | | | Using typeid without including typeinfo first produces an ill-formed program.