Skip to content

Commit

Permalink
Update slicemt.py (I-am-Erk#2276)
Browse files Browse the repository at this point in the history
- Added /q key for updtset call to remove unnecessary info
- Added /source/.scratch file creation, so composer ignore source folder
  • Loading branch information
vetall812 authored Jan 10, 2024
1 parent 7c8203c commit 858190e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/slicemt.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@ def CheckAffectedFiles(ArgPath,ArgTime):
print('')

# Set updtset.cmd path
UpdateCmd = '\\'.join(PathDetails[:PathDetails.index('gfx')]) + '\\tools\\updtset.cmd ' + TilesetName
UpdateCmd = '\\'.join(PathDetails[:PathDetails.index('gfx')]) + '\\tools\\updtset.cmd /q ' + TilesetName
UpdatePath = '\\'.join(PathDetails[:PathDetails.index('gfx')]) + '\\tools\\'

OutPath = FullPath + '\\..\\'

# Mark source folder as scratch, so composer ignore it
Path(FullPath+'\\.scratch').touch()

# Detect source files for variants
StartTime = time.time()
Patterns = [ '*_var*.png' ]
Expand Down

0 comments on commit 858190e

Please sign in to comment.