mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-04 18:45:05 +01:00
remove more SD and USB shutdown and startup, which broke cheating when
using alt dol from sd/usb
This commit is contained in:
parent
856efe535f
commit
f364aaa964
@ -2,8 +2,8 @@
|
||||
<app version="1">
|
||||
<name> USB Loader GX</name>
|
||||
<coder>USB Loader GX Team</coder>
|
||||
<version>1.0 r855</version>
|
||||
<release_date>200912110109</release_date>
|
||||
<version>1.0 r856</version>
|
||||
<release_date>200912110630</release_date>
|
||||
<short_description>Loads games from USB-devices</short_description>
|
||||
<long_description>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.
|
||||
|
@ -24,15 +24,15 @@ bool Load_Dol(void **buffer, int* dollen, char * filepath) {
|
||||
memcpy(gameidbuffer6, (char*)0x80000000, 6);
|
||||
snprintf(fullpath, 200, "%s%s.dol", filepath, gameidbuffer6);
|
||||
|
||||
SDCard_Init();
|
||||
USBDevice_Init();
|
||||
// SDCard_Init();
|
||||
// USBDevice_Init();
|
||||
|
||||
file = fopen(fullpath, "rb");
|
||||
|
||||
if (file == NULL) {
|
||||
fclose(file);
|
||||
SDCard_deInit();
|
||||
USBDevice_deInit();
|
||||
// SDCard_deInit();
|
||||
// USBDevice_deInit();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -44,22 +44,22 @@ bool Load_Dol(void **buffer, int* dollen, char * filepath) {
|
||||
dol_buffer = malloc(filesize);
|
||||
if (dol_buffer == NULL) {
|
||||
fclose(file);
|
||||
SDCard_deInit();
|
||||
USBDevice_deInit();
|
||||
// SDCard_deInit();
|
||||
// USBDevice_deInit();
|
||||
return false;
|
||||
}
|
||||
ret = fread( dol_buffer, 1, filesize, file);
|
||||
if (ret != filesize) {
|
||||
free(dol_buffer);
|
||||
fclose(file);
|
||||
SDCard_deInit();
|
||||
USBDevice_deInit();
|
||||
// SDCard_deInit();
|
||||
// USBDevice_deInit();
|
||||
return false;
|
||||
}
|
||||
fclose(file);
|
||||
|
||||
SDCard_deInit();
|
||||
USBDevice_deInit();
|
||||
// SDCard_deInit();
|
||||
// USBDevice_deInit();
|
||||
*buffer = dol_buffer;
|
||||
*dollen = filesize;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user