You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C# function Path.GetFileName and Path.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:
var path = "C:\\ff8\\Data\\eng\\FIELD\\model\\main_chr\\d000.mch"
var fileName = Path.GetFileNameWithoutExtension(path);
Console.WriteLine(fileName);
// Windows
>> "d000"
// Linux
>> "C:\\ff8\\Data\\eng\\FIELD\\model\\main_chr\\d000"
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: