#!/usr/bin/env bash ############################################################################### # # Copyright (C) 2009-2013 Nintendo. All rights reserved. # # These coded instructions, statements, and computer programs contain # proprietary information of Nintendo of America Inc. and/or Nintendo # Company Ltd., and are protected by Federal copyright law. They may # not be disclosed to third parties or copied or duplicated in any form, # in whole or in part, without the prior written consent of Nintendo. # ############################################################################### if [ "$USE_CAFEX" == "1" ] then # Set IFS to something that will not be in the args, so that BASH will pass the entire un-parsed string to CafeX saveIFS="$IFS" IFS=$'\n' echo "Using CafeControl" cafex.exe headlessrun $@ rval=$? IFS="$saveIFS" exit $rval fi ########################################################################################### # # Globals # ########################################################################################### UPLOAD_BANK=10 HLRUN_OUT=$CAFE_TEMP/headlessrun HLRUN_TMP=$CAFE_TEMP/headlessrun/tmp RUN_DEVMENU=1 TITLE_WAIT=15 DEBUG_FLAGS= BYPASS_SETUP=0 RVAL=0 source monitor_return_codes ########################################################################################### # # Functions # ########################################################################################### usage () { cat<.rpx "[arg1]" "[arg2]" ... "[argN]" options: -b : Use DEBUG version of the OS -n : Don't start the title after upload. -m : Bypass mastering setup. -w