Open cmbasnett opened 4 years ago
https://source.dot.net/#System.Private.CoreLib/PathInternal.Unix.cs,cffe6f0bdd450298 seems to confirm what you're saying
Maki has a method to force path names to have correct slash. Maybe could use that to prep the data. It's in the extended.cs
Like where we read the strings in we could change all the slashes to correct ones.
Maybe we can overload utf8 encoding to swap the slashes as it's reading the strings.
The C# function
Path.GetFileName
andPath.GetFileNameWithoutExtension
work with native platform directory separators (\
on Windows,/
on Linux). This creates problems on Linux, since the game's internal data uses Windows-style paths.For example:
I will explore a solution on my fork and make a PR.
Let me know if you have any preference as to how to deal with this.