Kylemc1413 / SongCore

A plugin for handling custom song additions in Beat Saber.
MIT License
87 stars 48 forks source link

[Bug] Unicode characters are not recognized in linux #161

Open silentrald opened 1 week ago

silentrald commented 1 week ago

I have maps/songs that have Japanese Characters on the song title and SongCore does not read the folder names properly as seen in the image below. Directory.GetDirectories seems to be the main culprit for this. I'm not sure what C# runtime this uses under the hood but might need help on getting this check. Might ask if this can be resolved within SongCore itself or I might need to replace some dll files within my Beat Saber version to get this working properly.

image

(Left side compiled in dotnet 8.0.x and Directory.GetDirectories seems to work perfectly fine)

Running on Archlinux, X11 compositor.

Some workarounds I had to do was to create a script to rename the folders to remove any Japanese Characters/Unicode so that they could properly be loaded in Beat Saber.