mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
PSF: Avoid redundent string copies in psf::array/string/get_string (#8707)
This commit is contained in:
parent
b487c09d34
commit
edc09e22b4
6 changed files with 33 additions and 31 deletions
|
|
@ -876,7 +876,7 @@ error_code cellGameGetParamString(s32 id, vm::ptr<char> buf, u32 bufsize)
|
|||
return CELL_GAME_ERROR_NOTSUPPORTED;
|
||||
}
|
||||
|
||||
const std::string value = psf::get_string(prm->sfo, std::string(key.name));
|
||||
const auto value = psf::get_string(prm->sfo, std::string(key.name));
|
||||
|
||||
if (value.empty() && !prm->sfo.count(std::string(key.name)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue