[Freeciv-Dev] Re: Reorganized the data directory.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
At 1999/10/10 00:07 , David Pfitzner wrote:
>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?
Ok. I was thinking only about the case where no "--tiles" was specified,
not the case where a *bad* one was specified.
So, I guess the simplist is to just change the "default" in
client/tilespec.c to "trident", right?
jjm
|
|