From 8ed332bde78bbe12845106a5d97cbcc176b2b7e7 Mon Sep 17 00:00:00 2001 From: giantpune Date: Tue, 28 Jul 2009 17:22:03 +0000 Subject: [PATCH] fix the screensaver coming on when you press power on the wiimote... again. added check for GXglobal.cfg on the USB at startup. now if anny of the following are met, it will cause USB to be used as your bootDevice: argv[0] gets passed on startup and it is usb any of these files are on your USB drive. USB:/config/GXglobal.cfg || USB:/apps/usbloader_gx/boot.elf || USB:/apps/usbloadergx/boot.dol || USB:/apps/usbloadergx/boot.elf || USB:/apps/usbloader_gx/boot.dol --- gui.pnproj | 2 +- source/main.cpp | 6 ++++-- source/menu.cpp | 4 ++-- source/svnrev.c | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gui.pnproj b/gui.pnproj index eca45273..4b33436c 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/main.cpp b/source/main.cpp index d4bb9868..e32a9a74 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -72,8 +72,10 @@ main(int argc, char *argv[]) if(!bootDevice_found) { //try USB - if(checkfile((char*) "USB:/apps/usbloader_gx/boot.dol") || (checkfile((char*) "USB:/apps/usbloader_gx/boot.elf")) - || checkfile((char*) "USB:/apps/usbloadergx/boot.dol") || (checkfile((char*) "USB:/apps/usbloadergx/boot.elf"))) + //left in all the dol and elf files in this check in case this is the first time running the app and they dont have the config + if(checkfile((char*) "USB:/config/GXglobal.cfg") || (checkfile((char*) "USB:/apps/usbloader_gx/boot.elf")) + || checkfile((char*) "USB:/apps/usbloadergx/boot.dol") || (checkfile((char*) "USB:/apps/usbloadergx/boot.elf")) + || checkfile((char*) "USB:/apps/usbloader_gx/boot.dol")) strcpy(bootDevice, "USB:"); } diff --git a/source/menu.cpp b/source/menu.cpp index f1749d22..549c6ebe 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -1360,8 +1360,8 @@ int MenuDiscList() if(!IsWpadConnected() && check !=0 && Settings.screensaver!=0) { check++; int screensaverIsOn=0; - if(check==100) //to allow time for the wii to turn off and not show the screensaver - screensaverIsOn=WindowScreensaver(); + if(check==11500) //to allow time for the wii to turn off and not show the screensaver + {screensaverIsOn=WindowScreensaver();} if (screensaverIsOn==1)check=0; } covertOld=covert; diff --git a/source/svnrev.c b/source/svnrev.c index fe4921e8..b5526249 100644 --- a/source/svnrev.c +++ b/source/svnrev.c @@ -1,4 +1,4 @@ -#define SVN_REV "661:662M" +#define SVN_REV "664M" const char *GetRev() {