wesnoth/cwesnoth.cmd
Ignacio R. Morelle bbd2ffd64f cwesnoth: Use setlocal to reliably restore env vars
Thanks to aquileia for the tip.
2015-04-26 05:04:48 -04:00

21 lines
480 B
Batchfile

@echo off
rem
rem Runs Wesnoth with a Windows console attached.
rem
rem Usage:
rem cwesnoth <command line>
rem
setlocal
rem Disable stdout.txt/stderr.txt redirection in SDLmain.
set SDL_STDIO_REDIRECT=0
rem OpenMP builds need to set this variable on startup and relaunch Wesnoth in
rem order to prevent constant busy waits. Do it here so the restart doesn't
rem cause this script to return to the shell too early.
set OMP_WAIT_POLICY=PASSIVE
wesnoth --wconsole %*
endlocal