From 5011115304b2b5d587dc86ff2e697a466bbb2d80 Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Tue, 19 May 2009 00:46:14 +0000 Subject: [PATCH] *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. --- gui.pnproj | 2 +- source/disc.c | 2 +- source/fatmounter.c | 5 +++-- source/menu.cpp | 6 ------ 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/gui.pnproj b/gui.pnproj index c563516b..b6996f1d 100644 --- a/gui.pnproj +++ b/gui.pnproj @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/source/disc.c b/source/disc.c index 19a48097..a7a67185 100644 --- a/source/disc.c +++ b/source/disc.c @@ -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)); diff --git a/source/fatmounter.c b/source/fatmounter.c index 9a8896b1..85f7a2f2 100644 --- a/source/fatmounter.c +++ b/source/fatmounter.c @@ -1,9 +1,10 @@ #include +#include #include #include +#include #include #include -#include #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; } diff --git a/source/menu.cpp b/source/menu.cpp index 7ca90793..7ddf83ac 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -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++; }