Posts: 2,392
Threads: 27
Joined: Mar 2013
Reputation:
91
08-29-2014, 10:08 PM
(This post was last modified: 08-29-2014, 11:05 PM by TheDax.)
Currently no, it uses "ANSI" to read the command-line since we haven't written the code to parse it as wide.
Quote:Note that lpCmdLine uses the LPSTR data type instead of the LPTSTR data type. This means that WinMain cannot be used by Unicode programs.
http://msdn.microsoft.com/en-us/library/ms633559.aspx
It shouldn't be hard to convert it to use wide strings though (as far as I know, only WinMain and Config::Load would need adjustment..).
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.
Posts: 2,392
Threads: 27
Joined: Mar 2013
Reputation:
91
08-30-2014, 12:21 AM
(This post was last modified: 08-30-2014, 12:36 AM by TheDax.)
I've got some preliminary code allowing for the game path (or filename, either or) to contain Unicode characters, but savestates, config inis, and log files won't work from the command-line as of yet. I'll work on this a bit more later. Time for a break.
Edit: Moved to Development since I started working on it.
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.
Posts: 5
Threads: 1
Joined: Mar 2013
Reputation:
0
wow. That's a lot of work to be done. I only asked about loading unicode files from command line. The other extra files really need to be changed as well ?
Posts: 2,392
Threads: 27
Joined: Mar 2013
Reputation:
91
It makes more sense to do it for all arguments that use a file path rather than just one. I'm sure someone would have asked for them all to work eventually, anyway.
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.
Posts: 2,392
Threads: 27
Joined: Mar 2013
Reputation:
91
08-31-2014, 04:26 AM
(This post was last modified: 08-31-2014, 06:34 AM by TheDax.)
https://github.com/hrydgard/ppsspp/pull/6816
That should wrap this up once it's merged.
This has been merged, please check the latest development build(s) for improvements.
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.
Posts: 2,392
Threads: 27
Joined: Mar 2013
Reputation:
91
No problem.
4GHz AMD 3900X, 32GB DDR4 RAM, 6GB Nvidia RTX 2060, Asus Crosshair 7 Hero (Wifi), Linux
How to ask useful questions: https://web.archive.org/web/20110214010944/http://support.microsoft.com/kb/555375
I'm not Dark_Alex, nor do I claim to be. Our nicknames are merely coincidence.