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

@@ -3774,12 +3774,12 @@
#include "code\ZAS\Zone.dm"
#include "code\ze_genesis_call\genesis_call.dm"
#include "interface\interface.dm"
#include "interface\skin.dmf"
#include "interface\fonts\fonts_datum.dm"
#include "interface\fonts\grand_9k.dm"
#include "interface\fonts\pixellari.dm"
#include "interface\fonts\spess_font.dm"
#include "interface\fonts\tiny_unicode.dm"
#include "interface\skin.dmf"
#include "maps\_common\areas\ai.dm"
#include "maps\_common\areas\areas.dm"
#include "maps\_common\areas\asteroid_areas.dm"

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: