dosbox: add cpu.conf support
authorNiki Roo <niki@nikiroo.be>
Thu, 27 Mar 2025 21:21:24 +0000 (22:21 +0100)
committerNiki Roo <niki@nikiroo.be>
Thu, 27 Mar 2025 21:21:24 +0000 (22:21 +0100)
gamiki/support/commands.py

index 7ff92e2acdf5f7c434b293dc02ce0c8898319fe6..60c653b2ac5e3bd0a4628db733d88c9282ca3825 100644 (file)
@@ -19,6 +19,10 @@ def dosbox(dir: PurePath, link: PurePath) -> int:
     if (base.exists()):
         cmd.append("-conf")
         cmd.append(base.as_posix())
+    cpu = dir.joinpath("cpu.conf")
+    if (cpu.exists()):
+        cmd.append("-conf")
+        cmd.append(cpu.as_posix())
     cmd.append("-conf")
     cmd.append(dir.joinpath("start.conf").as_posix())