mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-02 23:26:44 +00:00
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:
parent
49ea7cd1fd
commit
01a1e63786
File diff suppressed because it is too large
Load Diff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user