From f364aaa96442faeadfa1eca30a0ff94202ce99f1 Mon Sep 17 00:00:00 2001 From: giantpune Date: Fri, 11 Dec 2009 06:31:05 +0000 Subject: [PATCH] remove more SD and USB shutdown and startup, which broke cheating when using alt dol from sd/usb --- HBC/META.XML | 4 ++-- source/usbloader/alternatedol.c | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/HBC/META.XML b/HBC/META.XML index 6d635ef2..be2f4f94 100644 --- a/HBC/META.XML +++ b/HBC/META.XML @@ -2,8 +2,8 @@ USB Loader GX USB Loader GX Team - 1.0 r855 - 200912110109 + 1.0 r856 + 200912110630 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/source/usbloader/alternatedol.c b/source/usbloader/alternatedol.c index ff4f6686..f5199529 100644 --- a/source/usbloader/alternatedol.c +++ b/source/usbloader/alternatedol.c @@ -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;