James
d320d6539c
Merge 6218f4875c into 089d5ab86d
2025-12-10 16:29:48 +00:00
HookedBehemoth
089d5ab86d
correct internal consoleCls & consoleClearLine calls
2025-12-07 16:21:28 +01:00
Michael Scire
2779011f7d
libnx: add marker for programs compiled after 21.x tls abi change
2025-11-15 11:38:41 +01:00
Dave Murphy
b186ec08bc
refactor console code for better ansi escape-code handling ( #682 )
2025-07-26 15:32:00 +02:00
MasaGratoR
96f063ac13
Cover new Chinese and Brazilian Portuguese language IDs for nacpGetLanguageEntry
2025-07-13 20:32:04 +02:00
Michael Scire
8f1cce6946
libnx: fix compilation with gcc15
2025-05-07 21:09:09 +02:00
fincs
8cff58d5af
dynamic: add support for ELF packed relocations (relr)
2024-08-31 00:40:56 +02:00
James Bulman
6218f4875c
Wrapper to turn romfs_file into romfs_fileobj
...
Useful for turning romfs_direntry files into readable files
2024-06-14 15:49:11 +01:00
James Bulman
13d880fe12
Modified stdio RomFS functions to use native
...
To consolidate code paths to make maintenance slightly easier
2024-06-13 00:25:27 +01:00
James Bulman
ff3e698d96
Added native RomFS file reading/directory listing
...
Find RomFS mounts by name
Find RomFS files by path or with a mount
Iterate RomFS directory entries
2024-06-12 21:41:43 +01:00
ThisALV
7d68ad6bd4
fix: avoid segfault at static dtors ( #638 )
2023-12-17 14:15:33 +00:00
Ghabry
a215ae2da2
Add NX_ prefix to PACKED, NORETURN, IGNORE_ARG and DEPRECATED macros
2023-11-20 19:22:12 +01:00
fincs
1bb5a21453
socket: automatically detect and use latest bsdsockets version ( fix #551 )
2023-10-27 23:46:40 +02:00
fincs
4ff1c52869
crt0/dynamic: refactoring + add support for reprotecting relro segment
2023-10-21 00:18:04 +02:00
fincs
3a5d0dae35
Linker script refactoring, see details:
...
- Added separate relro "segment" (introduced by [17.0.0+])
- Reordered sections to better reflect official layout
- Fixed handling of TLS segment alignment
2023-10-21 00:18:04 +02:00
Dave Murphy
2e80cf9bba
quote timezone to allow +/- & alphanumerics
2023-05-27 16:16:37 +02:00
Dave Murphy
77c2d18046
add missing separator to local path
2023-05-07 18:09:12 +02:00
Liam
db592d8aeb
usbcomms: expose VID:PID configuration
2023-04-08 17:24:53 +02:00
Liam
9d1fd27b62
usbcomms: add async API
2023-04-08 17:24:53 +02:00
Michael Theall
ab2c2fb256
Avoid long connection hang in nxlink
2023-04-02 16:37:05 +02:00
yellows8
f64d2059c4
ssl: Add support for the new 16.0.0 functionality.
2023-03-09 23:14:40 -05:00
fincs
8b77139a04
env: Add support for svc 0x80..0xBF hinting
2022-10-12 19:42:37 +02:00
yellows8
d33bb0ad6a
nifm/socket: Add nifmRequest sleep/register-socket cmds.
2022-05-31 20:09:26 -04:00
Dave Murphy
bf50bfdbbe
disable array bounds checking for __tls_start
2022-05-02 23:11:24 +01:00
Michael Theall
6d8d9fd2fc
Don't apply bold/faint to bg console
2022-01-08 01:07:56 +01:00
Michael Theall
16f8547f4c
Add support for SGR 38 and 48
...
This supports the escape sequences used by fmtlib
2021-11-10 20:38:30 +01:00
Vicki Pfau
0aba35b3ed
Fix inet_pton by passing in base instead of getting it out ( #557 )
2021-06-24 22:59:28 +02:00
fincs
137f6d1ddc
Make argvSetup overridable
2021-05-02 15:18:11 +02:00
fincs
de97b82bce
envSetup: detect Atmosphère environment using EntryType_HosVersion
2021-04-11 12:20:06 +02:00
SciresM
e48f1c339f
add hosversionIsAtmosphere ( #525 )
2021-01-27 23:20:41 +01:00
fincs
076657fd31
Allow user override of dynamic memory allocation functions throughout libnx
2021-01-22 18:37:46 +01:00
yellows8
e9ee0b2421
btm/btdrv: Updated param names.
2020-12-29 14:46:10 -05:00
fincs
676f254be1
pad: Fix logic typo
2020-12-01 16:37:01 +01:00
fincs
d290697bfd
Add pad.h - new wrapper API for reading controller input
2020-12-01 13:50:00 +01:00
yellows8
3a11e1d309
hidbus: Updated structs/enums.
2020-12-01 13:50:00 +01:00
yellows8
d4b3b1e90f
hidbus: Updated HidbusJoyPollingMode.
2020-12-01 13:49:57 +01:00
fincs
0640c9da76
hid: Introduce HidNpadIdType, see details:
...
- Replaced most usages of HidControllerID with HidNpadIdType
- HidControllerID still exists for now, and the following functions
keep accepting it for compatibility with most homebrew:
- hidIsControllerConnected
- hidKeysHeld/Down/Up
- hidJoystickRead
- hidSixAxisSensorValuesRead
- hidControllerIDTo/FromOfficial renamed to ToNpadIdType/FromNpadIdType
- Updated some comments that were left untouched during previous hid refactoring
- Partial internal refactor of hidGetNpadStates*
2020-12-01 13:49:50 +01:00
yellows8
991a262e19
hid: Replaced HidControllerType with HidNpadStyleTag.
...
HidNpadStyleTag now includes more controllers.
Replaced hidGetControllerType with hidGetNpadStyleSet().
Improved _hidGetDeviceHandles(), more controllers are now supported.
2020-12-01 13:49:48 +01:00
Michael Scire
e5ae43f4c2
results: use R_VALUE for comparisons
2020-12-01 02:26:26 +01:00
fincs
970d982e57
Add diagAbortWithResult, see details:
...
- This is a (weak/overridable) function meant to be called when the
program encounters an unrecoverable error, but it's not fatal enough
to bring down the entire system with it.
- The default implementation uses svcBreak, passing the result code
in the user buffer.
- Replaced all usages of fatalThrow with diagAbortWithResult throughout
the entire library.
2020-10-29 13:40:35 +01:00
fincs
e655b48c41
crt0: clean up/refactor; envSetup: properly detect NSO/NRO environment...
2020-10-27 12:27:32 +01:00
yellows8
c669589a35
bluetooth: Updated params, improved docs, etc.
2020-08-20 18:38:55 -04:00
yellows8
8718ea3659
Added btdev.
2020-08-20 18:38:55 -04:00
yellows8
bcc0f86aa3
hidbus/ringcon: Fixed cleanup, this also fixed a crash.
2020-08-20 13:28:26 -04:00
Ezekiel Bethel
d0a7c6a2a5
fix return value of romfs_stat for non-existent files/directories ( #488 )
2020-06-18 10:58:12 +01:00
HookedBehemoth
ac468913e4
add commands for accessing process storage ( #485 )
2020-06-06 15:13:23 +02:00
Dave Murphy
db795f42ad
fix stat for romfs directories
2020-05-27 14:59:43 +02:00
Ezekiel Bethel
573e2f772c
add lstat to fs_dev and romfs_dev
2020-05-26 17:32:54 +02:00
Dave Murphy
5b879cbb0e
remove unreferenced struct
2020-05-03 00:58:03 +02:00
yellows8
3b2b3ebad4
socket-ssl: Updated docs. Check for output sockfd=-1 from the cmd with socketSslConnectionSetSocketDescriptor.
2020-04-24 16:39:22 -04:00