diff --git a/HBC/META.XML b/HBC/META.XML index 6c75fa50..50b4f71f 100644 --- a/HBC/META.XML +++ b/HBC/META.XML @@ -2,8 +2,8 @@ USB Loader GX USB Loader GX Team - 1.0 r1007 - 201012031819 + 1.0 r1010 + 201012051910 Loads games from USB-devices USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times. The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller. diff --git a/gui.pnproj b/gui.pnproj index 11e2d938..931f250b 100644 --- a/gui.pnproj +++ b/gui.pnproj @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/source/network/networkops.cpp b/source/network/networkops.cpp index aaffb6aa..7bd93e26 100644 --- a/source/network/networkops.cpp +++ b/source/network/networkops.cpp @@ -66,6 +66,16 @@ void Initialize_Network(void) } } +/**************************************************************************** + * DeinitNetwork + ***************************************************************************/ +void DeinitNetwork(void) +{ + net_wc24cleanup(); + net_deinit(); + networkinitialized = false; +} + /**************************************************************************** * Check if network was initialised ***************************************************************************/ @@ -90,28 +100,6 @@ char * GetIncommingIP(void) return incommingIP; } -/**************************************************************************** - * Get network IP - ***************************************************************************/ -bool ShutdownWC24() -{ - bool onlinefix = IsNetworkInit(); - if (onlinefix) - { - s32 kd_fd, ret; - STACK_ALIGN( u8, kd_buf, 0x20, 32 ); - - kd_fd = IOS_Open("/dev/net/kd/request", 0); - if (kd_fd >= 0) - { - ret = IOS_Ioctl(kd_fd, 7, NULL, 0, kd_buf, 0x20); - if (ret >= 0) onlinefix = false; // fixed no IOS reload needed - IOS_Close(kd_fd); - } - } - return onlinefix; -} - s32 network_request(s32 connect, const char * request, char * filename) { char buf[1024]; diff --git a/source/network/networkops.h b/source/network/networkops.h index a3eea3de..8903584f 100644 --- a/source/network/networkops.h +++ b/source/network/networkops.h @@ -10,6 +10,7 @@ #define NETWORKBLOCKSIZE 5*1024 //5KB void Initialize_Network(void); +void DeinitNetwork(void); bool IsNetworkInit(void); char * GetNetworkIP(void); char * GetIncommingIP(void); diff --git a/source/sys.cpp b/source/sys.cpp index 8f4922b0..a0183175 100644 --- a/source/sys.cpp +++ b/source/sys.cpp @@ -6,6 +6,7 @@ #include "settings/CSettings.h" #include "settings/newtitles.h" #include "language/gettext.h" +#include "network/networkops.h" #include "utils/ResourceManager.h" #include "FontSystem.h" #include "audio.h" @@ -80,6 +81,7 @@ void AppCleanUp(void) CloseXMLDatabase(); ClearFontData(); NewTitles::DestroyInstance(); + DeinitNetwork(); StopGX(); ShutdownAudio();