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)
{
#ifdef HW_RVL
/*if(isMounted[METHOD_SD])
if(isMounted[METHOD_SD])
{
if(!sd->isInserted()) // check if the device was removed
{
@ -82,11 +82,11 @@ devicecallback (void *arg)
isMounted[METHOD_USB] = false;
}
}
*/
InitializeNetwork(SILENT);
UpdateCheck();
#else
/*if(isMounted[METHOD_SD_SLOTA])
if(isMounted[METHOD_SD_SLOTA])
{
if(!carda->isInserted()) // check if the device was removed
{
@ -101,7 +101,7 @@ devicecallback (void *arg)
unmountRequired[METHOD_SD_SLOTB] = true;
isMounted[METHOD_SD_SLOTB] = false;
}
}*/
}
#endif
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");
printf("loading %s", fullpath);
sleep(2);
if (file > 0)
{
if(length > 0 && length <= 2048) // do a partial read (eg: to check file header)