1#!/usr/bin/env bash 2 3############################################################################### 4# 5# Copyright (C) 2009-2013 Nintendo. All rights reserved. 6# 7# These coded instructions, statements, and computer programs contain 8# proprietary information of Nintendo of America Inc. and/or Nintendo 9# Company Ltd., and are protected by Federal copyright law. They may 10# not be disclosed to third parties or copied or duplicated in any form, 11# in whole or in part, without the prior written consent of Nintendo. 12# 13############################################################################### 14 15############################################################################### 16# cafediscrun is simply caferun but uses DVDFS (/dev/sd01) as disc emulation 17# instead of Host File IO (/dev/hfio01) as disc emulation at /vol/content 18############################################################################### 19 20############################################################################### 21# main 22############################################################################### 23 24if [ "$USE_CAFEX" == "1" ] 25then 26 echo "Using CafeControl" 27 cafex.exe discrun $@ 28 exit 29elif [ "$USE_CAFEX" == "2" ] 30then 31 echo "Using CafeControl" 32 echo cafex.exe -q discrun $@ 33 cafex.exe -q discrun $@ 34 exit 35fi 36 37CAFERUN_OPTION_CALLED_FROM_CAFEDISCRUN=yes 38source caferun "$@" 39