ImMichey / Expo

5 stars 0 forks source link

Inconsistent usage of file separators. #1

Open nulldoubt opened 6 days ago

nulldoubt commented 6 days ago

Hey, I've tried to build this game a couple of days ago and realized that it wasn't working well on my host.

The reason for this is that it's using inconsistent file separators.

File separators aren't standardized across OSs but they can be queried vie the File.separator variable.

I'm on Windows 11 and have replaced all occurrences and it works just fine!

I can't really remember where it was but in many fields, you were just concatenating paths using backslashes and some other using slashes.

Hope this helps!

ImMichey commented 1 day ago

Hey @nulldoubt,

thanks for the notification. The game itself uses some hard-coded paths in debug mode when reloading certain game content files at runtime (see here for example). I will add more robust file (re)loading in the future.