Keep an empty WINE_CPU_TOPOLOGY from a game profile

This commit is contained in:
maxjivi05 authored and MaxsTechReview committed 2026-10-26 18:31:11 -04:00
1 parent 9d85af7558
commit 43266b2923
2 files changed
+2 -1

No files matched your search

@@ -352,7 +352,7 @@ def game_cores(env):
def cpu_topology(env):
if env.get("WINE_CPU_TOPOLOGY") or not (env.get("DROIDDECK_GAME_CORES", "").strip() or env.get("BL_GAME_CPUS", "").strip()):
if "WINE_CPU_TOPOLOGY" in env or not (env.get("DROIDDECK_GAME_CORES", "").strip() or env.get("BL_GAME_CPUS", "").strip()):
return
try:
cores = sorted(os.sched_getaffinity(0))
+1
View File
@@ -458,6 +458,7 @@ class GameEnvironmentTest(unittest.TestCase):
({"BL_GAME_CPUS": "0-7"}, set(range(8)), None),
({}, {6, 7}, None),
({"BL_GAME_CPUS": "6,7", "WINE_CPU_TOPOLOGY": "4:0,1,2,3"}, {6, 7}, "4:0,1,2,3"),
({"BL_GAME_CPUS": "6,7", "WINE_CPU_TOPOLOGY": ""}, {6, 7}, ""),
({"BL_GAME_CPUS": "9"}, {9}, None),
]
for env, affinity, expected in cases: