NAND-backup-free WiiWare loading with AUFS/UnionFS ?

Discussion in 'Wii - Backup Loaders' started by XICO2KX, Feb 3, 2013.

  1. XICO2KX
    OP

    Member XICO2KX GBAtemp Regular

    Joined:
    Jul 1, 2007
    Messages:
    144
    Country:
    Portugal
    Hello!:)
    I've noticed that all WiiWare loaders require a NAND backup to be able to run...:glare::rolleyes:
    But if someone ported AUFS or UnionFS to the Wii, wouldn't it be possible to run WiiWare titles directly over (a read-only virtual version of) the real NAND?:blink::P
    That would be an awesome feature for WiiWare loaders!B-) :yaywii:
     
  2. ayrek

    Member ayrek GBAtemp Regular

    Joined:
    Dec 20, 2010
    Messages:
    108
    Location:
    Ohio
    Country:
    United States
    I think this hasn't been done because the primary reason for people to look toward wiiware loaders is because the wii itself has such a small amount of memory. I currently have an emulated NAND, for example, on my 16gb SD card, which means I could have something like 20 times as many games on it than on my wii, in addition to everything else I have on it.

    That said, I'm all for someone doing something just to see if it works. I mean, half the things I've done to my wii were things I read here in the forum and thought, I want to try that :P
    I'm just not entirely sure it would exactly have a wide userbase.
     
  3. Fishaman P

    Member Fishaman P Speedrunner

    Joined:
    Jan 2, 2010
    Messages:
    3,175
    Location:
    Wisconsin
    Country:
    United States
    Where exactly would this read-only FS be mounted? The Wii's puny RAM?
     
  4. XICO2KX
    OP

    Member XICO2KX GBAtemp Regular

    Joined:
    Jul 1, 2007
    Messages:
    144
    Country:
    Portugal
    I'm not an expert on union file systems architecture, but I think there's no need to store anything in RAM.
    The files stay exactly where they are.
    The only thing needed are some wrapper functions around original OS IO functions, that when fetching a file, they first try to open that file on an alternative location, and only when that fails, they open the file at its original location.

    Something like this pseudo-code:
    PHP:
    fileopen_wrapperoriginalfilepath ) {
      
    newfilepath alternativepath basename(originalfilepath);
      if( 
    exists(newfilepath) )
        return 
    fileopen(newfilepath);
      else
        return 
    fileopen(originalfilepath);
    }
    Of course some details have to be taken into consideration, e.g., when a file is open in write mode, one has to create a copy of it in the alternativepath and open it there; and when querying the file data structure for the file path of a "re-linked" file, one has to return its original path instead.
     
  5. ayrek

    Member ayrek GBAtemp Regular

    Joined:
    Dec 20, 2010
    Messages:
    108
    Location:
    Ohio
    Country:
    United States
    So.. when attempting to load a wiiware game, it would first check an alternate path (an SD card?), and then check the actual wii nand? If so, then you still need a nand dump on your SD card, no?

    Maybe I'm missing something, but I think this sounds an awful lot like how my emu nand set up, minus the extra step of checking the real nand for titles not found on the emu.
     
  6. AbdallahTerro

    Member AbdallahTerro da KiNG

    Joined:
    Jan 14, 2012
    Messages:
    5,974
    Location:
    Ideas factory :)
    Country:
    Lebanon
    You can play all wiiware in uLoader using Hermes cIOS without the need to have a nand backup.
    uloader will automatically extract the wads for you so no need for PC tools either
     
  7. Fishaman P

    Member Fishaman P Speedrunner

    Joined:
    Jan 2, 2010
    Messages:
    3,175
    Location:
    Wisconsin
    Country:
    United States
    So... you're thinking Riivolution for WiiWare?
    As AbdallahTerro said, I think that already exists.
     
  8. XICO2KX
    OP

    Member XICO2KX GBAtemp Regular

    Joined:
    Jul 1, 2007
    Messages:
    144
    Country:
    Portugal
    No, there's no need for a full NAND dump.
    Only the modified NAND files would need to have a copy in the alternative SD or USB directory.
    Those IO wrapper functions would act like an invisible "glue" to merge both the files in the real NAND and the files in the alternative path, resulting in a unified NAND file system.
    Of course this would have to be implemented at the cIOS level and not in the WiiWare loader.
     
  9. XICO2KX
    OP

    Member XICO2KX GBAtemp Regular

    Joined:
    Jul 1, 2007
    Messages:
    144
    Country:
    Portugal
    Nice! Maybe uLoader already uses something like this in Hermes cIOS 222!
    Too bad its a little bit outdated. I would like to see this feature on current WiiWare loaders too!;)
     
  10. XICO2KX
    OP

    Member XICO2KX GBAtemp Regular

    Joined:
    Jul 1, 2007
    Messages:
    144
    Country:
    Portugal
    Yes, you're right! I think that's exactly it!;)
    But Riivolution only works on the DVD file system.:(
    I was suggesting something like that but for the NAND file system!:rolleyes:

    Update:
    Here's the description of RiiFS:
    But actually we don't need network support or something that advanced.
    Fetching files from a local SD or USB would do just fine!:P
     

Share This Page