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"> <app version="1">
<name> USB Loader GX</name> <name> USB Loader GX</name>
<coder>USB Loader GX Team</coder> <coder>USB Loader GX Team</coder>
<version>1.0 r855</version> <version>1.0 r856</version>
<release_date>200912110109</release_date> <release_date>200912110630</release_date>
<short_description>Loads games from USB-devices</short_description> <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. <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. 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); memcpy(gameidbuffer6, (char*)0x80000000, 6);
snprintf(fullpath, 200, "%s%s.dol", filepath, gameidbuffer6); snprintf(fullpath, 200, "%s%s.dol", filepath, gameidbuffer6);
SDCard_Init(); // SDCard_Init();
USBDevice_Init(); // USBDevice_Init();
file = fopen(fullpath, "rb"); file = fopen(fullpath, "rb");
if (file == NULL) { if (file == NULL) {
fclose(file); fclose(file);
SDCard_deInit(); // SDCard_deInit();
USBDevice_deInit(); // USBDevice_deInit();
return false; return false;
} }
@ -44,22 +44,22 @@ bool Load_Dol(void **buffer, int* dollen, char * filepath) {
dol_buffer = malloc(filesize); dol_buffer = malloc(filesize);
if (dol_buffer == NULL) { if (dol_buffer == NULL) {
fclose(file); fclose(file);
SDCard_deInit(); // SDCard_deInit();
USBDevice_deInit(); // USBDevice_deInit();
return false; return false;
} }
ret = fread( dol_buffer, 1, filesize, file); ret = fread( dol_buffer, 1, filesize, file);
if (ret != filesize) { if (ret != filesize) {
free(dol_buffer); free(dol_buffer);
fclose(file); fclose(file);
SDCard_deInit(); // SDCard_deInit();
USBDevice_deInit(); // USBDevice_deInit();
return false; return false;
} }
fclose(file); fclose(file);
SDCard_deInit(); // SDCard_deInit();
USBDevice_deInit(); // USBDevice_deInit();
*buffer = dol_buffer; *buffer = dol_buffer;
*dollen = filesize; *dollen = filesize;
return true; return true;