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
4981ea02c0
Updated docs to use the updated name of a define.
2019-10-30 10:50:58 -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
4ecc597d0d
ncm: Renamed the titleID field in NcmProgramLocation to program_id. Minor docs adjustment.
2019-10-28 02:21:23 -04:00
yellows8
9d7f968773
NcmContentMetaKey title_id field renamed to id.
2019-10-27 21:19:49 -04: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
yellows8
b0980e4c9f
Fixed the type for key_generation in NcmRightsId.
2019-10-26 22:15:23 -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