mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Implement ps3 application root flags detection
This commit is contained in:
parent
974bce19ed
commit
c2eb9a583d
13 changed files with 193 additions and 37 deletions
|
|
@ -25,7 +25,23 @@
|
|||
#include "sys_fs.h"
|
||||
#include "sys_spu.h"
|
||||
|
||||
// Check all flags known to be related to extended permissions (TODO)
|
||||
// I think anything which has root flags implicitly has debug perm as well
|
||||
// But I havn't confirmed it.
|
||||
bool ps3_process_info_t::debug_or_root() const
|
||||
{
|
||||
return (ctrl_flags1 & (0xe << 28)) != 0;
|
||||
}
|
||||
|
||||
bool ps3_process_info_t::has_root_perm() const
|
||||
{
|
||||
return (ctrl_flags1 & (0xc << 28)) != 0;
|
||||
}
|
||||
|
||||
bool ps3_process_info_t::has_debug_perm() const
|
||||
{
|
||||
return (ctrl_flags1 & (0xa << 28)) != 0;
|
||||
}
|
||||
|
||||
LOG_CHANNEL(sys_process);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue