kometbomb / klystrack

A chiptune tracker
http://kometbomb.github.io/klystrack/
Other
485 stars 28 forks source link

Crashes if path contains non-ascii chars #218

Closed dmi7ry closed 7 years ago

dmi7ry commented 7 years ago

If path where I placed klystrack contains Cyrillic (I think any other non-ascii chars too), it crashes when I try to start it.

Windows 7 x 64.

kometbomb commented 7 years ago

I am replacing the routine for finding the resource path (i.e. where klystrack.exe is in Windows) with SDL_GetBasePath() that should work cross-platform. Tested and it seems to work, hopefully also helps on OSX and Linux.