skin.dmf DME Check (#19865)

skin dmf is in the wrong order in the .dme and keeps trying to reorder
itself, opening this PR to see why it fails
This commit is contained in:
Geeves
2024-09-07 18:00:32 +02:00
committed by GitHub
parent a1f355c560
commit 1c11b0b889
2 changed files with 5 additions and 3 deletions

View File

@@ -74,9 +74,11 @@ def compare_lines(a, b):
a_segments = a.split('\\')
b_segments = b.split('\\')
file_end_types = (".dm", ".dmf")
for (a_segment, b_segment) in zip(a_segments, b_segments):
a_is_file = a_segment.endswith(".dm")
b_is_file = b_segment.endswith(".dm")
a_is_file = a_segment.endswith(file_end_types)
b_is_file = b_segment.endswith(file_end_types)
# code\something.dm will ALWAYS come before code\directory\something.dm
if a_is_file and not b_is_file: