diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/androidsdl/androidsdl.mk | 6 | ||||
-rw-r--r-- | backends/platform/maemo/maemo.cpp | 2 | ||||
-rw-r--r-- | backends/platform/null/null.cpp | 4 | ||||
-rw-r--r-- | backends/platform/sdl/posix/posix-main.cpp | 2 | ||||
-rw-r--r-- | backends/platform/sdl/ps3/ps3.cpp | 1 | ||||
-rw-r--r-- | backends/platform/sdl/psp2/psp2.cpp | 28 | ||||
-rw-r--r-- | backends/platform/sdl/psp2/psp2.h | 14 | ||||
-rw-r--r-- | backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg | 2 | ||||
-rw-r--r-- | backends/platform/symbian/src/portdefs.h | 21 |
9 files changed, 63 insertions, 17 deletions
diff --git a/backends/platform/androidsdl/androidsdl.mk b/backends/platform/androidsdl/androidsdl.mk index 53c0d27666..cf6ab6a930 100644 --- a/backends/platform/androidsdl/androidsdl.mk +++ b/backends/platform/androidsdl/androidsdl.mk @@ -4,8 +4,8 @@ androidsdl: $(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) release $(INSTALL) -c -m 644 $(DIST_FILES_DOCS) release $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip release - zip -j scummvm_1_10_0-git-appdata.zip release/* - split -d -b 1000000 scummvm_1_10_0-git-appdata.zip scummvm_1_10_0-git-appdata.zip0 - $(RM) -r scummvm_1_10_0-git-appdata.zip + zip -j scummvm_2_1_0-git-appdata.zip release/* + split -d -b 1000000 scummvm_2_1_0-git-appdata.zip scummvm_2_1_0-git-appdata.zip0 + $(RM) -r scummvm_2_1_0-git-appdata.zip .PHONY: androidsdl diff --git a/backends/platform/maemo/maemo.cpp b/backends/platform/maemo/maemo.cpp index dc1054940e..326c35a28f 100644 --- a/backends/platform/maemo/maemo.cpp +++ b/backends/platform/maemo/maemo.cpp @@ -108,8 +108,6 @@ void OSystem_SDL_Maemo::initBackend() { _keymapperDefaultBindings = new Common::KeymapperDefaultBindings(); #endif - ConfMan.set("vkeybdpath", DATA_PATH); - _model = detectModel(); #ifdef ENABLE_KEYMAPPER diff --git a/backends/platform/null/null.cpp b/backends/platform/null/null.cpp index a5eea06f7a..be50fde27c 100644 --- a/backends/platform/null/null.cpp +++ b/backends/platform/null/null.cpp @@ -47,6 +47,8 @@ #include "backends/fs/amigaos4/amigaos4-fs-factory.h" #elif defined(POSIX) #include "backends/fs/posix/posix-fs-factory.h" +#elif defined(RISCOS) + #include "backends/fs/riscos/riscos-fs-factory.h" #elif defined(WIN32) #include "backends/fs/windows/windows-fs-factory.h" #endif @@ -73,6 +75,8 @@ OSystem_NULL::OSystem_NULL() { _fsFactory = new AmigaOSFilesystemFactory(); #elif defined(POSIX) _fsFactory = new POSIXFilesystemFactory(); + #elif defined(RISCOS) + _fsFactory = new RISCOSFilesystemFactory(); #elif defined(WIN32) _fsFactory = new WindowsFilesystemFactory(); #else diff --git a/backends/platform/sdl/posix/posix-main.cpp b/backends/platform/sdl/posix/posix-main.cpp index e378c37849..92354b273e 100644 --- a/backends/platform/sdl/posix/posix-main.cpp +++ b/backends/platform/sdl/posix/posix-main.cpp @@ -22,7 +22,7 @@ #include "common/scummsys.h" -#if defined(POSIX) && !defined(MACOSX) && !defined(SAMSUNGTV) && !defined(MAEMO) && !defined(WEBOS) && !defined(LINUXMOTO) && !defined(GPH_DEVICE) && !defined(GP2X) && !defined(DINGUX) && !defined(OPENPANDORA) && !defined(PLAYSTATION3) && !defined(PSP2) && !defined(ANDROIDSDL) && !defined(RISCOS) +#if defined(POSIX) && !defined(MACOSX) && !defined(SAMSUNGTV) && !defined(MAEMO) && !defined(WEBOS) && !defined(LINUXMOTO) && !defined(GPH_DEVICE) && !defined(GP2X) && !defined(DINGUX) && !defined(OPENPANDORA) && !defined(PLAYSTATION3) && !defined(PSP2) && !defined(ANDROIDSDL) #include "backends/platform/sdl/posix/posix.h" #include "backends/plugins/sdl/sdl-provider.h" diff --git a/backends/platform/sdl/ps3/ps3.cpp b/backends/platform/sdl/ps3/ps3.cpp index 0bb8300014..b13088afd3 100644 --- a/backends/platform/sdl/ps3/ps3.cpp +++ b/backends/platform/sdl/ps3/ps3.cpp @@ -59,7 +59,6 @@ void OSystem_PS3::init() { void OSystem_PS3::initBackend() { ConfMan.set("joystick_num", 0); - ConfMan.set("vkeybdpath", PREFIX "/data"); ConfMan.registerDefault("fullscreen", true); ConfMan.registerDefault("aspect_ratio", true); diff --git a/backends/platform/sdl/psp2/psp2.cpp b/backends/platform/sdl/psp2/psp2.cpp index 12154ba7d0..29be31f267 100644 --- a/backends/platform/sdl/psp2/psp2.cpp +++ b/backends/platform/sdl/psp2/psp2.cpp @@ -73,7 +73,6 @@ void OSystem_PSP2::init() { void OSystem_PSP2::initBackend() { ConfMan.set("joystick_num", 0); - ConfMan.set("vkeybdpath", PREFIX "/data"); ConfMan.registerDefault("fullscreen", true); ConfMan.registerDefault("aspect_ratio", false); ConfMan.registerDefault("gfx_mode", "2x"); @@ -81,6 +80,7 @@ void OSystem_PSP2::initBackend() { ConfMan.registerDefault("kbdmouse_speed", 3); ConfMan.registerDefault("joystick_deadzone", 2); ConfMan.registerDefault("shader", 0); + ConfMan.registerDefault("touchpad_mouse_mode", false); if (!ConfMan.hasKey("fullscreen")) { ConfMan.setBool("fullscreen", true); @@ -97,7 +97,10 @@ void OSystem_PSP2::initBackend() { if (!ConfMan.hasKey("shader")) { ConfMan.setInt("shader", 2); } - + if (!ConfMan.hasKey("touchpad_mouse_mode")) { + ConfMan.setBool("touchpad_mouse_mode", false); + } + // Create the savefile manager if (_savefileManager == 0) _savefileManager = new DefaultSaveFileManager("ux0:data/scummvm/saves"); @@ -126,9 +129,30 @@ bool OSystem_PSP2::hasFeature(Feature f) { return (f == kFeatureKbdMouseSpeed || f == kFeatureJoystickDeadzone || f == kFeatureShader || + f == kFeatureTouchpadMode || OSystem_SDL::hasFeature(f)); } +void OSystem_PSP2::setFeatureState(Feature f, bool enable) { + switch (f) { + case kFeatureTouchpadMode: + ConfMan.setBool("touchpad_mouse_mode", enable); + break; + } + OSystem_SDL::setFeatureState(f, enable); +} + +bool OSystem_PSP2::getFeatureState(Feature f) { + switch (f) { + case kFeatureTouchpadMode: + return ConfMan.getBool("touchpad_mouse_mode"); + break; + default: + return OSystem_SDL::getFeatureState(f); + break; + } +} + void OSystem_PSP2::logMessage(LogMessageType::Type type, const char *message) { #if __PSP2_DEBUG__ psp2shell_print(message); diff --git a/backends/platform/sdl/psp2/psp2.h b/backends/platform/sdl/psp2/psp2.h index 65d98098be..db9140e4c1 100644 --- a/backends/platform/sdl/psp2/psp2.h +++ b/backends/platform/sdl/psp2/psp2.h @@ -34,19 +34,21 @@ public: OSystem_PSP2(Common::String baseConfigName = "scummvm.ini"); virtual ~OSystem_PSP2() {} - virtual void init(); - virtual void initBackend(); - virtual bool hasFeature(Feature f); - virtual void logMessage(LogMessageType::Type type, const char *message); + virtual void init() override; + virtual void initBackend() override; + virtual bool hasFeature(Feature f) override; + virtual void setFeatureState(Feature f, bool enable) override; + virtual bool getFeatureState(Feature f) override; + virtual void logMessage(LogMessageType::Type type, const char *message) override; protected: // Base string for creating the default path and filename // for the configuration file Common::String _baseConfigName; - virtual Common::String getDefaultConfigFileName(); + virtual Common::String getDefaultConfigFileName() override; - virtual Common::WriteStream *createLogFile(); + virtual Common::WriteStream *createLogFile() override; }; #endif diff --git a/backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg b/backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg index 30d2aa3db6..7dc58f4a61 100644 --- a/backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg +++ b/backends/platform/symbian/S60v3/scummvm-CVS-SymbianS60v3.pkg @@ -33,7 +33,7 @@ :"ScummVM" ; UID is the app's UID -#{"ScummVM S60v3"},(0xA0000657),1,80,0 +#{"ScummVM S60v3"},(0xA0000657),2,00,0 ;Supports Series 60 v 3.0 [0x101F7961], 0, 0, 0, {"Series60ProductID"} diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h index f9e0d04064..7729145eac 100644 --- a/backends/platform/symbian/src/portdefs.h +++ b/backends/platform/symbian/src/portdefs.h @@ -30,9 +30,17 @@ #include <stdlib.h> #include <stdio.h> #include <unistd.h> -#include <e32def.h> +#if (__GNUC__ && __cplusplus) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wreturn-local-addr" +#endif +#include <e32def.h> #include <e32std.h> +#if (__GNUC__ && __cplusplus) +#pragma GCC diagnostic pop +#endif + #include <libc\math.h> /* define pi */ @@ -53,6 +61,17 @@ typedef unsigned short int uint16; typedef signed short int int16; typedef unsigned long int uint32; typedef signed long int int32; +typedef signed long long int64; +typedef unsigned long long uint64; + +#ifdef __cplusplus +namespace std + { + + using ::size_t; + + } // namespace std +#endif // Define SCUMMVM_DONT_DEFINE_TYPES to prevent scummsys.h from trying to // re-define those data types. |