diff --git a/utils/vmt_to_vmat.py b/utils/vmt_to_vmat.py index ec0a11a..400abb7 100644 --- a/utils/vmt_to_vmat.py +++ b/utils/vmt_to_vmat.py @@ -356,6 +356,10 @@ def parseVMTParameter(line, parameters): print('ERROR: CMD Arguments are invalid. Required format: "vmt_to_vmat.py C:\\path\\to\\folder_or_vmt"') quit() +if (len(fileList) == 0): + print('INFO: Did not find any .vmt or .vtf files in target folder. Make sure you .tga, .vmt, and .vtf files are together.') + quit() + for vmtFileName in fileList: print("+ Processing .vmt file: " + vmtFileName) baseFileName = os.path.basename(vmtFileName.replace('.vmt', '')) @@ -650,4 +654,4 @@ def parseVMTParameter(line, parameters): print('+ Finished Writing ' + vmatFileName) -input("Press the key to close...") \ No newline at end of file +input("Press the key to close...")