Lioncash
8f638e81e9
ldr: Simplify memory copy within LoadNro()
We can use the dedicated memory function for performing copies instead
of reading into a temporary buffer and then immediately writing it back
out to memory.
Eliminates a bit of heap memory churn.
5 years ago
bunnei
d2c4dbde9e
fixup! hle: kernel: Migrate KSharedMemory to KAutoObject.
5 years ago
bunnei
510f71d871
fixup! hle: kernel: Ensure all kernel objects with KAutoObject are properly created.
5 years ago
bunnei
9f81221528
fixup! hle: kernel: Ensure all kernel objects with KAutoObject are properly created.
5 years ago
bunnei
d3c166d4d5
common: Rename NON_COPYABLE/NON_MOVABLE with YUZU_ prefix.
5 years ago
bunnei
2a7eff57a8
hle: kernel: Rename Process to KProcess.
5 years ago
bunnei
bf380b8584
hle: kernel: Remove deprecated Object class.
5 years ago
bunnei
626f746971
hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.
5 years ago
bunnei
7a06864100
hle: kernel: Migrate KServerPort to KAutoObject.
5 years ago
bunnei
0297448fbc
hle: kernel: Migrate KClientPort to KAutoObject.
5 years ago
bunnei
c7d8b7421c
hle: kernel: Migrate KTransferMemory to KAutoObject.
5 years ago
bunnei
7444963bbb
hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.
5 years ago
bunnei
2e8d6fe9a0
hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.
5 years ago
bunnei
89edbe8aa2
hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.
5 years ago
bunnei
ab704acab8
hle: kernel: Ensure all kernel objects with KAutoObject are properly created.
5 years ago
bunnei
addc0bf037
hle: kernel: Migrate KEvent to KAutoObject.
5 years ago
bunnei
086db71e94
hle: kernel: Migrate KSharedMemory to KAutoObject.
5 years ago
bunnei
7ccbdd4d8d
hle: kernel: Migrate KProcess to KAutoObject.
5 years ago
bunnei
5e5933256b
hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.
5 years ago
bunnei
34bed1ab41
hle: kernel: Refactor out various KThread std::shared_ptr usage.
5 years ago
bunnei
0b7a03bd65
Update src/core/hle/service/nvdrv/interface.cpp
Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
5 years ago
Lioncash
cc47a6a9c2
service: Remove unused class variables
Prevents some warnings from occurring.
5 years ago
Lioncash
9e726a9250
service: Resolve cases of member field shadowing
Now all that remains is for kernel code to be 'shadow-free' and then
-Wshadow can be turned into an error.
5 years ago
Chloe Marcec
7d257ce7bd
nvdrv: /dev/nvhost-prof-gpu for production
While we're at it, we can fix the is_initialized error code.
This fixes the crashes on Shante
5 years ago
german77
08d5bd36d8
hid: Fix touch not initializing properly if disabled
5 years ago
Morph
72b22fd433
service: filesystem: Return proper error codes for CreateFile
This improves the accuracy of CreateFile by returning the correct error codes on certain conditions (parent directory does not exist, path already exists).
This fixes saving and the loading of existing saves in New Pokemon Snap
5 years ago
german77
1ed1dd3c89
Disable touch if setting is not enabled
5 years ago
german77
cfdec68d5a
address comments
5 years ago
Lioncash
dcb91ca4a4
service: Eliminate cases of member shadowing
Resolves a few localized instances of member variable shadowing. Brings
us a little closer to turning shadowing warnings into errors.
5 years ago
ameerj
75e0d16caa
nvhost_vic: Fix device closure
Implements the OnClose method of the nvhost_vic device, and removes the remnants of an older implementation.
Also cleans up some of the surrounding code.
5 years ago
german77
a02c4686c3
glue: Add ectx:aw placeholder
5 years ago
german77
c19ad21ae8
hid: Implement SevenSixAxis and ConsoleSixAxisSensor
5 years ago
Morph
04d9c27120
ICommonStateGetter: Stub SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled
- Used by Pixel Game Maker Series Werewolf Princess Kaguya
5 years ago
Lioncash
502f3cef87
acc/lbl: Remove unused variables
5 years ago
Lioncash
29cd40bded
lm: Make use of insert_or_assign() in Log()
Avoids unnecessary default construction of an entry in cases where no
entry exists before overwriting the created entry.
5 years ago
Lioncash
5ba49f188b
lm: Prevent redundant map lookups in Log()
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.
5 years ago
Lioncash
6e2040c955
lm: Resolve -Wextra-semi warning
Resolves a trivial warning with clang.
5 years ago
Morph
86278f5db2
service: hid: Get transfer memory for InitializeSevenSixAxisSensor
5 years ago
Morph
27eeb20001
general: Write buffers before pushing raw arguments
For consistency with the rest of the service implementations
5 years ago
Lioncash
9f39f7c041
arp: Use type alias for issue function
Reduces some verbosity and centralizes the function details in one spot.
5 years ago
Lioncash
b7d04d848d
arp: Prevent uninitialized read of launch member variable
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.
5 years ago
Lioncash
39497183a6
npad: Remove duplicated class member variable
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.
5 years ago
Morph
8285776603
time: Write buffer before pushing RESULT_SUCCESS in GetClockSnapshot
5 years ago
Morph
a223006c50
time: Fix GetClockSnapshotFromSystemClockContext
This removes an incorrect alignment usage and corrects the positions of the popped parameters.
- Fixes Super Kirby Clash crashing on boot
5 years ago
Morph
51ca93981d
applets: Send focus state change message on applet state change
Fixes the softlock after the controller applet exits in Mario Kart 8 Deluxe.
5 years ago
Morph
ba2c917842
applets: Make the applet mode a protected property of Applet
5 years ago
Morph
5bc9f15c6d
applets/swkbd: Implement the Normal and Inline Software Keyboard Applet
5 years ago
Morph
a8c09cd5e4
ILibraryAppletCreator: Implement CreateHandleStorage
Used by Monster Hunter Generations Ultimate
5 years ago
Morph
0a40106cf1
ILibraryAppletAccessor: Demote from ERROR to DEBUG for null storage logs
Avoids unnecessary console spam when the inline software keyboard is used.
5 years ago
Morph
d1e40dd244
applets: Pass in the LibraryAppletMode each applet's constructor
5 years ago