GUI: Add code to default theme generation to reduce string length.

The additional code skips the extraneous spaces after the end of an
XML close brace (>) reducing the string literal by 3106 characters,
thus bringing it within the limit for C++ string literals.

Have regenerated the default.inc from scummclassic with this change.
This commit is contained in:
D G Turner 2013-08-16 06:57:40 +01:00
parent 49ea7cd1fd
commit 01a1e63786
2 changed files with 1450 additions and 1447 deletions

File diff suppressed because it is too large Load Diff

View File

@ -40,7 +40,10 @@ def parseSTX(theme_file, def_file):
strlitcount = 0
output = ""
for line in theme_file:
output += line.rstrip("\r\n\t ").lstrip() + " \n"
output += line.rstrip("\r\n\t ").lstrip()
if not output.endswith('>'):
output += ' '
output += "\n"
output = re.sub(comm, "", output)
output = re.sub(head, "", output)