Need help with scePower

Problems with installing the SDK? Errors building? Non-code specific questions go here. Please check out https://vitasdk.org/ for instructions on setting up the SDK.
Post Reply
Yoti
Posts: 8
Joined: Tue Dec 13, 2016 1:03 pm

Need help with scePower

Post by Yoti » Thu Jan 05, 2017 7:44 am

Hello all!

Just did a clean install of Linux and VitaSDK. How to use scePowerRequestColdReset and scePowerRequestStandby? The psp2/power.h header doesn't contains this functions. Is it unsupported and why? It used e.g. in VitaShell.

xyz
Posts: 9
Joined: Sun Jan 01, 2017 12:51 pm

Re: Need help with scePower

Post by xyz » Thu Jan 05, 2017 1:30 pm

You can declare them yourself.

Code: Select all

int scePowerRequestColdReset(void);
int scePowerRequestStandby(void);
int scePowerRequestSuspend(void);
Or you could pull request them to vitasdk/vita-headers, which would be even better.

Yoti
Posts: 8
Joined: Tue Dec 13, 2016 1:03 pm

Re: Need help with scePower

Post by Yoti » Thu Jan 05, 2017 2:06 pm

Thanks! Created an issue.

DerColonel
Posts: 3
Joined: Thu Jan 05, 2017 7:46 pm

Re: Need help with scePower

Post by DerColonel » Thu Jan 05, 2017 7:49 pm

I created a pull request and it has been merged. They are in the documentation now.

Yoti
Posts: 8
Joined: Tue Dec 13, 2016 1:03 pm

Re: Need help with scePower

Post by Yoti » Sun Jan 08, 2017 6:30 pm

Great, thanks too. =)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest