Commit Graph

1358 Commits

Author SHA1 Message Date
yellows8
7822accc22
ns: Added nsGetReadOnlyApplicationControlDataInterface. Use IReadOnlyApplicationControlDataInterface with nsGetApplicationControlData when needed. 2020-02-28 20:10:29 -05:00
yellows8
fdb6aa1f15
ns: Added nsGetECommerceInterface. Added cmds: nsRequestLinkDevice, nsRequestSyncRights, nsRequestUnlinkDevice. Minor adjustments. 2020-02-28 14:36:10 -05:00
HookedBehemoth
7e07d1edf0
add fan service (#376) 2020-02-28 19:23:10 +01:00
HookedBehemoth
abc3522724
lbl: more commands (#377) 2020-02-28 19:13:27 +01:00
HookedBehemoth
23852ad932
add tc (#378) 2020-02-28 17:59:31 +01:00
yellows8
3ff12e7337
ns: Added nsGetDownloadTaskInterface. Added NsDownloadTaskStatus. Added support for IDownloadTaskInterface. 2020-02-27 20:52:14 -05:00
yellows8
424cd0fefe
ns: Check sysver in nsGetFactoryResetInterface, and added nsGetContentManagementInterface. Use IContentManagementInterface with the relevant cmds when needed. Added struct NsApplicationOccupiedSize. Added cmds: nsCalculateApplicationOccupiedSize, nsCheckSdCardMountStatus, nsCountApplicationContentMeta, nsIsAnyApplicationRunning. 2020-02-26 22:38:13 -05:00
yellows8
8ae9b5e1a9
ns: Added nsGetFactoryResetInterface(). Added support for IFactoryResetInterface. Improved docs, etc. 2020-02-26 17:36:15 -05:00
yellows8
4a493775b4
ns: Added support for nsDeleteUserSaveDataAll()/NsProgressMonitorForDeleteUserSaveDataAll. Added struct NsProgressForDeleteUserSaveDataAll. 2020-02-25 15:07:47 -05:00
yellows8
524e910268
ns: Added nsListApplicationTitle and nsListApplicationIcon. 2020-02-22 23:58:27 -05:00
yellows8
129b3a95b8
Added support for NsProgressAsyncResult and nsRequestVerifyAddOnContentsRights/nsRequestVerifyApplication. Updated docs. 2020-02-20 22:17:13 -05:00
HookedBehemoth
d8a50a46cf
add caps:c (#375) 2020-02-19 23:32:01 +01:00
shchmue
86a5aa4466
Correct structs and finish adding all set:cal calls (#373) 2020-02-18 19:56:31 +01:00
yellows8
0db4f8a953
ns: Added structs: NsApplicationViewDeprecated, NsApplicationView, NsPromotionInfo, NsApplicationViewWithPromotionInfo. Added cmds: nsGetApplicationViewDeprecated, nsGetApplicationView, nsGetApplicationViewDownloadErrorContext, nsGetApplicationViewWithPromotionInfo, nsGetPromotionInfo. 2020-02-18 10:26:35 -05:00
Michael Scire
73047b09fd spl: fix rsa key accessors on >= 5.x 2020-02-17 23:20:45 +01:00
yellows8
c570cd0a2f
ns: Added NsApplicationRightsOnClient/nsGetApplicationRightsOnClient(). 2020-02-17 15:46:02 -05:00
yellows8
d8d931fe25
ns: Added support for the following cmds: nsRequestApplicationUpdateInfo, nsRequestUpdateApplication2, nsRequestDownloadApplicationControlData, nsRequestCheckGameCardRegistration, nsRequestGameCardRegistrationGoldPoint, nsRequestRegisterGameCard, nsRequestDownloadApplicationPrepurchasedRights, nsRequestNoDownloadRightsErrorResolution, nsRequestResolveNoDownloadRightsError. 2020-02-16 21:33:24 -05:00
yellows8
9bf745524d
nifm: Added NifmClientId and nifmGetClientId/nifmIsAnyInternetRequestAccepted. 2020-02-15 12:32:50 -05:00
yellows8
68d6260d72
ns: Actually check the required sysver for nsListApplicationContentMetaStatus. Updated param types for nsGetTotalSpaceSize/nsGetFreeSpaceSize + minor other improvements. Added support for the following:
* NsRequestServerStopper/nsRequestServerStopperClose().
* nsGetApplicationRecordUpdateSystemEvent, nsDeleteApplicationEntity, nsDeleteApplicationCompletely, nsDeleteRedundantApplicationEntity, nsIsApplicationEntityMovable, nsMoveApplicationEntity, nsCancelApplicationDownload, nsResumeApplicationDownload, nsCheckApplicationLaunchVersion, nsCalculateApplicationDownloadRequiredSize, nsCleanupSdCard, nsGetSdCardMountStatusChangedEvent, nsGetGameCardUpdateDetectionEvent, nsDisableApplicationAutoDelete, nsEnableApplicationAutoDelete, nsSetApplicationTerminateResult, nsClearApplicationTerminateResult, nsGetLastSdCardMountUnexpectedResult.
* nsGetRequestServerStopper, nsCancelApplicationApplyDelta, nsResumeApplicationApplyDelta, nsCalculateApplicationApplyDeltaRequiredSize, nsResumeAll, nsGetStorageSize, nsDeleteUserSystemSaveData, nsDeleteSaveData, nsUnregisterNetworkServiceAccount, nsUnregisterNetworkServiceAccountWithUserSaveDataDeletion, nsGetGameCardMountFailureEvent, nsIsGameCardInserted, nsEnsureGameCardAccess, nsGetLastGameCardMountFailureResult, nsListApplicationIdOnGameCard, nsTouchApplication, nsIsApplicationUpdateRequested, nsWithdrawApplicationUpdateRequest, nsIsAnyApplicationEntityInstalled, nsCleanupUnavailableAddOnContents, nsFormatSdCard, nsNeedsSystemUpdateToFormatSdCard, nsGetLastSdCardFormatUnexpectedResult, nsGetApplicationTerminateResult.
2020-02-10 12:14:40 -05:00
yellows8
52a892ca31
ns: Fixed cmd order. 2020-02-06 20:07:02 -05:00
HookedBehemoth
2486175f55
add jpegdec/caps:dc (#369) 2020-01-31 17:53:07 +01:00
HookedBehemoth
c28d736ff0 fs: add fsOpenImageDirectoryFileSystem and FsImageDirectoryId 2020-01-28 20:39:41 -05:00
yellows8
6c706d910f
set: Fixed the required sysver for setsysGetHomeMenuScheme. 2020-01-25 13:47:39 -05:00
fincs
04214ea441
romfs_dev: fix reading into buffers with device mappable attribute 2020-01-22 00:56:34 +01:00
yellows8
5a751ea0c3
Fixed definitions for ldrShellFlushArguments/ldrDmntFlushArguments and spl*GetServiceSession. Removed fsldrSetCurrentProcess from the .h. Closes #366. 2020-01-21 16:09:28 -05:00
SciresM
e5c501e5b6 svc: Add all missing SVC stubs (#364) 2020-01-18 21:39:05 +01:00
HookedBehemoth
446aaf2a55 add capsa IAlbumAccessorSession and more capsa calls (#363)
* add capsa IAlbumAccessorSession

* add documentation for capsa and change parameter order and names for image loading

* add CapsLoadAlbumScreenShotImageOutput for caps:a

* add remaining LoadAlbumScreenShot- calls

* add more calls, add structs and add doc

* fix query and use count instead of size for listing
2020-01-16 19:29:28 -05:00
fincs
7e6ff7e486
Simplify appletGetAppletResourceUserId and related logic 2020-01-17 00:18:55 +01:00
yellows8
9c4ab7f09d
hid: Fixed cmd order. 2020-01-14 21:48:18 -05:00
yellows8
c8b8c7b0f0
hid: Added enum HidGyroscopeZeroDriftMode. Added hidSetGyroscopeZeroDriftMode, hidGetGyroscopeZeroDriftMode, and hidResetGyroscopeZeroDriftMode. 2020-01-14 21:45:04 -05:00
yellows8
583d6bb92d
hid: Fixed vibration, toggling vibration-enable off->on is no longer needed. Properly closes #148. 2020-01-12 12:25:16 -05:00
yellows8
cbe9fae600
hid: Added hidSetSixAxisSensorFusionParameters, hidGetSixAxisSensorFusionParameters, and hidResetSixAxisSensorFusionParameters. 2020-01-11 22:37:07 -05:00
yellows8
f040706743
In _hidActivateConsoleSixAxisSensor, use cmd ActivateConsoleSixAxisSensor instead of ActivateSevenSixAxisSensor. 2020-01-09 18:42:06 -05:00
HookedBehemoth
f34de8fb54 added caps:a (#358)
* added caps:a

* change struct names
2020-01-09 15:32:34 -05:00
yellows8
1bb1aef2f7
Only init/exit apm from applet with AppletType_Application. Closes #360. 2019-12-23 10:50:52 -05:00
yellows8
f043307e7f
In __libnx_init_time(), use 'NX' for the tzname instead of the actual timezone-name. Using the original tzname causes issues with certain timezones. Closes #353. 2019-12-19 16:22:45 -05:00
yellows8
fb01dd8196
psel: Removed TODO comment. 2019-12-19 16:16:58 -05:00
ITotalJustice
0881fb9e0b Add set:cal service with a few cal functions. (#356)
* Add set:cal service with a few functions
* Added more cal structs`
2019-12-16 16:20:00 -05:00
yellows8
d25bcc486a
Properly fixed __nx_applet_exit_mode handling, previously appletExit() called by _appletExitProcess didn't run since refcount was already 0. Closes #355. 2019-12-14 11:52:40 -05:00
yellows8
15490b15f6
applet: Added support for using appletSetHandlingHomeButtonShortPressedEnabled with non-AppletType_OverlayApplet on [9.1.0+]. 2019-12-08 16:45:47 -05:00
yellows8
6900a0241c
applet/time/set: Added TimeSteadyClockTimePoint. Updated appletSetDesirableKeyboardLayout/appletGetDesirableKeyboardLayout for using TimeSteadyClockTimePoint.
* Added SetSysUserSelectorFlag, SetSysEulaVersionClockType, SetSysNotificationVolume, SetSysFriendPresenceOverlayPermission, SetSysPrimaryAlbumStorage, SetSysHandheldSleepPlan, SetSysConsoleSleepPlan, SetSysErrorReportSharePermission, SetKeyboardLayout, and SetChineseTraditionalInputMethod.

* Added SetBatteryLot, SetSysUserSelectorSettings, SetSysAccountSettings, SetSysEulaVersion, SetSysNotificationTime, SetSysNotificationSettings, SetSysAccountNotificationSettings, SetSysTvSettings, SetSysDataDeletionSettings, SetSysSleepSettings, SetSysInitialLaunchSettings, and SetSysRebootlessSystemUpdateVersion.

* Added setsysSetLanguageCode, setsysGetAccountSettings/setsysSetAccountSettings, setsysGetEulaVersions/setsysSetEulaVersions, setsysGetNotificationSettings/setsysSetNotificationSettings, setsysGetAccountNotificationSettings/setsysSetAccountNotificationSettings, setsysGetTvSettings/setsysSetTvSettings, setsysGetDataDeletionSettings/setsysSetDataDeletionSettings, setsysGetWirelessCertificationFileSize/setsysGetWirelessCertificationFile, setsysSetRegionCode, setsysGetPrimaryAlbumStorage/setsysSetPrimaryAlbumStorage, setsysGetBatteryLot, setsysGetSleepSettings/setsysSetSleepSettings, setsysGetInitialLaunchSettings/setsysSetInitialLaunchSettings, setsysGetProductModel, setsysGetMiiAuthorId, setsysGetErrorReportSharePermission/setsysSetErrorReportSharePermission, setsysGetAppletLaunchFlags/setsysSetAppletLaunchFlags, setsysGetKeyboardLayout/setsysSetKeyboardLayout, setsysGetRebootlessSystemUpdateVersion, and setsysGetChineseTraditionalInputMethod/setsysSetChineseTraditionalInputMethod.
2019-12-06 21:13:43 -05:00
yellows8
c4bc7b24a0
Added type Uuid and use it where needed. Renamed the c field in NcmPlaceHolderId to uuid. Removed PACKED from WebWifiPageArg/WebWifiReturnValue. 2019-12-03 23:31:01 -05:00
SciresM
afe030f08b rwlock: revamp completely (#350)
Implements rwlockTryReadLock and rwlockTryWriteLock.
Also implements rwlockIsWriteLockHeldByCurrentThread and
rwlockIsOwnedByCurrentThread.

Also re-designs RwLock to have semantics identical to
Nintendo's (nn::os::ReaderWriterLock). The upshot is mostly
that the lock is now fully recursive/write-preferring.
2019-12-03 23:16:40 +01:00
yellows8
bbcabee29f
psel: Number of improvements. Added PselUiMode_NintendoAccountAuthorizationRequestContext. Various naming adjustments. Implemented pselShowUserSelector properly, and added pselShowUserSelectorForSystem/pselShowUserSelectorForLauncher. Use accountIsUserRegistrationRequestPermitted and accountTrySelectUserWithoutInteraction. Added PselUserSelectionPurpose, PselNintendoAccountStartupDialogType, PselUserSelectionSettings, and PselUserSelectionSettingsForSystemService. 2019-12-03 13:34:27 -05:00
yellows8
42aa0800f7
account: Added accountIsUserRegistrationRequestPermitted and accountTrySelectUserWithoutInteraction. 2019-12-03 13:13:11 -05:00
yellows8
4078de1eff
psel: Various improvements, including proper version handling. Updated names. Renamed/added modes, with sysver docs. Don't use ptrs for input AccountUids. Added pselShowUserCreatorForStarter and pselShowNintendoAccountNnidLinker. Directly return the Result from PselUiReturnArg. Removed the output user param from pselShowUserCreator. 2019-12-01 18:34:50 -05:00
yellows8
5182b57a1d
fs/fs_dev: Added FsFileSystemQueryId_IsValidSignedSystemPartitionOnSdCard, fsFsIsValidSignedSystemPartitionOnSdCard, and fsdevIsValidSignedSystemPartitionOnSdCard. Improved docs. 2019-11-28 18:51:52 -05:00
yellows8
9f28d0002a
Added support for hidLa (controller libapplet). 2019-11-28 16:04:46 -05:00
yellows8
c9f6100e1c
hid: Added hidGetNpadJoyHoldType. 2019-11-28 15:01:42 -05:00
yellows8
8fe48e8eac
fs/fs_dev/romfs_dev: Updated various types to use s64. Removed the inval param from fsDirRead since it doesn't exist. Renamed fileSize in FsDirectoryEntry to file_size and updated the type. Renamed FsFileSystemQueryType to FsFileSystemQueryId, and renamed FsFileSystemQueryType_SetArchiveBit to FsFileSystemQueryId_SetConcatenationFileAttribute. Renamed fsFsSetArchiveBit to fsFsSetConcatenationFileAttribute. Renamed fsdevSetArchiveBit to fsdevSetConcatenationFileAttribute. Minor other changes. 2019-11-28 14:58:55 -05:00
XorTroll
3925e92828 Add psel (playerSelect) support (#335)
* Add psel (playerSelect) support
2019-11-27 12:50:34 -05:00
yellows8
d94be49cb3
Moved common includes for libapplets into a dedicated internal header + minor other changes. 2019-11-27 11:18:58 -05:00
The Dax
cd9f29fc8e Add support for setting/getting the Internet time sync flag.
(IsUserSystemClockAutomaticCorrectionEnabled and 	SetUserSystemClockAutomaticCorrectionEnabled.)
2019-11-20 01:16:23 +01:00
yellows8
2b6197a51a
hid: Use _hidActivateConsoleSixAxisSensor instead of _hidActivateSevenSixAxisSensor, and moved the code using this to near the start of hidInitializeSevenSixAxisSensor. 2019-11-18 12:38:12 -05:00
yellows8
167bd9e110
hid: Use ActivateNpadWithRevision with the sysver-specific revision value in _hidActivateNpad(), on [5.0.0+]. 2019-11-18 12:25:48 -05:00
yellows8
70ddae58ff
acc/nfc/nifm: Removed *SetServiceType and moved the service_type param into the actual {service}Initialize() funcs. Removed *ServiceType_NotInitialized and updated the *ServiceType enum values. Minor other changes / improved nifm docs. 2019-11-18 10:52:46 -05:00
yellows8
fcd7e36a9d
Added actual support for notif + improved docs. 2019-11-17 18:25:57 -05:00
yellows8
f181807215
fs/fs_dev: Updated names to match wiki. Updated param names. Renamed FS_SAVEDATA_CURRENT_PROGRAMID to FS_SAVEDATA_CURRENT_APPLICATIONID. Updated field names in FsSaveDataAttribute, FsSaveDataExtraData, FsSaveDataCreationInfo, and FsSaveDataInfo. Updated names for the enum values for FsSaveDataSpaceId, FsSaveDataType, FsSaveDataFlags, and FsGameCardAttribute. Added FsSaveDataSpaceId_SdUser and FsSaveDataSpaceId_SafeMode. Added FsSaveDataType_SystemBcat. Added FsSaveDataRank. Fixed the name for FsGameCardPartition and added FsGameCardPartition_Logo. Renamed FsBisStorageId to FsBisPartitionId, updated the enum value names for it, and added FsBisPartitionId_SignedSystemPartitionOnSafeMode. Improved docs / minor other changes. 2019-11-16 16:07:10 -05:00
yellows8
8216043ea1
applet: Fixed the prefix for *PushToFriendInvitationStorageChannel/*PushToNotificationStorageChannel. Added support for all [9.0.0+] IDebugFunctions cmds. Minor internal changes + improved docs. 2019-11-15 18:08:46 -05:00
yellows8
1e58385bd5
Added appletGetFriendInvitationStorageChannelEvent, appletTryPopFromFriendInvitationStorageChannel, appletGetNotificationStorageChannelEvent, and appletTryPopFromNotificationStorageChannel. Added appletPushToFriendInvitationStorageChannel/appletPushToNotificationStorageChannel. Added friendsGetFriendInvitationNotificationEvent/friendsTryPopFriendInvitationNotificationInfo. Added notif, for adding notifGetNotificationSystemEvent/notifTryPopNotifiedApplicationParameter. 2019-11-15 14:26:29 -05:00
fincs
83649c9768
Fix #346 - sessionmgrClose did not actually close the extra sessions 2019-11-14 17:35:35 +01:00
yellows8
dda6194d0b
Added appletIsForceTerminateApplicationDisabledForDebug. Updated docs. 2019-11-14 11:34:41 -05:00
yellows8
c0115edca1
Added appletSetHealthWarningShowingState and appletGetHealthWarningDisappearedSystemEvent. 2019-11-13 23:41:43 -05:00
yellows8
d24f1ca611
Added appletSetInputDetectionPolicy and AppletInputDetectionPolicy. 2019-11-13 20:53:40 -05:00
yellows8
297e9d97a0
Added appletGetSettingsPlatformRegion/appletSetHdcpAuthenticationActivated and improved docs. 2019-11-13 20:07:26 -05:00
yellows8
d88f67fe30
Added appletPushToAppletBoundChannel and appletTryPopFromAppletBoundChannel. 2019-11-13 18:25:34 -05:00
yellows8
8fc57a4795
Added support for using appletSetTerminateResult via IAppletCommonFunctions, and for using appletGetLaunchStorageInfoForDebug/appletGetGpuErrorDetectedSystemEvent with AppletType_LibraryApplet, on [9.0.0+]. Moved these to a new section in the .h/.c. 2019-11-13 17:52:56 -05:00
yellows8
689430e578
fs: Updated names to match wiki. FsSave->FsSaveDataAttribute, FsSaveCreate->FsSaveDataCreationInfo, and renamed the save field in FsSaveDataExtraData to attr. Updated names for enum values in: FsContentStorageId, FsCustomStorageId, and FsSaveDataSpaceId. Added FsSaveDataSpaceId_ProperSystem and FsFileSystemType_RegisteredUpdate. Various improvements and improved docs. 2019-11-13 14:34:49 -05:00
yellows8
c40f8ecac6
Removed includes which are unneeded due to being included elsewhere, etc. Minor improvements. 2019-11-12 12:45:58 -05:00
yellows8
67eacc8034
Added support for the [9.0.0+] friendsLa functionality. Added AccountNetworkServiceAccountId (and updated friendsLa for this). Added FriendsFriendInvitationGameModeDescription, FriendsFriendInvitationId, and FriendsFriendInvitationGroupId. 2019-11-12 10:24:27 -05:00
yellows8
9888df18da
Moved most ncm types into ncm_types.h. Renamed FsStorageId to NcmStorageId, with updated names for some values (now located in ncm_types.h). Various improvements + improved docs. 2019-11-11 18:19:45 -05:00
yellows8
ce570a70f1
romfs_dev: Replaced the romFS_dir()/romFS_file() macros with funcs which have actual bounds-checking, this fixes crashes/hangs when the romfs tables are corrupted. Updated relevant code to handle this / various improvements, and return ENOENT instead of EEXIST where required. 2019-11-11 11:07:46 -05:00
yellows8
cc64ec7236
Added NsReceiveApplicationProgress/NsSendApplicationProgress, updated NsApplicationDeliveryInfo, and improved docs. Added the following: nsSelectLatestSystemDeliveryInfo, nsVerifyDeliveryProtocolVersion, nsHasAllContentsToDeliver, nsCompareApplicationDeliveryInfo, nsCanDeliverApplication, nsListContentMetaKeyToDeliverApplication, nsNeedsSystemUpdateToDeliverApplication, nsEstimateRequiredSize, nsRequestReceiveApplication, nsCommitReceiveApplication, nsGetReceiveApplicationProgress, nsRequestSendApplication, nsGetSendApplicationProgress, nsCompareSystemDeliveryInfo, nsListNotCommittedContentMeta, and nsGetApplicationDeliveryInfoHash. 2019-11-09 21:13:23 -05:00
yellows8
24f77642c9
Updated the NsSystemDeliveryInfo struct. Added nsGetApplicationDeliveryInfo and NsApplicationDeliveryInfo. 2019-11-08 16:11:05 -05:00
cathery
d4c5fbdf0f hiddbg: Add hiddbgIsHdlsVirtualDeviceAttached (#345) 2019-11-07 19:27:13 +01:00
yellows8
09423066b0
Updated the type for the size param for ncmContentStorageCreatePlaceHolder. 2019-11-03 22:04:52 -05:00
yellows8
6c7ad3095c
Added setsysGetPctlReadyFlag/setsysSetPctlReadyFlag. Fixed ordering. 2019-11-03 16:39:29 -05:00
yellows8
454244602c
Added setsysGetTouchScreenMode/setsysSetTouchScreenMode and SetSysTouchScreenMode. Minor adjustment. 2019-11-02 16:32:12 -04:00
yellows8
8ee7afca99
Added setsysGetMemoryUsageRateFlag. 2019-11-02 16:08:08 -04:00
yellows8
e5dd8a741d
Added setsysGetHomeMenuScheme and setsysGetHomeMenuSchemeModel. Added SetSysHomeMenuScheme. Minor adjustment. 2019-11-02 15:29:38 -04:00
yellows8
e6d687990c
Added setsysGetPlatformRegion/setsysSetPlatformRegion and SetSysPlatformRegion. 2019-11-01 22:57:29 -04:00
yellows8
df4bbcf2d7
Use const for various hid vibration funcs. 2019-11-01 19:11:18 -04:00
yellows8
e2b9b09b61
Added hidIsVibrationDeviceMounted. 2019-11-01 19:04:14 -04:00
yellows8
fa27331045
Initialize time by using TimeServiceType/__nx_time_service_type, with the default now being User. 2019-11-01 13:20:55 -04:00
yellows8
1f792cd92f
Various improvements/fixes and improved docs. Added nvGetServiceSession. Return an actual error when the value for determing which service to init is invalid, for services which use *ServiceType/AppletType. Improved cleanup handling. Fixed inverted logic in the spl cleanup define. 2019-10-31 22:53:42 -04:00
yellows8
4ab50e3752
Use official naming instead of 'title(ID)'. Use 'uid(s)' instead of 'userID(s)'. Updated various struct field names. Improved docs + minor other improvements. 2019-10-30 10:38:05 -04:00
HookedBehemoth
4f72bc5342 Actually return values for ncmContentMetaDatabaseList and ncmContentMetaDatabaseListApplication (#344) 2019-10-30 02:16:19 +01:00
yellows8
28e06a94ec
usbhs: Swapped the INPUT/OUTPUT endpoint descriptors in UsbHsInterfaceInfo to support [8.0.0+], and convert that struct to the new layout internally when running on pre-8.0.0. Closes #341. 2019-10-29 16:48:20 -04:00
yellows8
ccea53c837
ns: Updated param names for nssuRequestSendSystemUpdate/nssuControlRequestReceiveSystemUpdate and improved docs. 2019-10-29 12:09:10 -04:00
fincs
f062c6ecab
resolver: Clean up and simplify gethostbyname/gethostbyaddr/getnameinfo 2019-10-28 14:04:25 +01:00
fincs
af4a025e9b
sfdnsres: Correct some more parameter names 2019-10-28 13:27:55 +01:00
fincs
0378d553e0
resolver: Minor codestyle fixes 2019-10-28 13:00:07 +01:00
fincs
1e0bcfbf87
resolver: Add commands to configure behavior (most not implemented) 2019-10-28 12:36:43 +01:00
fincs
a2c35fb2e7
sfdnsres: timeout parameter is actually cancel_handle 2019-10-28 12:36:43 +01:00
fincs
26f620dc0e
Split up socket.c + work in progress changes:
- DNS stuff moved to runtime/resolver.c & .h
- Address manipulation functions moved to runtime/util/inet_addr.c
- Removed sfdnsres/nifm handling in runtime/devices/socket.c
- Renamed socketGetLastBsdResult to socketGetLastResult
- Renamed socketGetLastSfdnsresResult to resolverGetLastResult
- gethostid now inits/deinits nifm as needed
- sfdnsres related configuration gone from SocketInitConfig
- Fixed bug in addrinfo deserialization
- getaddrinfo rewritten, hints can now be NULL
- TODO: add back a way to control service discovery/cancel handle
2019-10-28 12:36:29 +01:00
Michael Scire
989893721f ro: rename GetProcessModuleInfo 2019-10-28 12:18:14 +01:00
Michael Scire
8394986e19 ldr: update names 2019-10-28 12:18:14 +01:00
Michael Scire
07ad046acf svc: change TitleId to ProgramId 2019-10-28 12:17:55 +01:00
yellows8
622c0509a5
ncm: Added alignas within the NcmContentId struct, and added NcmPlaceHolderId. Use NcmPlaceHolderId instead of NcmContentId where needed. 2019-10-27 19:19:16 -04:00
yellows8
01133f7f6d
Use const for the location param with pmshellLaunchProgram. 2019-10-27 18:22:54 -04:00
fincs
1592b2892f
sfdnsres: Major rewrite using new-ipc, fixed numerous IPC bugs, removed phantom commands 2019-10-27 17:25:53 +01:00
yellows8
b6af00d908
Updated the NsSystemDeliveryInfo struct and added nsGetSystemDeliveryInfo. 2019-10-26 23:40:53 -04:00
fincs
5340c7d7dc
Add multithreaded BSD/socket support; revise BSD service type handling so that bsd:u is the default (since it has 22 worker threads as opposed to bsd:s's 11) 2019-10-26 17:26:04 +02:00
fincs
bc13692938
Introduce SessionMgr for managing multiplexed services; change fs to use it 2019-10-26 16:44:32 +02:00
yellows8
051ad2dc60
Improved bool handling, clear IPC in-struct padding, and use serviceAssumeDomain prior to serviceClose in non-_{name}Cleanup funcs. Removed PACKED from the _usbHsIfCtrlXferAsync IPC in-struct. Fixed the code setting the IPC in-struct for _nsCmdRequestSendReceiveSystemUpdate, which is used by nssuRequestSendSystemUpdate/nssuControlRequestReceiveSystemUpdate. Minor other changes. Updated a param name for capsscCaptureRawImageWithTimeout. 2019-10-25 20:29:43 -04:00
yellows8
b4a003e176
fs: Minor improvements. Fixed cmd order. IPC improvements + clear padding in IPC in-struct. Improved bool handling. 2019-10-25 19:35:59 -04:00
yellows8
e833257b65
applet: Minor internal improvements. Updated param type for appletRequestLaunchApplicationWithUserAndArgumentForDebug. Clear IPC in-struct padding, improved bool handling, and use serviceAssumeDomain when closing Service objects outside of _appletCleanup. 2019-10-25 19:24:56 -04:00
yellows8
04179b286d
nfc: Replaced the handle within NfcDeviceHandle with an u8-array. Removed PACKED from the nfpCreateApplicationArea in-struct. Improved bool handling. 2019-10-25 19:11:03 -04:00
yellows8
5700b8f347
fsldr/ldr/spl: Improved bool handling and minor other changes. Fixed IPC input for _ldrAddTitleToLaunchQueue. 2019-10-25 18:56:41 -04:00
fincs
58e1e7e5b6
bsd: Update for new-ipc 2019-10-25 17:19:30 +02:00
yellows8
e5c1e35ede
vi: Renamed viGetDisplayMinimumZ to viGetZOrderCountMin, and renamed viGetDisplayMaximumZ to viGetZOrderCountMax. Updated param types. Clear IPC in-struct padding + minor other changes. 2019-10-24 18:06:33 -04:00
fincs
4ab2384449
fatal: Rename functions/types to match official names more closely 2019-10-24 23:25:07 +02:00
yellows8
a808c53efc
ncm/pm: Added NcmProgramLocation, which is now used by pmshellLaunchProgram (which was renamed). Updated pm names to match wiki. Adjusted order in pm.c/pm.h / minor changes. 2019-10-24 16:42:52 -04:00
yellows8
0d5e51757d
grc: Renamed grcdRead to grcdTransfer and updated the param names for it. 2019-10-23 23:32:33 -04:00
yellows8
e81b63ac00
ncm: Moved the cmd_id param for the internal IPC helper funcs to the last param. 2019-10-23 20:01:27 -04:00
yellows8
ea5dcfddfa
ncm: Renamed NcmNcaId to NcmContentId. Added NcmRightsId struct, which is now used by the RightsId funcs. Updated params / params types, this includes replacing array buf-byte-sizes with entry-count. Fixed handling for ncmContentStorageGetPath/ncmContentStorageGetPlaceHolderPath. Improved bool handling + clear IPC in-struct padding. Minor improvements. 2019-10-23 19:14:04 -04:00
yellows8
e4657c15ce
fspr: Use domains. Clear padding for the fsprRegisterProgram in-struct. 2019-10-23 18:41:01 -04:00
yellows8
42b6af8e07
lr: Use SfBufferAttr_FixedSize in _lrResolvePath(). 2019-10-22 18:53:20 -04:00
fincs
d025041e3d
sm: Introduce and use SmServiceName struct (with better codegen) 2019-10-22 20:10:52 +02:00
yellows8
7103b08740
sm: Minor improvements + IPC input improvements. Minor param type adjustment for smRegisterService. 2019-10-22 10:20:21 -04:00
fincs
e9e392bbe2
binder: Update for new-ipc 2019-10-22 16:11:10 +02:00
Michael Scire
145ad1ba87 virtmem: fix incorrect bounds check 2019-10-22 12:42:07 +02:00
fincs
9e83f82a62
Enhance fsOpen_SystemSaveData/fsdevMountSystemSaveData 2019-10-21 21:15:40 +02:00
fincs
47b0403333
Pass plain AccountUid inputs by value instead of by non-const pointer 2019-10-21 16:57:01 +02:00
fincs
13fbde91b0
fsdev: Added fsdevMountSaveData/SystemSaveData wrappers 2019-10-21 12:38:18 +02:00
fincs
54f6fa5420
fs: Use official method names, document min sysver, correct a few parameters 2019-10-21 12:37:38 +02:00
fincs
c77b88d868
Major cleanup and refactor of fsdev and romfsdev, see details:
fsdev:
- Removed fsdevGetDefaultFileSystem and default-fs handling
- Refactored CWD support to have (dynamically allocated) per-device CWDs
  (CWD support as a whole can be turned off with __nx_fsdev_support_cwd)
- Optimized calls by passing pointer to device through r->deviceData
- Use the per-thread path buffer directly as the argument to FS functions
- Removed redundant cross-device check in fsdev_rename
- Fixed string comparison logic in fsdevFindDevice
- fsdev_fixpath now accepts an input device in order to skip device
  lookup (extensively used along with r->deviceData)
- Mounting a filesystem now automatically sets the default device
  if there wasn't any previous default device (or if it's stdnull)
- fsdevMountSdmc no longer sets cwd to the folder containing the
  executable - this logic was moved to a new internal function
  called on startup by default (and it is now disabled for NSOs)
- Other miscellaneous optimizations

romfsdev:
- Cleaned up romfsMount* functions, removed unused/unnecessary logic
- Changed romfsMount* functions to return real result codes
- Renamed romfsMount to romfsMountSelf and improved documentation
- Removed romfsInitFromFile and romfsInitFromStorage (use Mount instead)
- Added documentation for romfsInit and romfsExit
2019-10-20 22:22:04 +02:00
yellows8
0403c988ba
hidsys: Fixed cmd order. Fixed output size for hidsysGetUniquePadSerialNumber. 2019-10-20 02:35:30 -04:00
fincs
26a0ee4af3
fsdev/romfsdev: Reduce TLS usage by sharing the path buffer 2019-10-20 02:48:04 +02:00
yellows8
a774fb81cc
Added hidsysSetNotificationLedPatternWithTimeout. Updated docs with sysver requirements which were previously missing. 2019-10-19 19:51:51 -04:00
Michael Scire
2e2d227ac7
vi: update for new-ipc 2019-10-20 01:13:40 +02:00
Michael Scire
23950cc10e
lr: update for new-ipc 2019-10-20 01:13:40 +02:00
Michael Scire
9e2df3ad53
ldr: update for new-ipc 2019-10-20 01:13:40 +02:00
Michael Scire
a3e7b1affb
smm: update for new-ipc 2019-10-20 01:13:40 +02:00
Michael Scire
71b44cfb02
psc: update for new-ipc 2019-10-20 01:13:39 +02:00
Michael Scire
61fabbe1bc
i2c: update for new-ipc 2019-10-20 01:13:39 +02:00
Michael Scire
861e9d7c3d
fsldr: assume domain 2019-10-20 01:13:23 +02:00
Michael Scire
7292ddfcd8
fspr: update for new-ipc 2019-10-20 01:11:27 +02:00
Michael Scire
77563f027a
bpc: update for new-ipc 2019-10-20 01:11:26 +02:00
Michael Scire
040767ce57
clkrst: update for new-ipc 2019-10-20 01:11:25 +02:00
Michael Scire
960f99e7a2
pcv: update for new-ipc 2019-10-20 01:11:24 +02:00
Michael Scire
16fde00323
spsm: update for new-ipc 2019-10-20 01:11:23 +02:00
Michael Scire
48905d70d2
gpio: update for new-ipc 2019-10-20 01:11:23 +02:00
yellows8
edcd25bdae
Added hiddbgWriteSerialFlash. 2019-10-19 18:42:45 -04:00
yellows8
ecd6cd73ca
Fixed hiddbgReadSerialFlash. Added hiddbgAcquireOperationEventHandle and hiddbgGetOperationResult. 2019-10-19 12:19:23 -04:00
yellows8
9b44261767
Fixed memset in usbHsEpClose() which was using sizeof() with the wrong struct. Closes #337. 2019-10-18 22:29:20 -04:00
SciresM
415adf5b93 threads: support using existing mem as stack (#336) 2019-10-19 04:25:23 +02:00
fincs
69a63bbee8
fsdev: Reduce TLS footprint for rarely used codepaths 2019-10-19 04:00:50 +02:00
yellows8
5f5d4c9785
pdm: Renamed PdmApplicationEvent to PdmAppletEvent, and renamed pdmqryQueryApplicationEvent to pdmqryQueryAppletEvent. Renamed *entryindex fields in various structs to *entry_index. Updated param types and minor param name adjustments. 2019-10-18 16:53:26 -04:00
fincs
3c610fb2cb
fsdev: Allow directory entry cache size to be configured dynamically 2019-10-18 21:23:11 +02:00