@@ -674,7 +674,7 @@ crossplatform::SamplerStateDesc::Wrapping stringToWrapping(string s)
674674 return crossplatform::SamplerStateDesc::CLAMP;
675675 if (is_equal (s," MIRROR" ))
676676 return crossplatform::SamplerStateDesc::MIRROR;
677- SIMUL_BREAK_ONCE (( string ( " Invalid string" )+s). c_str () );
677+ SIMUL_BREAK_ONCE (" Invalid string: {} " ,s );
678678 return crossplatform::SamplerStateDesc::WRAP;
679679}
680680
@@ -686,7 +686,7 @@ crossplatform::SamplerStateDesc::Filtering stringToFilter(string s)
686686 return crossplatform::SamplerStateDesc::LINEAR;
687687 if (is_equal (s," ANISOTROPIC" ))
688688 return crossplatform::SamplerStateDesc::ANISOTROPIC;
689- SIMUL_BREAK (( string ( " Invalid string: " )+s). c_str () );
689+ SIMUL_BREAK (" Invalid string: {} " ,s );
690690 return crossplatform::SamplerStateDesc::POINT;
691691}
692692
@@ -706,7 +706,7 @@ static crossplatform::CullFaceMode toCullFadeMode(string s)
706706 return crossplatform::CULL_FACE_FRONTANDBACK;
707707 else if (is_equal (s," CULL_NONE" ))
708708 return crossplatform::CULL_FACE_NONE;
709- SIMUL_BREAK (( string ( " Invalid string" )+s). c_str () );
709+ SIMUL_BREAK (" Invalid string: {} " ,s );
710710 return crossplatform::CULL_FACE_NONE;
711711}
712712
@@ -730,7 +730,7 @@ static crossplatform::Topology toTopology(string s)
730730 return crossplatform::Topology::TRIANGLELIST_ADJ;
731731 else if (is_equal (s," TriangleStripAdjacency" ))
732732 return crossplatform::Topology::TRIANGLESTRIP_ADJ;
733- SIMUL_BREAK (( string ( " Invalid string" )+s). c_str () );
733+ SIMUL_BREAK (" Invalid string: {} " ,s );
734734 return crossplatform::Topology::UNDEFINED;
735735}
736736
@@ -1015,8 +1015,7 @@ bool Effect::Load(crossplatform::RenderPlatform *r, const char *filename_utf8)
10151015 std::transform (binFilenameUtf8.begin (), binFilenameUtf8.end (), binFilenameUtf8.begin (), ::tolower);
10161016 if (!platform::core::FileLoader::GetFileLoader ()->FileExists (binFilenameUtf8.c_str ()))
10171017 {
1018- string err= platform::core::QuickFormat (" Shader effect file not found: %s" ,binFilenameUtf8.c_str ());
1019- SIMUL_BREAK_ONCE (err.c_str ());
1018+ SIMUL_BREAK_ONCE (" Shader effect file not found: {}" ,binFilenameUtf8);
10201019 static bool already = false ;
10211020 if (!already)
10221021 {
@@ -1515,7 +1514,7 @@ bool Effect::Load(crossplatform::RenderPlatform *r, const char *filename_utf8)
15151514 platform::core::FileLoader::GetFileLoader ()->AcquireFileContents (bin_ptr, bin_num_bytes, sfxbFilenameUtf8.c_str (), true );
15161515 if (!bin_ptr)
15171516 {
1518- SIMUL_BREAK (platform::core::QuickFormat ( " Failed to load combined shader binary: %s \n " , sfxbFilenameUtf8. c_str ()) );
1517+ SIMUL_BREAK (" Failed to load combined shader binary: {} \n " , sfxbFilenameUtf8);
15191518 }
15201519 }
15211520 }
@@ -1701,7 +1700,7 @@ bool Effect::Load(crossplatform::RenderPlatform *r, const char *filename_utf8)
17011700 }
17021701 else
17031702 {
1704- SIMUL_BREAK (platform::core::QuickFormat ( " Unknown shader type or command: %s \n " ,type. c_str ()) );
1703+ SIMUL_BREAK (" Unknown shader type or command: {} \n " ,type);
17051704 continue ;
17061705 }
17071706 Shader *s = nullptr ;
0 commit comments