@echo off :: ############################################################################## :: # :: # 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. :: # :: ############################################################################## :: ############################################################################## :: # setbootmode.bat :: # :: # This script enables a CAT_DEV to boot from PCFS or NAND. :: # setbootmode.bat PCFS|NAND :: # :: ############################################################################## set ARGS= set MODE= :scan_args if "%1"=="" goto args_end if "%1"=="-noreflash" ( set ARGS=%ARGS% -noreflash ) else if "%1"=="-production" ( set ARGS=%ARGS% -production ) else if "%1"=="-quick" ( set ARGS=%ARGS% -quick ) else if "%1"=="-Q" ( set ARGS=%ARGS% -quick ) else if "%1"=="-h" ( set ARGS=%ARGS% -h ) else ( set MODE=%1 ) shift goto scan_args :args_end cafex setbootmode %ARGS% %MODE% if "%errorlevel%"=="0" ( set CAFE_BOOT_MODE=%MODE% ) set MODE= set ARGS=