1@echo off 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 15set CAFE_HARDWARE_VER=%CAFE_HARDWARE:~6,7% 16if DEFINED CAFE_HARDWARE_VER ( 17 set /A CAFE_HARDWARE_VER=%CAFE_HARDWARE_VER% 18) else ( 19 set CAFE_HARDWARE_VER=0 20) 21 22if "%CAFE_HARDWARE%"=="ev" ( 23 set BRIDGE_TYPE=Toucan 24) else ( 25 if "%CAFE_HARDWARE%"=="ev_x4" ( 26 set BRIDGE_TYPE=Mion 27 ) else ( 28 if "%CAFE_HARDWARE:~6,2%"=="mp" ( 29 set BRIDGE_TYPE=Mion 30 ) else ( 31 if %CAFE_HARDWARE_VER% LEQ 2 ( 32 set BRIDGE_TYPE=Toucan 33 ) else ( 34 set BRIDGE_TYPE=Mion 35 ) 36 ) 37 ) 38) 39 40set CAFE_HARDWARE_VER= 41