John McNabb <[EMAIL PROTECTED]>:
> Just to be sure, you are not ruling out macro defined images such as
> can be found in: data/units/Undead_Corpse_Walking.cfg ?
> You just want to require the extension at the end, and it would still
> be OK if the base_name is a WML macro variable?

Correct.  In fact, macroscope handles this case just fine.  I'll give
you a real-world example.  The following line in a macro

        image="units/undead/{BASE_IMAGE}-attack-n.png

gets treated as a reference to each one of the image files that match
the regular expression 

        units/undead/.*-attack-n.png

This means that macroscope may deduce file references that the macro
would not actually generate at WML evaluation time.  But this is
acceptable -- it's better to have resource-file reference counts too
high than too low, because the most important thing to be able to
detect is not unused resource files but unresolved references in the WML.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev

Reply via email to