Fix build regressions

This commit is contained in:
2026-07-29 21:32:49 +02:00
parent ce7701e239
commit 50ee3fd073
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -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();
+3 -4
View File
@@ -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);