mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
*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:
parent
13db58ebeb
commit
5011115304
File diff suppressed because one or more lines are too long
@ -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));
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user