JuneStepp / OneLauncher

Launcher and Addons Manager for LOTRO and DDO
Other
45 stars 11 forks source link

Plugins folder is assumed to be case sensitive #30

Closed Thaodan closed 2 years ago

Thaodan commented 3 years ago

OneLauncher assumes that the plugin folder is always Plugins while the game just takes any form of the work no matter the case.

JuneStepp commented 3 years ago

It seems that the game doesn't care about the case of Music, ui, skins, or documents settings folders either. I believe that this is just because Windows files and folders are case-insensitive by default. (https://docs.microsoft.com/en-us/windows/wsl/case-sensitivity) The best solution here may be to use PureWindowsPath from pathlib for all paths used in WINE. With type hints, it shouldn't be too confusing to do this.

JuneStepp commented 2 years ago

PureWindowsPath doesn't interact with the file system for obvious reasons, so it wouldn't work. A while ago, I made a subclass of Path that transforms paths into any existing path ignoring case. I need to switch all paths used in WINE to this. Remember to convert check_if_valid_game_folder and all the places using it.