aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorYotam Barnoy2010-06-15 10:36:53 +0000
committerYotam Barnoy2010-06-15 10:36:53 +0000
commit0fe65d3e5fcabaac354ffb67cb1970e3e0f5f270 (patch)
tree0e3035e21d40431b77c059765dad885d01256b3d /backends
parent6903fc7a070e33809ba277256b23fa1963e65db7 (diff)
downloadscummvm-rg350-0fe65d3e5fcabaac354ffb67cb1970e3e0f5f270.tar.gz
scummvm-rg350-0fe65d3e5fcabaac354ffb67cb1970e3e0f5f270.tar.bz2
scummvm-rg350-0fe65d3e5fcabaac354ffb67cb1970e3e0f5f270.zip
PSP: fixed invisible bug in power callback
svn-id: r49756
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/psp/psp_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/platform/psp/psp_main.cpp b/backends/platform/psp/psp_main.cpp
index e6940eba13..c26aed539e 100644
--- a/backends/platform/psp/psp_main.cpp
+++ b/backends/platform/psp/psp_main.cpp
@@ -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 */