added a third batch of GetChars call to FStrings.
This commit is contained in:
parent
89535b803a
commit
c94c63110e
31 changed files with 216 additions and 217 deletions
|
|
@ -76,7 +76,7 @@ static void do_uniform_set(float value, ExtraUniformCVARData* data)
|
|||
for (unsigned int i = 0; i < PostProcessShaders.Size(); i++)
|
||||
{
|
||||
PostProcessShader& shader = PostProcessShaders[i];
|
||||
if (strcmp(shader.Name, data->Shader) == 0)
|
||||
if (strcmp(shader.Name.GetChars(), data->Shader.GetChars()) == 0)
|
||||
{
|
||||
data->vec4 = shader.Uniforms[data->Uniform].Values;
|
||||
}
|
||||
|
|
@ -154,7 +154,7 @@ static void ParseVavoomSkybox()
|
|||
sb->SetSize();
|
||||
if (!error)
|
||||
{
|
||||
TexMan.AddGameTexture(MakeGameTexture(sb, s, ETextureType::Override));
|
||||
TexMan.AddGameTexture(MakeGameTexture(sb, s.GetChars(), ETextureType::Override));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -997,7 +997,7 @@ class GLDefsParser
|
|||
break;
|
||||
case LIGHTTAG_LIGHT:
|
||||
ParseString(sc);
|
||||
AddLightAssociation(name, frameName, sc.String);
|
||||
AddLightAssociation(name.GetChars(), frameName.GetChars(), sc.String);
|
||||
break;
|
||||
default:
|
||||
sc.ScriptError("Unknown tag: %s\n", sc.String);
|
||||
|
|
@ -1072,7 +1072,7 @@ class GLDefsParser
|
|||
sc.MustGetString();
|
||||
|
||||
FString s = sc.String;
|
||||
FSkyBox * sb = new FSkyBox(s);
|
||||
FSkyBox * sb = new FSkyBox(s.GetChars());
|
||||
if (sc.CheckString("fliptop"))
|
||||
{
|
||||
sb->fliptop = true;
|
||||
|
|
@ -1092,7 +1092,7 @@ class GLDefsParser
|
|||
sc.ScriptError("%s: Skybox definition requires either 3 or 6 faces", s.GetChars());
|
||||
}
|
||||
sb->SetSize();
|
||||
TexMan.AddGameTexture(MakeGameTexture(sb, s, ETextureType::Override));
|
||||
TexMan.AddGameTexture(MakeGameTexture(sb, s.GetChars(), ETextureType::Override));
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
@ -1588,7 +1588,7 @@ class GLDefsParser
|
|||
}
|
||||
sc.MustGetString();
|
||||
cvarname = sc.String;
|
||||
cvar = FindCVar(cvarname, NULL);
|
||||
cvar = FindCVar(cvarname.GetChars(), NULL);
|
||||
|
||||
UCVarValue oldval;
|
||||
UCVarValue val;
|
||||
|
|
@ -1606,7 +1606,7 @@ class GLDefsParser
|
|||
{
|
||||
if (!cvar)
|
||||
{
|
||||
cvar = C_CreateCVar(cvarname, cvartype, cvarflags);
|
||||
cvar = C_CreateCVar(cvarname.GetChars(), cvartype, cvarflags);
|
||||
}
|
||||
else if (cvar && (((cvar->GetFlags()) & CVAR_MOD) == CVAR_MOD))
|
||||
{
|
||||
|
|
@ -1626,7 +1626,7 @@ class GLDefsParser
|
|||
{
|
||||
oldval.Float = cvar->GetGenericRep(CVAR_Float).Float;
|
||||
delete cvar;
|
||||
cvar = C_CreateCVar(cvarname, cvartype, cvarflags);
|
||||
cvar = C_CreateCVar(cvarname.GetChars(), cvartype, cvarflags);
|
||||
oldextra = (ExtraUniformCVARData*)cvar->GetExtraDataPointer();
|
||||
}
|
||||
|
||||
|
|
@ -1904,7 +1904,7 @@ public:
|
|||
if (!sc.GetToken ())
|
||||
{
|
||||
if (addedcvars)
|
||||
GameConfig->DoModSetup (gameinfo.ConfigName);
|
||||
GameConfig->DoModSetup (gameinfo.ConfigName.GetChars());
|
||||
return;
|
||||
}
|
||||
type = sc.MatchString(CoreKeywords);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue