mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
- backend update from GZDoom.
This commit is contained in:
parent
4d226d19e7
commit
eae97ded1b
4 changed files with 21 additions and 13 deletions
|
@ -513,6 +513,26 @@ size_t FStringTable::ProcessEscapes (char *iptr)
|
||||||
c = '\r';
|
c = '\r';
|
||||||
else if (c == 't')
|
else if (c == 't')
|
||||||
c = '\t';
|
c = '\t';
|
||||||
|
else if (c == 'x')
|
||||||
|
{
|
||||||
|
c = 0;
|
||||||
|
for (int i = 0; i < 2; i++)
|
||||||
|
{
|
||||||
|
char cc = *iptr++;
|
||||||
|
if (cc >= '0' && cc <= '9')
|
||||||
|
c = (c << 4) + cc - '0';
|
||||||
|
else if (cc >= 'a' && cc <= 'f')
|
||||||
|
c = (c << 4) + 10 + cc - 'a';
|
||||||
|
else if (cc >= 'A' && cc <= 'F')
|
||||||
|
c = (c << 4) + 10 + cc - 'A';
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iptr--;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (c == 0) continue;
|
||||||
|
}
|
||||||
else if (c == '\n')
|
else if (c == '\n')
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2170,7 +2170,6 @@ FxExpression *FxPreIncrDecr::Resolve(FCompileContext &ctx)
|
||||||
ExpEmit FxPreIncrDecr::Emit(VMFunctionBuilder *build)
|
ExpEmit FxPreIncrDecr::Emit(VMFunctionBuilder *build)
|
||||||
{
|
{
|
||||||
assert(Token == TK_Incr || Token == TK_Decr);
|
assert(Token == TK_Incr || Token == TK_Decr);
|
||||||
assert(ValueType == Base->ValueType && IsNumeric());
|
|
||||||
|
|
||||||
int zero = build->GetConstantInt(0);
|
int zero = build->GetConstantInt(0);
|
||||||
int regtype = ValueType->GetRegType();
|
int regtype = ValueType->GetRegType();
|
||||||
|
@ -2257,7 +2256,6 @@ FxExpression *FxPostIncrDecr::Resolve(FCompileContext &ctx)
|
||||||
ExpEmit FxPostIncrDecr::Emit(VMFunctionBuilder *build)
|
ExpEmit FxPostIncrDecr::Emit(VMFunctionBuilder *build)
|
||||||
{
|
{
|
||||||
assert(Token == TK_Incr || Token == TK_Decr);
|
assert(Token == TK_Incr || Token == TK_Decr);
|
||||||
assert(ValueType == Base->ValueType && IsNumeric());
|
|
||||||
|
|
||||||
int zero = build->GetConstantInt(0);
|
int zero = build->GetConstantInt(0);
|
||||||
int regtype = ValueType->GetRegType();
|
int regtype = ValueType->GetRegType();
|
||||||
|
@ -5261,7 +5259,6 @@ FxExpression *FxMinMax::Resolve(FCompileContext &ctx)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ExpVal value = static_cast<FxConstant *>(choices[j])->GetValue();
|
ExpVal value = static_cast<FxConstant *>(choices[j])->GetValue();
|
||||||
assert(value.Type == ValueType);
|
|
||||||
if (Type == NAME_Min)
|
if (Type == NAME_Min)
|
||||||
{
|
{
|
||||||
if (value.Type->GetRegType() == REGT_FLOAT)
|
if (value.Type->GetRegType() == REGT_FLOAT)
|
||||||
|
|
|
@ -577,10 +577,6 @@ void DStatusBarCore::DrawGraphic(FGameTexture* tex, double x, double y, int flag
|
||||||
x += orgx;
|
x += orgx;
|
||||||
y += orgy;
|
y += orgy;
|
||||||
}
|
}
|
||||||
if (clipwidth != -1)
|
|
||||||
{
|
|
||||||
int a = 0;
|
|
||||||
}
|
|
||||||
DrawTexture(twod, tex, x, y,
|
DrawTexture(twod, tex, x, y,
|
||||||
DTA_TopOffset, 0,
|
DTA_TopOffset, 0,
|
||||||
DTA_LeftOffset, 0,
|
DTA_LeftOffset, 0,
|
||||||
|
|
|
@ -331,13 +331,8 @@ FString ExtractFileBase (const char *path, bool include_extension)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!include_extension)
|
if (!include_extension && (dot = strrchr(src, '.')))
|
||||||
{
|
{
|
||||||
dot = src;
|
|
||||||
while (*dot && *dot != '.')
|
|
||||||
{
|
|
||||||
dot++;
|
|
||||||
}
|
|
||||||
return FString(src, dot - src);
|
return FString(src, dot - src);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue