902 Commits

Author SHA1 Message Date
Sytyi Nick
8c74ce90d1 Added --strict-validation command line option.
(Validation errors are treated as fatal)
2011-08-17 22:26:10 +00:00
Mark de Wever
a872a18326 Remove an unused variable.
Issue found by cppcheck.
2011-07-31 16:56:26 +00:00
Jérémy Rosen
f958417c8a fix bug 18143 : remove the internal OpenMP reboot for MacOS 2011-06-21 21:23:12 +00:00
Fabian Müller
d04fa3be80 Basic Joystick support. 2011-06-20 23:33:10 +00:00
Sergey Popov
16ae8d9cee Add the return statement accidentally omitted in 2011-06-15T21:58:09Z!loonycyborg@gmail.com 2011-06-16 10:10:22 +00:00
Sergey Popov
855962c260 Catch boost::program_option::error exceptions in main()...
...preventing them from escaping and causing abnormal termination.
2011-06-15 21:58:09 +00:00
Timotei Dolean
429cdb06ed Refactor a bit the '--preprocess' code to benefit...
...from the new command line processing
2011-06-11 16:25:49 +00:00
Lukasz Dobrogowski
2582e6fd4f removed redundant headers from game.cpp 2011-06-10 21:48:18 +00:00
Lukasz Dobrogowski
64821745ba moved responsibility for holding commandline_options to...
...game_controller_abstract
2011-06-10 21:48:15 +00:00
Lukasz Dobrogowski
b9b57f1b12 got rid of argc and argv from game_controller class
they're redundant now.
2011-06-09 09:53:24 +00:00
Lukasz Dobrogowski
304d58f907 added support for positional options in commandline_options 2011-06-09 09:52:58 +00:00
Lukasz Dobrogowski
f6b0ef01b7 Added --screenshot and --log to commandline_options.
This makes game.cpp completely migrated to using of the new class.
2011-06-09 09:52:47 +00:00
Lukasz Dobrogowski
6957c82245 added --preprocess, --preprocess-defines and --preprocess-input-macros...
...to commandline_options
2011-06-09 09:52:42 +00:00
Lukasz Dobrogowski
508f710707 Added logdomains, preprocess-output-macros and rng-seed to...
...commandline_options.
2011-06-09 09:52:39 +00:00
Lukasz Dobrogowski
fa35ab0fca Added config-path, gunzip and gzip options to commandline_options class 2011-06-09 09:52:37 +00:00
Lukasz Dobrogowski
5db5701e48 Moved responsibility for help display over to commandline_options.
Added support for options config-dir, data-dir, help, new-syntax,
path, version.
2011-06-09 09:52:18 +00:00
Lukasz Dobrogowski
dd2bdaaf9a Started fleshing out the new commandline_options class.
Added support for several simple switches and linked it inside
game_controller and parse_command_args().
2011-06-09 09:52:15 +00:00
Anonymissimus
5101043bd9 fixed an MSVC warning about unreachable code 2011-06-03 21:33:40 +00:00
Sergey Popov
05a68dcb44 Fixed compile on mingw
Remove std:: qualifier from setlocale() call since newer versions
of gettext seem to use a macro to substitute it with a function of
their own.
2011-06-02 11:47:24 +00:00
Lukasz Dobrogowski
99f15ffae5 added game_controller_new, which takes over game_controller...
...responsibilities in case of --new-syntax
2011-05-29 10:17:43 +00:00
Lukasz Dobrogowski
470a0067bd Created game_controller_new, a new game controller class...
...using game_controller_abstract interface.
2011-05-29 10:17:41 +00:00
Anonymissimus
c571778a4d reinserted missing headers for compilation on windows
(did expect more than these two :P)
2011-05-28 12:18:06 +00:00
Lukasz Dobrogowski
8dd7859db0 Fixed remaining places where game. was replaced for game-> unnecessarily. 2011-05-28 07:41:47 +00:00
Steven Panek
1ca061b0be Undid 2011-05-27T22:44:43Z!lukasz.dobrogowski@gmail.com's effect on the --help output. 2011-05-27 22:57:00 +00:00
Lukasz Dobrogowski
670f4e940a Created pure virtual game_controller_abstract class,
...which is game_controller's parent
2011-05-27 22:44:45 +00:00
Lukasz Dobrogowski
7068d65385 switched game.cpp to use smart pointers when pointing at game_controller 2011-05-27 22:44:43 +00:00
Lukasz Dobrogowski
2478d57542 Commented out presumely redundant includes in game.cpp 2011-05-27 22:04:10 +00:00
Lukasz Dobrogowski
dd33059120 Isolated game_controller class from game.cpp 2011-05-27 22:04:08 +00:00
Lukasz Dobrogowski
9fda56ab2b started move of game_controller to separate file,
...removed anonymous namespaces in game.cpp
2011-05-27 22:04:06 +00:00
Timotei Dolean
69bf8627ef update "-c" command line's help section 2011-05-23 20:02:19 +00:00
Lukasz Dobrogowski
0204508df7 Added a new game_instance class,
...which is supposed to hold state of game in the new campaign system.
2011-05-23 17:52:30 +00:00
Lukasz Dobrogowski
80bec3a048 added commandline option --new-syntax 2011-05-23 17:52:27 +00:00
Mark de Wever
1ef05df6db Fix a comment typo. 2011-04-17 07:49:10 +00:00
Mark de Wever
3f098b5064 Strip trailing whitespace. 2011-04-17 07:34:51 +00:00
Jérémy Rosen
867600e99f fix cpu usage when openMP is enabled 2011-04-16 18:12:31 +00:00
Timotei Dolean
eb5311cd1e Fix the "-c" command line option.
Instead of checking the existing scenarios for a valid one (which
always fails since the campaigns's scenarios aren't available at
startup) just take the name for granted, because eventually we'll get
an error 'Unknown scenario' if the ID doesn't exist.
2011-04-02 09:39:31 +00:00
Mark de Wever
6dab616793 Remove the sticky exception class.
All sticky exceptions are replaced with the lua jailbreak exceptions.
The code has been lightly tested, too many possibilities to test them
all. Don't expect breakage but mainly the load code looks tricky with
the global variables.
2011-03-27 20:55:35 +00:00
Mark de Wever
18bf79ef13 Remove an unused header.
Fixes a compilation problem for SDL 1.3.
2011-03-19 18:53:29 +00:00
Nils Kneuper
a4fbd98fd8 removed --smallgui from --help output...
...as well as from the manpages since it is no longer required

