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

machdep.upd_version: 0x405894 #4

Open
logic-68 opened this issue Mar 4, 2023 · 1 comment
Open

machdep.upd_version: 0x405894 #4

logic-68 opened this issue Mar 4, 2023 · 1 comment

Comments

@logic-68
Copy link

logic-68 commented Mar 4, 2023

Good morning. Any idea why machdep.upd_version is wrong with Mast1c0re?

olden = sizeof(upd_version);
PS::Sce::Kernel::Sysctlbyname("machdep.upd_version", (char *)&upd_version, &olden, NULL, 0);

RESULT machdep.upd_version: 0x405894

...
kern.version: r197326/releases/06.50 Dec 23 2022 02:17:42
kern.ps4_sdk_version: 0x10090001
kern.sdk_version; 0x6500010
Thank's you

@McCaulay
Copy link
Owner

McCaulay commented Aug 2, 2023

I am not sure. What is your implementation of the Sysctlbyname function as this isn't provided by default in the SDK?

As this is running in a emulated PS2 environment, pointers and addresses need to be converted to PS4 userland pointers before passing them to system calls or PS4 functions. Any return pointers then need to be read using PS::Memory functions to copy them into PS2 memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants