summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core/memory: Check our memory fallbacks for out-of-bound behavior.Gravatar Markus Wick2021-05-293-4/+46
| | | | | | This makes it by far harder to crash yuzu. Also implement the 48bit masking of AARCH64 while touching this code.
* core/arm_interface: Improve the performance of memory fallbacks.Gravatar Markus Wick2021-05-292-29/+31
| | | | | We just create one memory subsystem. This is a constant all the time. So there is no need to call the non-inlined parent.Memory() helper on every callback.
* Merge pull request #6371 from degasus/drop_ExceptionalExitGravatar bunnei2021-05-286-18/+42
|\ | | | | core/arm_interface: Call SVC after end of dynarmic block.
| * core/arm_interface: Call SVC after end of dynarmic block.Gravatar Markus Wick2021-05-276-18/+42
| | | | | | | | | | | | So we can modify all of dynarmic states within SVC without ExceptionalExit. Especially as the ExceptionalExit hack is dropped on upstream dynarmic.
* | Merge pull request #6356 from ogniK5377/ApplyNpadSystemCommonPolicyGravatar bunnei2021-05-281-1/+10
|\ \ | | | | | | hid: ApplyNpadSystemCommonPolicy
| * | hid: ApplyNpadSystemCommonPolicyGravatar Chloe Marcec2021-05-241-1/+10
| | | | | | | | | | | | We already do this specifically for homebrew, so we can keep it stubbed out for the time being
* | | common/fs/file: Explicitly delete copy constructorsGravatar Lioncash2021-05-281-1/+4
| | | | | | | | | | | | | | | Relocates them to the same place the move equivalents are at for consistent viewing.
* | | common/fs/file: Devirtualize destructorGravatar Lioncash2021-05-281-1/+1
| | | | | | | | | | | | IOFile is a final class, so there's no need for a virtual destructor.
* | | common/fs/file: Default initialize IOFile membersGravatar Lioncash2021-05-281-2/+2
| | | | | | | | | | | | Prevents a potential uninitialized read vector in the move constructor.
* | | video_core: rasterizer_cache: Use u16 for cached page count.Gravatar bunnei2021-05-272-9/+9
| |/ |/| | | | | - Greatly reduces the risk of overflow, at the cost of doubling the size of this array.
* | Merge pull request #6346 from lat9nq/apply-config-pgcGravatar Ameer J2021-05-276-18/+57
|\ \ | | | | | | yuzu qt: Add an Apply button to configuration dialogs
| * | yuzu qt: Add an Apply button to configuration dialogsGravatar lat9nq2021-05-256-18/+57
| | | | | | | | | | | | | | | | | | | | | | | | Most of the code already exists to do this, but the Apply button itself was never added. This adds a button and boolean that tells yuzu to save the configuration after applying settings, even if close/Cancel is pressed on the dialog. Changes after applying will not be saved when Cancel is pressed, though.
* | | Merge pull request #6366 from lat9nq/bundled-qt-linuxGravatar Mai M2021-05-261-2/+11
|\ \ \ | | | | | | | | cmake: Download Qt binaries on Linux if needed
| * | | cmake: Download Qt binaries on Linux if neededGravatar lat9nq2021-05-261-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the local version of Qt is older than the minimum version required by yuzu, download a pre-built binary package from yuzu-emu/ext-linux-bin and build yuzu with it, instead. This also requires linking yuzu to the correct libraries after building it, and copying over the required binaries when building yuzu. This sets the Qt requirement to 5.12, which is intentionally behind the versions used by our toolchains since they are not all updated yet to 5.15.
* | | | core/arm: Drop ChangeProcessorID.Gravatar Markus Wick2021-05-265-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | This code was used to switch the CPU ID on thread switches. However since "hle: kernel: multicore: Replace n-JITs impl. with 4 JITs.", the CPU ID is not a constant. This has been dead code since this rewrite, and dropped in dynarmic as well. So there is no need to keep it.
* | | | Merge pull request #6331 from lioncash/gestureGravatar Morph2021-05-262-67/+79
|\ \ \ \ | |/ / / |/| | | hid/gesture: Simplify point related code
| * | | hid/gesture: Factor out last gesture retrieval into its own functionGravatar Lioncash2021-05-182-14/+23
| | | | | | | | | | | | | | | | Deduplicates a commonly repeated expression.
| * | | hid/gesture: Ensure all ID arrays are initializedGravatar Lioncash2021-05-181-4/+4
| | | | | | | | | | | | | | | | Makes for deterministic initial state.
| * | | hid/gesture: Make Point a templateGravatar Lioncash2021-05-182-38/+46
| | | | | | | | | | | | | | | | | | | | We can now use this in a generic context to reuse it with the finger position.
| * | | hid/gesture: Replace x,y members of GestureState with a PointGravatar Lioncash2021-05-182-6/+4
| | | | | | | | | | | | | | | | Simplifies assignments.
| * | | hid/gesture: Add default comparators to PointGravatar Lioncash2021-05-182-10/+7
| | | | | | | | | | | | | | | | Simplifies some comparisons.
| * | | hid/gesture: Rename Points to PointGravatar Lioncash2021-05-181-5/+5
| | | | | | | | | | | | | | | | This only represents a single point
* | | | Merge pull request #6339 from Morph1984/swkbd-queuedconnectionGravatar bunnei2021-05-251-15/+3
|\ \ \ \ | | | | | | | | | | applets/swkbd: Make use of QueuedConnection in returnPressed signal
| * | | | applets/swkbd: Make use of QueuedConnection in returnPressed signalGravatar Morph2021-05-221-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some users have reported rare crashes when pressing the Enter key on the keyboard to confirm input in the normal software keyboard, particularly in Super Smash Bros. Ultimate while entering the name of a ruleset or controller layout. It is suspected that the QLineEdit::returnPressed signal is causing a race condition as confirming input through other means does not produce the crash. Since Qt::QueuedConnection posts an event to the event queue of the callee's thread instead of executing it directly on the caller's thread, this eliminates any potential race conditions from occurring in this scenario.
* | | | | common: fs: Rework the Common Filesystem interface to make use of ↵Gravatar Morph2021-05-2574-2173/+3789
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | std::filesystem (#6270) * common: fs: fs_types: Create filesystem types Contains various filesystem types used by the Common::FS library * common: fs: fs_util: Add std::string to std::u8string conversion utility * common: fs: path_util: Add utlity functions for paths Contains various utility functions for getting or manipulating filesystem paths used by the Common::FS library * common: fs: file: Rewrite the IOFile implementation * common: fs: Reimplement Common::FS library using std::filesystem * common: fs: fs_paths: Add fs_paths to replace common_paths * common: fs: path_util: Add the rest of the path functions * common: Remove the previous Common::FS implementation * general: Remove unused fs includes * string_util: Remove unused function and include * nvidia_flags: Migrate to the new Common::FS library * settings: Migrate to the new Common::FS library * logging: backend: Migrate to the new Common::FS library * core: Migrate to the new Common::FS library * perf_stats: Migrate to the new Common::FS library * reporter: Migrate to the new Common::FS library * telemetry_session: Migrate to the new Common::FS library * key_manager: Migrate to the new Common::FS library * bis_factory: Migrate to the new Common::FS library * registered_cache: Migrate to the new Common::FS library * xts_archive: Migrate to the new Common::FS library * service: acc: Migrate to the new Common::FS library * applets/profile: Migrate to the new Common::FS library * applets/web: Migrate to the new Common::FS library * service: filesystem: Migrate to the new Common::FS library * loader: Migrate to the new Common::FS library * gl_shader_disk_cache: Migrate to the new Common::FS library * nsight_aftermath_tracker: Migrate to the new Common::FS library * vulkan_library: Migrate to the new Common::FS library * configure_debug: Migrate to the new Common::FS library * game_list_worker: Migrate to the new Common::FS library * config: Migrate to the new Common::FS library * configure_filesystem: Migrate to the new Common::FS library * configure_per_game_addons: Migrate to the new Common::FS library * configure_profile_manager: Migrate to the new Common::FS library * configure_ui: Migrate to the new Common::FS library * input_profiles: Migrate to the new Common::FS library * yuzu_cmd: config: Migrate to the new Common::FS library * yuzu_cmd: Migrate to the new Common::FS library * vfs_real: Migrate to the new Common::FS library * vfs: Migrate to the new Common::FS library * vfs_libzip: Migrate to the new Common::FS library * service: bcat: Migrate to the new Common::FS library * yuzu: main: Migrate to the new Common::FS library * vfs_real: Delete the contents of an existing file in CreateFile Current usages of CreateFile expect to delete the contents of an existing file, retain this behavior for now. * input_profiles: Don't iterate the input profile dir if it does not exist Silences an error produced in the log if the directory does not exist. * game_list_worker: Skip parsing file if the returned VfsFile is nullptr Prevents crashes in GetLoader when the virtual file is nullptr * common: fs: Validate paths for path length * service: filesystem: Open the mod load directory as read only
* | | | | Merge pull request #6349 from german77/suppress_config_warningGravatar bunnei2021-05-251-3/+3
|\ \ \ \ \ | | | | | | | | | | | | settings: Suppress duplicate label name warning
| * | | | | settings: Suppress duplicate label name warningGravatar german772021-05-221-3/+3
| |/ / / /
* | | | | Merge pull request #6353 from german77/handheld_dockedGravatar bunnei2021-05-253-4/+24
|\ \ \ \ \ | | | | | | | | | | | | settings: Forbid docked mode on handheld
| * | | | | settings: Forbid docked mode on handheldGravatar german772021-05-233-4/+24
| |/ / / /
* | | | | kernel: process_capability: Add MapRegion capabilityGravatar Morph2021-05-252-0/+12
| | | | | | | | | | | | | | | | | | | | - Used by nx-hbloader
* | | | | Merge pull request #6357 from lioncash/compressionGravatar bunnei2021-05-244-7/+8
|\ \ \ \ \ | | | | | | | | | | | | common/compression: Make use of std::span
| * | | | | zstd_compression: Make use of std::spanGravatar Lioncash2021-05-242-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Allows for the incoming data stream to be non-allocating.
| * | | | | lz4_compression: Make use of std::spanGravatar Lioncash2021-05-242-4/+4
| |/ / / / | | | | | | | | | | | | | | | Allows making the incoming data stream non-allocating.
* | | | | Merge pull request #6312 from german77/analogMappingGravatar bunnei2021-05-241-26/+28
|\ \ \ \ \ | |_|_|_|/ |/| | | | input_common: Rewrite sdl analog mapping and fix controller disconnection crash
| * | | | input_common: Fix crash when controller disconnectsGravatar german772021-05-151-1/+3
| | | | |
| * | | | input_common: Rewrite sdl analog mappingGravatar german772021-05-141-25/+25
| | | | |
* | | | | Merge pull request #6347 from bunnei/ipc-improvements-next-2Gravatar bunnei2021-05-2322-356/+249
|\ \ \ \ \ | |_|/ / / |/| | | | Various improvements to IPC and session management (Part 2)
| * | | | hle: kernel: service_thread: Take reference to KServerSession on service ↵Gravatar bunnei2021-05-201-9/+5
| | | | | | | | | | | | | | | | | | | | request.
| * | | | hle: kernel: k_port: Use AcceptSession to ensure SessionList state is correct.Gravatar bunnei2021-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | - Fixes a use-after-free, work-around until we fixup session/port management.
| * | | | hle: kernel: Use host memory allocations for KSlabMemory.Gravatar bunnei2021-05-204-174/+20
| | | | | | | | | | | | | | | | | | | | - There are some issues with the current workaround, we will just use host memory until we have a complete kernel memory implementation.
| * | | | Revert "WORKAROUND: Do not use slab heap while we track down issues with ↵Gravatar bunnei2021-05-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resource management." This reverts commit f2c26443f85a3c3fd43137509368ba5c7ab80ee7.
| * | | | hle: kernel: hle_ipc: Simplify incoming/outgoing move/copy/domain objects.Gravatar bunnei2021-05-203-62/+17
| | | | |
| * | | | common: tree: Avoid a crash on nullptr dereference.Gravatar bunnei2021-05-201-0/+11
| | | | |
| * | | | hle: kernel: Implement CloneCurrentObject and improve session management.Gravatar bunnei2021-05-2013-99/+184
| | | | |
| * | | | Revert "WORKAROUND: temp. disable session resource limits while we work out ↵Gravatar bunnei2021-05-204-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | issues" This reverts commit fc086f93b2165b5c210cb7dcd6c18ebe17f1fd7b.
* | | | | Merge pull request #6248 from A-w-x/intelmesaGravatar bunnei2021-05-201-1/+1
|\ \ \ \ \ | | | | | | | | | | | | gl_device: Intel: Disable texture view formats workaround on mesa
| * | | | | gl_device: Intel: Disable texture view formats workaround on mesaGravatar A-w-x2021-04-261-1/+1
| | | | | |
* | | | | | Merge pull request #6333 from Morph1984/swkbd-confirm-textGravatar bunnei2021-05-201-8/+8
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | applets/swkbd: Send the correct text string on TextCheck::Confirm
| * | | | | applets/swkbd: Send the correct text string on TextCheck::ConfirmGravatar Morph2021-05-191-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | Previously the text string for the inline software keyboard was being sent instead of the normal software keyboard, leading to empty text being sent all the time.
* | | | | | Merge pull request #6320 from Morph1984/get-pidGravatar bunnei2021-05-202-9/+14
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | hle_ipc: Add a getter for PID