remove more SD and USB shutdown and startup, which broke cheating when

using alt dol from sd/usb
This commit is contained in:
giantpune 2009-12-11 06:31:05 +00:00
parent 856efe535f
commit f364aaa964
2 changed files with 12 additions and 12 deletions

View File

@ -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.

View File

@ -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;