summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-04-24vk_texture_cache: Swap R and B channels of color flipped formatameerj
Swaps the Red and Blue channels of the A1B5G5R5_UNORM texture format, which was being incorrectly rendered.
2021-04-24Merge pull request #6234 from Morph1984/stub-amMat M
ICommonStateGetter: Stub SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled
2021-04-24Merge pull request #6235 from german77/ectx_awMat M
glue: Add ectx:aw service placeholder
2021-04-24glue: Add ectx:aw placeholdergerman77
2021-04-24Merge pull request #6230 from Morph1984/default-resource-sizebunnei
program_metadata: Set a default resource size when a NPDM is not present
2021-04-23Merge pull request #6227 from lioncash/metabunnei
program_metadata: Explicitly specify copy/move operators/functions
2021-04-23ICommonStateGetter: Stub ↵Morph
SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled - Used by Pixel Game Maker Series Werewolf Princess Kaguya
2021-04-23Merge pull request #6228 from lioncash/semibunnei
lm: Resolve -Wextra-semi warning
2021-04-23Merge pull request #6229 from lioncash/unused-varbunnei
acc/lbl: Remove unused variables
2021-04-23Merge pull request #6231 from lioncash/aesbunnei
aes_util: Make use of std::span
2021-04-23program_metadata: Set a default resource size when a NPDM is not presentMorph
Sets a default size of 0x1FE00000 bytes (510 MiB) for the system_resource_size when a NPDM is not present.
2021-04-23Merge pull request #6232 from lioncash/alias2bunnei
emu_window: unsigned -> u32
2021-04-23emu_window: Return pair from ClipToTouchScreen() instead of tupleLioncash
This is only a 2-tuple, so it can be converted over to the std::pair class.
2021-04-23emu_window: unsigned -> u32Lioncash
This is more concise and consistent with the rest of the codebase.
2021-04-23aes_util: Make use of std::spanLioncash
Allows us to simplify the interface quite a bit as it will handle contiguous sequences for us.
2021-04-23acc/lbl: Remove unused variablesLioncash
2021-04-23lm: Make use of insert_or_assign() in Log()Lioncash
Avoids unnecessary default construction of an entry in cases where no entry exists before overwriting the created entry.
2021-04-23lm: Prevent redundant map lookups in Log()Lioncash
We can perform the lookup and then do the contains check by checking the end iterator. The benefit of this is that if we *do* find an entry, then we aren't hashing into the map again to find it. We can also get rid of an unused std::vector temporary while we're at it.
2021-04-23lm: Resolve -Wextra-semi warningLioncash
Resolves a trivial warning with clang.
2021-04-23program_metadata: Explicitly specify copy/move functionsLioncash
The generation of the copy assignment operators are deprecated on being generated when a user-provided destructor is present. We can explicitly specify that we desire this behavior to keep the class forward compatible with future standards.
2021-04-22yuzu_cmd: Remove unused resource.hameerj
2021-04-22service: hid: Get transfer memory for InitializeSevenSixAxisSensorMorph
2021-04-21Merge pull request #6214 from Morph1984/time-fix-kirby-clashbunnei
time: Fix GetClockSnapshotFromSystemClockContext
2021-04-20Merge pull request #6219 from lioncash/log-erasebunnei
log/backend: Make use of erase_if
2021-04-20Merge pull request #6218 from lioncash/tcachebunnei
texture_cache/util: Fix src being used instead of dst within DeduceBlitImages case
2021-04-20Merge pull request #6207 from lat9nq/sdl-2.0.14bunnei
cmake: Use SDL 2.0.14 and fix scope issue
2021-04-20log/backend: Use in-class initializer for FileBackendLioncash
We can also avoid redundant constructions of the same string repeatedly.
2021-04-20log/backend: Make use of erase_ifLioncash
Same behavior, but less verbose.
2021-04-19Merge pull request #6217 from Morph1984/consistent-writebuffersbunnei
general: Write buffers before pushing raw arguments
2021-04-19Merge pull request #6215 from lioncash/duplicatebunnei
npad: Remove duplicated class member variable
2021-04-19texture_cache/util: Fix src being used instead of dst within DeduceBlitImagesLioncash
This line can only ever be reached if src is null, so dereferencing it here is a logic bug that slipped through. Instead, we dereference dst instead which is guaranteed to be valid.
2021-04-19general: Write buffers before pushing raw argumentsMorph
For consistency with the rest of the service implementations
2021-04-19arp: Use type alias for issue functionLioncash
Reduces some verbosity and centralizes the function details in one spot.
2021-04-19arp: Prevent uninitialized read of launch member variableLioncash
If anything happened to call arp functions in the wrong order and called IRegistrar's Issue function before SetApplicationLaunchProperty, we'd read from an uninitialized ApplicationLaunchProperty instance. Instead, we can always initialize it so if this does happen, then the outcome of doing such a thing is at least consistently reproducible.
2021-04-19npad: Remove duplicated class member variableLioncash
ControllerBase already has a System reference that can be accessed from this class, so we can get rid of this to make the class layout a little more straightforward.
2021-04-19time: Write buffer before pushing RESULT_SUCCESS in GetClockSnapshotMorph
2021-04-19time: Fix GetClockSnapshotFromSystemClockContextMorph
This removes an incorrect alignment usage and corrects the positions of the popped parameters. - Fixes Super Kirby Clash crashing on boot
2021-04-18general: Ignore implicit-fallthrough for SDL.hlat9nq
SDL 2.0.14 introduces an incompatibility with Clang, causing it to trigger -Wimplicit-fallthrough even though it is marked. Ignore it for now, with a comment mentioning why this is needed.
2021-04-17cmake: Use SDL 2.0.14 and fix CMake scope issuelat9nq
Forces using SDL 2.0.14. Upgrades the SDL external to that version. Adds a message when switching to the external. Fixes an error where input_common only links to SDL when SDL2_FOUND is set, but externals/CMakeLists cannot set that variable to the required scope. Switch to using ENABLE_SDL2, which we can use since we now include the SDL source.
2021-04-17applets: Send focus state change message on applet state changeMorph
Fixes the softlock after the controller applet exits in Mario Kart 8 Deluxe.
2021-04-17applets: Make the applet mode a protected property of AppletMorph
2021-04-16Merge pull request #6125 from ogniK5377/nvdec-close-devbunnei
nvdrv: Cleanup CDMA Processor on device closure
2021-04-16Merge pull request #6133 from Morph1984/project-eleuthiabunnei
Project Eleuthia - On-Screen Keyboard and Error Applet Overlays
2021-04-15Merge pull request #6119 from german77/SDLMappingbunnei
InputCommon: Address mapping and naming issues with SDL2
2021-04-16Address issuesChloe Marcec
2021-04-15applets/swkbd: Implement the Qt Software Keyboard frontendMorph
The Qt Software Keyboard frontend attempts to mimic the software keyboard rendered by the Nintendo Switch. This frontend implements multiple keyboard types, such as the normal software keyboard, the numeric pad software keyboard and the inline software keyboard. Keyboard and controller input is also supported in this frontend. Keyboard input is handled as native keyboard input, and so the on-screen keyboard cannot be navigated with the keyboard arrow keys as the arrow keys are used to move the text cursor. Controller input is translated into mouse hover movements on the onscreen keyboard or their respective button actions (B for backspace, A for entering the selected button, L/R for moving the text cursor, etc). The text check dialogs can also be confirmed with controller input through the use of the OverlayDialog Massive thanks to Rei for creating all the UI for the various keyboards and OverlayDialog. This would not have been possible without his excellent work. Co-authored-by: Its-Rei <kupfel@gmail.com>
2021-04-15error: Make the error code as the title text of the OverlayDialogMorph
Co-authored-by: Its-Rei <kupfel@gmail.com>
2021-04-15overlay_dialog: Add an overlay text dialog that accepts controller inputMorph
An OverlayDialog is an interactive dialog that accepts controller input (while a game is running) This dialog attempts to replicate the look and feel of the Nintendo Switch's overlay dialogs and provide some extra features such as embedding HTML/Rich Text content in a QTextBrowser. The OverlayDialog provides 2 modes: one to embed regular text into a QLabel and another to embed HTML/Rich Text content into a QTextBrowser. Co-authored-by: Its-Rei <kupfel@gmail.com>
2021-04-15main: Move meta type registration into its own functionMorph
Moves the existing meta type registration into its own function and adds registration of common integral, floating point and string types. This function is also now called in the constructor of the GMainWindow instead of on starting a game.
2021-04-15input_interpreter: Fix button hold being interpreted incorrectly on initMorph
We reset all the button states to 0 except the first index (which has all the buttons as pressed) to prevent a button hold being interpreted as a button that was pressed once on the first poll.