[Commits] [wesnoth/wesnoth] 7f60da: Consider <exe loc or cwd>/../ as a candidate for d...

GitHub noreply at github.com
Fri Jul 4 02:23:24 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7f60da8a2f4ac6588a78024db7806f5908e1e74a
      https://github.com/wesnoth/wesnoth/commit/7f60da8a2f4ac6588a78024db7806f5908e1e74a
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2014-07-03 (Thu, 03 Jul 2014)

  Changed paths:
    M changelog
    M src/game.cpp

  Log Message:
  -----------
  Consider <exe loc or cwd>/../ as a candidate for data dir autodetection

Makes it so <exe location>/../ (non-Windows) or <current working
dir>/../ (Windows) are also considered possible data directories if they
contain a data/_main.cfg file.

This is mostly intended to help people running cmake builds so they
don't have to type out .. in the Wesnoth command line every time or use
a hard link sitting on the data dir.

Notice that scons people already benefited from the simpler version of
this autodetection, which only considered <exe loc or cwd>/./ as a
candidate. This has been the case since version 1.5.4 (more
specifically, commit 43431bc3a79d8be4fef2c102167e5982a74aa71a). Because
of this, most of the code for this feature was already in place and I
only rearranged it to add some helpful annotations.





More information about the Commits mailing list