mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Implement sysutil_check_name_string
* Fully implement 3, 4, 16 and 17 error checks of cellSaveData. * cellSysCacheMount restrict characters in ID. * cellHddGameCheck restricts characters in dirName.
This commit is contained in:
parent
7519e36317
commit
1986944c61
5 changed files with 134 additions and 9 deletions
|
|
@ -150,13 +150,16 @@ error_code cellHddGameCheck(ppu_thread& ppu, u32 version, vm::cptr<char> dirName
|
|||
{
|
||||
cellGame.error("cellHddGameCheck(version=%d, dirName=%s, errDialog=%d, funcStat=*0x%x, container=%d)", version, dirName, errDialog, funcStat, container);
|
||||
|
||||
std::string dir = dirName.get_ptr();
|
||||
|
||||
if (dir.size() != 9)
|
||||
if (!dirName || !funcStat || sysutil_check_name_string(dirName.get_ptr(), 1, CELL_GAME_DIRNAME_SIZE) != 0)
|
||||
{
|
||||
return CELL_HDDGAME_ERROR_PARAM;
|
||||
}
|
||||
|
||||
std::string dir = dirName.get_ptr();
|
||||
|
||||
// TODO: Find error code
|
||||
verify(HERE), dir.size() == 9;
|
||||
|
||||
vm::var<CellHddGameCBResult> result;
|
||||
vm::var<CellHddGameStatGet> get;
|
||||
vm::var<CellHddGameStatSet> set;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue