mirror of https://github.com/RPCS3/rpcs3.git
Used fmt::Format instead of sprintf
This commit is contained in:
parent
4d27198ad7
commit
deebe3ca1f
|
@ -73,10 +73,7 @@ std::string CgBinaryDisasm::AddConstDisAsm()
|
||||||
const u32 z = GetData(data[2]);
|
const u32 z = GetData(data[2]);
|
||||||
const u32 w = GetData(data[3]);
|
const u32 w = GetData(data[3]);
|
||||||
|
|
||||||
char buf[1024];
|
return fmt::Format("{0x%08x(%g), 0x%08x(%g), 0x%08x(%g), 0x%08x(%g)}", x, (float&)x, y, (float&)y, z, (float&)z, w, (float&)w);
|
||||||
sprintf(buf, "{0x%08x(%g), 0x%08x(%g), 0x%08x(%g), 0x%08x(%g)}", x, (float&)x, y, (float&)y, z, (float&)z, w, (float&)w);
|
|
||||||
|
|
||||||
return fmt::format(buf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CgBinaryDisasm::AddTexDisAsm()
|
std::string CgBinaryDisasm::AddTexDisAsm()
|
||||||
|
|
Loading…
Reference in New Issue