summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-08svc: Remove unnecessary castsLioncash
Simplifies and removes some casts. In all cases, these were generally widening from a 32-bit unsigned type to a 64-bit unsigned type, so no information would be lost from the conversion.
2020-12-08Merge pull request #5171 from lat9nq/ci-unicorn-cleanupLC
ci: Remove `-DYUZU_USE_BUNDLED_UNICORN=ON`
2020-12-08ci: Remove `-DYUZU_USE_BUNDLED_UNICORN=ON`lat9nq
Unicorn has been removed, yet CI still enables building with Unicorn. This just cleans up a few leftovers by removing the variable from the CMake parameters in CI.
2020-12-08Merge pull request #5167 from lioncash/doc-memorybunnei
memory: Resolve -Wdocumentation warning for Write()
2020-12-08memory: Resolve -Wdocumentation warning for Write()Lioncash
Write() doesn't return anything, so the @returns tag shouldn't be present.
2020-12-08Merge pull request #5156 from comex/xx-rawsbunnei
configure_motion_touch: Fix unescaped backslash in regex
2020-12-08Merge pull request #5165 from lioncash/copy-controllerMorph
controller: Avoid unnecessary copies in ConfigurationComplete()
2020-12-07controller: Use std::move within ConvertToFrontendParameters()Lioncash
Avoids unnecessary copies.
2020-12-07controller: Avoid unnecessary copies in ConfigurationComplete()Lioncash
Avoids unnecessary 1072 byte copies when querying info about controllers.
2020-12-08Merge pull request #5020 from german77/AnalogfromButtonFixMorph
Disable analog joystick from buttons by default
2020-12-07Disable analog joystick from buttons by defaultgerman
2020-12-07Merge pull request #5164 from lioncash/containsRodrigo Locatti
video_core: Make use of ordered container contains() where applicable
2020-12-07Merge pull request #5163 from lioncash/concatRodrigo Locatti
ast: Improve string concat readability in operator()
2020-12-07Merge pull request #5153 from comex/xx-unixbunnei
CMakeLists,network: Create YUZU_UNIX macro to replace __unix__
2020-12-07video_core: Make use of ordered container contains() where applicableLioncash
With C++20, we can use the more concise contains() member function instead of comparing the result of the find() call with the end iterator.
2020-12-07ast: Improve string concat readability in operator()Lioncash
Provides an in-place format string to make it more pleasant to read.
2020-12-07Merge pull request #5149 from comex/xx-map-intervalbunnei
map_interval: Change field order to address uninitialized field warning
2020-12-07Merge pull request #5159 from lioncash/move-amendRodrigo Locatti
shader_ir: std::move node within DeclareAmend()
2020-12-07Merge pull request #5160 from lioncash/buffer-headerRodrigo Locatti
buffer_block: Remove unnecessary includes
2020-12-07buffer_block: Mark interface as nodiscard where applicableLioncash
Prevents logic errors from occurring from unused values.
2020-12-07buffer_block: Remove unnecessary includesLioncash
Reduces the amount of dependencies the header pulls in.
2020-12-07Merge pull request #5158 from lioncash/video-fmtRodrigo Locatti
video_core: Remove unnecessary enum class casting in logging messages
2020-12-06Merge pull request #5148 from comex/xx-unused-fieldsbunnei
core: Mark unused fields as [[maybe_unused]]
2020-12-06Merge pull request #5154 from comex/xx-ipcbunnei
hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cpp
2020-12-07shader_ir: std::move node within DeclareAmend()Lioncash
Same behavior, but elides an unnecessary atomic reference count increment and decrement.
2020-12-07video_core: Remove unnecessary enum class casting in logging messagesLioncash
fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit.
2020-12-07Merge pull request #5147 from comex/xx-purevirtLC
nvdrv: Remove useless re-declaration of pure virtual methods that were already declared in the superclass
2020-12-07Merge pull request #5150 from comex/xx-boxcatLC
boxcat: Avoid unnecessary object copy
2020-12-07Merge pull request #5152 from comex/xx-overrideLC
renderer_vulkan: Add missing `override` specifier
2020-12-07Merge pull request #5136 from lioncash/video-shadow3LC
video_core: Resolve more variable shadowing scenarios pt.3
2020-12-06configure_motion_touch: Fix unescaped backslash in regexcomex
Since this is inside a string literal, backslashes that are part of regex syntax have to be escaped. But that's ugly, so convert to a raw string instead.
2020-12-06Merge pull request #5155 from comex/xx-defaultLC
Fix "explicitly defaulted but implicitly deleted" warning
2020-12-06Fix "explicitly defaulted but implicitly deleted" warningcomex
`PhysicalCore`'s move assignment operator was declared as `= default`, but was implicitly deleted because `PhysicalCore` has fields of reference type. Switch to explicitly deleting it to avoid a Clang warning. The move *constructor* is still defaulted, and is required to exist due to the use of `std::vector<PhysicalCore>`.
2020-12-06hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cppcomex
- Add a type check so that calling Push with an invalid type produces a compile error rather than a linker error. - vi.cpp was calling Push with a variable of type `std::size_t`. There's no explicit overload for `size_t`, but there is one for `u64`, which on most platforms is the same type as `size_t`. On macOS, however, it isn't: both types are 64 bits, but `size_t` is `unsigned long` and `u64` is `unsigned long long`. Regardless, it makes more sense to explicitly use `u64` here instead of `size_t`.
2020-12-06CMakeLists,network: Create YUZU_UNIX macro to replace __unix__comex
__unix__ is not predefined on Apple platforms even though they are Unix.
2020-12-06renderer_vulkan: Add missing `override` specifiercomex
2020-12-06map_interval: Change field order to address uninitialized field warningcomex
Clang complains about `new_chunk`'s constructor using the then-uninitialized `first_chunk` (even though it's just to get a pointer into it).
2020-12-06core: Mark unused fields as [[maybe_unused]]comex
2020-12-06boxcat: Avoid unnecessary object copycomex
2020-12-06Merge pull request #5146 from comex/xx-numLC
video_core: Adjust `NUM` macro to avoid Clang warning
2020-12-06nvdrv: Remove useless re-declaration of pure virtual methods that were ↵comex
already declared in the superclass
2020-12-06video_core: Adjust `NUM` macro to avoid Clang warningcomex
The previous definition was: #define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32)) In cases where `field_name` happens to refer to an array, Clang thinks `sizeof(an array value) / sizeof(a type)` is an instance of the idiom where `sizeof` is used to compute an array length. So it thinks the type in the denominator ought to be the array element type, and warns if it isn't, assuming this is a mistake. In reality, `NUM` is not used to get array lengths at all, so there is no mistake. Silence the warning by applying Clang's suggested workaround of parenthesizing the denominator.
2020-12-06Merge pull request #5143 from comex/xx-users-sizeRodrigo Locatti
yuzu_cmd: Remove 'users_size'
2020-12-06Merge pull request #5141 from comex/xx-true-falseRodrigo Locatti
maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict
2020-12-06Merge pull request #5140 from FearlessTobi/port-5577bunnei
Port citra-emu/citra#5577: "Update cubeb and request a persistent stream session"
2020-12-06Merge pull request #5132 from lioncash/xbyak-abibunnei
xbyak_abi: Avoid implicit sign conversions
2020-12-06Merge pull request #5139 from lioncash/deprecated-qtbunnei
game_list_p: Resolve deprecated usage of QVariant operator<
2020-12-05maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflictcomex
On Apple platforms, FALSE and TRUE are defined as macros by <mach/boolean.h>, which is included by various system headers. Note that there appear to be no actual users of the names to fix up.
2020-12-05yuzu_cmd: Remove 'users_size'comex
Specifically: const auto size = sdl2_config->GetInteger("System", "users_size", 0); The variable is never used, producing a warning. I wondered if this ought to be assigning something to in `Settings`, but nothing else in the codebase ever mentions a setting called "users_size", so I guess it's safe to remove...
2020-12-05Update cubeb and request a persistent stream sessionVitor Kiguchi