Mario
54a5b8062e
yuzu-qt: Track play time
2 years ago
comex
4285e35375
Warnings cleanup for GCC 13 and Clang 16
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".
2 years ago
lat9nq
8980108234
settings: Add docked mode helper function
2 years ago
lat9nq
447ec24378
general: Convert use_docked_mode to an enumeration
Allows some special interactions with it in the Qt frontend.
2 years ago
lat9nq
e6fb92574b
yuzu-qt: Screenshots depend more on the graphics settings
2 years ago
lat9nq
9433d04259
yuzu-qt: Implement unspecified screenshot ratio
2 years ago
lat9nq
276bc80544
settings: Add AspectRatio enum, split res scale function
2 years ago
Liam
1cecd1d96a
fssystem: rework for yuzu style
2 years ago
Liam
5e3139e7c6
vfs: expand support for NCA reading
2 years ago
Liam
3e4076c2ac
general: fix apple clang build
2 years ago
Morph
4d018d4060
wall_clock: Increase precision requirements
We are providing a conversion to nanoseconds in NativeClock, which is more precise than the GPU tick.
3 years ago
lat9nq
4246d7d97d
(ui)settings: Add more runtime_modifiable settings
3 years ago
lat9nq
722821707d
backend: Remove usage of explicit operator overload
Causes a crash on MSVC from a race condition on application quit.
Intended to address yuzu-emu/yuzu/issues/11137
3 years ago
lat9nq
cac8b672aa
settings: Correct Linkage member impl location
3 years ago
lat9nq
9fbed50208
settings: Set GPU as default ASTC decoder
3 years ago
lat9nq
43ce3ae0d9
settings_common: Document specializations
3 years ago
lat9nq
cce6c6919c
common,qt-config: Remove usage of forward_list
3 years ago
lat9nq
1067bbf7b7
settings_common: Use a vector in category linkage
Improve storage requirements.
3 years ago
lat9nq
093b0c051d
settings: Remove sorting from log
Unecessary, and would run every time the settings are logged.
3 years ago
lat9nq
5c0cf58f73
common: Move global configuration state modifiers back to settings
3 years ago
lat9nq
fc4d2cbf34
settings_setting: Fix typo
3 years ago
lat9nq
b187a3c214
common,configure_system: Rename method to GetCategory
Fixes essentially a shadowing issue.
3 years ago
lat9nq
5e52526942
settings: Cleanup
Addresses review feedback
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
3 years ago
lat9nq
e952af53be
core,common: Give memory layout setting an enum
Allows for 6GB and 8GB layouts to be selected.
3 years ago
lat9nq
5011827255
settings: Require time zone setting value for stirng
3 years ago
lat9nq
7168d30a6e
settings: Give indices to enums
3 years ago
lat9nq
42c6056deb
settings_common: Remove unncessary enum spec
3 years ago
lat9nq
8c4acf2ebb
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
6dd818a105
settings_setting: Silence shadowing warnings
3 years ago
lat9nq
245c490e02
settings,configuration: Add a default suffix
3 years ago
lat9nq
4ffbd95fa5
settings: Define paired settings
settings_common: Remove unused optional
3 years ago
lat9nq
eb6fe05451
settings: Define specializations for settings
Suggests to a frontend how to represent each setting.
3 years ago
lat9nq
27df166abd
settings,translation: Fix time zone enum
Renames enum values to conform to naming convention.
3 years ago
lat9nq
ed14cd8748
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
f42ebb3405
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
c0e9075d6b
settings,uisettings: Remove leading underscore
3 years ago
lat9nq
e09f6ee530
settings: Move speed_limit to core
3 years ago
lat9nq
a7a32ab8a0
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
c2b577b364
settings_setting: Fix MSVC error
3 years ago
lat9nq
859dff4c27
common,yuzu-qt: GCC warning silences
Fixes -Wshadow, -Wdeprecated, and catch by copy rather than by ref.
3 years ago
lat9nq
98eb39ee74
settings: Delete cpu_accuracy_first_time
Almost a 2 year old migration setting now
3 years ago
lat9nq
8addc74f4f
settings: Document BasicSetting, add Ranged
3 years ago
lat9nq
8d4c466cde
settings: Move IsConfiguringGlobal to settings_common
3 years ago
lat9nq
e0d6f3435e
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
9eee631154
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
5a2b7f951d
(ui,)settings: Use explicit instantiation
Reduces compile times a tad on clang.
3 years ago
lat9nq
5574e68b57
settings: Remove redundant false literals
3 years ago
lat9nq
9d6de208a1
general: Add typeinfo where needed
Using typeid without including typeinfo first produces an ill-formed program.
3 years ago
lat9nq
9d3715a68c
settings_enums: Add const type where needed
3 years ago
lat9nq
9ba1120d59
settings: yuzu is not capitalized why is it capitalized stop no bad
3 years ago