mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
PSP: fixed invisible bug in power callback
svn-id: r49756
This commit is contained in:
parent
6903fc7a07
commit
0fe65d3e5f
@ -110,12 +110,13 @@ int exit_callback(void) {
|
||||
}
|
||||
|
||||
/* Function for handling suspend/resume */
|
||||
void power_callback(int , int powerinfo) {
|
||||
int power_callback(int , int powerinfo, void *) {
|
||||
if (powerinfo & PSP_POWER_CB_POWER_SWITCH || powerinfo & PSP_POWER_CB_SUSPENDING) {
|
||||
PowerMan.suspend();
|
||||
} else if (powerinfo & PSP_POWER_CB_RESUME_COMPLETE) {
|
||||
PowerMan.resume();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Callback thread */
|
||||
|
Loading…
Reference in New Issue
Block a user