mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
parent
55d84414ee
commit
8fc9862614
1 changed files with 10 additions and 0 deletions
|
@ -659,6 +659,11 @@ error_code cellGameGetParamString(s32 id, vm::ptr<char> buf, u32 bufsize)
|
||||||
{
|
{
|
||||||
cellGame.warning("cellGameGetParamString(id=%d, buf=*0x%x, bufsize=%d)", id, buf, bufsize);
|
cellGame.warning("cellGameGetParamString(id=%d, buf=*0x%x, bufsize=%d)", id, buf, bufsize);
|
||||||
|
|
||||||
|
if (!buf || bufsize == 0)
|
||||||
|
{
|
||||||
|
return CELL_GAME_ERROR_PARAM;
|
||||||
|
}
|
||||||
|
|
||||||
const auto prm = fxm::get<content_permission>();
|
const auto prm = fxm::get<content_permission>();
|
||||||
|
|
||||||
if (!prm)
|
if (!prm)
|
||||||
|
@ -685,6 +690,11 @@ error_code cellGameSetParamString(s32 id, vm::cptr<char> buf)
|
||||||
{
|
{
|
||||||
cellGame.warning("cellGameSetParamString(id=%d, buf=*0x%x)", id, buf);
|
cellGame.warning("cellGameSetParamString(id=%d, buf=*0x%x)", id, buf);
|
||||||
|
|
||||||
|
if (!buf)
|
||||||
|
{
|
||||||
|
return CELL_GAME_ERROR_PARAM;
|
||||||
|
}
|
||||||
|
|
||||||
const auto prm = fxm::get<content_permission>();
|
const auto prm = fxm::get<content_permission>();
|
||||||
|
|
||||||
if (!prm)
|
if (!prm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue