My GC IPL plan;

Discussion in 'Nintendo Game Development' started by splith, Jun 18, 2011.

  1. splith

    splith Resolute Member

    Joined:
    May 2, 2010
    Messages:
    997
    Likes Received:
    4
    I'm liking the idea of the Swiss IPL replacement for GC...
    The only problem with it is that it's 3MB, quite clearly bigger than the 45KB allowed for viper plugins.

    So my idea was to strip out all the un-needed crap and make it 45KB, but I've found that's kinda on the edge of impossible so my new idea is to have an SD card in slot B with swiss on it, and to edit the swiss code and make a tiny 45KB 'sd-file loading' thing from the source which will basically start as a plugin and then instantly run swiss from the SD card.

    So far I've got the filesize of swiss down to 127KB when compressed using dollz3, much better than the starting 3MB, but still way too big, as my knowledge of C/C++ is basically nothing I'm wondering if anyone would like to help out with this project? Next thing to go is the graphics mode and fonts, which seems quite complex to me.

    [And for those saying 'why not use SDLoad' - SDload is locked to Slot A thus making it entirely useless, plus it only supports FAT16 formatted cards where-as Swiss supports SD and SDHC cards using a faster bus formatted as FAT16 or FAT32]
     
  2. emu_kidid

    emu_kidid Enthusiastic Member

    Joined:
    Jun 28, 2008
    Messages:
    524
    Likes Received:
    23
    splith, I've had something like this in the pipeline for a while.. it'd take me a few hours to write it, but would you be ok with it auto-loading boot.dol or something from SD A/B?

    problem is, strip out everything from swiss until you have basically a main() {printf("hello world!\n");} but the end binary will still have too much bloat (from libfat) that it won't go under 45kb. I'll get it done using a 3rd party FAT driver + libOGC.
     
  3. splith

    splith Resolute Member

    Joined:
    May 2, 2010
    Messages:
    997
    Likes Received:
    4
    Yeah that's what I had in mind :p.
    I didn't think it'd fit well in under 45KB, eventually found the sample SD browser and compiled that and it was 127KB when compressed with dollz :/.

    I don't know if it can be done using ProDG/official GC SDK or not, but if it can and it'd be a smaller binary, I can build it through that? [Ironically, proDG's build tools are all based on GCC]
     
  4. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    You can build a sufficiently smaller binary in ProDG.

    If you don't know how to use it, ask me.
     
  5. splith

    splith Resolute Member

    Joined:
    May 2, 2010
    Messages:
    997
    Likes Received:
    4
    My knowledge of C is limited to taking code, ripping pieces out and pasting pieces from other code, I've no idea of how to actually code in it, right now I'm busy with PHP though =/.
     
  6. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    Hehe, if you know PHP, you know C.
     
  7. splith

    splith Resolute Member

    Joined:
    May 2, 2010
    Messages:
    997
    Likes Received:
    4
    People used to tell me it's easy to go from C -> PHP but not the other way around, might even have been C++ actually...
    I've got all the tutorials to learn GC programming with the proDG software but they're aimed at people that know C/C++ already =/. One day I'll get around to doing them.
     
  8. ElBarto

    ElBarto Robust Member

    Joined:
    Dec 17, 2005
    Messages:
    239
    Likes Received:
    1
    Yeah ... right ....
     
  9. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    Syntax isn't very different. :p
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page