aboutsummaryrefslogtreecommitdiff
path: root/backends/psp/psp_main.cpp
diff options
context:
space:
mode:
authorJoost Peters2006-04-16 14:40:12 +0000
committerJoost Peters2006-04-16 14:40:12 +0000
commitd5909ee1228a3f7527642ae1a6ec441273dccc4c (patch)
tree630547015be0b4086006a28ba8bfc478988d7775 /backends/psp/psp_main.cpp
parent784467abfd8e00454d1700ce2cf895bbf1f41402 (diff)
downloadscummvm-rg350-d5909ee1228a3f7527642ae1a6ec441273dccc4c.tar.gz
scummvm-rg350-d5909ee1228a3f7527642ae1a6ec441273dccc4c.tar.bz2
scummvm-rg350-d5909ee1228a3f7527642ae1a6ec441273dccc4c.zip
some cleanup
svn-id: r21946
Diffstat (limited to 'backends/psp/psp_main.cpp')
-rw-r--r--backends/psp/psp_main.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/backends/psp/psp_main.cpp b/backends/psp/psp_main.cpp
index 15580bebd6..64b48dc30e 100644
--- a/backends/psp/psp_main.cpp
+++ b/backends/psp/psp_main.cpp
@@ -22,11 +22,14 @@
* $Id$
*
*/
-
+
+
+#define USERSPACE_ONLY //don't use kernel mode features
+
+#ifndef USERSPACE_ONLY
#include <pspkernel.h>
#include <pspdebug.h>
-#include <stdlib.h>
-#include <string.h>
+#endif
#include <common/stdafx.h>
#include <common/system.h>
@@ -38,8 +41,6 @@
#include "./trace.h"
-#define USERSPACE_ONLY
-
/**
* Define the module info section
@@ -108,13 +109,9 @@ int CallbackThread(SceSize /*size*/, void *arg) {
}
/* Sets up the callback thread and returns its thread id */
-int SetupCallbacks(void)
-{
- int thid = 0;
-
- thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, THREAD_ATTR_USER, 0);
- if(thid >= 0)
- {
+int SetupCallbacks(void) {
+ int thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, THREAD_ATTR_USER, 0);
+ if (thid >= 0) {
sceKernelStartThread(thid, 0, 0);
}
@@ -124,10 +121,6 @@ int SetupCallbacks(void)
#undef main
int main(void)
{
- //PSPDebugTrace("Init debug screen\n");
- //pspDebugScreenInit();
-
- //PSPDebugTrace("Setup callbacks\n");
SetupCallbacks();
//check if the save directory exists