summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* savedata_factory: Eliminate usage of the global system instanceGravatar Lioncash2020-11-274-14/+22
| | | | Now there's only two meaningful instances left in core.
* Merge pull request #5018 from lioncash/service-globalGravatar Rodrigo Locatti2020-11-27222-907/+1221
|\ | | | | service: Eliminate usages of the global system instance
| * service: Eliminate usages of the global system instanceGravatar Lioncash2020-11-26222-907/+1221
| | | | | | | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
* | codec: Fix `pragma GCC diagnostic pop` missing corresponding pushGravatar comex2020-11-261-0/+1
|/
* Merge pull request #4975 from comex/invalid-syncpoint-idGravatar bunnei2020-11-262-13/+20
|\ | | | | nvdrv, video_core: Don't index out of bounds when given invalid syncpoint ID
| * nvdrv, video_core: Don't index out of bounds when given invalid syncpoint IDGravatar comex2020-11-242-13/+20
| | | | | | | | | | | | | | | | - Use .at() instead of raw indexing when dealing with untrusted indices. - For the special case of WaitFence with syncpoint id UINT32_MAX, instead of crashing, log an error and ignore. This is what I get when running Super Mario Maker 2.
* | Merge pull request #4981 from ogniK5377/ioctl-ctrlGravatar bunnei2020-11-2524-91/+214
|\ \ | | | | | | nvservices: Reintroducee IoctlCtrl
| * | nvservices: Reintroducee IoctlCtrlGravatar Chloe Marcec2020-11-2424-91/+214
| | | | | | | | | | | | Fixes regression caused by #4907 which caused games like Breath of the Wild 1.0.0 not to boot.
* | | input_common: ignore some Clang warnings after 5c4774e8ce1dGravatar Jan Beich2020-11-251-2/+2
| | | | | | | | | | | | | | | error: unknown warning option '-Werror=unused-but-set-parameter'; did you mean '-Werror=unused-parameter'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Werror=unused-but-set-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-option]
* | | Merge pull request #4976 from comex/poll-eventsGravatar Rodrigo Locatti2020-11-2510-73/+68
|\ \ \ | | | | | | | | Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main thread
| * | | Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off ↵Gravatar comex2020-11-2310-73/+68
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #4946 from ameerj/alpha-testGravatar Rodrigo Locatti2020-11-255-3/+65
|\ \ \ | | | | | | | | renderer_vulkan: Implement alpha testing
| * | | cleanup unneeded comments and newlinesGravatar ameerj2020-11-251-6/+0
| | | |
| * | | Refactor MaxwellToSpirvComparison. Use Common::BitCastGravatar ameerj2020-11-253-31/+34
| | | | | | | | | | | | | | | | Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
| * | | Address PR feedback from ReinGravatar ameerj2020-11-245-40/+31
| | | |
| * | | vulkan_renderer: Alpha Test Culling ImplementationGravatar ameerj2020-11-245-2/+76
| | | | | | | | | | | | | | | | Used by various textures in many titles, e.g. SSBU menu.
* | | | Merge pull request #4959 from Morph1984/emulated-controller-stylesetGravatar bunnei2020-11-254-99/+192
|\ \ \ \ | | | | | | | | | | configure_input_player: Use the NpadStyleSet to limit the available controllers shown
| * | | | applets/controller: Use a pair of emulated controller index to controller typeGravatar Morph2020-11-202-44/+96
| | | | |
| * | | | configure_input_player: Use the npad style set to show the available controllersGravatar Morph2020-11-202-55/+96
| | | | | | | | | | | | | | | | | | | | This will reduce the likelihood of an invalid controller type to be set within a game
* | | | | Merge pull request #4932 from ogniK5377/misc-audioGravatar bunnei2020-11-2513-103/+198
|\ \ \ \ \ | | | | | | | | | | | | audren: Make use of nodiscard, rework downmixing, release all buffers
| * | | | | Addressed changesGravatar Chloe Marcec2020-11-174-10/+13
| | | | | |
| * | | | | audren: Make use of nodiscard, rework downmixing, release all buffersGravatar Chloe Marcec2020-11-1713-102/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge pull request #4978 from bunnei/shutdown-crashGravatar bunnei2020-11-251-7/+17
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | core: cpu_manager: Fix shutdown crash when closing before emulation starts.
| * | | | | core: cpu_manager: Fix shutdown crash when closing before emulation starts.Gravatar bunnei2020-11-241-7/+17
| | | | | |
* | | | | | Merge pull request #4905 from german77/AnalogFromButtonGravatar bunnei2020-11-241-19/+103
|\ \ \ \ \ \ | | | | | | | | | | | | | | Allow to dial any angle with digital joystick
| * | | | | | fix minor clang errorGravatar german2020-11-101-1/+1
| | | | | | |
| * | | | | | Allow to dial any angle with digital joystickGravatar german2020-11-081-19/+103
| | | | | | |
* | | | | | | frontend: yuzu (qt): Register a callback for ExecuteProgram.Gravatar bunnei2020-11-244-7/+38
| | | | | | |
* | | | | | | service: am: Implement ExecuteProgram and required stubs.Gravatar bunnei2020-11-242-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - This is used by Super Mario 3D All-Stars.
* | | | | | | core: loader: Implement support for loading indexed programs.Gravatar bunnei2020-11-2412-26/+74
| |/ / / / / |/| | | | |
* | | | | | hle: services: Fix a crash with improper NVFlinger lifetime management. (#4977)Gravatar bunnei2020-11-2417-100/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hle: services: Fix a crash with improper NVFlinger lifetime management. - This crash would happen when attempting to shutdown yuzu early on in boot.
* | | | | | Merge pull request #3681 from lioncash/componentGravatar Rodrigo Locatti2020-11-241-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()
| * | | | | | decode/image: Fix typo in assert in GetComponentSize()Gravatar Lioncash2020-04-151-3/+3
| | | | | | |
| * | | | | | decoder/image: Fix incorrect G24R8 component sizes in GetComponentSize()Gravatar Lioncash2020-04-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The components' sizes were mismatched. This corrects that.
* | | | | | | Merge pull request #4942 from lioncash/systemGravatar Rodrigo Locatti2020-11-244-100/+85
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | core: Make use of [[nodiscard]] with the System class
| * | | | | | | core: Remove unused private Init function for the System classGravatar Lioncash2020-11-182-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't used, so it can be removed.
| * | | | | | | core: Make use of [[nodiscard]] with the System classGravatar Lioncash2020-11-184-85/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given this is a central class, we should flag cases where the return value of some functions not being used is likely a bug.
* | | | | | | | Merge pull request #4972 from lioncash/unused4Gravatar Rodrigo Locatti2020-11-241-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | svc: Remove unnecessary [[maybe_unused]] tag
| * | | | | | | | svc: Remove unnecessary [[maybe_unused]] tagGravatar Lioncash2020-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The parameter is used in this function, so this suppression isn't necessary.
* | | | | | | | | input_common: Fix typo in gc_poller.cpp with [[maybe_unused]].Gravatar bunnei2020-11-231-2/+2
| | | | | | | | |
* | | | | | | | | input_common: Add more missing [[maybe_unused]] from #4927.Gravatar bunnei2020-11-233-4/+6
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | Fix warnings in core/frontend/input.h with [[maybe_unused]]Gravatar bunnei2020-11-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fixes build break due to #4927
* | | | | | | | Merge pull request #4927 from lioncash/input-errorGravatar bunnei2020-11-238-10/+23
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ |/| | | | | | | input_common: Treat warnings as errors
| * | | | | | | input_common: Treat warnings as errorsGravatar Lioncash2020-11-228-10/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
* | | | | | | | Merge pull request #4451 from slashiee/extended-loggingGravatar bunnei2020-11-235-11/+54
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | logging/settings: Increase maximum log size to 100 MB and add extended logging option
| * | | | | | | logging/settings: Increase maximum log size to 100 MB and add extended ↵Gravatar M&M2020-08-245-11/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | logging option The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session. This commit also fixes a few errors that are present in the general debug menu.
* | | | | | | | Merge pull request #4944 from lioncash/system-remGravatar bunnei2020-11-2126-157/+259
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | patch_manager: Remove usages of the global system instance
| * | | | | | | | patch_manager: Remove usages of the global system instanceGravatar Lioncash2020-11-1826-157/+259
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this, only 19 usages of the global system instance remain within the core library. We're almost there.
* | | | | | | | Merge pull request #4954 from lioncash/compareGravatar Morph2020-11-221-1/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | gl_rasterizer: Make floating-point literal a float
| * | | | | | | | gl_rasterizer: Make floating-point literal a floatGravatar Lioncash2020-11-201-1/+1
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Gets rid of an unnecessary expansion from float to double.