Skip to content

Commit

Permalink
xrCore: Do not lowercase params anymore.
Browse files Browse the repository at this point in the history
Params can contain paths, which are case-sensitive in Linux
(and become invalid after lowercasing).

This commit can break application arguments, thus "-EdiTOr" would not
be considered as "-editor" option anymore, but it's OK, because there
is a number of case-sensitive arguments, which is processed via
GetCommandLine() with case-sensitive matching.
  • Loading branch information
Kaffeine committed Nov 26, 2015
1 parent cb308c1 commit 84f3b8a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/xrCore/xrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ void xrCore::_initialize(LPCSTR _ApplicationName, LogCallback cb, BOOL init_fs,
// Init COM so we can use CoCreateInstance
// HRESULT co_res =
Params = xr_strdup(GetCommandLine());
xr_strlwr(Params);
if (!strstr(Params, "-editor"))
CoInitializeEx(NULL, COINIT_MULTITHREADED);

Expand Down

0 comments on commit 84f3b8a

Please sign in to comment.