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)
|
void __Disc_SetTime(void)
|
||||||
{
|
{
|
||||||
/* Extern */
|
/* Extern */
|
||||||
extern void settime(long long);
|
extern void settime(u64);
|
||||||
|
|
||||||
/* Set proper time */
|
/* Set proper time */
|
||||||
settime(secs_to_ticks(time(NULL) - 946684800));
|
settime(secs_to_ticks(time(NULL) - 946684800));
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
#include <fat.h>
|
#include <fat.h>
|
||||||
|
#include <sys/dir.h>
|
||||||
#include <ogc/lwp_watchdog.h>
|
#include <ogc/lwp_watchdog.h>
|
||||||
#include <ogc/mutex.h>
|
#include <ogc/mutex.h>
|
||||||
|
#include <ogc/system.h>
|
||||||
#include <ogc/usbstorage.h>
|
#include <ogc/usbstorage.h>
|
||||||
#include <sdcard/wiisd_io.h>
|
#include <sdcard/wiisd_io.h>
|
||||||
#include <sys/dir.h>
|
|
||||||
|
|
||||||
#define CACHE 8
|
#define CACHE 8
|
||||||
|
|
||||||
@ -13,7 +14,7 @@ int USBDevice_Init()
|
|||||||
//right now only mounts first partition and only under IOS36
|
//right now only mounts first partition and only under IOS36
|
||||||
__io_usbstorage.startup();
|
__io_usbstorage.startup();
|
||||||
|
|
||||||
if (fatMount("USB", &__io_usbstorage, 0, CACHE)) {
|
if (fatMountSimple("USB", &__io_usbstorage)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1978,11 +1978,8 @@ ProgressDownloadWindow(int choice2)
|
|||||||
|
|
||||||
while (i < cntMissFiles) {
|
while (i < cntMissFiles) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sprintf(prozent, "%i%%", 100*i/cntMissFiles);
|
sprintf(prozent, "%i%%", 100*i/cntMissFiles);
|
||||||
prTxt.SetText(prozent);
|
prTxt.SetText(prozent);
|
||||||
//prTxt.SetFont(fontClock);
|
|
||||||
|
|
||||||
if ((Settings.wsprompt == yes) && (CFG.widescreen)){/////////////adjust for widescreen
|
if ((Settings.wsprompt == yes) && (CFG.widescreen)){/////////////adjust for widescreen
|
||||||
progressbarImg.SetPosition(80,40);
|
progressbarImg.SetPosition(80,40);
|
||||||
@ -2024,13 +2021,10 @@ ProgressDownloadWindow(int choice2)
|
|||||||
// save png to sd card
|
// save png to sd card
|
||||||
FILE *pfile;
|
FILE *pfile;
|
||||||
pfile = fopen(imgPath, "wb");
|
pfile = fopen(imgPath, "wb");
|
||||||
if (!pfile)
|
|
||||||
return -1;
|
|
||||||
fwrite(file.data,1,file.size,pfile);
|
fwrite(file.data,1,file.size,pfile);
|
||||||
fclose (pfile);
|
fclose (pfile);
|
||||||
free(file.data);
|
free(file.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user