Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements sys_get_proc_type_info #794

Merged
merged 6 commits into from
Apr 1, 2024

Conversation

SuchAFuriousDeath
Copy link
Contributor

@SuchAFuriousDeath SuchAFuriousDeath commented Apr 1, 2024

This is a replacement for the old PR

@SuchAFuriousDeath SuchAFuriousDeath requested a review from a team April 1, 2024 14:35
@github-actions github-actions bot added S-ready Status: Ready for review and removed S-ready Status: Ready for review labels Apr 1, 2024
@github-actions github-actions bot added the S-ready Status: Ready for review label Apr 1, 2024
@SuchAFuriousDeath SuchAFuriousDeath merged commit 69a6ab2 into obhq:main Apr 1, 2024
5 checks passed
@SuchAFuriousDeath SuchAFuriousDeath deleted the proc-type-info branch April 1, 2024 19:35
@@ -57,26 +57,62 @@ impl Ucred {
self.groups[1..].binary_search(&gid).is_ok()
}

/// See `sceSblACMgrIsWebcoreProcess` on the PS4 for a reference.
pub fn is_webcore_process(&self) -> bool {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

int is_libkernel_web(t_ucred *cred)

{
  ulong uVar1;
  
  uVar1 = (cred->cr_authinfo).app_type + 0xc7ffffffeffffffc;
  if ((uVar1 < 0xf) && ((0x6001UL >> (uVar1 & 0x3f) & 1) != 0)) {
    return 1;
  }
  return 0;
}

// TODO: Refactor this for readability.
let id = self.auth.paid.get().wrapping_add(0xc7ffffffeffffffc);
(id < 0xf) && ((0x6001 >> (id & 0x3f) & 1) != 0)
}

/// See `sceSblACMgrIsDiskplayeruiProcess` on the PS4 for a reference.
pub fn is_diskplayerui_process(&self) -> bool {
pub fn is_unknown2(&self) -> bool {
Copy link

@red-prig red-prig Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

int is_WebProcessWebApp_or_webmaf(t_ucred *ucred)

{
  qword qVar1;
  
  qVar1 = (ucred->cr_authinfo).app_type;
                    /* WebProcessWebApp.self::380000001000000F
                       webmaf::3800000010000013 */
  if ((qVar1 != 0x380000001000000f) && (qVar1 != 0x3800000010000013)) {
    return 0;
  }
  return 1;
}

@SuchAFuriousDeath SuchAFuriousDeath linked an issue Apr 12, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-ready Status: Ready for review
Development

Successfully merging this pull request may close these issues.

Implement sys_get_proc_type_info
3 participants