Fix build regressions
This commit is contained in:
@@ -152,7 +152,7 @@ bool CommandLine::Parse(const StringView& commandLine, Array<Arg>& args)
|
||||
int32 nameStart = i;
|
||||
while (i < length && commandLine[i] != '-' && commandLine[i] != '=' && !StringUtils::IsWhitespace(commandLine[i]))
|
||||
i++;
|
||||
if (wholeQuote)
|
||||
if (wholeQuote && commandLine[i] == '\"')
|
||||
i--;
|
||||
int32 nameEnd = i;
|
||||
StringView name = commandLine.Substring(nameStart, nameEnd - nameStart);
|
||||
|
||||
@@ -917,7 +917,7 @@ bool AndroidPlatform::Init()
|
||||
DeviceId.C = (uint32)Platform::GetMemoryStats().TotalPhysicalMemory;
|
||||
|
||||
// D - cpuid
|
||||
DeviceId.D = (uint32)AndroidCpu.ClockSpeed * AndroidCpu.LogicalProcessorCount * AndroidCpu.ProcessorCoreCount * AndroidCpu.CacheLineSize;
|
||||
DeviceId.D = (uint32)CpuInfo.ClockSpeed * CpuInfo.LogicalProcessorCount * CpuInfo.ProcessorCoreCount * CpuInfo.CacheLineSize;
|
||||
}
|
||||
|
||||
AndroidRegisterCrashHandling();
|
||||
|
||||
@@ -253,9 +253,8 @@ namespace Flax.Build
|
||||
i++;
|
||||
if (i == length)
|
||||
break;
|
||||
if (commandLine[i] == '-')
|
||||
i++;
|
||||
else if (commandLine[i] == '/')
|
||||
var hasArgPrefix = commandLine[i] == '-' || commandLine[i] == '/';
|
||||
if (hasArgPrefix)
|
||||
i++;
|
||||
|
||||
// Skip white space
|
||||
@@ -266,7 +265,7 @@ namespace Flax.Build
|
||||
int nameStart = i;
|
||||
while (i < length && commandLine[i] != '-' && commandLine[i] != '=' && !char.IsWhiteSpace(commandLine[i]))
|
||||
i++;
|
||||
if (wholeQuote)
|
||||
if (wholeQuote && commandLine[i] == '\"')
|
||||
i--;
|
||||
int nameEnd = i;
|
||||
string name = commandLine.Substring(nameStart, nameEnd - nameStart);
|
||||
|
||||
Reference in New Issue
Block a user