Lioncash
fe28aee74d
service/usb: Update function table
Updates the function table for IClientEpSession based off information
provided by SwitchBrew.
7 years ago
Lioncash
0b467c5de0
service/erpt: Update function table
Updates the function table according to information provided by
SwitchBrew.
7 years ago
David Marcec
3a8283f0ed
Fixed crash with SetNpadMode
fixed crash due to handheld
7 years ago
Lioncash
ce67a308aa
service/audio/audout_u: Amend constructor initialization list order
Orders the constructor initializer list the same way the members of the
class are declared. Prevents -Wreorder warnings
7 years ago
Lioncash
9c56be6af9
service/fsp_srv: Implement CleanDirectoryRecursively
This is the same behavior-wise as DeleteDirectoryRecursively, with the
only difference being that it doesn't delete the top level directory in
the hierarchy, so given:
root_dir/
- some_dir/
- File.txt
- OtherFile.txt
The end result is just:
root_dir/
7 years ago
Subv
b0ec648f85
Services/VI: Dereferencing an uninitialized std::optional is undefined behavior.
Assert that it is not empty before using it in the DequeueBuffer wait callback.
7 years ago
Lioncash
8f52802f2b
service/set: Convert GetLanguageCode over to using PushEnum()
This code was around prior to the introduction of PushEnum, so convert
it over so we don't need to cast here.
7 years ago
Lioncash
1e5d6c1b99
service/set: Implement MakeLanguageCode
This function simply converts a given index into a language code.
7 years ago
Zach Hilman
c011ba51b7
hle_ipc: Refactor SleepClientThread to avoid ReadableEvent
7 years ago
Zach Hilman
b0d0735e9b
kernel/event: Reference ReadableEvent from WritableEvent
7 years ago
Zach Hilman
fe0071f8fa
core: Port all current usages of Event to Readable/WritableEvent
7 years ago
Zach Hilman
b6d31945d6
npad: Use NPadIdToIndex to prevent invalid array access
7 years ago
bunnei
a86364480f
dma_pushbuffer: Optimize to avoid loop and copy on Push.
7 years ago
Zach Hilman
3e65259ab1
npad: Fix copy/paste error with LED position assignments
7 years ago
bunnei
f8b215e361
gpu: Rewrite GPU command list processing with DmaPusher class.
- More accurate impl., fixes Undertale (among other games).
7 years ago
David Marcec
67518a57b9
Reworked svcs slightly, improved error messages in AM and fsp_srv
7 years ago
Zach Hilman
14ad676994
profile_manager: Save and load ProfileData from disk
The ProfileData is a 0x80-sized structure that stores various pieces of miscellaneous data for the account.
7 years ago
David Marcec
775267deb9
Fixed hwopus compile error
7 years ago
David Marcec
7caebd7e0e
Improved error messages in AM, HwOpus and NvMap
7 years ago
David Marcec
5ae0d6cba2
Changed logging to be "Log before execution", Added more error logging, all services should now log on some level
7 years ago
Lioncash
ecfdfae795
service/sm: Take std::string by const reference in UnregisterService
Avoids the need to create a copy of the std::string instance
(potentially allocating).
The only reason RegisterService takes its argument by value is because
it's std::moved internally.
7 years ago
bunnei
6b564d4275
nvdrv: Implement/stub DumpGraphicsMemoryInfo and GetStatus.
- Used by Undertale.
7 years ago
Zach Hilman
1bf2d163e3
am: Return StubApplet instead of nullptr when AppletId not found
7 years ago
Zach Hilman
e66f2db880
debug_pad: Avoid loading input for nonexistent buttons (Home and Screenshot)
Prevents memory exceptions when the debug pad is enabled.
7 years ago
bunnei
985ee6c596
audout_u: Add support for multiple IAudioOut streams.
- Used by Undertale.
7 years ago
Zach Hilman
9217befd9f
applets: Add StubApplet
This will log all data it receives, log all calls to its methods and push dummy data into both channels on execution.
7 years ago
bunnei
a9b2d1bb73
nvhost_ctrl_gpu: Implement IoctlGetGpuTime.
- Used by Undertale.
7 years ago
Lioncash
4bf9e0d35d
am: Correct build failure
The interface for shared memory was changed, but another commit was
merged that relied on the (previously public) internals of SharedMemory.
This amends that discrepancy.
7 years ago
Lioncash
323618c33b
am/applets: Make the applet data broker part of the applet itself.
The accessor should be doing just that, accessing, rather than retaining
the lifetime of the data broker as well.
7 years ago
Lioncash
646c9eeca5
am/applets: Replace includes with forward declarations where applicable
Also resolve places where includes should have been provided, but
weren't.
7 years ago
Lioncash
e784b733d9
am/applets: Relocate comments above the relevant data member in AppletDataBroker
Avoids wonky wrapping and makes it nicer to read.
7 years ago
Lioncash
5508ceb0eb
lm: Implement SetDestination by doing nothing
This service function was likely intended to be a way to redirect where
the output of a log went. e.g. Firing a log over a network, dumping over
a tunneling session, etc.
Given we always want to see the log and not change its output. It's one
of the lucky service functions where the easiest implementation is to
just do nothing at all and return success.
7 years ago
Zach Hilman
a52a226ded
software_keyboard: Fix erroneous extra PushNormalData
7 years ago
Zach Hilman
3b90729c00
software_keyboard: Return correct result code on user cancel operation
7 years ago
Zach Hilman
0660384309
applet: Add AppletDataBroker to manage HLE to AM service interaction
This cleans up most of the callbacks and such in the Applets::Applet interface, while also properly implementing all four data channels.
7 years ago
Zach Hilman
0e6547f499
software_keyboard: Use correct offset for inital text string
7 years ago
Lioncash
93babd2c2f
ldr: Clean up error codes
The separate enum isn't particularly necessary here, and the values can
just be directly put into the ResultCode instances, given the names are
also self-documenting here.
7 years ago
Zach Hilman
51e18706a9
filesystem: Clear registered union paths on factory creation
7 years ago
Zach Hilman
2d8a5a4e9b
hid: Use player-defined controller type as PREFERRED_CONTROLLER
7 years ago
Zach Hilman
8e4125d25f
hid/npad: Update NPad to use player controller bindings and type
7 years ago
Zach Hilman
651d96479a
hid/touchscreen: Update Touchscreen to use advanced parameters
Including finger ID, diamater x/y, and angle. Additionally, checks if the touchscreen is enabled.
7 years ago
Zach Hilman
1abee80ce3
hid: Add controller bindings for Mouse controller
7 years ago
Zach Hilman
701c23ec92
hid: Add keyboard bindings for Keyboard controller
7 years ago
Zach Hilman
ba768cfdc7
hid: Add controller bindings for DebugPad controller
Used by developers to test games, not present on retail systems. Some games are known to respond to DebugPad input though, for example Kirby Star Allies.
7 years ago
David Marcec
d59c9bc684
Added missing start/end touch attributes to touchscreen
7 years ago
David Marcec
a15c3d6b27
Added debugpad skeleton
7 years ago
David Marcec
8ed0216784
Added controller helper funcs
7 years ago
David Marcec
2c23ad1189
Changed polling rate of hid and Right joycon rotation
7 years ago
David Marcec
7a38294b38
Left joycon rotation button remapping
7 years ago
David Marcec
086c24e4ed
Added automatic npad switch based on supported stylesets
7 years ago