Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Fixed][Win32] Load games from command line and unicode filenames
08-29-2014, 10:08 PM (This post was last modified: 08-29-2014 11:05 PM by TheDax.)
Post: #2
RE: Load games from command line and unicode filenames
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Load games from command line and unicode filenames - TheDax - 08-29-2014 10:08 PM

Forum Jump: