mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-27 23:32:39 +02:00
better tag for nxlink host ip
This commit is contained in:
parent
0ef568b06c
commit
1394891509
@ -142,10 +142,10 @@ void argvSetup(void)
|
|||||||
|
|
||||||
if ( __system_argc > 1 &&
|
if ( __system_argc > 1 &&
|
||||||
strlen(__system_argv[__system_argc - 1]) == 16 &&
|
strlen(__system_argv[__system_argc - 1]) == 16 &&
|
||||||
strncmp(__system_argv[__system_argc - 1], "NXLINKED", 8) == 0 )
|
strncmp(&__system_argv[__system_argc - 1][8], "_NXLINK_", 8) == 0 )
|
||||||
{
|
{
|
||||||
__system_argc--;
|
__system_argc--;
|
||||||
__nxlink_host.s_addr = strtoul(&__system_argv[__system_argc][8], NULL, 16);
|
__nxlink_host.s_addr = strtoul(__system_argv[__system_argc], NULL, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
__system_argv[__system_argc] = NULL;
|
__system_argv[__system_argc] = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user