mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-09 09:39:44 +00:00
Use more starts_with
This commit is contained in:
parent
d7dd4897f8
commit
8762f2a588
4 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@ void cpu_translator::initialize(llvm::LLVMContext& context, llvm::ExecutionEngin
|
||||||
cpu == "bdver2" ||
|
cpu == "bdver2" ||
|
||||||
cpu == "bdver3" ||
|
cpu == "bdver3" ||
|
||||||
cpu == "bdver4" ||
|
cpu == "bdver4" ||
|
||||||
cpu.substr(0, 5) == "znver")
|
cpu.startswith("znver"))
|
||||||
{
|
{
|
||||||
m_use_fma = true;
|
m_use_fma = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -802,7 +802,7 @@ s32 cellSailPlayerCreateDescriptor(vm::ptr<CellSailPlayer> pSelf, s32 streamType
|
||||||
case CELL_SAIL_STREAM_PAMF:
|
case CELL_SAIL_STREAM_PAMF:
|
||||||
{
|
{
|
||||||
std::string uri = pUri.get_ptr();
|
std::string uri = pUri.get_ptr();
|
||||||
if (uri.substr(0, 12) == "x-cell-fs://")
|
if (uri.starts_with("x-cell-fs://"))
|
||||||
{
|
{
|
||||||
if (fs::file f{ vfs::get(uri.substr(12)) })
|
if (fs::file f{ vfs::get(uri.substr(12)) })
|
||||||
{
|
{
|
||||||
|
|
|
@ -166,7 +166,7 @@ void GLVertexDecompilerThread::insertMainStart(std::stringstream & OS)
|
||||||
{
|
{
|
||||||
for (const ParamItem &PI : PT.items)
|
for (const ParamItem &PI : PT.items)
|
||||||
{
|
{
|
||||||
if (PI.name.substr(0, 7) == "dst_reg")
|
if (PI.name.starts_with("dst_reg"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
OS << " " << PT.type << " " << PI.name;
|
OS << " " << PT.type << " " << PI.name;
|
||||||
|
|
|
@ -226,7 +226,7 @@ void VKVertexDecompilerThread::insertMainStart(std::stringstream & OS)
|
||||||
{
|
{
|
||||||
for (const ParamItem &PI : PT.items)
|
for (const ParamItem &PI : PT.items)
|
||||||
{
|
{
|
||||||
if (PI.name.substr(0, 7) == "dst_reg")
|
if (PI.name.starts_with("dst_reg"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
OS << " " << PT.type << " " << PI.name;
|
OS << " " << PT.type << " " << PI.name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue