Consistency-check mask files as well as map files.
This commit is contained in:
parent
4e4474b8a6
commit
06ca45a33b
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ wmltools.py -- Python routines for working with a Battle For Wesnoth WML tree
|
|||
|
||||
import sys, os, re, sre_constants, md5, glob
|
||||
|
||||
resource_extensions = ("png", "jpg", "ogg", "wav", "map")
|
||||
resource_extensions = ("png", "jpg", "ogg", "wav", "map", "mask")
|
||||
image_reference = r"[A-Za-z0-9{}.][A-Za-z0-9_/+{}.-]*\.(png|jpg)(?=(~.*)?)"
|
||||
|
||||
class Forest:
|
||||
|
@ -419,7 +419,7 @@ class CrossRef:
|
|||
for match in re.finditer(CrossRef.file_reference, line):
|
||||
name = match.group(0)
|
||||
# Catches maps that look like macro names.
|
||||
if name.endswith(".map") and name[0] == '{':
|
||||
if (name.endswith(".map") or name.endswith(".mask")) and name[0] == '{':
|
||||
name = name[1:]
|
||||
key = None
|
||||
# If name is already in our resource list, it's easy.
|
||||
|
|
Loading…
Add table
Reference in a new issue