Tools - Update includes tools, ignore .hemttout in str validator (#9337)

Tools - update includes tools, ignore .hemttout in str validator
This commit is contained in:
PabstMirror 2023-08-21 00:00:24 -05:00 committed by GitHub
parent d33a158e2e
commit 9c25fea548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -1448,6 +1448,9 @@ enum
#define IDC_OPTIONS_MAPDUCKING_VALUE 119
#define IDC_OPTIONS_MAPDUCKING_SLIDER 120
#define IDC_OPTIONS_UI_VALUE 121
#define IDC_OPTIONS_UI_SLIDER 122
// microphone adjustment
#define IDC_OPTIONS_MIC_PROGRESS_BAR 1001
#define IDC_OPTIONS_MIC_PROGRESS 1002

View File

@ -155,6 +155,7 @@ def main():
for root, _, files in os.walk(root_dir):
for file in fnmatch.filter(files, "stringtable.xml"):
if (".hemttout" in root): continue
stringtable_files.append(os.path.join(root, file))
stringtable_files.sort()

View File

@ -3,7 +3,7 @@
import os
import shutil
include_base_path = os.path.join(os.path.dirname(os.getcwd()), "include")
include_base_path = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "include")
p_drive_path = "P:\\"
if not os.path.exists(p_drive_path):
@ -16,6 +16,10 @@ for root, _dirs, files in os.walk(include_base_path):
continue
file_r_path = os.path.join(include_base_path, relative_path, file)
file_v_path = os.path.join(p_drive_path, relative_path, file)
if (file_v_path.endswith(".p3d")):
print(f"ignoring p3d {file_v_path}")
continue
if not os.path.isfile(file_v_path):
raise Exception("Missing p-drive file {}".format(file_v_path))
shutil.copyfile(file_v_path, file_r_path)
print(f"copying {file_v_path}")