mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +00:00
Convert many of the now-deprecated plString::Format calls to plFormat
This commit is contained in:
@ -134,7 +134,7 @@ plLayer* hsGMaterial::MakeBaseLayer()
|
||||
|
||||
plString buff;
|
||||
if( !GetKeyName().IsNull() )
|
||||
buff = plString::Format("%s_Layer", GetKeyName().c_str());
|
||||
buff = plFormat("{}_Layer", GetKeyName());
|
||||
else
|
||||
buff = "Layer";
|
||||
hsgResMgr::ResMgr()->NewKey( buff, newLay, GetKey() != nil ? GetKey()->GetUoid().GetLocation() : plLocation::kGlobalFixedLoc );
|
||||
|
@ -226,7 +226,7 @@ void plGrassShaderMod::ISetupShaders()
|
||||
if (!fVShader)
|
||||
{
|
||||
plShader* vShader = new plShader;
|
||||
plString buff = plString::Format("%s_GrassVS", GetKey()->GetName().c_str());
|
||||
plString buff = plFormat("{}_GrassVS", GetKey()->GetName());
|
||||
hsgResMgr::ResMgr()->NewKey(buff, vShader, GetKey()->GetUoid().GetLocation());
|
||||
vShader->SetIsPixelShader(false);
|
||||
vShader->SetInputFormat(1);
|
||||
@ -249,7 +249,7 @@ void plGrassShaderMod::ISetupShaders()
|
||||
if (!fPShader)
|
||||
{
|
||||
plShader* pShader = new plShader;
|
||||
plString buff = plString::Format("%s_GrassPS", GetKey()->GetName().c_str());
|
||||
plString buff = plFormat("{}_GrassPS", GetKey()->GetName());
|
||||
hsgResMgr::ResMgr()->NewKey(buff, pShader, GetKey()->GetUoid().GetLocation());
|
||||
pShader->SetIsPixelShader(true);
|
||||
pShader->SetNumConsts(0);
|
||||
|
Reference in New Issue
Block a user