Fixed case mismatch in sound directory files for Heretic and Hexen.
This commit is contained in:
@@ -2299,11 +2299,13 @@ class DoomLauncher(QMainWindow):
|
|||||||
menuPath = self.gamePath / "Addons" / "MENU"
|
menuPath = self.gamePath / "Addons" / "MENU"
|
||||||
if menuPath.exists():
|
if menuPath.exists():
|
||||||
# Add menu files in order
|
# Add menu files in order
|
||||||
|
# Sound directory files use capitalized names (DOOM, Heretic, Hexen)
|
||||||
|
sound_dir_name = game_type if game_type == "DOOM" else game_type.capitalize()
|
||||||
menu_addons = [
|
menu_addons = [
|
||||||
"TobyV9_SimpleMenu.pk3",
|
"TobyV9_SimpleMenu.pk3",
|
||||||
f"TobySoundDirectory_{game_type}.pk3"
|
f"TobySoundDirectory_{sound_dir_name}.pk3"
|
||||||
]
|
]
|
||||||
|
|
||||||
for addon in menu_addons:
|
for addon in menu_addons:
|
||||||
addon_path = menuPath / addon
|
addon_path = menuPath / addon
|
||||||
if addon_path.exists():
|
if addon_path.exists():
|
||||||
|
|||||||
Reference in New Issue
Block a user