Hacking USB Loader... my turn ;)

  • Thread starter Thread starter WiiShizzza
  • Start date Start date
  • Views Views 817,608
  • Replies Replies 4,239
TeenTin said:
dgtor said:
Yes, I do, but I can´t see the cover image.

WBFS TOOL loads cover image, so it´s ok.

I don´t know what to do...

What is the colour depth of your images ?


24 (I had downloaded this pack ---> 400_PAL_Will_Covers_v1)
 
@ Kedest: di try adding #include in "apploader.c" ?

@ Wishezzza: Does your last .dol work with the Kedest's Forwarder ? seems not...
 
To everyone playing with the code, I'm seeing this in most of the sources I've grabbed (in menu.c):

Code:
snprintf(imgPath, sizeof(imgPath), "images/noimage.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]));
ctx = PNGU_SelectImageFromDevice(imgPath);

This is probably throwing a warning about missing params (or too many). This can be changed to:

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

That will get rid of the warnings.

@atupac: the #include in "apploader.c" addition will get rid of the memset warning in apploader. I believe he's seeing the warning because of the extra params.
 
ChronoX_ said:
Looks great WiiShizzza, could you also make a version without Ocarina? for the non cheaters here? :-)
Why should he? If you don't have any code files on your SD card it's only logical that the Ocarina option can't apply any codes - so your games are "non cheated" anyway.
biggrin.gif
 
I'm at work now so I don't have the source in front of me to check. Could you post the offending lines? In an older version I loaded last night, I was getting errors for those params and my change fixed it.

thanks!


-edit-
nevermind then
wink.gif
 
Yeah, fixed it.

you also got a solution for following warning?

Code:
/menu.c:278: warning: suggest explicit braces to avoid ambiguous 'else'
/menu.c:287: warning: suggest explicit braces to avoid ambiguous 'else'


CODEÂÂÂÂ/* LEFT/RIGHT buttons */
ÂÂÂÂif (buttons & WPAD_BUTTON_LEFT)
ÂÂÂÂÂÂÂÂ//__Menu_MoveEntry(-ENTRIES_PER_PAGE);
ÂÂÂÂÂÂÂÂÂÂÂÂif(langsel > 0){
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂlangsel --;
ÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂelse{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂlangsel = 10;
ÂÂÂÂÂÂÂÂÂÂÂÂ}

ÂÂÂÂif (buttons & WPAD_BUTTON_RIGHT)
ÂÂÂÂÂÂÂÂ//__Menu_MoveEntry(ENTRIES_PER_PAGE);
ÂÂÂÂÂÂÂÂÂÂÂÂif(langsel
 
@WiiShizzza: just about the games list, when i scroll up or down with + button the the games list seems refreshing anormally (maybe cause of acces to HD for infos...) ! Have same problem Artefact??
 
yeah, you need brackets around the parent if statements:

like this:
CODEÂÂÂÂif (buttons & WPAD_BUTTON_LEFT) {
ÂÂÂÂÂÂÂÂ//__Menu_MoveEntry(-ENTRIES_PER_PAGE);
ÂÂÂÂÂÂÂÂÂÂÂÂif(langsel > 0){
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂlangsel --;
ÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂelse{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂlangsel = 10;
ÂÂÂÂÂÂÂÂÂÂÂÂ}
}

ÂÂÂÂif (buttons & WPAD_BUTTON_RIGHT) {
ÂÂÂÂÂÂÂÂ//__Menu_MoveEntry(ENTRIES_PER_PAGE);
ÂÂÂÂÂÂÂÂÂÂÂÂif(langsel 0){
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂlangsel --;
ÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂelse{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂlangsel = 10;
ÂÂÂÂÂÂÂÂÂÂÂÂ}
}

ÂÂÂÂif (buttons & WPAD_BUTTON_RIGHT) {
ÂÂÂÂÂÂÂÂ//__Menu_MoveEntry(ENTRIES_PER_PAGE);
ÂÂÂÂÂÂÂÂÂÂÂÂif(langsel
 
Yep. You're right!

After those fixes the source at least compiles without warnings or errors.
So id there's anyone who can fix ocarina without loosing any other feature, feel free
to contribute.

@usptactical
Greet you're helping out a noob. I guess I'm making good effort in learning coding.
ATM I'm thinking if I should go and visit some school to really learn coding.

atupac said:
@WiiShizzza: just about the games list, when i scroll up or down with + button the the games list seems refreshing anormally (maybe cause of acces to HD for infos...) ! Have same problem Artefact??

I don't have such artefacts. But could be if you got a title with more then 36 letters in your title list.
 
ChronoX_ said:
Looks great WiiShizzza, could you also make a version without Ocarina? for the non cheaters here? :-)

Easily got rid of Ocarina: PM me if you want the DOL and / or the source (which won't give any error upon compiling) so we don't flood ShizZza's thread with "useless" stuff!
BTW my dol has a black console so we can make dark themes...

Thanks for the loader anyway ShizZa this is awesome!
The only issue is that I get a green screen when trying to launch Tatsunoko VS. Capcom!
 
Heathcliff said:
ChronoX_ said:
Looks great WiiShizzza, could you also make a version without Ocarina? for the non cheaters here? :-)

Easily got rid of Ocarina: PM me if you want the DOL and / or the source (which won't give any error upon compiling) so we don't flood ShizZza's thread with "useless" stuff!
BTW my dol has a black console so we can make dark themes...

Thanks for the loader anyway ShizZa this is awesome!
The only issue is that I get a green screen when trying to launch Tatsunoko VS. Capcom!


check ur pm dude
smile.gif
 
@ WaRMarinE: do you make Backgrounds with Guimp or photoshop ?

Would nice an animated Background made on the base of a MacOSX nova image.gif ^^

tks
 

Site & Scene News

Popular threads in this forum