USB loader gx SD card support?

Discussion in 'Wii U - Hacking & Backup Loaders' started by Super1710, Jun 28, 2017.

  1. Super1710
    OP

    Super1710 Advanced Member

    Newcomer
    65
    12
    Dec 19, 2016
    Is there any sort of modified USB loader gx with support for loading Wii games from an SD card? GameCube games load fine on the SD card but Wii games don't. I did switch to cfg loader but I prefer USB loader's UI and design in general. I don't mind wether it's for the original Wii or vWii, I could use it for both though.
     
  2. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    17,651
    8,238
    Oct 27, 2002
    France
    Engine room, learning
    there's no existing mod.
    it's not a simple change to do, as there are few place where USB is hardcoded. but it can be done if someone has time to look into it.
     
    Super1710 and Funkymon like this.
  3. Funkymon

    Funkymon Advanced Member

    Newcomer
    88
    63
    Feb 7, 2017
    Canada
    Would it be easier to change the hardcoding to just SD?
     
  4. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    17,651
    8,238
    Oct 27, 2002
    France
    Engine room, learning
    why do that? SD is less compatible (some games don't work at all), smaller, more expansive, slower, etc.
    I really don't get the interest in using SD for Wii games, when USB is the best choice.

    it's not "easier" to change the source to replace the hardcoded USB to hardcoded SD.
    it's as much work to "search where it's hardcoded", adding SD card choice is the easiest part.
    it's not only an option in the loader to "list games from SD", this is very easy too. the tricky part is rewriting the WBFS library. like I said, it's possible and someone need free time to read and understand WBFS and other file system libraries.
    even if it's on FAT32, it's actually using WBFS partition (a .wbfs game file IS a wbfs partition dump, containing only one game)

    there are part where there is a switch to select whether WBFS code in the cIOS is mounting SD or USB.
    something like : wbfs_mount(source, path, etc.)

    the "source" argument has been replaced with "USB" instead of "source" variable.
    you will have to locate all these mounting and accessing command and put the variable back.
    if you find where all these commands are located, you could of course replace "USB" by "SD", but you'll again be stuck with a limited program while you could make both of them compatible at the same time.
     
    Last edited by Cyan, Jun 28, 2017
  5. Funkymon

    Funkymon Advanced Member

    Newcomer
    88
    63
    Feb 7, 2017
    Canada
    Because getting two hard drives working in both Wii and Wii U mode is a pain, especially if it's just a few Wii games.
     
  6. Super1710
    OP

    Super1710 Advanced Member

    Newcomer
    65
    12
    Dec 19, 2016
    It was just for convenient to use my SD card, but I think I'll just buy a large USB
     
  7. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    17,651
    8,238
    Oct 27, 2002
    France
    Engine room, learning
    I know, but you can always connect/disconnect the one you need, when you use it.
    there's different method to still keep two or three hdd at the same time and have all your setup working correctly.

    lot of people asked me about such setup in PM, and I always answer in PM, many times.
    one day, I (or someone else) should really make a public thread which will benefit more than one person at a time.
    it's not hard, and works with wiiu+wii+gamecube+vWii emuNAND.
    I'm not sure why people think it's hard and they need SD card for wii games when two working setup is possible. it's like it's taboo to have a good setup or make a tutorial for other people to follow.

    all is question of correct plug order and cIOS version. when you understand what you installed and why, you know how to plug the drives to make everything working at the same time.

    all you have to know is :
    cIOS is mounting USB incrementally, while IOS 58 is doing it decrementally.
     
    Funkymon likes this.
  8. Funkymon

    Funkymon Advanced Member

    Newcomer
    88
    63
    Feb 7, 2017
    Canada
    You really should make a post. I'm only considering SD because of how difficult it is to track down complete instructions for a working 2 hard drive setup.
     
  9. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    17,651
    8,238
    Oct 27, 2002
    France
    Engine room, learning
    I should search in my PMs, but by memory it should be :

    2 hdd setup :

    USB 0 : WiiU drive
    USB 1 : vWii drive, stealth'd
    cIOS : d2x v10-alt
    USBLoader : use 58 inside the loader

    when using WiiU, it sees only WiiU drive
    when using vWii, inside the loader with 58, it lists USB1 first (vWii) and lists all wii and gamecube games, then mounts WiiU drive but doesn't register it.
    when using vWii with d2x, it mounts USB0 WiiU drive first (but doesn't register it in USB Loaders), then mounts vWii drive and loads the game from USB1.
    when using vWii with IOS58 (nintendont), it mounts vWii drive first, and stops trying at first successfully found partition, so it never loads WiiU drive.
    When using vWii with neek, ... I don't know, it should work too. I never tested it with wiiu drive connected, nor with vWii in port1.

    pro : it works with a 2HDD setup
    cons : you need v10-alt, which can be problematic with some HDDs. v10-alt doesn't work with emuNAND channels.



    3 HDD setup :

    USB0 : vWii drive, stealth'd, Wii games
    USB 1 : HUB
    HUB0 : WiiU drive
    HUB1 : vWii drive, strealth'd, gamecube games
    d2x : v10 (non alt)
    USBLoader : use 58 inside the loader

    when using WiiU, it sees only the WiiU drive (the only non stealth drive)
    when using vWii, inside the loader with 58, it lists USB1/HUB1 first (vWii) then skip WiiU and then list USB0 Wii games. you see all wii and gamecube games
    when using d2x, it mounts USB0 first, the HDD with Wii games, finds the game and use that drive. It doesn't work with HUB so doesn't try to mount USB1
    when using vWii with IOS58 (nintendont), it mounts HUB1 first (remember, reversed order !), finds gamecube games and use it. it doesn't see USB1/HUB0 (which is mounted after HUB1) nor USB0

    Pro : it's using v10, not the alt version. it means better compatibility, and there's a mod which works with EmuNAND + stealth hdd.
    cons : 3HDD and hub setup


    remember, I just wrote it quickly by memory. It may have errors, but should be logic enough to work.
    I never tested it, I don't have a WiiU HDD. like said, it's based on (c)IOS logic mounting order.
     
    Last edited by Cyan, Jun 28, 2017
    Funkymon likes this.