wesnoth-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wesnoth-dev] A WML idea: import


From: Ben Anderman
Subject: Re: [Wesnoth-dev] A WML idea: import
Date: Tue, 10 May 2005 16:53:09 -0400

What if it kept a cache of some files, so that when other files included them, they wouldn't have to be reread/parsed? I'm not sure how it would tell which ones to cache (I'm pretty sure caching them all would be a bad idea,) but there might be a good way to do it.

Ben (crimson_penguin)

On May 10, 2005, at 3:12 PM, Yann Dirson wrote:

On Mon, May 09, 2005 at 05:00:41PM -0500, David White wrote:
Guillaume Melquiond wrote:

On 5/8/05, David White wrote:


Perhaps we can add a simple module system to Wesnoth very easily: by
adding a WML command called 'import'. It would work something like this,

import "path"

Any thoughts?



I have one concern. User campaigns (as do mainline campaigns) rely on
some core macros; for example MENU_IMG_TXT. If imported, the campaigns
won't know about these macros (it's even worse, they redefine them
then, because they believe it is an old Wesnoth version). So the user
campaigns would have to preprocess the core macros too, in order for
them to be available. This is not an issue: it would not be the first
change to WML that is not backward compatible. But I was wondering if
you had another solution in mind in order to deal with the #defines.


Yes, my solution to that was the same as yours: they would have to
preprocess the core macros too, by specifying 'standard' Wesnoth cfg
files to {include}.

This would be somewhat inefficient, but how bad it would be I'm not sure.

The time to build the cache on ipaq is already very important today
(several minutes).  Although I have not looked in details where the
problem lies, I suspect such a change would not make things better in
this respect.

--
Yann Dirson    <address@hidden> |
Debian-related: <address@hidden> |   Support Debian GNU/Linux:
| Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>


_______________________________________________
Wesnoth-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/wesnoth-dev







reply via email to

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