From d97687ab17a4b89a6e3b7a699b07b382ab004c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katharina=20Dr=C3=B6ge?= Date: Sun, 2 Aug 2026 12:35:09 +0200 Subject: [PATCH] Make `case_insensitive_file_search` a no-op on Windows --- legendary/lfs/wine_helpers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/legendary/lfs/wine_helpers.py b/legendary/lfs/wine_helpers.py index ae9a55d..6867c82 100644 --- a/legendary/lfs/wine_helpers.py +++ b/legendary/lfs/wine_helpers.py @@ -1,6 +1,7 @@ import configparser import logging import os +import sys logger = logging.getLogger('WineHelpers') @@ -23,8 +24,11 @@ def get_shell_folders(registry, wine_pfx): def case_insensitive_file_search(path: str) -> str: """ Similar to case_insensitive_path_search: Finds a file case-insensitively - Note that this *does* work on Windows, although it's rather pointless + No-op on Windows """ + if sys.platform == 'win32': + return path + if os.path.exists(path): return path