Files @ r25664:40e22395c06b
Branch filter:

Location: cpp/openttd-patchpack/source/os/os2/installer/download_opengfx.cmd

rubidium42
Cleanup: remove IConsoleWarning/IConsoleError helpers

Both did not support format parameters, so in many places IConsolePrint(CC_ERROR, "message") was used with a style different from what IConsoleError would do.
@echo off
if "%1" == "" goto err
if "%2" == "" goto err

echo Downloading OpenGFX...

%1\wget http://binaries.openttd.org/installer/opengfx-OPENGFX_VERSION.7z -O %2/baseset/opengfx.7z

echo Extracting OpenGFX...

%1\7za x -y -O%2/baseset %2/baseset/opengfx.7z
del %1\baseset\opengfx.7z /n

echo OpenGFX has been installed.
goto end

:err
echo This batch file is only intended for use by the OpenTTD installer.
echo Please visit www.openttd.org for details on downloading OpenGFX.

:end