Michael Scire
40bccd7838
Add svcTerminateDebugProcess
2018-12-06 13:18:06 +01:00
yellows8
bc2dff0361
Added hidAcquireNpadStyleSetUpdateEventHandle.
2018-12-02 16:48:59 -05:00
yellows8
b7b64858a6
Added usb_standard_request from libusb.
2018-11-30 20:13:58 -05:00
yellows8
e986799784
Updated usbhs comments and added usbHsIfIsActive/usbHsIfGetID.
2018-11-30 20:13:58 -05:00
yellows8
ee066a27ee
Implemented usbhs endpoints, other adjustments. Updated field name in UsbHsXferReport. Added defines in usb.h from libusb.
2018-11-30 20:13:58 -05:00
yellows8
31cea3a6b6
Implemented usbhs control transfers. Fixed eventCtrlXfer init. Updated a field name in UsbHsXferReport.
2018-11-30 20:13:58 -05:00
yellows8
2049ff081d
Updated usbhs comments and store the interface ID in UsbHsClientIfSession. Added: usbHsIfSetInterface, usbHsIfGetInterface, usbHsIfGetAlternateInterface, usbHsIfGetCurrentFrame, and usbHsIfResetDevice.
2018-11-30 20:13:58 -05:00
yellows8
83dfc58adb
Moved interface-specific data from UsbHsInterface into UsbHsInterfaceInfo. Added usbHsAcquireUsbIf/usbHsIfClose and the related structs.
2018-11-30 20:13:58 -05:00
yellows8
f1ba199d1c
Initial usbhs support.
2018-11-30 20:13:58 -05:00
yellows8
ba68e198db
Use PACKED for usb_endpoint_descriptor and usb_config_descriptor.
2018-11-29 17:25:46 -05:00
rsn8887
b2bee550ff
Improve documentation of hidMergeSingleJoyAsDualJoy
2018-11-29 11:09:14 -05:00
yellows8
725ac9f00a
Moved usb code specific to usbds into seperate .c/.h.
2018-11-28 17:34:53 -05:00
yellows8
528b17c9b5
Added usb_config_descriptor in usb.h.
2018-11-28 17:11:11 -05:00
yellows8
68846af044
Removed alignment for object_ids in ipcParseDomainResponse, since official sw doesn't have this.
2018-11-28 16:37:33 -05:00
yellows8
36bed9f8fc
Added support for getting file timestamps via 3.0.0+ fsFsGetFileTimeStampRaw, *stat() timestamps are now set when fsFsGetFileTimeStampRaw is successful. This is now used in fsdev_open() for supporting fstat. The sysver is now checked in fsFsCleanDirectoryRecursively(). Closes #204 .
2018-11-20 14:22:19 -05:00
pixel-stuck
a7577f7b56
Add pcvSetVoltageEnabled and pcvGetVoltageEnabled ( #208 )
...
* Add pcvSetVoltageEnabled and pcvGetVoltageEnabled
2018-11-19 10:37:59 -05:00
yellows8
8767ea798b
Determine whether to use AUDREN_REVISION_1-4 via the sysver, instead of hard-coding it for the 3.0+ rev. Updated comments and added AUDREN_REVISION_5/AUDREN_REVISION_6 defines.
2018-11-17 11:43:24 -05:00
yellows8
e7117a7903
Added enum for hidSetNpadJoyHoldType. Improved hid docs. Use hidSetNpadJoyHoldType during hid init/exit. Closes #206 .
2018-11-15 21:36:34 -05:00
rsn8887
33364a8271
support SL/SR buttons on right JoyCons
2018-11-16 00:18:19 +01:00
Michael Scire
4e4d5ef320
fatal: Implement fatalWithContext
2018-11-14 19:52:40 -05:00
Michael Scire
e943eb6ea5
Add fs gamecard attribute retrieve commands
2018-11-14 19:52:40 -05:00
Michael Scire
4581e597c0
Add SetSysFlag_RequiresRunRepairTimeReviser
2018-11-14 19:52:40 -05:00
Michael Scire
8bef0e6298
Add GpioPadName_ButtonVol[UpDown]
2018-11-14 19:52:40 -05:00
Michael Scire
7b7bd9dd9d
Add setsys fatal commands
2018-11-14 19:52:40 -05:00
Michael Scire
5386edef4f
Add gpio wrapper
2018-11-14 19:52:40 -05:00
Michael Scire
dec6f1ffe1
Add i2cOpenSession, i2csessionSendAuto
2018-11-14 19:52:40 -05:00
Michael Scire
3ba8a5aa87
Add lblSwitchBacklightOn and lblSwitchBacklightOff
2018-11-14 19:52:40 -05:00
Michael Scire
8cb9004a2f
Add pcvGetClockRate/pcvSetClockRate
2018-11-14 19:52:40 -05:00
Michael Scire
27936900d0
Add enum for PsmBatteryVoltageState
2018-11-14 19:52:40 -05:00
Michael Scire
94dc8f75f9
Add bpcGetSleepButtonState
2018-11-14 19:52:40 -05:00
Michael Scire
ee55b63f79
Add spsm wrapper.
2018-11-14 19:52:40 -05:00
yellows8
5e69f760fb
Added support for exception-handling.
2018-11-14 16:17:02 -05:00
SciresM
e19765445d
fs: Add fsFsQueryEntry (and fsFsSetArchiveBit helper) ( #202 )
...
* fs: Add fsFsSetArchiveBit
* Add fsdevSetArchiveBit wrapper
2018-11-09 22:03:47 -05:00
natinusala
fd4afacb01
Expose appletSetFocusHandlingMode
2018-11-08 19:27:56 -05:00
yellows8
6a8dba4eb4
Added support for hwopus multistream. Minor adjustments in hwopus.h.
2018-11-06 15:10:54 -05:00
yellows8
c99518643c
Use _hwopusDecodeInterleavedWithPerfOld on 4.0.0+. Use the multistream cmdid when a bool flag is set in HwopusDecoder, which is currently not set.
2018-11-06 10:47:09 -05:00
yellows8
c5d3f0dfb5
Added HwopusHeader struct.
2018-11-04 22:03:25 -05:00
yellows8
a6412e1e3a
Fixed swapped output raw fields in hwopusDecodeInterleaved, and also swapped those in the params.
2018-11-04 20:29:38 -05:00
yellows8
34e99d53c2
Added hwopus.
2018-11-04 18:39:04 -05:00
SciresM
7c2d89dc71
psc: Add PmModule support ( #200 )
...
* psc: Add PmModule support
2018-11-03 21:40:15 -04:00
yellows8
576302444d
Added auddev and AudioDeviceName.
2018-11-02 16:04:09 -04:00
fincs
ede79862fb
Add threadGetCurHandle
2018-10-27 17:34:44 +02:00
yellows8
49e4e31fcc
Added support for psm StateChangeEvent. Added psmGetBatteryVoltageState. Code style adjustments, use serviceIpc*, etc.
2018-10-26 13:07:10 -04:00
yellows8
de79614a12
Added info regarding timeout to the appletLockExit comments.
2018-10-25 12:34:33 -04:00
SciresM
ac853db5f0
set:sys: Add GetFirmwareVersion(2) ( #190 )
...
* set:sys: Add GetFirmwareVersion
2018-10-24 17:16:35 -04:00
yellows8
bcddc1ea35
Only allow using video-recording with regular-application, since it's not usable with SystemApplication. Added _appletIsRegularApplication() for this.
2018-10-23 16:23:14 -04:00
tatehaga
b130d96445
barrier implementation using semaphores ( #186 )
2018-10-23 21:19:26 +02:00
Michael Scire
e942b9cc25
virtmem: Fix stack region mapping on 1.0.0
2018-10-22 22:34:11 +02:00
yellows8
a15c9945a7
Updated comments regarding requirements for using video-recording, etc. Changed appletInitializeGamePlayRecording to (void) since the sysmodule only supports a fixed size.
2018-10-22 13:37:25 -04:00
yellows8
0fb0f67d2e
hidGetControllerConnected -> hidIsControllerConnected
2018-10-22 12:20:28 -04:00
yellows8
0370140c12
Added hidGetControllerConnected() and updated CONTROLLER_P1_AUTO comment.
2018-10-22 12:13:59 -04:00
yellows8
a62e29d5cf
Added support for applet video-recording, currently not usable. In appletExit, only call appletSetFocusHandlingMode when g_appletExitProcessFlag is zero, so that it isn't called twice during proc-exit.
2018-10-21 22:24:54 -04:00
yellows8
cfbc3e9278
Added usbCommsSetErrorHandling, don't throw fatalSimple for usbComms by default.
2018-10-19 12:34:17 -04:00
fincs
8e1736c480
Add RandomSeed (14) homebrew ABI key and related handling
2018-10-17 17:17:05 +02:00
yellows8
6a9d194fe3
Added hidGetControllerColors and HidControllerColors. Changed rightColorbuttons to rightColorButtons in HidControllerHeader. Updated CONTROLLER_P1_AUTO comment.
2018-10-16 22:45:44 -04:00
fincs
fba43b0f10
nvBufferCreate: use separate is_cpu_cacheable/is_gpu_cacheable parameters
2018-10-17 00:32:47 +02:00
Michael Scire
40e0bf4db7
Refactor service IPC to support domains.
2018-10-16 17:56:39 -04:00
yellows8
cde495241c
Added _hidActivateNpad/_hidDeactivateNpad for internal use in hidInitialize/hidExit. Added hidSetNpadJoyHoldType. Added _hidCmdWithInputU64 and _hidCmdWithNoInput.
2018-10-15 12:10:07 -04:00
yellows8
d4277b6d32
Added hidSetSupportedNpadIdType(), which is automatically called during init. Closes #148 , however vibration disable+enable in system-settings is still needed.
2018-10-14 21:47:26 -04:00
yellows8
57ad3cc1d2
Clarified comments for appletLockExit.
2018-10-14 16:05:24 -04:00
yellows8
52686826d1
Added fsdevGetDeviceFileSystem().
2018-10-12 22:13:14 -04:00
yellows8
c1b4b95bd7
Updated wiki URLs.
2018-10-11 21:44:51 -04:00
yellows8
42d3c32b37
Use FatalType_ErrorReportAndErrorScreen instead of FatalType_ErrorScreen, on pre-3.0.0. FatalType_ErrorScreen is only available with 3.0.0+, this fixes a regression where using fatalSimple on pre-3.0.0 caused a system hang.
2018-10-11 15:41:05 -04:00
SciresM
347e3b3156
Refactor usb:ds, add 5.0.0+ support to usbComms. ( #181 )
...
* Refactor usb:ds, add support for 5.0.0+. Closes #109 .
2018-10-11 15:35:22 -04:00
yellows8
25052190d2
Added comment regarding PlSharedFontType_NintendoExt.
2018-10-09 11:25:25 -04:00
Samuel P
74ebf370dd
add an exit request hook type, allow to delay exit ( #183 )
...
* add an exit request hook type, allow to delay exit
* appletMainLoop: return false on exit request msg
2018-10-09 11:04:33 -04:00
fincs
1563df3921
Refactor console device, see details:
...
- Added ConsoleRenderer interface, which abstracts all relevant
operations needed to set up and write characters to a text mode display
- ConsoleFont now has tileWidth/tileHeight parameters
- PrintConsole now holds a pointer to a ConsoleRenderer
- Added consoleExit for deinitializing the console
- Added consoleUpdate for updating the display every frame
- Corrected lots of obsolete/outdated comments
- Separated console software renderer into its own file (console_sw.c)
- Added getDefaultConsoleRenderer weak function, for selecting the
default console renderer when none (NULL) is specified in PrintConsole
- Software renderer now takes care of gfxInitDefault/gfxExit
- All these changes are backwards compatible with older programs because:
- gfxInitDefault has double-init protection
- Old programs don't call consoleUpdate/Exit, but their implementation
in the software renderer is identical to what old programs were
already doing anyway
2018-10-06 16:48:03 +02:00
yellows8
4fb364060c
Added support for timezones, hence localtime() will now return actual localtime. Added timeToCalendarTimeWithMyRule and TimeCalendarTime/TimeCalendarAdditionalInfo, which are used for timezones support.
2018-10-05 19:59:24 -04:00
yellows8
6d2699b38d
Added pmshellGetApplicationPid().
2018-10-04 18:44:45 -04:00
yellows8
b4859873ec
Added env AppletFlags handling. Don't enter the msg-loop for AppletType_Application when the output from _appletGetCurrentFocusState is already 1. This fixes the hang issue with AppletType_Application where applet init with AppletType_Application was previously done. Moved AppletType_*Application checks into a dedicated function which also checks for AppletType_SystemApplication, hence some of these funcs which didn't check for AppletType_SystemApplication now support it.
2018-10-04 18:06:00 -04:00
yellows8
0b1b7039ca
Changed the value of TimeType_Default to TimeType_UserSystemClock. When timeGetCurrentTime fails where __nx_time_type isn't TimeType_Default, call it again with TimeType_Default.
2018-10-03 19:48:33 -04:00
yellows8
16bbf3411e
Added automatic process exit handling with applet cmds, see __nx_applet_exit_mode. appletSelfExit is no longer user-accessible, see __nx_applet_exit_mode instead. Added envSetExitFuncPtr. Added disabled _appletSetTerminateResult func.
2018-10-03 19:04:48 -04:00
Vicki Pfau
7a952ab39b
hid: Uncomment function that works now
2018-09-30 16:39:51 -04:00
Vicki Pfau
8add42378b
hid: Add SixAxis sensor support
2018-09-30 16:39:51 -04:00
Vicki Pfau
68b2ad0c1e
hid: Call SetSupportedNpadStyleSet to enable additional Npad features
2018-09-27 16:23:37 -04:00
fincs
eb11e25dc5
Add Module_HomebrewAbi/Loader. Reassign Module_LibnxBinder, as it inadvertently collided with Module_HomebrewLoader.
2018-09-27 21:03:29 +02:00
yellows8
1267019d83
Added partial support for hid SixAxisSensor. Moved some hid ipc code into a single func for using cmds with an input u32. Moved handle-generation code from hidInitializeVibrationDevices into a new func, with some improvements + support for SixAxisSensor.
2018-09-26 22:28:40 -04:00
TuxSH
3bd7ca5f7e
Reword ProcessState enum fields
2018-09-26 21:11:02 +02:00
leo60228
1c948e2d32
applet: Add appletSelfExit()
2018-09-21 15:55:06 -04:00
TuxSH
3ecd841ec2
Update svcGetDebugThreadContext, add svcSetDebugThreadContext, implement threadDumpContext
2018-09-18 01:13:55 +02:00
TuxSH
5498d3e0c7
Add ThreadContext, RegisterGroup, svcGetThreadContext3, threadDumpContext
2018-09-18 01:13:55 +02:00
Vicki Pfau
d9e3be27a2
Add psm:GetChargerType
2018-09-18 01:13:24 +02:00
fincs
4645ef7004
gfx: Add gfxAppendFence. Remove obsolete comments related to double buffering.
2018-09-16 18:03:35 +02:00
fincs
a50942509f
NvGpfifo: Redesign API to allow for submitting multiple entries at once
2018-09-16 16:35:57 +02:00
plutooo
4a13ee3e62
Fix function name to not cause linker problems due to symbol truncation issues
2018-09-15 08:42:32 +02:00
plutooo
7279ef0415
Fix signature of svcContinueDebugEvent for firmware 3.0.0 and forward
2018-09-15 08:14:09 +02:00
plutooo
f2c959b941
Fix compilation error on pre-14 C++
2018-09-15 08:11:31 +02:00
Lioncash
9ff32e3260
Resolve trivial -Wmissing-prototypes warnings
...
Gets rid of trivial warnings caused by headers not being included into
the relevant .c file, empty parameter lists missing void, or functions
missing a prototype in the header.
2018-09-14 19:07:34 +02:00
fincs
e7ae7ea846
nv wrappers: Handle cacheability settings properly, more details:
...
- nvAddressSpaceMapBuffer now accepts a flags parameter instead of
hardcoding NvMapBufferFlags_IsCacheable.
- NvBufferFlags was incorrect and was thus removed.
- nvBufferCreate/nvBufferCreateRw replaced with nvBufferCreate, with
an extra 'is_cacheable' bool parameter. There's no such thing as a
"read-only/read-write" buffer.
- nvBufferMakeCpuUncached/nvBufferMakeCpuCached were removed.
2018-09-14 18:09:58 +02:00
fincs
f469fa7458
Add nvioctlChannel_KickoffPb (uses Ioctl2)
2018-09-14 02:15:55 +02:00
fincs
cae1954ebc
nv: add cloned session handle used with certain requests; add Ioctl2
2018-09-14 02:15:24 +02:00
fincs
ad17cb74c7
kernel/ipc.h: add ipcCloneSession
2018-09-14 01:35:24 +02:00
fincs
1cbc67e650
NvBuffer: actually unmap and free the buffer in nvBufferFree
2018-09-13 20:05:55 +02:00
Rajko Stojadinovic
dcdb5c28a4
Fix fsOpenFileSystem ( #153 )
...
* Fix fsOpenFileSystem
* Make fsOpenFileSystem and fsOpenFileSystemWithId work on all firmware versions
* Add some comments for fsOpenFileSystem(WithId)
2018-09-09 19:56:38 +02:00
Random
122fec028c
Added nsListApplicationRecord and nsListContentMetaStatus ( #163 )
2018-09-09 19:56:16 +02:00
neonsea
20a39ef86c
Add appletBeginBlockingHomeButton() and appletEndBlockingHomeButton() ( #165 )
2018-09-09 19:55:53 +02:00
XorTroll
cd813ddb60
Add psm service and psmGetBatteryChargePercentage function (fixed) ( #166 )
2018-09-09 19:55:36 +02:00
Michael Scire
6ef26bff1a
Implement kernelAbove600()
2018-09-09 19:55:12 +02:00
fincs
52c0cee10c
Add nvioctlChannel_SetTimeout & nvChannelSetTimeout
2018-09-08 14:17:54 +02:00
fincs
de664c5655
error_notifier.h: Add missing functions to header
2018-09-08 14:17:27 +02:00