Sewer56 / Reloaded-Mod-Loader

[Deprecated: Use Reloaded II] Universal DLL Injection 100% C# based universal mod loader and library set compatible with arbitrary X86 and X64 processes.
GNU General Public License v3.0
42 stars 5 forks source link

Can't launch any games because of special characters in directories #8

Closed icup321 closed 6 years ago

icup321 commented 6 years ago

I'm having an issue using this to launch any game with mods and I think it's because my username has special characters in it. When I launch it, the program fails and gives me this error: cvb Basically, it's the same issue as this: https://github.com/PCSX2/pcsx2/issues/2478

Sewer56 commented 6 years ago

Found the issue, will look into solutions fairly soon. Should be an easy fix with perhaps a tiny bit of research - as with how I designed Reloaded's source code.

Sewer56 commented 6 years ago

Should be fixed as of commits d360fe1527f234dd45e9eb2d06985483db7db5e7 b691cc335cbfe160478079ce2dbd1e5f46bac1f0 e451c0d3920513090c2cbd4bff18691ac680bcd1

Tested with the username, and user directory 【Arianrhod】(ヷーこ), both games running from the user directory and from Program Files.

That said, I must stress for the bypassers that having special characters and/or unicode in your usernames is a very, very bad idea when it comes to dealing with old games and applications which may not support the character set, or only partially support it.

In testing I found that while modern games worked fine after the changes (I checked 3 modern games), some of the older games such as Sonic Riders/Heroes had issues which made the games unplayable if your character names contained Unicode or special characters.

In Heroes, the game would be unable to load your configuration file because CreateFileA (ANSI) was used for loading it, same with saved games. Launching Heroes from a file path with Unicode in it, also caused Story select to crash due to the same issue. Riders wouldn't even run (infinite load screen).

Issue was solved and result confirmed with OP over Discord.