1@echo off
2:: ###############################################################################
3:: #
4:: # Copyright (C) 2009-2013 Nintendo.  All rights reserved.
5:: #
6:: # These coded instructions, statements, and computer programs contain
7:: # proprietary information of Nintendo of America Inc. and/or Nintendo
8:: # Company Ltd., and are protected by Federal copyright law.  They may
9:: # not be disclosed to third parties or copied or duplicated in any form,
10:: # in whole or in part, without the prior written consent of Nintendo.
11:: #
12:: ###############################################################################
13
14setlocal
15
16call getbridgetype.bat
17
18set BRIDGE_TOOLS_VER=
19set FW_VER=
20set FPGA_VER=
21
22if "%BRIDGE_TYPE"=="Toucan" (
23    echo.
24    set BRIDGE_TYPE=Toucan
25    for /F "usebackq tokens=1,3 delims=: " %%i IN (`"%SDIO_BRIDGE_TOOLS%\FSEmul" -ver -ip %BRIDGE_CURRENT_IP_ADDRESS%`) DO (
26        if /I "%%i"=="firmware" set FW_VER=%%j
27        if /I "%%i"=="software" set BRIDGE_TOOLS_VER=%%j
28    )
29) else (
30    echo.
31    set BRIDGE_TYPE=MION
32    for /F "usebackq tokens=1,3 delims=: " %%i IN (`"%MION_BRIDGE_TOOLS%\FSEmul" -ver -ip %BRIDGE_CURRENT_IP_ADDRESS%`) DO (
33        if /I "%%i"=="firmware" set FW_VER=%%j
34        if /I "%%i"=="software" set BRIDGE_TOOLS_VER=%%j
35        if /I "%%i"=="fpga" set FPGA_VER=%%j
36    )
37)
38
39echo Bridge Type     : %BRIDGE_TYPE%
40echo Platform        : %PLATFORM%
41echo Bridge PC Tools : %BRIDGE_TOOLS_VER%
42echo Bridge Firmware : %FW_VER%
43if DEFINED FPGA_VER (
44    echo Bridge FPGA     : %FPGA_VER%
45)
46