mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 08:50:06 +00:00
basic clear dns cache clear code
i implemented the dnscacheclear function
This commit is contained in:
parent
b17c40d692
commit
507102c99e
@ -7,6 +7,14 @@
|
|||||||
namespace Service {
|
namespace Service {
|
||||||
namespace HTTP {
|
namespace HTTP {
|
||||||
void ClearDNSCache(Interface* self) {
|
void ClearDNSCache(Interface* self) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
system("ipconfig /flush dns");
|
||||||
|
#elif __APPLE__
|
||||||
|
system("sudo killall -HUP mDNSResponder");
|
||||||
|
#else
|
||||||
|
system("/etc/init.d/named restart");
|
||||||
|
system("/etc/init.d/nscd restart");
|
||||||
|
#endif
|
||||||
u32* cmd_buff = Kernel::GetCommandBuffer();
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
|
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
|
||||||
LOG_DEBUG(Service_HTTP, "(STUBBED) called");
|
LOG_DEBUG(Service_HTTP, "(STUBBED) called");
|
||||||
|
Loading…
Reference in New Issue
Block a user