aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-11-24nvservices: Reintroducee IoctlCtrlChloe Marcec
Fixes regression caused by #4907 which caused games like Breath of the Wild 1.0.0 not to boot.
2020-11-23input_common: Add more missing [[maybe_unused]] from #4927.bunnei
2020-11-23Fix warnings in core/frontend/input.h with [[maybe_unused]]bunnei
Fixes build break due to #4927
2020-11-23Merge pull request #4927 from lioncash/input-errorbunnei
input_common: Treat warnings as errors
2020-11-23Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off ↵comex
main thread EmuWindow::PollEvents was called from the GPU thread (or the CPU thread in sync-GPU mode) when swapping buffers. It had three implementations: - In GRenderWindow, it didn't actually poll events, just set a flag and emit a signal to indicate that a frame was displayed. - In EmuWindow_SDL2_Hide, it did nothing. - In EmuWindow_SDL2, it did call SDL_PollEvents, but this is wrong because SDL_PollEvents is supposed to be called on the thread that set up video - in this case, the main thread, which was sleeping in a busyloop (regardless of whether sync-GPU was enabled). On macOS this causes a crash. To fix this: - Rename EmuWindow::PollEvents to OnFrameDisplayed, and give it a default implementation that does nothing. - In EmuWindow_SDL2, do not override OnFrameDisplayed, but instead have the main thread call SDL_WaitEvent in a loop.
2020-11-23Merge pull request #4451 from slashiee/extended-loggingbunnei
logging/settings: Increase maximum log size to 100 MB and add extended logging option
2020-11-23svc: Remove unnecessary [[maybe_unused]] tagLioncash
The parameter is used in this function, so this suppression isn't necessary.
2020-11-22input_common: Treat warnings as errorsLioncash
Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
2020-11-21Merge pull request #4944 from lioncash/system-rembunnei
patch_manager: Remove usages of the global system instance
2020-11-22Merge pull request #4954 from lioncash/compareMorph
gl_rasterizer: Make floating-point literal a float
2020-11-21Merge pull request #4955 from lioncash/move3bunnei
async_shaders: std::move data within QueueVulkanShader()
2020-11-20Merge pull request #4907 from ogniK5377/nvdrv-cleanupbunnei
core: Make nvservices more standardized
2020-11-20applets/controller: Use a pair of emulated controller index to controller typeMorph
2020-11-20configure_input_player: Use the npad style set to show the available controllersMorph
This will reduce the likelihood of an invalid controller type to be set within a game
2020-11-20Merge pull request #4957 from ReinUsesLisp/alpha-test-rtLC
gl_rasterizer: Remove warning of untested alpha test
2020-11-20gl_rasterizer: Remove warning of untested alpha testReinUsesLisp
Alpha test has been proven to only affect the first render target.
2020-11-20Merge pull request #4953 from lioncash/shader-shadowbunnei
shader_bytecode: Eliminate variable shadowing
2020-11-20Merge pull request #4951 from bunnei/olsc-stubbunnei
hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled functions.
2020-11-20olsc: Move member initialization to after member functions.bunnei
2020-11-20async_shaders: emplace threads into the worker thread vectorLioncash
Same behavior, but constructs the threads in place instead of moving them.
2020-11-20async_shaders: Simplify implementation of GetCompletedWork()Lioncash
This is equivalent to moving all the contents and then clearing the vector. This avoids a redundant allocation.
2020-11-20async_shaders: Simplify moving data into the pending queueLioncash
2020-11-20async_shaders: std::move data within QueueVulkanShader()Lioncash
Same behavior, but avoids redundant copies. While we're at it, we can simplify the pushing of the parameters into the pending queue.
2020-11-20gl_rasterizer: Make floating-point literal a floatLioncash
Gets rid of an unnecessary expansion from float to double.
2020-11-20shader_bytecode: Make use of [[nodiscard]] where applicableLioncash
Ensures that all queried values are made use of.
2020-11-20shader_bytecode: Eliminate variable shadowingLioncash
2020-11-20Merge pull request #4941 from lioncash/configMorph
configure_input_player: Use static qualifier for IsProfileNameValid()
2020-11-20Merge pull request #4950 from german77/RumbleStrenghtLC
Modify rumble amplification
2020-11-20Merge pull request #4952 from ReinUsesLisp/bit-castLC
common/bit_cast: Add function matching std::bit_cast without constexpr
2020-11-20Merge pull request #4308 from ReinUsesLisp/maxwell-3d-funcsRodrigo Locatti
maxwell_3d: Move code to separate functions and insert instead of push_back
2020-11-20common/bit_cast: Add function matching std::bit_cast without constexprReinUsesLisp
Add a std::bit_cast-like function archiving the same runtime results as the standard function, without compile time support. This allows us to use bit_cast while we wait for compiler support, it can be trivially replaced in the future.
2020-11-19hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled ↵bunnei
functions. - Used by Animal Cross: New Horizons v1.6.0 update, minimal stub gets this update working.
2020-11-19Modify rumble amplificationgerman77
2020-11-19virtual_buffer: Do nothing on resize() calls with same sizesLioncash
Prevents us from churning memory by freeing and reallocating a memory block that would have already been adequate as is.
2020-11-18Merge pull request #4936 from lioncash/pagebunnei
page_table: Allow page tables to be moved
2020-11-18patch_manager: Remove usages of the global system instanceLioncash
With this, only 19 usages of the global system instance remain within the core library. We're almost there.
2020-11-18core: Remove unused private Init function for the System classLioncash
This isn't used, so it can be removed.
2020-11-18core: Make use of [[nodiscard]] with the System classLioncash
Given this is a central class, we should flag cases where the return value of some functions not being used is likely a bug.
2020-11-17configure_input_player: Use static qualifier for IsProfileNameValid()Lioncash
This is a static member function, so we don't need use an existing instance to call this function.
2020-11-17Merge pull request #4866 from Morph1984/mjolnir-p3-prodbunnei
Project Mjölnir: Part 3 - Controller Profiles and Vibration Rework
2020-11-17virtual_buffer: Add compile-time type-safety guarantees with VirtualBufferLioncash
VirtualBuffer makes use of VirtualAlloc (on Windows) and mmap() (on other platforms). Neither of these ensure that non-trivial objects are properly constructed in the allocated memory. To prevent potential undefined behavior occurring due to that, we can add a static assert to loudly complain about cases where that is done.
2020-11-17page_table: Allow page tables to be movedLioncash
Makes page tables and virtual buffers able to be moved, but not copied, making the interface more flexible. Previously, with the destructor specified, but no move assignment or constructor specified, they wouldn't be implicitly generated.
2020-11-17page_table: Add missing doxygen parameters to Resize()Lioncash
Resolves two -Wdocumentation warnings.
2020-11-17page_table: Remove unnecessary header inclusionsLioncash
Prevents indirect inclusions for these headers.
2020-11-17rasterizer_interface: Make use of [[nodiscard]] where applicableLioncash
2020-11-17render_base: Make use of [[nodiscard]] where applicableLioncash
2020-11-17gpu: Make use of [[nodiscard]] where applicableLioncash
2020-11-16Merge pull request #4929 from lioncash/nodiscard-inputbunnei
motion_input: Mark member functions as [[nodiscard]] where applicable
2020-11-17Addressed changesChloe Marcec
2020-11-17audren: Make use of nodiscard, rework downmixing, release all buffersChloe Marcec
Preliminary work for upmixing & general cleanup. Fixes basic issues in games such as Shovel Knight and slightly improves the LEGO games. Upmixing stitll needs to be implemented. Audio levels in a few games will be fixed as we now use the downmix coefficients when possible instead of supplying our own