Heya maties!
I had gotten the same idea as nicksasa, and just had it working, when I saw his post about it; so I kept quiet. People do, however, seem bugged by the "Loading ..." text in nicksasa's loader.
So, because I got a few requests by PM, here is a recompile of USB-Loader 1.1 with all menucode stripped out that boots RSPP01 (Wii Sports Europe (Condom Version)). Just hexedit the wanted gameid into place and it works. At least for me, on 4.0E / 480p, i get a millisecond flash of green screen while booting; dont know why, and I actually don't care. =)
http://rapidshare.com/files/217199377/RSPP01.dol (And yes, this is on a premium account, so it won't go away after 10 downloads.)
Please give little credit--not much needed--if you release channels publicly based on this.Source can be made available on request, but it's basically just menu code stripped out and hardcoded boot code moved to the main loop.
EDIT
Since mousex made an epic fail at being a smart ass regarding the GPL, here's a diff of my edits to spare others from doing the same thing:
CODE--- ../USB-Loader_v1.1/source/usb-loader.cÂÂÂÂ2009-03-30 13:37:00.000000000 +0200
+++ source/usb-loader.cÂÂÂÂ2009-04-04 21:46:55.000000000 +0200
@@ -2,7 +2,6 @@
#include
#include "disc.h"
-#include "menu.h"
#include "restart.h"
#include "sys.h"
#include "video.h"
@@ -15,34 +14,6 @@
#define CONSOLE_WIDTHÂÂÂÂÂÂÂÂ340
#define CONSOLE_HEIGHTÂÂÂÂÂÂÂÂ218
-
-void Background_Show(void)
-{
-ÂÂÂÂextern char bgData[];
-
-ÂÂÂÂPNGUPROP imgProp;
-ÂÂÂÂIMGCTX ctx;
-
-ÂÂÂÂs32 ret;
-
-ÂÂÂÂ/* Select PNG data */
-ÂÂÂÂctx = PNGU_SelectImageFromBuffer(bgData);
-ÂÂÂÂif (!ctx)
-ÂÂÂÂÂÂÂÂreturn;
-
-ÂÂÂÂ/* Get image properties */
-ÂÂÂÂret = PNGU_GetImageProperties(ctx, &imgProp);
-ÂÂÂÂif (ret != PNGU_OK)
-ÂÂÂÂÂÂÂÂreturn;
-
-ÂÂÂÂ/* Draw image */
-ÂÂÂÂVideo_DrawPng(ctx, imgProp, 0, 0);
-
-ÂÂÂÂ/* Free image context */
-ÂÂÂÂPNGU_ReleaseImageContext(ctx);
-}
-
-
int main(int argc, char **argv)
{
ÂÂÂÂs32 ret;
@@ -60,7 +31,7 @@
ÂÂÂÂCon_Init(CONSOLE_XCOORD, CONSOLE_YCOORD, CONSOLE_WIDTH, CONSOLE_HEIGHT);
-ÂÂÂÂ/* Show background */
-ÂÂÂÂBackground_Show();
ÂÂÂÂ/* Initialize Wiimote subsystem */
ÂÂÂÂWpad_Init();
@@ -85,8 +56,18 @@
ÂÂÂÂÂÂÂÂgoto out;
ÂÂÂÂ}
-ÂÂÂÂ/* Menu loop */
-ÂÂÂÂMenu_Loop();
+
+ÂÂÂÂDisc_SetUSB("RSPP01");
+ÂÂÂÂret = Disc_Open();
+ÂÂÂÂÂÂÂÂif (ret < 0) {
+ÂÂÂÂÂÂÂÂprintf("ÂÂÂÂERROR: Could not open game! (ret = %d)\n", ret);
+ÂÂÂÂÂÂÂÂgoto out;
+ÂÂÂÂ}
+
+ÂÂÂÂ/* Boot Wii disc */
+ÂÂÂÂDisc_WiiBoot();
+ÂÂÂÂprintf("ÂÂÂÂReturned! (ret = %d)\n", ret);
+
out:
ÂÂÂÂ/* Restart */
EDIT2
Since mousex doesn't trust the diff/patch system, here is the tarball: http://rapidshare.com/files/217576952/USB-...01_autoboot.tgz
I had gotten the same idea as nicksasa, and just had it working, when I saw his post about it; so I kept quiet. People do, however, seem bugged by the "Loading ..." text in nicksasa's loader.
So, because I got a few requests by PM, here is a recompile of USB-Loader 1.1 with all menucode stripped out that boots RSPP01 (Wii Sports Europe (Condom Version)). Just hexedit the wanted gameid into place and it works. At least for me, on 4.0E / 480p, i get a millisecond flash of green screen while booting; dont know why, and I actually don't care. =)
http://rapidshare.com/files/217199377/RSPP01.dol (And yes, this is on a premium account, so it won't go away after 10 downloads.)
Please give little credit--not much needed--if you release channels publicly based on this.
EDIT
Since mousex made an epic fail at being a smart ass regarding the GPL, here's a diff of my edits to spare others from doing the same thing:
CODE--- ../USB-Loader_v1.1/source/usb-loader.cÂÂÂÂ2009-03-30 13:37:00.000000000 +0200
+++ source/usb-loader.cÂÂÂÂ2009-04-04 21:46:55.000000000 +0200
@@ -2,7 +2,6 @@
#include
#include "disc.h"
-#include "menu.h"
#include "restart.h"
#include "sys.h"
#include "video.h"
@@ -15,34 +14,6 @@
#define CONSOLE_WIDTHÂÂÂÂÂÂÂÂ340
#define CONSOLE_HEIGHTÂÂÂÂÂÂÂÂ218
-
-void Background_Show(void)
-{
-ÂÂÂÂextern char bgData[];
-
-ÂÂÂÂPNGUPROP imgProp;
-ÂÂÂÂIMGCTX ctx;
-
-ÂÂÂÂs32 ret;
-
-ÂÂÂÂ/* Select PNG data */
-ÂÂÂÂctx = PNGU_SelectImageFromBuffer(bgData);
-ÂÂÂÂif (!ctx)
-ÂÂÂÂÂÂÂÂreturn;
-
-ÂÂÂÂ/* Get image properties */
-ÂÂÂÂret = PNGU_GetImageProperties(ctx, &imgProp);
-ÂÂÂÂif (ret != PNGU_OK)
-ÂÂÂÂÂÂÂÂreturn;
-
-ÂÂÂÂ/* Draw image */
-ÂÂÂÂVideo_DrawPng(ctx, imgProp, 0, 0);
-
-ÂÂÂÂ/* Free image context */
-ÂÂÂÂPNGU_ReleaseImageContext(ctx);
-}
-
-
int main(int argc, char **argv)
{
ÂÂÂÂs32 ret;
@@ -60,7 +31,7 @@
ÂÂÂÂCon_Init(CONSOLE_XCOORD, CONSOLE_YCOORD, CONSOLE_WIDTH, CONSOLE_HEIGHT);
-ÂÂÂÂ/* Show background */
-ÂÂÂÂBackground_Show();
ÂÂÂÂ/* Initialize Wiimote subsystem */
ÂÂÂÂWpad_Init();
@@ -85,8 +56,18 @@
ÂÂÂÂÂÂÂÂgoto out;
ÂÂÂÂ}
-ÂÂÂÂ/* Menu loop */
-ÂÂÂÂMenu_Loop();
+
+ÂÂÂÂDisc_SetUSB("RSPP01");
+ÂÂÂÂret = Disc_Open();
+ÂÂÂÂÂÂÂÂif (ret < 0) {
+ÂÂÂÂÂÂÂÂprintf("ÂÂÂÂERROR: Could not open game! (ret = %d)\n", ret);
+ÂÂÂÂÂÂÂÂgoto out;
+ÂÂÂÂ}
+
+ÂÂÂÂ/* Boot Wii disc */
+ÂÂÂÂDisc_WiiBoot();
+ÂÂÂÂprintf("ÂÂÂÂReturned! (ret = %d)\n", ret);
+
out:
ÂÂÂÂ/* Restart */
EDIT2
Since mousex doesn't trust the diff/patch system, here is the tarball: http://rapidshare.com/files/217576952/USB-...01_autoboot.tgz