Skip to content

Commit 84f3b8a

Browse files
committed
xrCore: Do not lowercase params anymore.
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.
1 parent cb308c1 commit 84f3b8a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/xrCore/xrCore.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void xrCore::_initialize(LPCSTR _ApplicationName, LogCallback cb, BOOL init_fs,
3939
// Init COM so we can use CoCreateInstance
4040
// HRESULT co_res =
4141
Params = xr_strdup(GetCommandLine());
42-
xr_strlwr(Params);
4342
if (!strstr(Params, "-editor"))
4443
CoInitializeEx(NULL, COINIT_MULTITHREADED);
4544

0 commit comments

Comments
 (0)