Commit graph

8 commits

Author SHA1 Message Date
Pentarctagon
23f74d9781 Remove build options for OpenMP. 2019-07-24 19:45:41 -05:00
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
Ignacio R. Morelle
9e2513183d cwesnoth: Reset OMP_WAIT_POLICY environment variable on exit
We really should save the previous value in a temporary variable instead
and reset it to that but I hate ugly code so...
2015-04-26 05:49:41 -03:00
Ignacio R. Morelle
13107f3437 cwesnoth: Document environment assignments 2015-04-26 05:49:29 -03:00
aquileia
04d7c5b587 Set OMP_WAIT_POLICY in cwesnoth.cmd 2015-04-25 18:34:34 +02:00
Ignacio R. Morelle
e32d9009dd cwesnoth: Add some documentation 2015-04-25 04:50:16 -04:00
Ignacio R. Morelle
c1fad7357d cwesnoth: Disable SDL stdio redirection
We can do this using an environment variable. Too bad doing so doesn't
give us a console, otherwise this whole hack wouldn't be necessary in the
first place.
2015-04-25 04:50:15 -04:00
Ignacio R. Morelle
8d2609ff4c Add --wconsole for allocating a Windows console on startup
This is only recognized by the game client at the moment. The
implementation is a bit hacky but it seems to work. Thanks, SDLmain.

The cwesnoth.cmd Windows batch file passes --wconsole to Wesnoth in the
command line, along with any other arguments passed to it. This is
intended to be *the* use case for --wconsole, since otherwise the fact
that Windows won't allocate a console for us on process initialization
(due to Wesnoth being compiled with the GUI application flag) causes
issues with the Command Prompt shell -- namely, the shell returns
before Wesnoth allocates its console, allowing shell input to happen
concurrently with Wesnoth's output to console.

cwesnoth.cmd should be used in shortcuts and given Wesnoth's install
path as its initial working directory.
2015-04-25 04:49:30 -04:00