aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/config-manager.cpp2
-rw-r--r--common/savefile.cpp2
-rw-r--r--common/scummsys.h19
-rw-r--r--common/stdafx.h2
-rw-r--r--common/system.cpp2
5 files changed, 25 insertions, 2 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp
index ae152bc825..49bc3f062c 100644
--- a/common/config-manager.cpp
+++ b/common/config-manager.cpp
@@ -93,6 +93,8 @@ void ConfigManager::loadDefaultConfigFile() {
strcpy(configFile,"/PALM/Programs/ScummVM/" DEFAULT_CONFIG_FILE);
#elif defined(__PLAYSTATION2__)
strcpy(configFile, "mc0:ScummVM/" DEFAULT_CONFIG_FILE);
+ #elif defined(__PSP__)
+ strcpy(configFile, "ms0:/" DEFAULT_CONFIG_FILE);
#elif defined (__SYMBIAN32__)
strcpy(configFile, SYMBIAN32_DOC_DIR DEFAULT_CONFIG_FILE);
#else
diff --git a/common/savefile.cpp b/common/savefile.cpp
index 3f332af9d3..b3f888dfe7 100644
--- a/common/savefile.cpp
+++ b/common/savefile.cpp
@@ -35,7 +35,7 @@ namespace Common {
const char *SaveFileManager::getSavePath() const {
-#if defined(__PALM_OS__)
+#if defined(__PALM_OS__) || defined(__PSP__)
return SCUMMVM_SAVEPATH;
#else
diff --git a/common/scummsys.h b/common/scummsys.h
index b2952dd72c..ee569439aa 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -279,6 +279,25 @@
#define fsize(a) ps2_fsize(a)
extern void ps2_disableHandleCaching(void);
+#elif defined (__PSP__)
+ #define SCUMM_NEED_ALIGNMENT
+ #define SCUMM_LITTLE_ENDIAN
+
+ #define scumm_stricmp strcasecmp
+ #define scumm_strnicmp strncasecmp
+
+ typedef unsigned char byte;
+ typedef unsigned char uint8;
+ typedef unsigned short uint16;
+ typedef unsigned int uint32;
+ typedef unsigned int uint;
+ typedef unsigned long uint64;
+ typedef signed char int8;
+ typedef signed short int16;
+ typedef signed int int32;
+
+ #define START_PACK_STRUCTS pack (push, 1)
+ #define END_PACK_STRUCTS pack(pop)
#elif defined (__amigaos4__)
#include <exec/types.h>
diff --git a/common/stdafx.h b/common/stdafx.h
index ac582a1206..2e15d84c33 100644
--- a/common/stdafx.h
+++ b/common/stdafx.h
@@ -115,7 +115,7 @@
#endif
#if !defined(macintosh)
#include <sys/types.h>
-#if !defined(__PLAYSTATION2__) && !defined(__amigaos4__)
+#if !defined(__PLAYSTATION2__) && !defined(__PSP__) && !defined(__amigaos4__)
#include <sys/uio.h>
#endif
#if !defined(__amigaos4__)
diff --git a/common/system.cpp b/common/system.cpp
index 0336a135a6..c2bf42ebbe 100644
--- a/common/system.cpp
+++ b/common/system.cpp
@@ -56,6 +56,8 @@ OSystem *OSystem::makeInstance() {
return OSystem_PALMOS_create();
#elif defined(__PLAYSTATION2__)
return OSystem_PS2_create();
+#elif defined(__PSP__)
+ return OSystem_PSP_create();
#elif defined(__SYMBIAN32__) // SumthinWicked / Sprawl
return OSystem_SymbianOS_create();
#else