*Updated to the newest libogc. If you want to compile download newest devkit 1.5.0 and extract the new libogc from our download section into that folder.

This commit is contained in:
dimok321 2009-05-19 00:46:14 +00:00
parent 13db58ebeb
commit 5011115304
4 changed files with 5 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -136,7 +136,7 @@ void __Disc_SetVMode(u8 videoselected)
void __Disc_SetTime(void)
{
/* Extern */
extern void settime(long long);
extern void settime(u64);
/* Set proper time */
settime(secs_to_ticks(time(NULL) - 946684800));

View File

@ -1,9 +1,10 @@
#include <fat.h>
#include <sys/dir.h>
#include <ogc/lwp_watchdog.h>
#include <ogc/mutex.h>
#include <ogc/system.h>
#include <ogc/usbstorage.h>
#include <sdcard/wiisd_io.h>
#include <sys/dir.h>
#define CACHE 8
@ -13,7 +14,7 @@ int USBDevice_Init()
//right now only mounts first partition and only under IOS36
__io_usbstorage.startup();
if (fatMount("USB", &__io_usbstorage, 0, CACHE)) {
if (fatMountSimple("USB", &__io_usbstorage)) {
return 1;
}

View File

@ -1978,11 +1978,8 @@ ProgressDownloadWindow(int choice2)
while (i < cntMissFiles) {
sprintf(prozent, "%i%%", 100*i/cntMissFiles);
prTxt.SetText(prozent);
//prTxt.SetFont(fontClock);
if ((Settings.wsprompt == yes) && (CFG.widescreen)){/////////////adjust for widescreen
progressbarImg.SetPosition(80,40);
@ -2024,13 +2021,10 @@ ProgressDownloadWindow(int choice2)
// save png to sd card
FILE *pfile;
pfile = fopen(imgPath, "wb");
if (!pfile)
return -1;
fwrite(file.data,1,file.size,pfile);
fclose (pfile);
free(file.data);
}
i++;
}