From: https://bitbucket.org/thepilot/modular- ... ult#cl-577
- Code: Select all
#making sure we pack only necessary files and not random garbage
for filename in os.listdir(mapDir):
if filename.endswith(".lua") or filename.endswith("preview.jpg") or filename.endswith(".scmap"):
files.append(os.path.join(mapDir, filename))
Change to:
- Code: Select all
#making sure we pack only necessary files and not random garbage
for filename in os.listdir(mapDir):
if filename.endswith(".lua") or filename.endswith("preview.jpg") or filename.endswith(".scmap") or filename.endswith(".dds"):
files.append(os.path.join(mapDir, filename))