revert more changes

This commit is contained in:
dborth 2009-02-08 21:30:39 +00:00
parent 4e1004660f
commit 9bd13dceb6

View File

@ -65,7 +65,7 @@ devicecallback (void *arg)
while (1) while (1)
{ {
#ifdef HW_RVL #ifdef HW_RVL
/*if(isMounted[METHOD_SD]) if(isMounted[METHOD_SD])
{ {
if(!sd->isInserted()) // check if the device was removed if(!sd->isInserted()) // check if the device was removed
{ {
@ -82,11 +82,11 @@ devicecallback (void *arg)
isMounted[METHOD_USB] = false; isMounted[METHOD_USB] = false;
} }
} }
*/
InitializeNetwork(SILENT); InitializeNetwork(SILENT);
UpdateCheck(); UpdateCheck();
#else #else
/*if(isMounted[METHOD_SD_SLOTA]) if(isMounted[METHOD_SD_SLOTA])
{ {
if(!carda->isInserted()) // check if the device was removed if(!carda->isInserted()) // check if the device was removed
{ {
@ -101,7 +101,7 @@ devicecallback (void *arg)
unmountRequired[METHOD_SD_SLOTB] = true; unmountRequired[METHOD_SD_SLOTB] = true;
isMounted[METHOD_SD_SLOTB] = false; isMounted[METHOD_SD_SLOTB] = false;
} }
}*/ }
#endif #endif
usleep(500000); // suspend thread for 1/2 sec usleep(500000); // suspend thread for 1/2 sec
} }
@ -428,9 +428,6 @@ LoadFile (char * rbuffer, char *filepath, u32 length, int method, bool silent)
file = fopen (fullpath, "rb"); file = fopen (fullpath, "rb");
printf("loading %s", fullpath);
sleep(2);
if (file > 0) if (file > 0)
{ {
if(length > 0 && length <= 2048) // do a partial read (eg: to check file header) if(length > 0 && length <= 2048) // do a partial read (eg: to check file header)