(some small leftovers, especially at unit tests are still there,
someone else has to test those)
2011-03-11 15:49:21 +00:00
Ignacio R. Morelle
9d48c92650 Fix loadscreen progressbar "bleeding" on the old MP lobby...
...when running with -s switch

This fixes the more general case and invokes loadscreen_manager.reset()
earlier in the sequence right before attempting to jump into gameplay.
2011-02-19 22:26:44 +00:00
Ignacio R. Morelle
bfd2176ecd Don't show error message when cancelling the wesnothd finder...
...dialog from MP menu (bug #17446)

This supresses the message whenever show_wesnothd_server_search()
returns an empty string, such as when the user clicks on Cancel. There
don't seem to be any likely cases where it can return an empty string
after clicking on OK.
2011-02-19 20:32:48 +00:00
Mark de Wever
ff422edc9c Remove the editor option.
This changes causes the editor to be always build. It also sorts the
file entries in the build systems.

loonycyborg please review the scons changes.
2011-02-19 12:25:05 +00:00
Mark de Wever
ec0eb48ead Let twml_exception no longer derive from a base.
This how I originally designed the class and how it should behave. This

reverts 2011-01-26T07:30:35Z!guillaume.melquiond@gmail.com and reintroduces bug #17577. There are two
issues when used in combination with Lua:

 - Our Lua wrapper crashes when catching this exception (to be fixed in my next
   commit.)

 - When our Lua wrapper no longer crashes the error message is lost. (I have an
   idea how to fix it, but it is much easier to test when this change is
   committed.)
2011-02-16 18:59:46 +00:00
Guillaume Melquiond
f6e5953933 Reverted 2011-01-08T20:40:28Z!koraq@xs4all.nl. (Fix for bug #17577.) 2011-01-26 07:30:35 +00:00
Ignacio R. Morelle
8dd4bffd7c Game controller: process [color_range] and [color_palette] at the WML root
This allows add-ons to use these nodes at top-levels to define custom
ranges and palettes for the game engine. I'm not sure yet whether this
is the most elegant way to do this -- might consider filtering
[game_config] before 1.9.5.
2011-01-25 00:45:00 +00:00
Guillaume Melquiond
57a1ddfd05 Changed -d option so that it forcefully enables debug mode...
...in multiplayer games, as requested in bug #17412.
2011-01-23 14:36:54 +00:00
Mark de Wever
c770e4add1 Remove an unused variable.
Code should have been removed in 2010-08-27T18:07:55Z!koraq@xs4all.nl. Fixes a g++ 4.6 warning.
2011-01-16 09:49:11 +00:00
Mark de Wever
acba693447 Fix a bug not showing the twml_exception dialog.
When called from lua the dialog was no longer show, but only the user
part of the message. (Fixes bug #17405.)
2011-01-08 20:40:28 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Alexander van Gessel
d5d59e71d2 Refactor the [language] loading a bit 2010-12-30 16:47:33 +01:00