You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pymapconv.py
+21-18Lines changed: 21 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -607,9 +607,11 @@ def ReadTile(xpos, ypos, sourcebuf): # xpos and ypos aremultiples of 32
607
607
608
608
print'Cleaning up temp dir...'
609
609
ifmyargs.linux:
610
-
os.system('rm -r ./temp')
610
+
#os.system('rm -r ./temp')
611
+
pass
611
612
else:
612
-
os.system('del /Q temp')
613
+
#os.system('del /Q temp')
614
+
pass
613
615
print'All Done! You may now close the main window to exit the program :)'
614
616
615
617
@@ -902,7 +904,6 @@ def __init__(self, filename):
902
904
parser.add_argument('-d', '--decompile', help='Decompiles a map to everything you need to recompile it', type=str)
903
905
parser.description='Spring RTS SMF map compiler/decompiler by Beherith ([email protected]). You must select at least a texture and a heightmap for compilation'
904
906
parser.epilog='Remember, you can also use this from the command line!'
905
-
app=QtGui.QApplication(sys.argv)
906
907
907
908
908
909
defokbuttonhandler(self):
@@ -912,26 +913,28 @@ def okbuttonhandler(self):
912
913
mymap=SMFMapDecompiler(parsed_args.decompile)
913
914
else:
914
915
compileSMF(parsed_args)
915
-
916
916
#print 'sys.argv:',sys.argv
917
917
iflen(sys.argv) >1: # if we got command line, then just run without gui
0 commit comments