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

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


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

  Changed paths:
    M changelog
    M src/wesnoth.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