mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
Add Discovery and Wakeup for PS5
This commit is contained in:
parent
65add80ec6
commit
8904c86a6d
9 changed files with 42 additions and 19 deletions
|
@ -142,7 +142,7 @@ CHIAKI_EXPORT int chiaki_cli_cmd_discover(ChiakiLog *log, int argc, char *argv[]
|
|||
return 1;
|
||||
}
|
||||
|
||||
((struct sockaddr_in *)host_addr)->sin_port = htons(CHIAKI_DISCOVERY_PORT); // TODO: IPv6
|
||||
((struct sockaddr_in *)host_addr)->sin_port = htons(CHIAKI_DISCOVERY_PORT_PS4); // TODO: IPv6, PS5, should probably use the service
|
||||
|
||||
ChiakiDiscoveryPacket packet;
|
||||
memset(&packet, 0, sizeof(packet));
|
||||
|
@ -151,7 +151,7 @@ CHIAKI_EXPORT int chiaki_cli_cmd_discover(ChiakiLog *log, int argc, char *argv[]
|
|||
chiaki_discovery_send(&discovery, &packet, host_addr, host_addr_len);
|
||||
|
||||
while(1)
|
||||
sleep(1);
|
||||
sleep(1); // TODO: wtf
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -73,5 +73,5 @@ CHIAKI_EXPORT int chiaki_cli_cmd_wakeup(ChiakiLog *log, int argc, char *argv[])
|
|||
|
||||
uint64_t credential = (uint64_t)strtoull(arguments.registkey, NULL, 16);
|
||||
|
||||
return chiaki_discovery_wakeup(log, NULL, arguments.host, credential);
|
||||
return chiaki_discovery_wakeup(log, NULL, arguments.host, credential, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue