Hacking Forwarder with meta.xml support

FIX94

Former Staff
OP
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
Hey guys, some people want to have the source from my cfg-loader forwarder, so here it is :yaywii:
I hope it's OK to open a new thread for this...

This is the source from my Official Configurable USB Loader Forwarder v12!
No splash version:
forwarder_no_splash_v12.7z
forwarder_no_splash_v12_no_args.7z


splash version:
forwarder_splash_v12.7z
forwarder_splash_v12_no_args.7z


Everything you will need to compile it properly:

Libogc:
http://www.mediafire...xjko49x66q22jsb
Libfat:
http://www.mediafire...d99sva9i899c45b
Libntfs:
http://www.mediafire...8rbjzwtac0rngc4
Libext2fs:
http://www.mediafire...ki1axm7zuiacu87
Portlibs:
http://www.mediafire...312e4o9c57m503s

You will also need devkitppc r22/23/24 for this. devkitppc r25 and r25-1 doesnt work properly with it, so use a older one.

Features:

-NTFS, FAT32, ext2,ext3 and ext4 partition support
-IOS58 for USB 2.0 speed
-Can load from USB and SD
-Can load dol, dollz and elf files
-meta.xml arguments support
-supports 3TB+ HDD
-Using WiiXplorer forwarder base

Ext2, ext3, ext4 and NTFS partition rules:
If the loading path is set to "apps/usbloader", it must be in this folder. It doesn't work for example if the file is in "apps/USBLoader".
Folder and Files must have execute or read permissions for everyone, otherwise the forwarder will return to system menu.


Old versions:

Older Libs:
 

FIX94

Former Staff
OP
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
WiiBricker said:
Whats the differences between your forwarder and Narolez NForwarder 58?
The nforwarder is using a splash screen and the NTFS support doesn't work with it, you will also need the older devkitppc r21.
This forwarder don't use a splash screen, NTFS support works and you can use meta.xml arguments, the new devkitppc r22 will also work with it.
 
  • Like
Reactions: fagensden

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,803
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,787
Country
Cyprus
FIX94, glad to see you starting your own thread for this! I know you put a lot of work into it! Good job!

I have a request though, can you also share the source code for your forwarder that does include a splash screen (I know u got it kicking around somewhere!)?

Also, does v7 speed up the loading time from SD Cards? Or is that planned for v8?

Thx again!
 

Fox888

Well-Known Member
Member
Joined
Mar 17, 2010
Messages
430
Trophies
0
XP
195
Country
stupid Q : can this be used to make a mighty channel forwarder dol with meta support
unsure.gif
 

LocoRoco

Well-Known Member
Member
Joined
Jun 17, 2010
Messages
320
Trophies
0
XP
71
Country
Thank you

Would be great if you write more info for the not so smart peeps (me)

have an issue it comes out with fileop.c:14:18 fatal error ntfs.h no such file directory

what did i miss
 

Skater4599

Well-Known Member
Member
Joined
May 29, 2008
Messages
965
Trophies
1
Location
United States
XP
1,554
Country
United States
Thanks Fix94 for doing this, I didnt know you already made one with argumetns from meta.xml! I was going to take a look into this for Mighty Channels, saved me some work
biggrin.gif
nice work man.


@Fox888 - I'm at work now so I can't compile here but if nobody has done it when i get home later.. I'll compile this for Mighty Channels and put it into the channels floating around in that thread and post them
wink.gif
 

ichirichi

New Member
Newbie
Joined
Jan 6, 2011
Messages
3
Trophies
0
XP
1
Country
United States
Hi,
I have installed the .WAD file (I haven't downloaded and messed with the source, sorry - I don't know much about compiling code). Can you tell me what the default path that Configurable USB Loader should be? At the moment, I have it on my SD card as E:\apps\USBLoader
Is this incorrect?


Thanks
I
 

FIX94

Former Staff
OP
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
LocoRoco said:
Thank you

Would be great if you write more info for the not so smart peeps (me)

have an issue it comes out with fileop.c:14:18 fatal error ntfs.h no such file directory

what did i miss
You need the to copy the contents from the libntfs file into the libogc folder.
@ichirichi:
My forwarder is loading from apps/usbloader and apps/usbloader_cfg.
@Xflak:
It's planned and I will give it soon.
The source with splash will come soon.
@Fox888:
Yes!
 

ichirichi

New Member
Newbie
Joined
Jan 6, 2011
Messages
3
Trophies
0
XP
1
Country
United States
Hm! in that case, I am doing something wrong!
It keeps returning to the Wii Channels screen whenever I try to run it.

1. I have the latest Configurable USB loader installed and working from SD & HBC.
2. I placed the v7 forwarder WAD file in the a folder called WAD on the SD card.
3. I ran WAD Manager v1.7.
4. Accepted disclaimer.
5. selected IOs 249
6. Selected "disable" when asked to choose NAND emulator device (I am not sure if this is right).
7. Selected SD as source for WAD
8. Located the WAD and installed it.
9. Restarted.


The location of the Configurable USB Loader is in apps\usbloader.

What am I doing wrong please?
 

FIX94

Former Staff
OP
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
ichirichi said:
Hm! in that case, I am doing something wrong!
It keeps returning to the Wii Channels screen whenever I try to run it.

