ameerj
333fd1165a
hle_ipc: Reserve vectors before populating
3 years ago
Narr the Reg
dfe49436c8
kernel: svc: Fix duplicated InfoType enum
3 years ago
Narr the Reg
464b7a9ee2
kernel: process: Implement GetFreeThreadCount
Used by Just Dance® 2023 Edition
3 years ago
bunnei
572d81508b
Revert "hle: service: audio: Use default service thread."
3 years ago
Chloe Marcec
27a7d5a11a
Set: Allow setting device nickname
3 years ago
Alexander Orzechowski
9e0510f77d
gl_device: Use a more robust way to use strict context mode
Instead of checking a environment variable which may not actually
exist or is just wrong, ask QT if it's running on the wayland
platform.
3 years ago
Liam
47a89280bf
memory: correct semantics of data cache management operations
3 years ago
Liam
8a5667aa70
memory: remove DEBUG_ASSERT pointer test
3 years ago
Salvage
a4369e6175
Remove the lock entirely as per PR discussion
Correctly unlock mutex before its destruction
As per https://en.cppreference.com/w/cpp/thread/mutex/~mutex destroying a locked mutex is undefined behavior and MSVC++ decides to throw in this case
Swap out unique for scoped lock and readd comment
3 years ago
Liam
08d81c9726
general: improve handling of system startup failure
3 years ago
Lioncash
6922ed4fad
reporter: Pass by const reference where applicable
Same behavior, but without memory churn.
3 years ago
Lioncash
97fd619312
reporter: Eliminate undefined behavior in SaveErrorReport
The optionals are unconditionally dereferenced when setting the custom
error text, and in a few cases this function is called using the default
value of the optionals.
This means we'd be dereferencing uninitialized storage.
Since they're used unconditionally, we can use value_or to set a default
when storage is uninitialized.
3 years ago
Lioncash
a3e4ad2cf5
applets/controller: Use aliases for callbacks
3 years ago
Lioncash
038b746678
applets/error: Use aliases for callbacks
3 years ago
Lioncash
a346b1270a
applets/mii_edit: Use aliases for callbacks
3 years ago
Lioncash
259307a152
applets/profile_select: Use aliases for callbacks
Deduplicates callback definitions and situates it in one place.
3 years ago
Lioncash
5012cd2057
applets/web_browser: Use aliases for callbacks
Deduplicates a lot of long callback declarations
3 years ago
Lioncash
047c256fe4
applets/software_keyboard: Use aliases for callbacks
Deduplicates really long std::function declarations to make the
interface nicer to read.
3 years ago
Lioncash
7a349e99ee
emulated_controller: Remove unused parameter in GetMappedDevices()
This isn't used, so it can be removed to make the function a little
nicer.
3 years ago
Lioncash
68d9621a8b
emulated_controller: Use std::move() in GetMappedDevices()
Avoids churning allocations in a loop.
3 years ago
Lioncash
1c9f02790c
emulated_console: Amend cast in SetTouch()
id is an int value, not a u32.
3 years ago
Lioncash
53eb9406f0
emulated_console: std::move() ParamPackages and callbacks where applicable
3 years ago
Lioncash
7ed6f9d6fd
kernel/k_shared_memory: Ensure device_memory is always initialized
3 years ago
Lioncash
0435142f58
kernel/k_memory_block: Ensure members are always initialized
3 years ago
Lioncash
4c5de31093
kernel/physical_core: Ensure is_interrupted is always initialized
3 years ago
Lioncash
6fea145402
kernel/thread: Ensure stack_top and argument are always initialized
3 years ago
Lioncash
8b8320be4a
kernel/kernel: Ensure shutdown threads are always initialized
3 years ago
Liam
4a65ee47d3
service_thread: fix uninitialized memory usage
3 years ago
Alexandre Bouvier
325a016cd2
cmake: prefer system libraries
3 years ago
Liam
8fbec5d298
externals: update dynarmic, SDL2
3 years ago
Liam
dfc09df118
core: add option to break on unmapped access
3 years ago
Narr the Reg
dbfc2f7ee2
service: nfc: Implement mifare service
3 years ago
ameerj
fb155dbffc
CMake: Consolidate common PCH headers
3 years ago
ameerj
bbf3e7f313
CMake: Use precompiled headers
3 years ago
Morph
7ba644dc5d
service: nifm: Update stubs for Submit/GetRequestState/GetResult
3 years ago
Liam
acc4a150ef
video_core: add null backend
3 years ago
Lioncash
ccec899cd8
producer_listener: Add virtual destructor to IProducerListener
Several member variables are shared_ptr's to this base class. Even
though producer listeners are still unimplemented, this ensures we
always have consistent deletion behavior once this ends up being used
polymorphically.
3 years ago
Lioncash
93f287c79b
buffer_item_consumer: Pass fence by const-ref in ReleaseBuffer()
This isn't directly modified.
Also allows rvalues to be used with it.
3 years ago
Lioncash
7d9d432ff4
buffer_queue_consumer: std::move std::shared_ptr in Connect()
Avoids an unnecessary reference count increment and decrement
3 years ago
Lioncash
f5def4b9c5
consumer_base: Pass shared_ptr by const reference
Avoids churning atomic reference count increments and decrements.
3 years ago
Lioncash
bde42f6767
consumer_base: Remove redundant virtual
override already serves this purpose
3 years ago
Lioncash
eb1bdc5ed4
syncpoint_manager: Mark IsSyncpointAllocated() as const
This doesn't modify class state at all.
3 years ago
Lioncash
8409b91f2e
syncpoint_manager: Reduce number of bounds checks
The only time we need to check bounds is on the first access.
3 years ago
Lioncash
e621ee9ec6
nvdrv: Simplify builder declarations
We can just use auto here. If one of these ever happens to not be
derived from nvdevice, then this will cause a compilation error.
We can also move the devices into the collection to get rid of an
unnecessary atomic reference count increment and decrement.
3 years ago
Lioncash
a9892677ed
core/hid/emulated_controller: Use ranges version of transform
Makes the transform calls much nicer to read.
3 years ago
Lioncash
0862aabdc6
common/input: Add helpers functions for creating input and output devices
Avoids the redundancy of needing to explictly specify the common
namespace and the type.
3 years ago
Liam
0a077cb467
Vulkan: update initialization
Co-authored-by: bylaws <bylaws@users.noreply.github.com>
3 years ago
german77
23d7d8b9df
yuzu-cmd: Fix input callback crash on close
3 years ago
Valeri
e9fb4a65b9
crypto: use user-provided keys whenever possible
Solves an issue where autogenerated title keys would take precedence over those provided by user.
3 years ago
bunnei
94ee753735
core: Use atomic instead of a lock to protect is_paused.
- This allows us to call IsPaused() elsewhere if we are holding the suspend lock.
3 years ago