lethal-guitar / RigelEngine

A modern re-implementation of the classic DOS game Duke Nukem II
GNU General Public License v2.0
920 stars 60 forks source link

[Windows] Executable fails to start if in a directory with spaces or symbols #848

Closed hfc2x closed 2 years ago

hfc2x commented 2 years ago

Pretty much what says in the title. My Duke 2 folder is within a long string of folders with symbols and spaces (and swearing), therefore RigelEngine starts out with an error that NUKEM2.CMP can't be opened.

lethal-guitar commented 2 years ago

@hfc2x thanks for reporting! Spaces are not a problem, but I can reproduce the issue when using a path with emoji and other special characters. I'm investigating!

lethal-guitar commented 2 years ago

@hfc2x Ok, this build should fix it:

RigelEngine_unicode_path_fix.zip

Can you give this a try and let me know if it fixes the problem for you as well? Note that you might have to delete the user profile file, if RigelEngine has already created one. See https://github.com/lethal-guitar/RigelEngine/wiki/FAQ#where-are-saved-games-settings-etc-stored

This is the path I tested with, which is now working:

grafik

hfc2x commented 2 years ago

Yes! That actually fixed the problem.