1. I have the latest Configurable USB loader installed and working from SD & HBC.
2. I placed the v7 forwarder WAD file in the a folder called WAD on the SD card.
3. I ran WAD Manager v1.7.
4. Accepted disclaimer.
5. selected IOs 249
6. Selected "disable" when asked to choose NAND emulator device (I am not sure if this is right).
7. Selected SD as source for WAD
8. Located the WAD and installed it.
9. Restarted.


The location of the Configurable USB Loader is in apps\usbloader.

What am I doing wrong please?
You need IOS58, get it here:
http://wiibrew.org/wiki/IOS58_Installer
 

Wiimm

Developer
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
I take a fast look into source and found this bad code (possible buffer overflow):

Code:
ÂÂÂÂchar meta_path[200];
ÂÂÂÂstrcpy(meta_path, exe_path);
better:
Code:
ÂÂÂÂchar meta_path[200];
ÂÂÂÂstrncpy(meta_path,sizeof(meta_path)-20, exe_path); // 20 bytes reserved for modifications

you can also rewrite the whole block to use the whole buffer without overrun (untested!):
Code:
void load_meta( const char *exe_path)
{
ÂÂÂÂchar meta_path[200];
ÂÂÂÂconst char *p;
ÂÂÂÂstruct stat st;

ÂÂÂÂp = strrchr(exe_path, '/');
ÂÂÂÂsnprintf( meta_path, sizeof(meta_path), "%.*smeta.xml",
ÂÂÂÂÂÂÂÂp ? p-exe_path+1 : 0, exe_path );
ÂÂÂÂÂÂÂÂ
ÂÂÂÂif (stat(meta_path, &st) != 0) {
ÂÂÂÂ....
}
 

FIX94

Former Staff
OP
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
Hey Wiimm, THANKS for looking in the code, I'm not a coder so I can't fix things like that. I will try it out later!
 

Wiimm

Developer
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
FIX94 said:
Hey Wiimm, THANKS for looking in the code, I'm not a coder so I can't fix things like that. I will try it out later!
Then let me explain "%.*s" (I know that many developers doesn't know/use this and write sometimes very complex code instead):
It's a string conversion. "%.21s" means to copy maximal 21 chars. Replacing the number with '*' means: take this int number from argument list. This int argument must be placed before the string.
 

Fox888

Well-Known Member
Member
Joined
Mar 17, 2010
Messages
430
Trophies
0
XP
195
Country
Sorry if i have bump this great thing with another stupid Q :

if i inject the dol (i just compiled )with customizemii (the default startup ios is 35) should i change that to ios 58 ??
unsure.gif


THX again for this
yaywii.gif
 

FIX94

Former Staff
OP
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
29
Location
???
XP
11,238
Country
Germany
Fox888 said:
Sorry if i have bump this great thing with another stupid Q :

if i inject the dol (i just compiled )with customizemii (the default startup ios is 35) should i change that to ios 58 ??
unsure.gif


THX again for this
yaywii.gif
Yes, this would be better! I've also uploaded a new forwarder version, it's untested but it would be great if someone could try it out!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Maximumbeans @ Maximumbeans:
    That must be rough. Productive I'm sure but hard to balance with daily life
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Indeed. I've been working on getting this Infecutus chip to work on my PS2. But after soldering, I realised that a plastic piece was missing from the power ribbon cable to the power and eject buttons.
  • SylverReZ @ SylverReZ:
    Now I could go with soldering the contacts from the cable to the connector on the mobo, but doesn't sound like a good permanent solution.
  • Maximumbeans @ Maximumbeans:
    Man, that's beyond my brain :rofl: I'm no good with hardware for now. I'd like to get into hardmods in future though
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Maybe start practice soldering. Get a cheap-ass soldering iron and follow some good YouTube tutorials.
    +1
  • SylverReZ @ SylverReZ:
    Least my experience has gotten better than over a decade ago. My iron would constantly bump into components and break them.
  • Maximumbeans @ Maximumbeans:
    Sounds good. I actually did soldering but like 16 years ago for school so uuuuh probably rusty haha
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Same here. I did soldering at school from a teacher who I honestly liked since he had plenty of good electronics experience.
    +1
  • Maximumbeans @ Maximumbeans:
    I wish I could play chess well
    +1
  • Maximumbeans @ Maximumbeans:
    Useless but a true art
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I had a friend who had a glass chess set for their birthday.
  • SylverReZ @ SylverReZ:
    It was like all clear and fancy. Tbf I'm not too experienced with chess, but would like to learn someday.
  • Maximumbeans @ Maximumbeans:
    That sounds really cool
  • Maximumbeans @ Maximumbeans:
    I know the basics but no strategy at all :rofl:
    +1
  • Veho @ Veho:
    Watch chess streamers on Twitch and you'll pick up a thing or two.
    +1
  • Veho @ Veho:
    Not to mention there's an infinite number of chess games for every possible platform.
    +1
  • DinohScene @ DinohScene:
    just play it, get beaten a few times and start dominating
    +1
  • K3Nv2 @ K3Nv2:
    Nude chess is best
    +1
  • DinohScene @ DinohScene:
    strip checkers > nude chess
    +1
  • K3Nv2 @ K3Nv2:
    Nude checkers get jumped
    +1
  • SylverReZ @ SylverReZ:
    @Veho, I guess you'd pick up something while watching tub streams.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Dick fights. :tpi:
  • Veho @ Veho:
    Turkish olive oil wrestling.
    +1
  • K3Nv2 @ K3Nv2:
    Well I believe I'm about to get hit with a spring sinus infuction
    K3Nv2 @ K3Nv2: Well I believe I'm about to get hit with a spring sinus infuction