Wad2Nand OS X v1.5

Discussion in 'Wii - Hacking' started by XarcusEater, May 8, 2010.

May 8, 2010

Wad2Nand OS X v1.5 by XarcusEater at 4:35 AM (2,099 Views / 0 Likes) 9 replies

  1. XarcusEater
    OP

    Newcomer XarcusEater Member

    Joined:
    Apr 30, 2010
    Messages:
    41
    Location:
    US
    Country:
    United States
    New stuff: unlimited wad files, installer/uninstaller, no longer needs to be in /Applications, but needs to have startup disk called Macintosh HD.
    Hope this works for everyone, this will be final version if it works for everyone!
    Google Code
     
  2. geoflcl

    Member geoflcl Permanent GBAtemp Newbie

    Joined:
    Jan 18, 2009
    Messages:
    1,373
    Country:
    United States
    Ah, looks like 1.4 wasn't the final after all!
     
  3. XarcusEater
    OP

    Newcomer XarcusEater Member

    Joined:
    Apr 30, 2010
    Messages:
    41
    Location:
    US
    Country:
    United States
    no, lots of people were having problems, on this forum and others. I rewrote most of the code and scrapped the old shell script.
     
  4. joda

    Member joda GBAtemp Fan

    Joined:
    Jul 12, 2007
    Messages:
    436
    Location:
    Umeå
    Country:
    Sweden
    Quick mockup fix of your applescript: http://pastie.org/951102. Haven't tried it, but it should work. (Haven't even tried the original ...)

    I also see now that your code relies on several different scripts out of which all contain only hard coded absolute paths. DON'T! This is how to code quick hacks for own use, that is guaranteed to work only on your system. As soon as you plan on releasing anything to the public, you have to make sure that it doesn't rely on hard coded stuff. You can never count on anyone having the same path, environment, and what not as you; and you can code, without too much hassle, in a way that makes this problem non existant. Just:[*]Use available methods of getting base paths from the users system.[*]Make all other paths used relative to that first path.No more work needed, and this will in every case work on everyone's machine.

    I'f you don't know how to do this, learn more. If you're to lazy to do this, don't release.
     
  5. joda

    Member joda GBAtemp Fan

    Joined:
    Jul 12, 2007
    Messages:
    436
    Location:
    Umeå
    Country:
    Sweden
    In my opinion, you shouldn't use the system wide Library path either but the one in the users home dir. What if the user who wants to run your app doesn't have write access to the system wide /Library folder?

    http://pastie.org/951110
    CODEset afile to choose file with prompt "Select WAD files to install" of type {"WAD", "wad"} with multiple selections allowed

    set homePath to (path to home folder as text) as alias

    tell application "Finder"
    ÂÂÂÂduplicate afile to homePath & "Library:wad2nand:" with replacing
    end tell
    do shell script "sh ~/Library/wad2nand/install.sh"

    tell application "Finder"
    ÂÂÂÂduplicate homePath & "Library:wad2nand:Ticket" to desktop with replacing
    ÂÂÂÂduplicate homePath & "Library:wad2nand:Title" to desktop with replacing
    ÂÂÂÂduplicate homePath & "Library:wad2nand:wad2nand-install.log" to desktop with replacing
    end tell

    do shell script "rm -rf ~/Library/wad2nand/title/"
    do shell script "rm -rf ~/Library/wad2nand/ticket/"
    do shell script "rm -rf ~/Library/wad2nand/wad2nand-install.log"

    8< ---------- [Cut out growl stuff] ----------
    Then replace all references to /Library with ~/Library in you sh-scripts.
     
  6. terminal_illness

    Member terminal_illness Dark Hadou Master

    Joined:
    Aug 29, 2008
    Messages:
    746
    Location:
    Canada! Mah Fukas!
    Country:
    Canada
    tested and STILL does not work. im going to stick to emulating shitty windows instead. thx for the development on the mac. keep it up. but next time dont release something completly unfinished that noone can use.
     
  7. cwstjdenobs

    Member cwstjdenobs Sodomy non sapiens

    Joined:
    Mar 10, 2009
    Messages:
    1,757
    Location:
    Ankh-Morpork
    Country:
    United Kingdom
    ShowMiiWads works with mono you know.
     
  8. XarcusEater
    OP

    Newcomer XarcusEater Member

    Joined:
    Apr 30, 2010
    Messages:
    41
    Location:
    US
    Country:
    United States
    I tried joda's bootDisk thing and it doesn't work. I've already tried that and it failed.
     
  9. XarcusEater
    OP

    Newcomer XarcusEater Member

    Joined:
    Apr 30, 2010
    Messages:
    41
    Location:
    US
    Country:
    United States
    guys, im sorry i made a lot of errors last time. I took joda's advice, changed some stuff, and here it is. Wad2Nand v1.6 Final. (seriously final this time) this uses the library in your home folder, installs Wad2Nand.app to the desktop (because normal users can't modify applications folder)., and can have any name of startup disk. I will help those who are having problems but I think this should work. Thanks.
    Google code
     
  10. terminal_illness

    Member terminal_illness Dark Hadou Master

    Joined:
    Aug 29, 2008
    Messages:
    746
    Location:
    Canada! Mah Fukas!
    Country:
    Canada
    nope. still greyed out for me.
     

Share This Page