regex_replace first occurrence only

This commit is contained in:
Anthony Miles 2019-12-17 18:35:21 +13:00 committed by patrickvl
parent 949aecd862
commit 13df253853
1 changed files with 1 additions and 1 deletions

View File

@ -1686,7 +1686,7 @@ extern HRESULT EmuRecompileVshFunction
}
std::string hlsl_str = hlsl_stream.str();
hlsl_str = std::regex_replace(hlsl_template, std::regex("// <Xbox Shader>"), hlsl_str);
hlsl_str = std::regex_replace(hlsl_template, std::regex("// <Xbox Shader>"), hlsl_str, std::regex_constants::format_first_only);
DbgVshPrintf("--- HLSL conversion ---\n");
DbgVshPrintf(DebugPrependLineNumbers(hlsl_str).c_str());