PR #894: wrong parsing of the return of adb cmd: device (Contributed by muzaheed57) with update to accept either tab or space

https://github.com/EpicGames/UnrealEngine/pull/894
#ue4
#android

[CL 2473228 by Chris Babcock in Main branch]
This commit is contained in:
Chris Babcock
2015-03-09 20:19:58 -04:00
parent b4cdb8978c
commit 0b36c32079

View File

@@ -135,9 +135,13 @@ private:
// grab the device serial number
int32 TabIndex;
if (!DeviceString.FindChar(TCHAR(' '), TabIndex))
// use either tab or space as separator
if (!DeviceString.FindChar(TCHAR('\t'), TabIndex))
{
continue;
if (!DeviceString.FindChar(TCHAR(' '), TabIndex))
{
continue;
}
}
FAndroidDeviceInfo NewDeviceInfo;