#!/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. # ############################################################################### source getbridgetype FSEMUL_PARAMS= if [ "$BRIDGE_TYPE" == "Toucan" ] then BRIDGE_INSTALL_PATH=$SDIO_BRIDGE_TOOLS if [ "${CAFE_HARDWARE:0:2}" == "ev" ] then FSEMUL_PARAMS=-m fi else BRIDGE_INSTALL_PATH=$MION_BRIDGE_TOOLS fi if [ "$BRIDGE_TYPE" == "Mion" ] then if [ -z "$BRIDGE_PARAMETERS" ] then FSEMUL_PARAMS="-em -ip $BRIDGE_CURRENT_IP_ADDRESS" else FSEMUL_PARAMS="$BRIDGE_PARAMETERS -ip $BRIDGE_CURRENT_IP_ADDRESS" fi fi if [ ${CAFE_DETACH_FSEMUL:-0} != 0 ] then "$BRIDGE_INSTALL_PATH/FSEmul.exe" "$@" $FSEMUL_PARAMS < /dev/null &> /dev/null & else "$BRIDGE_INSTALL_PATH/FSEmul.exe" "$@" $FSEMUL_PARAMS < /dev/null & fi