Forwarder with meta.xml support

Discussion in 'Wii - Hacking' started by FIX94, Jan 6, 2011.

Jan 6, 2011

Forwarder with meta.xml support by FIX94 at 3:14 PM (66,492 Views / 4 Likes) 97 replies

  1. FIX94
    OP

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,531
    Location:
    ???
    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:
     


  2. WiiUBricker

    Member WiiUBricker Insert Custom Title

    Joined:
    Sep 19, 2009
    Messages:
    5,818
    Location:
    Espresso
    Country:
    Argentina
    Whats the differences between your forwarder and Narolez NForwarder 58?
     
  3. FIX94
    OP

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,531
    Location:
    ???
    Country:
    Germany
    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.
     
    fagensden likes this.
  4. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    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!
     
  5. Fox888

    Member Fox888 GBAtemp Fan

    Joined:
    Mar 17, 2010
    Messages:
    433
    Country:
    Denmark
    stupid Q : can this be used to make a mighty channel forwarder dol with meta support [​IMG]
     
  6. LocoRoco

    Member LocoRoco GBAtemp Fan

    Joined:
    Jun 17, 2010
    Messages:
    320
    Country:
    Australia
    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
     
  7. Skater4599

    Member Skater4599 GBAtemp Advanced Fan

    Joined:
    May 29, 2008
    Messages:
    939
    Location:
    United States
    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 [​IMG] 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 [​IMG]
     
  8. ichirichi

    Newcomer ichirichi Newbie

    Joined:
    Jan 6, 2011
    Messages:
    3
    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
     
  9. FIX94
    OP

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,531
    Location:
    ???
    Country:
    Germany
    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!
     
  10. ichirichi

    Newcomer ichirichi Newbie

    Joined:
    Jan 6, 2011
    Messages:
    3
    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?
     
  11. Fox888

    Member Fox888 GBAtemp Fan

    Joined:
    Mar 17, 2010
    Messages:
    433
    Country:
    Denmark
    Skater4599 thank you so much [​IMG]

    Fix94 thank you so much for sharing this [​IMG]
     
  12. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
  13. comfaithgenesisr

    Member comfaithgenesisr GBAtemp Regular

    Joined:
    Nov 11, 2009
    Messages:
    229
    Location:
    Internet
    Country:
    United Kingdom
  14. FIX94
    OP

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,531
    Location:
    ???
    Country:
    Germany
    You need IOS58, get it here:
    http://wiibrew.org/wiki/IOS58_Installer
     
  15. ichirichi

    Newcomer ichirichi Newbie

    Joined:
    Jan 6, 2011
    Messages:
    3
    Country:
    United States
    Cheers FIX94. Will try it later! Keep up the great work
     
  16. Wiimm

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    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) {
    ÂÂÂÂ....
    }
     
  17. FIX94
    OP

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,531
    Location:
    ???
    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!
     
  18. Wiimm

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,051
    Location:
    Germany
    Country:
    Germany
    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.
     
  19. Fox888

    Member Fox888 GBAtemp Fan

    Joined:
    Mar 17, 2010
    Messages:
    433
    Country:
    Denmark
    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 ?? [​IMG]

    THX again for this [​IMG]
     
  20. FIX94
    OP

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,531
    Location:
    ???
    Country:
    Germany
    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!
     

Share This Page