Calling all forwarder makers: We want meta.xml support

Discussion in 'Wii - Backup Loaders' started by Dr. Clipper, Sep 3, 2010.

  1. Dr. Clipper
    OP

    Member Dr. Clipper GBAtemp Addict

    Joined:
    Aug 28, 2007
    Messages:
    2,487
    Country:
    Australia
    We need some new forwarders for Cfg (and the other USB Loaders could likely benefit too). HBC now supports command line options by including them within meta.xml in the same directory as boot.dol. Using that, we could get the same functionality that was previously only possible via having two Cfg types (the plain and -222 releases).

    We'd like to kill off the need for the -222 releases and go back to a single version, but that needs new forwarders that read meta.xml and feed Cfg the correct argument string. The format is easy to parse, so it shouldn't be too hard to code, and it gives us a lot of benefits. The arguments appear in meta.xml like this:


    ios=222-mload


    The forwarder would then just need to launch Cfg with "sd:/apps/USBLoader/boot.dol ios=222-mload" as if were the command line. If further arguments appeared within the block, they just get listed in the argv arguments the same way. In this manner, both HBC and the forwarder will launch Cfg the same way, so it doesn't matter how the user set things up.

    If we can get some forwarders that support this feature, even if it's just one forwarder, that'd be great. It'll makes things so much simpler to still be able to have the benefit of the -222 launching without the double releases of each Cfg version.

    Please indicate if you plan to work on this in the thread, and if more information is needed, we're happy to help.
     
  2. Slimmmmmm

    Member Slimmmmmm GBAtemp MoNkEeE

    Joined:
    Nov 1, 2007
    Messages:
    1,687
    Location:
    the land of lol
    Country:
    United Kingdom
    BUMP

    c'mon people surely someone is good with this ?

    You can get the Narolez forwarder source here:
    http://code.google.com/p/crapwii/source/br...olez-NForwarder
    and edit it to read the xml (no clue of where to find short simple read xml code)

    It shouldn't be too hard, I would try but I'm only just starting to learn about passing arguments myself and have no experience with parsing xml.

    So be brave and give it a try or at least bump this topic to keep it a little alive for the time being.
     
  3. Dr. Clipper
    OP

    Member Dr. Clipper GBAtemp Addict

    Joined:
    Aug 28, 2007
    Messages:
    2,487
    Country:
    Australia
    You don't even have to fully parse the XML. Just search for lines with followed by and the strings between each pair of tags are your arguments.
     

Share This Page