Complete.Org: Mailing Lists: Archives: freeciv-dev: October 1999:
[Freeciv-Dev] Re: Reorganized the data directory.
Home

[Freeciv-Dev] Re: Reorganized the data directory.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jjm@xxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Reorganized the data directory.
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sun, 10 Oct 1999 14:07:41 +1000 (EST)

Jeff Mallatt wrote:
> At 1999/10/04 23:17 , David Pfitzner wrote:
> >Jeff Mallatt wrote:
> >
> >> Humm.  Perhaps a better way would be to (using current names) rename
> >> default.tileset back into trident.tileset, and then at build time create a
> >> soft link to trident.tileset named default.tileset.
> >
> >Another possibility would be to rename as above, and instead of
> >the soft lin change the hardwired internal string "default" to 
> >be "trident", and not have a default.tileset.
> >
> 
> Yeah, I like this idea.  Attached is a small patch which does this, though
> in a way that leaves the "default" fallback mechanism.  This patch includes
> only the code changes (no structure or Makefile changes).  So, to test the
> patch, first build with it, then rename (or copy) default.tilespec to
> trident.tilespec.

But then what is the purpose of the fallback to "default" since 
there will be no default.tilespec? (at least not by default :-)

That is, currently if you do ./civ --tiles foobar, and there
is no foobar.tilespec, it will say:

1: Could not find readable file "foobar.tilespec" in data path.
1: The data path may be set via the environment variable FREECIV_PATH.
1: Current data path is: 
".:data:/home/dwp/.freeciv:/home/dwp/inst1/share/freeciv"
1: Trying "default" tileset.

With this patch it will say the same, but then (unless there 
is a default.tilespec from an older version?) it won't find 
default.tilespec either?

Or am I missing something?

-- David

[Prev in Thread] Current Thread [Next in Thread]