Wad2Nand OS X v1.5

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

  1. XarcusEater
    OP

    XarcusEater Member

    Newcomer
    41
    0
    Apr 30, 2010
    United States
    US
    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

    geoflcl Permanent GBAtemp Newbie

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

    XarcusEater Member

    Newcomer
    41
    0
    Apr 30, 2010
    United States
    US
    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

    joda GBAtemp Fan

    Member
    436
    0
    Jul 12, 2007
    Umeå
    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

    joda GBAtemp Fan

    Member
    436
    0
    Jul 12, 2007
    Umeå
    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

    terminal_illness Dark Hadou Master

    Member
    746
    18
    Aug 29, 2008
    Canada
    Canada! Mah Fukas!
    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

    cwstjdenobs Sodomy non sapiens

    Member
    1,757
    1
    Mar 10, 2009
    Ankh-Morpork
    ShowMiiWads works with mono you know.
     
  8. XarcusEater
    OP

    XarcusEater Member

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

    XarcusEater Member

    Newcomer
    41
    0
    Apr 30, 2010
    United States
    US
    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

    terminal_illness Dark Hadou Master

    Member
    746
    18
    Aug 29, 2008
    Canada
    Canada! Mah Fukas!
    nope. still greyed out for me.