ameerj
a1490d77ac
hle_ipc: Rename ReadBufferSpan to ReadBuffer
3 years ago
ameerj
59c0f85407
hle_ipc: Rename ReadBuffer to ReadBufferCopy
Indicates explicitly that a copy is occurring
3 years ago
ameerj
7c1bf68bb4
bsd: Use std::span for read payloads
Allows the use of HLERequestContext::ReadBufferSpan
3 years ago
ameerj
f517f82416
nvdrv: Use std::span for inputs
Allows the use of HLERequestContext::ReadBufferSpan
3 years ago
ameerj
e7032d9e64
hidbus: Use ReadBufferSpan
3 years ago
ameerj
32d01a39b0
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
7ffd624248
service: Use ReadBufferSpan where it is trivial to do so
3 years ago
MonsterDruide1
bc4126acd7
TAS: Increase accuracy of Stick inputs
3 years ago
Liam
28d9c30861
k_page_table: remove HACK_OpenPages/ClosePages
3 years ago
ameerj
fbc375f0de
fsp_srv: Use ReadBufferSpan
3 years ago
ameerj
9349f06963
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
3392fdac9b
k_page_group: synchronize
3 years ago
Liam
99eccf581e
kernel: workaround static shared memory initialization
3 years ago
Liam
80670a5b6c
time: add LockFreeAtomicType
3 years ago
Liam
c770f25ccb
kernel: remove TimeManager
3 years ago
Liam
67c0d714c5
kernel: add KHardwareTimer
3 years ago
german77
79f1f326c7
service: nfc: Silence ListDevices
3 years ago
Liam
d3123079e8
EmuThread: refactor
3 years ago
german77
243404bf34
input_common: Add virtual gamepad
3 years ago
ameerj
b1d633532f
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
12c0f682e6
hle_ipc: Reserve vectors before populating
3 years ago
Narr the Reg
20cbf6f3db
kernel: svc: Fix duplicated InfoType enum
3 years ago
Narr the Reg
dca4f0687a
kernel: process: Implement GetFreeThreadCount
Used by Just Dance® 2023 Edition
3 years ago
bunnei
beba9c9b61
Revert "hle: service: audio: Use default service thread."
3 years ago
Chloe Marcec
c5f519e1e4
Set: Allow setting device nickname
3 years ago
Alexander Orzechowski
09e3029c11
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
ed37192441
memory: correct semantics of data cache management operations
3 years ago
Liam
985ed1e160
memory: remove DEBUG_ASSERT pointer test
3 years ago
Salvage
c586ac9be2
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
9704acb982
general: improve handling of system startup failure
3 years ago
Lioncash
eadc1ae1e7
reporter: Pass by const reference where applicable
Same behavior, but without memory churn.
3 years ago
Lioncash
e7f9f58fa4
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
fedd857054
applets/controller: Use aliases for callbacks
3 years ago
Lioncash
d8da9a2afd
applets/error: Use aliases for callbacks
3 years ago
Lioncash
2b40cdf04f
applets/mii_edit: Use aliases for callbacks
3 years ago
Lioncash
a84676c2aa
applets/profile_select: Use aliases for callbacks
Deduplicates callback definitions and situates it in one place.
3 years ago
Lioncash
e26c86a6e7
applets/web_browser: Use aliases for callbacks
Deduplicates a lot of long callback declarations
3 years ago
Lioncash
9bbb77637e
applets/software_keyboard: Use aliases for callbacks
Deduplicates really long std::function declarations to make the
interface nicer to read.
3 years ago
Lioncash
e4a16f50ef
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
87543b9dea
emulated_controller: Use std::move() in GetMappedDevices()
Avoids churning allocations in a loop.
3 years ago
Lioncash
7bf4b45349
emulated_console: Amend cast in SetTouch()
id is an int value, not a u32.
3 years ago
Lioncash
4255e30722
emulated_console: std::move() ParamPackages and callbacks where applicable
3 years ago
Lioncash
efa8711bf3
kernel/k_shared_memory: Ensure device_memory is always initialized
3 years ago
Lioncash
c3fd211b43
kernel/k_memory_block: Ensure members are always initialized
3 years ago
Lioncash
dcca650599
kernel/physical_core: Ensure is_interrupted is always initialized
3 years ago
Lioncash
dddc9bb8f1
kernel/thread: Ensure stack_top and argument are always initialized
3 years ago
Lioncash
4769d798f9
kernel/kernel: Ensure shutdown threads are always initialized
3 years ago
Liam
cec3a3cd5a
service_thread: fix uninitialized memory usage
3 years ago
Alexandre Bouvier
8e17b5469f
cmake: prefer system libraries
3 years ago
Liam
6d2c597371
externals: update dynarmic, SDL2
3 years ago