Hacking USB Loader1.1 + Power Button Fix

hungyip84

Well-Known Member
OP
Member
Joined
Mar 5, 2007
Messages
470
Trophies
0
XP
126
Country
United States
Hi,

Here is my updated version of usb loader, which merge almost everything together.

Here is the default menu: (by raptor1010)

3129tvk.png


Power Button code dump is fixed!

Here is the special control:

button 1: force NTSC (or force PAL)
button 2: toggle language

Put all image files to SD:/images/
If the loader could not find noimage.png and bg.png, it will use the one default by the loader.


If someone want to have WiiShizzza's background, I could make a version that fit that background too.

Here is the link (SD bug should be fixed)

NTSC:
http://sharebee.com/840f0eba
PAL:
http://sharebee.com/ef50a18c

Thanks =)
 

hungyip84

Well-Known Member
OP
Member
Joined
Mar 5, 2007
Messages
470
Trophies
0
XP
126
Country
United States
usptactical said:
Sigh...this still has the long filename bug and looks like it doesn't have the SD fix.

Could you tell me more about the SD fix and the long filename bug?

Here is the default menu: (by raptor1010)

3129tvk.png
 

56killer

Well-Known Member
Member
Joined
Jul 20, 2008
Messages
137
Trophies
0
Website
Visit site
XP
68
Country
hungyip84 said:
usptactical said:
Sigh...this still has the long filename bug and looks like it doesn't have the SD fix.

Could you tell me more about the SD fix and the long filename bug?

Here is the default menu: (by raptor1010)

3129tvk.png
Here I fix the long file name bug and also the sd bug but I don't have time to test it.

http://sharebee.com/396b5e4d
 

hungyip84

Well-Known Member
OP
Member
Joined
Mar 5, 2007
Messages
470
Trophies
0
XP
126
Country
United States
56killer said:
hungyip84 said:
usptactical said:
Sigh...this still has the long filename bug and looks like it doesn't have the SD fix.

Could you tell me more about the SD fix and the long filename bug?

Here is the default menu: (by raptor1010)

3129tvk.png
Here I fix the long file name bug and also the sd bug but I don't have time to test it.

http://sharebee.com/396b5e4d

Thanks for fixing!

I will test it out now.

BTW, should I include

fatUnmount("sd");
__io_wiisd.shutdown();

before every return code in fst.c? I see that some return routine don't have these 2 lines of code
 

hungyip84

Well-Known Member
OP
Member
Joined
Mar 5, 2007
Messages
470
Trophies
0
XP
126
Country
United States
QUOTE said:
Thanks for fixing!

I will test it out now.

BTW, should I include

fatUnmount("sd");
__io_wiisd.shutdown();

before every return code in fst.c? I see that some return routine don't have these 2 lines of code

Just tried it out. It could not load the image.
 

56killer

Well-Known Member
Member
Joined
Jul 20, 2008
Messages
137
Trophies
0
Website
Visit site
XP
68
Country
hungyip84 said:
QUOTE said:
Thanks for fixing!

I will test it out now.

BTW, should I include

fatUnmount("sd");
__io_wiisd.shutdown();

before every return code in fst.c? I see that some return routine don't have these 2 lines of code

Just tried it out. It could not load the image.

which ones?
 

hungyip84

Well-Known Member
OP
Member
Joined
Mar 5, 2007
Messages
470
Trophies
0
XP
126
Country
United States
56killer said:
hungyip84 said:
QUOTE said:
Thanks for fixing!

I will test it out now.

BTW, should I include

fatUnmount("sd");
__io_wiisd.shutdown();

before every return code in fst.c? I see that some return routine don't have these 2 lines of code

Just tried it out. It could not load the image.

which ones?

Both cover arts and the background image.
 

56killer

Well-Known Member
Member
Joined
Jul 20, 2008
Messages
137
Trophies
0
Website
Visit site
XP
68
Country
I don't know how to set the apps/"loader"/ to load the images from there but you can change.

In menu.c
QUOTE said:
char imgPath[20];

and

snprintf(imgPath, sizeof(imgPath), "./images/%c%c%c%c%c%c.png", ascii(header->id[0]), ascii(header->id[1]), ascii(header->id[2]), ascii(header->id[3]), ascii(header->id[4]), ascii(header->id[5]));

To
QUOTE said:
char imgPath[30];

and

snprintf(imgPath, sizeof(imgPath), "sd:/images/%c%c%c%c%c%c.png", ascii(header->id[0]), ascii(header->id[1]), ascii(header->id[2]), ascii(header->id[3]), ascii(header->id[4]), ascii(header->id[5]));


Check If it works but images should go in root in folder images.

Posts merged

And

QUOTE said:
ctx = PNGU_SelectImageFromDevice("./images/noimage.png");

To

QUOTE said:
ctx = PNGU_SelectImageFromDevice("sd:/images/noimage.png");

In usb-loader.c
QUOTE
ctx = PNGU_SelectImageFromDevice("images/bg.png");

To
QUOTE
ctx = PNGU_SelectImageFromDevice("sd:/images/bg.png");
 

56killer

Well-Known Member
Member
Joined
Jul 20, 2008
Messages
137
Trophies
0
Website
Visit site
XP
68
Country
Sorry for triple post.

I'm going to sleep now its 12:42 am here in Puerto Rico and will check what else I can do or see other people fixes tomorrow.
 

WiiShizzza

Graphics juggler
Member
Joined
Oct 10, 2008
Messages
1,201
Trophies
1
Website
Visit site
XP
241
Country
Gambia, The
56killer said:
Sorry for triple post.

I'm going to sleep now its 12:42 am here in Puerto Rico and will check what else I can do or see other people fixes tomorrow.

Sounds like a good idea
smile.gif

Take a rest. same do I.

G.Night
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Sicklyboy @ Sicklyboy: @K3Nv2, 192.168.1.224