- more macOS compilation fixes

Still not complete…
This commit is contained in:
Christoph Oelckers 2020-01-07 01:11:19 +01:00
parent 134122335b
commit fb985d2503
70 changed files with 165 additions and 733 deletions

View file

@ -400,28 +400,6 @@ UCVarValue FBaseCVar::FromFloat (float value, ECVarType type)
return ret;
}
static uint8_t HexToByte (const char *hex)
{
uint8_t v = 0;
for (int i = 0; i < 2; ++i)
{
v <<= 4;
if (hex[i] >= '0' && hex[i] <= '9')
{
v += hex[i] - '0';
}
else if (hex[i] >= 'A' && hex[i] <= 'F')
{
v += hex[i] - 'A';
}
else // The string is already verified to contain valid hexits
{
v += hex[i] - 'a';
}
}
return v;
}
UCVarValue FBaseCVar::FromString (const char *value, ECVarType type)
{
UCVarValue ret;