Fix crash under Proton due to case-sensitivity#128
Fix crash under Proton due to case-sensitivity#128Kaydax wants to merge 1 commit intoFacepunch:masterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes a crash when running the game under Proton (Linux compatibility layer for Windows games) by removing case normalization from filesystem path initialization. The issue occurred because Linux filesystems are case-sensitive, and converting the root folder path to lowercase caused a System.IO.DirectoryNotFoundException when the actual path contained uppercase letters.
- Removes
ToLowerInvariant()call when converting the root folder path inLocalFileSystemconstructor - Allows the filesystem to respect the actual case of directory paths on case-sensitive filesystems
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
This should really be fixed in Proton, not here. |
|
It should not. Changing case sensitivity in the entirety of Proton is very extreme. I would like to ask what problem using ToLowerInvariant fixes in the first place. |
|
I apologize, the mistake was on my end. The entire issue was caused by a bug with steam that caused library paths with Uppercase paths to become all lower case, thus causing the problem. The fix is to remove the library and re-add it, fixing the issue. |

For some God forsaken reason, forcing the path to be lowercase here under Proton causes a
System.IO.DirectoryNotFoundExceptiondue to case-sensitivity. RemovingToLowerInvariant()in the creation of theLocalFileSystemfixes the issue and allows the game to boot under Proton again.