[Commits] [wesnoth/wesnoth] c6e118: Add the "core" command line option.

GitHub noreply at github.com
Fri Nov 7 22:17:59 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: c6e118f08487380663ffaea109152b167657cf0f
      https://github.com/wesnoth/wesnoth/commit/c6e118f08487380663ffaea109152b167657cf0f
  Author: Fabian Müller <fabianmueller5 at gmx.de>
  Date:   2014-11-07 (Fri, 07 Nov 2014)

  Changed paths:
    M src/commandline_options.cpp
    M src/commandline_options.hpp

  Log Message:
  -----------
  Add the "core" command line option.

This option specifies a [core]'s id which is to be loaded.
Not used yet.


  Commit: 632ce4aa44bd21e7cb599a6d89c75b6fca0033b3
      https://github.com/wesnoth/wesnoth/commit/632ce4aa44bd21e7cb599a6d89c75b6fca0033b3
  Author: Fabian Müller <fabianmueller5 at gmx.de>
  Date:   2014-11-07 (Fri, 07 Nov 2014)

  Changed paths:
    M src/game_launcher.cpp

  Log Message:
  -----------
  Set the core_id preferences item at game launch.

The id of the used core is set and saved if given as a command line
interface.

This commit makes use of the new "core" command line option.


  Commit: 21484aa5bc89e05e392752256ccf94189087fdd1
      https://github.com/wesnoth/wesnoth/commit/21484aa5bc89e05e392752256ccf94189087fdd1
  Author: Fabian Müller <fabianmueller5 at gmx.de>
  Date:   2014-11-07 (Fri, 07 Nov 2014)

  Changed paths:
    M src/game_config.cpp
    M src/game_config.hpp

  Log Message:
  -----------
  Add no_addon item to the game_config:: namespace.

This will be used to switch addons off during runtime.
Used for fallback if loading fails.
Can later be used to give gui controll over loading the addons.


  Commit: 42c947517387c53451c6a715b31e5c2ec2474531
      https://github.com/wesnoth/wesnoth/commit/42c947517387c53451c6a715b31e5c2ec2474531
  Author: Fabian Müller <fabianmueller5 at gmx.de>
  Date:   2014-11-07 (Fri, 07 Nov 2014)

  Changed paths:
    M src/game_config_manager.cpp

  Log Message:
  -----------
  Load addons based on game_config::no_addons instead of command line.

This is to make sure that we can change the loading of addons at
runtime.

Can be used to provide a fallback solution.


  Commit: d98240e4f6cec2098d6f355f090bda9c19b55a44
      https://github.com/wesnoth/wesnoth/commit/d98240e4f6cec2098d6f355f090bda9c19b55a44
  Author: Fabian Müller <fabianmueller5 at gmx.de>
  Date:   2014-11-07 (Fri, 07 Nov 2014)

  Changed paths:
    M src/preferences.cpp
    M src/preferences.hpp
    M src/wesnoth.cpp

  Log Message:
  -----------
  Removed the core file path from the preferences.

The new implementation works with the id only.


  Commit: 7b073484cb53403247713e7aea501f29e006861c
      https://github.com/wesnoth/wesnoth/commit/7b073484cb53403247713e7aea501f29e006861c
  Author: Fabian Müller <fabianmueller5 at gmx.de>
  Date:   2014-11-07 (Fri, 07 Nov 2014)

  Changed paths:
    M data/cores.cfg

  Log Message:
  -----------
  Made the "broken" core less broken.

This makes sure that the broken core fails at loading and is not marked
as invalid during its config validation.


  Commit: 6f9ee7a828930a22b74ac31b5b467935560c0d5e
      https://github.com/wesnoth/wesnoth/commit/6f9ee7a828930a22b74ac31b5b467935560c0d5e
  Author: Fabian Müller <fabianmueller5 at gmx.de>
  Date:   2014-11-07 (Fri, 07 Nov 2014)

  Changed paths:
    M src/game_config_manager.cpp

  Log Message:
  -----------
  Redesigned the core loading procedure.

Cores are now validated, invalid ones are discarded.
The failsave mechanism now tries to load without add-ons in case of a
fail before it falls back to the default core.
Core definitions are now read from a cores.cfg in every add-ons'
toplevel.


Compare: https://github.com/wesnoth/wesnoth/compare/2b388ab5b276...6f9ee7a82893


More information about the Commits mailing list