diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2008-08-07 08:38:35 +0400 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2008-08-07 08:38:35 +0400 |
commit | 66d62218996aafc8ff0a35a94bc71383eeb1c243 (patch) | |
tree | 450e684a1e894cf6805b4d6b4beeb2c4b0b5a0c0 /release | |
parent | 5d62ad194d7c6cbdda1e445ca2645395831f4b69 (diff) |
-> Slight tweak to FLT exporter
FLT files written by the FLT exporter would
reference external files (other FLT files,
texture maps, ect) with standard backslash
seperators on win32. However, many tools
that deal with FLT files expect directory
seperators to always be forward slashes
regardless of platform.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/flt_export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/flt_export.py b/release/scripts/flt_export.py index 2b9db74c770..9b664e90c35 100644 --- a/release/scripts/flt_export.py +++ b/release/scripts/flt_export.py @@ -1070,7 +1070,7 @@ class FLTNode(Node): if self.opcode == 63 and options.state['externalspath']: try: - exportdict['3t200!filename'] = os.path.join(options.state['externalspath'],self.object.DupGroup.name+'.flt') + exportdict['3t200!filename'] = os.path.join(options.state['externalspath'],self.object.DupGroup.name+'.flt').replace("\\", "/") self.header.xrefnames.append(self.object.DupGroup.name) except: pass @@ -1199,7 +1199,7 @@ class Database(Node): print 'Writing texture palette.' # Write record for texture palette for i, img in enumerate(self.GRR.texture_lst): - filename = tex_files[img.name] + filename = tex_files[img.name].replace("\\", "/") self.fw.write_short(64) # Texture palette opcode. self.fw.write_short(216) # Length of record self.fw.write_string(filename, 200) # Filename |