ameerj
571d469697
hle_ipc: Rename ReadBuffer to ReadBufferCopy
Indicates explicitly that a copy is occurring
3 years ago
ameerj
53650d2701
bsd: Use std::span for read payloads
Allows the use of HLERequestContext::ReadBufferSpan
3 years ago
ameerj
8a59719bd2
nvdrv: Use std::span for inputs
Allows the use of HLERequestContext::ReadBufferSpan
3 years ago
ameerj
de252703bd
hidbus: Use ReadBufferSpan
3 years ago
ameerj
4531881bfd
nvflinger: Split Parcel class into InputParcel and OutputParcel
The usages of the Parcel class were already unique to either Read or Write operations.
Avoids needing a vector of the input payload for the InputParcel use-case, instead it can remain as a span.
3 years ago
ameerj
db9a523aae
service: Use ReadBufferSpan where it is trivial to do so
3 years ago
MonsterDruide1
f33599d41c
TAS: Increase accuracy of Stick inputs
3 years ago
Liam
b4504fdd19
k_page_table: remove HACK_OpenPages/ClosePages
3 years ago
ameerj
399b6d3a0c
fsp_srv: Use ReadBufferSpan
3 years ago
ameerj
e17c343915
hle_ipc: Add ReadBufferSpan function
Returns a std::span to the buffer address, rather than create a copy of the memory into a std::vector
3 years ago
Liam
4b9df26091
k_page_group: synchronize
3 years ago
Liam
71ec5c9519
kernel: workaround static shared memory initialization
3 years ago
Liam
f1528eb549
time: add LockFreeAtomicType
3 years ago
Liam
8df44232e8
kernel: remove TimeManager
3 years ago
Liam
49d1cf6477
kernel: add KHardwareTimer
3 years ago
german77
8a90856b25
service: nfc: Silence ListDevices
3 years ago
Liam
c11dff8639
EmuThread: refactor
3 years ago
german77
3cc666b845
input_common: Add virtual gamepad
3 years ago
ameerj
c57883f1bc
hle_ipc: Refactor ReadBuffer to set buffer size upon initialization
Initializing the vector size during initialization is more efficient than a later call to resize()
3 years ago
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